@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;700&family=Roboto:wght@100..900&family=Sofia+Sans:ital,wght@0,1..1000;1,1..1000&family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap");@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@400&display=swap');

/* Import fonts */
:root {
  font-family: "Titillium Web", sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
}
a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  font-family: "Titillium Web", sans-serif;
}
body {
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}
#root {
  width: 100%;
  height: 100%;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
h1 {
  font-size: 3.2em;
  line-height: 1.1;
}
button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}
.not-found-page {
  width: 100%;
  height: 100vh;
  background-color: #0F0F0F;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.not-found-page__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 0;
  padding: 36px 16px 0px;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.not-found-page__hand {
  width: 500px;
  height: 500px;
  max-width: 100%;
  object-fit: contain;
}

.not-found-page__title {
  font-weight: 300;
  font-size: 80px;
  line-height: 1.2em;
  text-align: center;
  color: #FFFFFF;
  margin: 0;
  margin-top: 8px;
  max-width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
  word-wrap: break-word;
}

.not-found-page__message {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.25em;
  text-align: center;
  color: #FFFFFF;
  margin: 0;
  margin-top: 8px;
  max-width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
  word-wrap: break-word;
}

.not-found-page__footer {
  width: 100%;
  min-height: 100px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
  padding: 16px 16px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  max-width: 100%;
}

.not-found-page__logo {
  width: 133px;
  height: 36px;
  object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .not-found-page__hand {
    width: 300px;
    height: 300px;
  }

  .not-found-page__title {
    font-size: 48px;
  }

  .not-found-page__message {
    font-size: 14px;
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .not-found-page__hand {
    width: 250px;
    height: 250px;
  }

  .not-found-page__title {
    font-size: 36px;
  }
}

#root {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

#ludeo-unit-root {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* When .hide-cursor is set on html (by JS during fullscreen gameplay),
   hide the system cursor everywhere except UI overlays. 
   Fixes Firefox double-cursor after re-entering fullscreen. */


.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
  filter: drop-shadow(0 0 2em #61dafbaa);
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}
.mobile-not-supported-page {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-not-supported-page__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  min-height: 0;
  padding: 24px 16px;
  padding-top: max(24px, env(safe-area-inset-top));
  box-sizing: border-box;
  width: 100%;
}

.mobile-not-supported-page__modal {
  background: rgba(15, 15, 15, 0.5);
  backdrop-filter: blur(30px);
  border-radius: 8px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 500px;
  width: 100%;
  box-sizing: border-box;
}

.mobile-not-supported-page__title {
  color: var(--Text---icons-Body-1, #FFF);
  text-align: center;
  font-size: 28px;
  font-style: normal;
  font-weight: 500;
  line-height: 36px; /* 128.571% */
  margin: 0;
}

.mobile-not-supported-page__subtitle {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4em;
  text-align: center;
  color: #FFFFFF;
  margin: 0;
  opacity: 0.9;
}

.mobile-not-supported-page__copy-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 16px;
  border: none;
  border-radius: 999999px;
  background: var(--buttons-solid-transparent-static, rgba(255, 255, 255, 0.2));
  cursor: pointer;
  transition: all 0.2s;
  box-sizing: border-box;
  margin-top: 8px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mobile-not-supported-page__copy-button:hover {
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.3);
}

.mobile-not-supported-page__copy-button:active {
  opacity: 0.85;
  transform: scale(0.95);
}

.mobile-not-supported-page__copy-button--copied {
  background: rgba(76, 175, 80, 0.3);
  min-width: 100px;
}

.mobile-not-supported-page__copy-text {
  color: #FFF;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.mobile-not-supported-page__copy-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.mobile-not-supported-page__footer {
  position: relative;
  min-height: 100px;
  z-index: 1;
  width: 100%;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  flex-shrink: 0;
}

.mobile-not-supported-page__logo {
  width: 88.48px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Hidden textarea for clipboard fallback */
.mobile-not-supported-page__clipboard-fallback {
  position: fixed;
  top: 0;
  left: 0;
  width: 2em;
  height: 2em;
  padding: 0;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}

/* Mobile-first responsive adjustments */
@media (min-width: 481px) {
  .mobile-not-supported-page__modal {
    padding: 36px 32px;
  }

  .mobile-not-supported-page__subtitle {
    font-size: 18px;
  }
}

@media (min-width: 769px) {
  .mobile-not-supported-page__modal {
    padding: 40px;
    max-width: 600px;
  }

  .mobile-not-supported-page__title {
    font-size: 32px;
  }

  .mobile-not-supported-page__subtitle {
    font-size: 20px;
  }

}

.mobile-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transition: opacity 0.3s ease-in-out;
}

.mobile-background--skeleton {
  background-color: #f0f0f0;
  opacity: 0.5;
}

.mobile-background--loading {
  opacity: 0.7;
}

.notification {
  display: flex;
  pointer-events: none;
  border-radius: var(--Sizing-Corners-m, 8px);
  border: 1px solid var(--context-colors-warning, #EE7B00);
  background: var(--Background-Background-overlay-100, rgba(15, 15, 15, 0.50));
  backdrop-filter: blur(5px);
  padding: var(--Sizing-Sizing-s, 12px) var(--Sizing-Sizing-l, 20px) var(--Sizing-Sizing-s, 12px) var(--Sizing-Sizing-s, 12px);
  align-items: center;
  gap: 8px;
  color: var(--Text---icons-Secondary, #D5D5D5);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px; /* 125% */
  white-space: nowrap;
}

.notification.connection-error-fair {
  border: 1px solid var(--context-colors-warning, #EE7B00);
}

.notification.connection-error-poor {
  border: 1px solid var(--context-colors-danger, #e40008);
}
@keyframes toastFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes toastFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.toast-container {
  position: fixed;
  right: 0;
  top: 3.5rem;
  z-index: 999999;
  padding-top: 0.5rem;
  padding-right: 0.5rem;
}

.toast-container.fade-in {
  opacity: 0;
  animation: toastFadeIn 300ms ease-in-out forwards;
}

.toast-container.fade-out {
  opacity: 1;
  animation: toastFadeOut 800ms ease-in-out forwards;
}

/* Success style */
.notification.toast-success {
  border: 1px solid var(--context-colors-success, #00c853);
}

/* Info style */
.notification.toast-info {
  border: 1px solid var(--context-colors-info, #2196f3);
}

/* Responsive padding */
@media (min-width: 768px) {
  .toast-container {
    top: 3.75rem;
    padding-top: 0.875rem;
    padding-right: 0.875rem;
  }
}

@media (min-width: 1024px) {
  .toast-container {
    top: 4.5rem;
    padding-top: 1.75rem;
    padding-right: 1.75rem;
  }
}

@media (min-width: 1280px) {
  .toast-container {
    top: 6rem;
    padding-top: 3.5rem;
    padding-right: 3.5rem;
  }
}
/* ==========================================================================
   TopBar — shared header: game logo (left) + Ludeo mark + close button (right)
   Figma: https://www.figma.com/design/3uHLT7XwpdFMoTZ8jenqtb?node-id=38-3463
   ========================================================================== */

.top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px;
}

/* ---- Game logo ---- */

.game-logo.top-bar__game-logo {
  height: 60px;
  width: auto;
}

.game-logo--skeleton.top-bar__game-logo {
  width: 80px;
}

.game-logo.top-bar__game-logo .game-logo__image {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* ---- Right section ---- */

.top-bar__right {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* ---- Ludeo branding ---- */

.top-bar__ludeo-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
}

.top-bar__playable-text {
  font-family: 'Titillium Web', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: white;
  white-space: nowrap;
}

.top-bar__ludeo-logo {
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-bar__ludeo-shape {
  width: 22px;
  height: 23px;
  object-fit: contain;
}

.top-bar__ludeo-name {
  width: 70px;
  height: 22px;
  object-fit: contain;
}

/* ---- Close button ---- */

.top-bar__close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.top-bar__close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.top-bar__close-btn:focus-visible {
  outline: 2px solid #ffba00;
  outline-offset: 2px;
}
.game-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* ---- Skeleton shimmer (shown while logo URL is loading) ---- */

@keyframes game-logo-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.game-logo--skeleton {
  width: 120px;
  height: 40px;
  border-radius: 4px;
  background: linear-gradient(90deg, #2a2a2a 25%, #3d3d3d 50%, #2a2a2a 75%);
  background-size: 200% 100%;
  animation: game-logo-shimmer 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

.game-logo__image {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Default sizing for MissionBrief header */
.mission-brief__game-logo .game-logo__image {
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.footer-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  white-space: nowrap;
  color: var(--gray2, #c8c7c7);
  font-size: 20px;
  line-height: 60px;
  text-align: center;
}

.footer-text__regular {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 400;
}

.footer-text__bold {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
}
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
  padding: 0 0 16px;
  transition: opacity 0.3s ease-out;
}

.footer--hidden {
  opacity: 0;
  pointer-events: none;
}

.footer__text {
  flex-shrink: 0;
}
.loading-bar {
  position: relative;
  width: 100%;
  min-height: 44px;
  padding: 2px;
  box-sizing: border-box;
  border-radius: 2px;
  background: var(--Background-Background-overlay-100, rgba(15, 15, 15, 0.50));
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  overflow: hidden;
  transition: opacity 0.6s ease-out;
}

.loading-bar--fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-bar__fill {
  position: absolute;
  top: 2px;
  left: 2px;
  bottom: 2px;
  right: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  transform-origin: left;
  transition: transform 0.1s ease-out;
  border-radius: 2px;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
  will-change: transform;
  overflow: hidden;
  z-index: 1;
}

.loading-bar__fill::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.17) 50%,
    transparent 100%
  );
  animation: loading-shimmer 4s ease-in-out infinite;
}

@keyframes loading-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.loading-bar__text-clip {
  position: absolute;
  top: 2px;
  left: 2px;
  bottom: 2px;
  height: calc(100% - 4px);
  display: flex;
  align-items: center;
  padding: 8px 20px 8px 30px;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.loading-bar__text--left {
  color: var(--Text---icons-Body-1, white);
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  white-space: nowrap;
}

.loading-bar__message {
  position: absolute;
  top: 0;
  right: 60px;
  bottom: 0;
  display: flex;
  align-items: center;
  z-index: 2;
  color: var(--Text---icons-Body-1, white);
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
}

.loading-bar__percentage {
  position: absolute;
  top: 0;
  right: 20px;
  bottom: 0;
  display: flex;
  align-items: center;
  z-index: 2;
  color: var(--Text---icons-Body-1, white);
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 2560px) {
  .loading-bar {
    min-height: 56px;
  }

  .loading-bar__text--left {
    font-size: calc(var(--Sizing-Sizing-xl, 24px) * 0.92);
  }

  .loading-bar__message,
  .loading-bar__percentage {
    font-size: calc(var(--Sizing-Sizing-xl, 24px) * 0.76);
  }
}
.click-to-start-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100px;
  padding: 0 100px;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

.click-to-start-button--disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.click-to-start-button--disabled .click-to-start-button__text,
.click-to-start-button--disabled .click-to-start-button__logo {
  opacity: 0;
  visibility: hidden;
}

.click-to-start-button__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  animation: breathingStartScreen 2s ease-in-out infinite;
}

.click-to-start-button__logo {
  display: inline-block;
  width: 54px;
  height: 57px;
  flex-shrink: 0;
  background-color: white;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  pointer-events: none;
}

.click-to-start-button__text {
  color: var(--colors-neutrals-neutral-50, white);
  font-family: 'Rajdhani', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 60px;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
}

.click-to-start-button__plays-left {
  color: var(--colors-neutrals-neutral-50, white);
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 60px;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes breathingStartScreen {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@media (max-width: 1024px) {
  .click-to-start-button {
    padding: 20px 40px;
  }

  .click-to-start-button__inner {
    gap: 14px;
  }

  .click-to-start-button__text {
    font-size: clamp(24px, calc((100vw - 380px) * 0.05), 50px);
  }

  .click-to-start-button__logo {
    width: 40px;
    height: 42px;
  }
}

@media (max-width: 768px) {
  .click-to-start-button {
    padding: 16px 24px;
  }

  .click-to-start-button__inner {
    gap: 10px;
  }

  .click-to-start-button__text {
    font-size: clamp(20px, 6vw, 40px);
  }

  .click-to-start-button__logo {
    width: 32px;
    height: 34px;
  }
}

@media (max-width: 480px) {
  .click-to-start-button {
    padding: 12px 16px;
  }

  .click-to-start-button__inner {
    gap: 8px;
  }

  .click-to-start-button__text {
    font-size: clamp(18px, 8vw, 35px);
  }

  .click-to-start-button__logo {
    width: 28px;
    height: 30px;
  }
}

@media (min-width: 2560px) {
  .click-to-start-button {
    padding: 40px 130px;
  }

  .click-to-start-button__inner {
    gap: 26px;
  }

  .click-to-start-button__text {
    font-size: calc(var(--Sizing-Sizing-xl, 24px) * 3.25);
    line-height: calc(var(--Sizing-Sizing-xl, 24px) * 3.25);
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
  }

  .click-to-start-button__logo {
    width: 70px;
    height: 74px;
  }
}
.footer-action {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-action__loading {
  transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
  z-index: 0;
}

.footer-action__cta {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
}

.footer-action__cta--visible {
  opacity: 1;
  pointer-events: auto;
}
/* ==========================================================================
   InfoPanel — layout wrapper composing InstructionContainer + InfoTabs
   Figma: https://www.figma.com/design/3uHLT7XwpdFMoTZ8jenqtb?node-id=121-4105
   ========================================================================== */

.info-panel {
  display: flex;
  gap: 40px;
  width: 100%;
  justify-content: center;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}

/* ========= TABS WRAPPER ========= */

/* flex: 1 column that always fills the remaining space in info-panel.
   InfoTabs observes this div as its parent, so parent.clientWidth correctly
   reflects only the space available to the tabs — not the full panel width. */
.info-panel__tabs-wrapper {
  flex: 1;
  min-width: 0;
  max-width: 900px;

  overflow: hidden;
  display: flex;
  align-items: stretch;
}

@media (min-width: 2560px) {
  .info-panel__tabs-wrapper {
    max-width: 1400px;
  }
}

/* ========= DIVIDER ========= */

.info-panel__divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(180deg, transparent 0%, #5e5e5e 30%, #5e5e5e 70%, transparent 100%);
  flex-shrink: 0;
}
/* ==========================================================================
   InstructionContainer — left panel: title, description, objectives table
   Figma: https://www.figma.com/design/3uHLT7XwpdFMoTZ8jenqtb?node-id=38-3795
   ========================================================================== */

.instruction-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 400px;
  flex-shrink: 0;
  overflow-y: auto;
}

@media (min-width: 2560px) {
  .instruction-container {
    width: 700px;
  }
}

.instruction-container__title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 30px;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.instruction-container__description {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 22px;
  color: #d5d5d5;
  margin: 0;
}

@keyframes typewriter-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.instruction-container__cursor {
  display: inline;
  font-weight: 300;
  animation: typewriter-blink 0.7s step-end infinite;
}

.instruction-container__description-placeholder {
  visibility: hidden;
}

/* ---- Objectives Table ---- */

.instruction-container__objectives-table {
  width: 100%;
  border: 1px solid #5e5e5e;
  border-radius: 3px;
  background: linear-gradient(180deg, #0f0f0f 0%, rgba(15, 15, 15, 0.2) 100%);
  box-sizing: border-box;
}

.instruction-container__objectives-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  white-space: nowrap;
}

.instruction-container__objectives-heading {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 36px;
  color: #ffffff;
  text-transform: uppercase;
}

.instruction-container__time-limit {
  display: flex;
  gap: 10px;
  align-items: center;
}

.instruction-container__time-limit-label {
  display: flex;
  gap: 4px;
  align-items: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 22px;
  color: #d5d5d5;
  opacity: 0.8;
}

.instruction-container__time-limit-value {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 22px;
  color: #ffba00;
}

/* ---- Objective Rows ---- */

.instruction-container__objectives-list {
  display: flex;
  flex-direction: column;
}

.instruction-container__objective-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 10px 20px;
  border-top: 1px solid #5e5e5e;
  box-sizing: border-box;
}

.instruction-container__objective-name[data-state] {
  cursor: default;
}

.instruction-container__objective-row--completed {
  background: rgba(25, 229, 148, 0.1);
}

.instruction-container__objective-row--failed {
  background: rgba(255, 86, 86, 0.1);
}

.instruction-container__objective-left {
  display: flex;
  gap: 5px;
  align-items: center;
}

.instruction-container__objective-bullet {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.instruction-container__objective-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 22px;
  color: #d5d5d5;
  white-space: nowrap;
}

.instruction-container__objective-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.instruction-container__objective-value {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 22px;
  color: #ffba00;
  text-align: right;
  white-space: nowrap;
}

.instruction-container__objective-row--completed .instruction-container__objective-value {
  color: #19e594;
}

.instruction-container__objective-row--failed .instruction-container__objective-value {
  color: #ff5656;
}

.instruction-container__objective-status {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ---- Tooltip ---- */

.instruction-container__tooltip {
  background-color: #757575;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  max-width: 300px;
  box-shadow: 0px 4px 20px 4px rgba(0, 0, 0, 0.5);
  z-index: 10000000002;
  animation: instruction-tooltip-fade-in 0.15s ease-out;
}

.instruction-container__tooltip-arrow {
  fill: #757575;
}

@keyframes instruction-tooltip-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* ==========================================================================
   InfoTabs — right panel: tab bar + scrollable content area
   Figma: https://www.figma.com/design/3uHLT7XwpdFMoTZ8jenqtb?node-id=56-1908
   ========================================================================== */

.info-tabs {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---- Tab Bar ---- */

.info-tabs__tab-bar {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #8f8f8f;
  flex-shrink: 0;
}

.info-tabs__tab {
  position: relative;
  flex: 1;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 7px 20px;
  opacity: 0.5;
  font-family: 'Titillium Web', sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 20px;
  color: #d5d5d5;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  transition: opacity 0.2s, color 0.2s;
  white-space: nowrap;
  user-select: none;
}

/* Active indicator bar — spans full button width (~1/3 of tab bar) */
.info-tabs__tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffba00;
  transform: scaleX(0);
  transition: transform 0.25s ease;
  border-radius: 2px 2px 0 0;
}

.info-tabs__tab--active::after {
  transform: scaleX(1);
}

.info-tabs__tab:focus,
.info-tabs__tab:focus-visible {
  outline: none;
  box-shadow: none;
}

.info-tabs__tab--active {
  opacity: 1;
  color: #ffba00;
}

.info-tabs__tab:hover:not(.info-tabs__tab--active) {
  opacity: 0.75;
}

.info-tabs__tab-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  transition: background-color 0.2s;
}

/* ---- Tab Content ---- */

.info-tabs__content {
  flex: 1;
  min-height: 0;
  margin-top: 10px;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

/* When a video AR is known, lock the content area so every tab is
   exactly the same size.  A ::before spacer sets the height from
   the AR; all panes are position:absolute on top of it. */
.info-tabs__content--fixed {
  flex: none;
}

.info-tabs__content--fixed::before {
  content: '';
  display: block;
  width: 100%;
  aspect-ratio: var(--preview-ar);
}

.info-tabs__content--fixed > .info-tabs__pane {
  position: absolute;
  inset: 0;
}

/* ---- Panes ---- */

.info-tabs__pane {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 30px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #0f0f0f 0%, rgba(15, 15, 15, 0.2) 100%);
  backdrop-filter: blur(15px);
}

.info-tabs__pane--no-padding {
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-tabs__pane--hidden {
  display: none;
}

/* Bottom fade — scroll indicator for Controls tab */
.info-tabs__content--fade::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(15, 15, 15, 0.9));
  pointer-events: none;
  border-radius: 0 0 5px 5px;
  z-index: 1;
}

/* Custom scrollbar matching Figma design */
.info-tabs__pane::-webkit-scrollbar {
  width: 6px;
}

.info-tabs__pane::-webkit-scrollbar-track {
  background: #757575;
  border-radius: 20px;
}

.info-tabs__pane::-webkit-scrollbar-thumb {
  background: #d5d5d5;
  border-radius: 20px;
}
/* VideoPlayer — custom controls: click-to-pause with fading icon overlay */

.video-player-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.video-player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---- Centered icon overlay ---- */

.video-player__icon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

/* Instant appearance, then fade-out on removal */
.video-player__icon-overlay--visible {
  opacity: 1;
  transition: none;
}

.video-player__icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ==========================================================================
   InfoPanelSkeleton — shimmer placeholder that exactly mirrors InfoPanel's
   layout. Reuses structural classes from InfoPanel, InstructionContainer,
   and InfoTabs so dimensions are pixel-perfect.
   ========================================================================== */

@keyframes info-panel-skeleton-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.info-panel-skeleton__bar {
  background: linear-gradient(90deg, #2a2a2a 25%, #3d3d3d 50%, #2a2a2a 75%);
  background-size: 200% 100%;
  animation: info-panel-skeleton-shimmer 1.6s ease-in-out infinite;
  border-radius: 3px;
  flex-shrink: 0;
}

/* 16:9 video placeholder inside info-tabs__pane--no-padding */
.info-panel-skeleton__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(90deg, #2a2a2a 25%, #3d3d3d 50%, #2a2a2a 75%);
  background-size: 200% 100%;
  animation: info-panel-skeleton-shimmer 1.6s ease-in-out infinite;
}
/* ==========================================================================
   GameStoresContent — game stores tab content
   Figma: https://www.figma.com/design/3uHLT7XwpdFMoTZ8jenqtb?node-id=1-2616
   ========================================================================== */

.game-stores {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background hero image */
.game-stores__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Dark gradient overlay — matches Figma */
.game-stores__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(240deg, rgba(15, 15, 15, 0) 0%, rgb(15, 15, 15) 83%),
    linear-gradient(238deg, rgba(15, 15, 15, 0) 47%, rgba(15, 15, 15, 0.5) 100%),
    linear-gradient(90deg, rgba(15, 15, 15, 0.3) 0%, rgba(15, 15, 15, 0.3) 100%);
  backdrop-filter: blur(15px);
  pointer-events: none;
}

/* Content sits above the overlays */
.game-stores__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
}

/* Game logo */
.game-stores__logo {
  max-width: 243px;
}

.game-stores__cta {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 25px;
  line-height: 35px;
  color: #ffffff;
  text-align: center;
  margin: 0;
}

/* ---- Store buttons row ---- */

.game-stores__buttons {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.game-stores__btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 140px;
}

.game-stores__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 20px;
  border-radius: 2px;
  border: 2px solid var(--store-accent);
  outline: none;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 20px;
  color: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s, filter 0.2s;
}

.game-stores__btn:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 12px 0 var(--store-accent);
}

.game-stores__btn:focus,
.game-stores__btn:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 2px var(--store-accent);
}

/* Steam — dark navy gradient, white icon */
.game-stores__btn--steam {
  --store-accent: #137aac;
  background: linear-gradient(180deg, #0e1c31 0.3%, #137aac 100%);
}

.game-stores__btn--steam .game-stores__btn-icon {
  filter: brightness(0) invert(1);
}

/* GOG — purple gradient, white icon */
.game-stores__btn--gog {
  --store-accent: #6325ff;
  background: linear-gradient(180deg, #3f138f 0.3%, #2e40bc 100%);
}

.game-stores__btn--gog .game-stores__btn-icon {
  filter: brightness(0) invert(1);
}

/* Battle.net — light blue, dark text + dark icon */
.game-stores__btn--battlenet {
  --store-accent: #58aefe;
  background: #148eff;
  color: #1e1e1e;
}

.game-stores__btn--battlenet .game-stores__btn-icon {
  filter: brightness(0);
}

/* Epic Games — signature dark with blue accent */
.game-stores__btn--epic {
  --store-accent: #0e7eef;
  background: linear-gradient(180deg, #2f2d2e 0.3%, #121212 100%);
}

.game-stores__btn--epic .game-stores__btn-icon {
  filter: brightness(0) invert(1);
}

/* Xbox — green gradient, white icon */
.game-stores__btn--xbox {
  --store-accent: #2ca243;
  background: linear-gradient(180deg, #107c10 0.3%, #0e6b0e 100%);
}

.game-stores__btn--xbox .game-stores__btn-icon {
  filter: brightness(0) invert(1);
}

/* PlayStation — blue gradient, white icon */
.game-stores__btn--playstation {
  --store-accent: #0070d1;
  background: linear-gradient(180deg, #003791 0.3%, #006fcd 100%);
}

.game-stores__btn--playstation .game-stores__btn-icon {
  filter: brightness(0) invert(1);
}

.game-stores__btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.game-stores__btn-label {
  white-space: nowrap;
}

/* Discount badge */
.game-stores__discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fabb02 7%, #fe9b3c 107%);
  box-shadow: -4px 0 40px 0 rgba(255, 89, 63, 0.5), 4px 0 30px 0 rgba(255, 186, 0, 0.5);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 20px;
  color: #0f0f0f;
  white-space: nowrap;
}

/* 2K / wide screens — scale store content up 50% */
@media (min-width: 2560px) {
  .game-stores__body {
    zoom: 1.5;
  }
}
/* ==========================================================================
   ControlsDisplay — renders game controls from a JSON config
   Figma: https://www.figma.com/design/3uHLT7XwpdFMoTZ8jenqtb?node-id=1-2446
   ========================================================================== */

.controls-display {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}

/* ---- Segment ---- */

.controls-display__segment {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.controls-display__segment-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #d5d5d5;
  line-height: 36px;
}

/* ---- Control Row ---- */

.controls-display__row {
  display: flex;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #3c3c3c;
  gap: 10px;
}

.controls-display__row:last-child {
  border-bottom: none;
}

.controls-display__row-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  text-transform: uppercase;
  color: white;
  position: relative;
}

.controls-display__row-spacer {
  flex: 1;
}

/* ---- Key chips container ---- */

.controls-display__keys {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

/* ---- Key chip: outer — provides the 3D bottom-border depth ---- */

.controls-display__key {
  display: inline-flex;
  align-items: stretch;
  border-bottom: 3px solid #8f8f8f;
  border-radius: 4px;
  backdrop-filter: blur(5px);
  flex-shrink: 0;
}

/* ---- Key chip: inner — visible key surface ---- */

.controls-display__key-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 4px 7px;
  border: 1px solid #8f8f8f;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  color: white;
  white-space: nowrap;
  backdrop-filter: blur(5px);
}

/* ---- Key type variants ---- */

.controls-display__key--arrow .controls-display__key-inner {
  padding: 4px 5px;
  font-size: 11px;
}

.controls-display__key--modifier .controls-display__key-inner,
.controls-display__key--range .controls-display__key-inner {
  font-size: 11px;
}

/* Mouse: icon only, no key chip */
.controls-display__mouse-icon {
  display: inline-flex;
  align-items: center;
  color: white;
}

.controls-display__mouse-icon .controls-display__mouse-svg {
  display: block;
  vertical-align: -3px;
}

/* Xbox button chips */
.controls-display__key--xbox-a { border-bottom-color: #2a5035; }
.controls-display__key--xbox-b { border-bottom-color: #502a2a; }
.controls-display__key--xbox-x { border-bottom-color: #2a3d60; }
.controls-display__key--xbox-y { border-bottom-color: #4a3f1a; }

.controls-display__key--xbox-a .controls-display__key-inner { border-color: #2a5035; color: #5eda8a; font-weight: 700; }
.controls-display__key--xbox-b .controls-display__key-inner { border-color: #502a2a; color: #e05050; font-weight: 700; }
.controls-display__key--xbox-x .controls-display__key-inner { border-color: #2a3d60; color: #5090e0; font-weight: 700; }
.controls-display__key--xbox-y .controls-display__key-inner { border-color: #4a3f1a; color: #d0b040; font-weight: 700; }
.controls-display__key--xbox-misc .controls-display__key-inner { color: #8090c0; }

/* Sony button chips */
.controls-display__key--sony-cross  { border-bottom-color: #2a4070; }
.controls-display__key--sony-circle { border-bottom-color: #582a2a; }
.controls-display__key--sony-square { border-bottom-color: #402e50; }
.controls-display__key--sony-triangle { border-bottom-color: #2a5040; }

.controls-display__key--sony-cross  .controls-display__key-inner { border-color: #2a4070; color: #60b0f0; font-weight: 700; font-size: 12px; }
.controls-display__key--sony-circle .controls-display__key-inner { border-color: #582a2a; color: #e06060; font-weight: 700; font-size: 12px; }
.controls-display__key--sony-square .controls-display__key-inner { border-color: #402e50; color: #c070d8; font-weight: 700; font-size: 12px; }
.controls-display__key--sony-triangle .controls-display__key-inner { border-color: #2a5040; color: #50c898; font-weight: 700; font-size: 12px; }
.controls-display__key--sony-misc .controls-display__key-inner { color: #8090c0; }

/* ---- Combination plus sign ---- */

.controls-display__combo-plus {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: white;
  line-height: 18px;
}

/* ---- Tooltip ---- */

.controls-display__tooltip {
  position: fixed;
  transform: translateY(-50%);
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid #3c3c3c;
  border-radius: 8px;
  color: #d5d5d5;
  font-family: 'Titillium Web', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  padding: 6px 10px;
  pointer-events: none;
  z-index: 1000010;
  max-width: 220px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: controls-tooltip-in 0.15s ease forwards;
}

@keyframes controls-tooltip-in {
  from { opacity: 0; transform: translateX(-4px) translateY(-50%); }
  to   { opacity: 1; transform: translateX(0)    translateY(-50%); }
}

/* 2K / wide screens — scale controls content up 50% */
@media (min-width: 2560px) {
  .controls-display {
    zoom: 1.5;
  }
}

.controls-display__tooltip::after {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-right-color: #3c3c3c;
}
.music-toggle-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  z-index: 10;
  padding: 0;
}

.music-toggle-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.music-toggle-button:active {
  transform: scale(0.95);
}

.music-toggle-button:focus {
  outline: none;
}

.music-toggle-button__icon {
  width: 20px;
  height: 20px;
  color: #ffffff;
}

/* 2K screens (2560px and above) */
@media (min-width: 2560px) and (max-width: 3439px) {
  .music-toggle-button {
    width: 52px;
    height: 52px;
    top: 16px;
    right: 16px;
  }

  .music-toggle-button__icon {
    width: 26px;
    height: 26px;
  }
}

/* Ultrawide screens (3440px and above) */
@media (min-width: 3440px) {
  .music-toggle-button {
    width: 56px;
    height: 56px;
    top: 18px;
    right: 18px;
  }

  .music-toggle-button__icon {
    width: 28px;
    height: 28px;
  }
}
.mission-brief {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000;
}

/* ---- Background: splash image + dark overlay (no blur) ---- */

.mission-brief__background {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mission-brief__background img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.mission-brief__background-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.35);
}

/* ---- Body: flex column replacing old grid ---- */

.mission-brief__body {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(5px);
  background: rgba(15, 15, 15, 0.8);
}

/* ---- Modal-open dimming ---- */

.mission-brief__header,
.mission-brief__content,
.mission-brief__footer {
  transition: opacity 0.3s ease-in;
}

.mission-brief--modal-open .mission-brief__header,
.mission-brief--modal-open .mission-brief__content {
  opacity: .4;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}

.mission-brief--modal-open .click-to-start-button {
  opacity: .4;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}

.mission-brief--modal-open .mission-brief__footer {
  opacity: .4;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}

/* ---- Content (InfoPanel) — fills available space, centers its child ---- */

.mission-brief__content {
  flex: 1;
  min-height: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 100px;
  box-sizing: border-box;
  margin-bottom: 50px;
}

/* ---- Footer ---- */

.mission-brief__footer {
  flex-shrink: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.mission-brief__footer .footer-action {
  padding: 0 100px;
  box-sizing: border-box;
}

/* ---- No Plays Left message ---- */

.mission-brief__no-plays {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100px;
  padding: 0 100px;
  box-sizing: border-box;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

.mission-brief__no-plays-text {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 30px;
  color: #d5d5d5;
  text-align: center;
}
/* Full-screen overlay shown during `ending` */
.ending-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Start fully transparent, animate in */
  opacity: 0;
  background: rgba(0, 0, 0, 0);
  animation: endingOverlayEnter 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes endingOverlayEnter {
  0% {
    opacity: 0;
    background: rgba(0, 0, 0, 0);
  }
  100% {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
  }
}

.ending-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  /* Start hidden and small, grow from center */
  opacity: 0;
  transform: scale(0.5);
  animation: endingContentEnter 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

@keyframes endingContentEnter {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes endingOverlayExit {
  0% {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
  }
  100% {
    opacity: 1;
    background: rgba(0, 0, 0, 1);
    backdrop-filter: blur(20px);
  }
}

@keyframes endingContentExit {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
}

.ending-overlay--fadeout {
  animation: endingOverlayExit 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.ending-overlay--fadeout .ending-overlay-content {
  animation: endingContentExit 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.ending-overlay-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ending-overlay-icon {
  width: 56px;
  height: 56px;
}

.ending-overlay-title {
  color: var(--Text---icons-Body-1, #fff);
  font-family: "Sofia Sans";
  font-size: 56px;
  font-style: normal;
  font-weight: 900;
  line-height: 72px; /* 128.571% */
  letter-spacing: 6px;
  margin: 0;
  text-transform: uppercase;
}

.ending-overlay-subtitle {
  color: var(--Text---icons-Body-1, #fff);
  text-align: center;
  font-family: "Sofia Sans";
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px; /* 125% */
  margin: 0;
}

.ending-overlay-target {
  color: #ff4d4d;
  font-weight: 700;
}
/* ==========================================================================
   MidRunObjectivesV3 — mid-run widget
   Figma: https://www.figma.com/design/3uHLT7XwpdFMoTZ8jenqtb?node-id=129-8411
   ========================================================================== */

/* ---- Outer wrapper: center-left, same position as MidRunObjectivesNew ---- */

.midrun-v3-wrapper {
  position: fixed;
  left: 0;
  top: calc(50% - 250px);
  transform: translateY(-50%);
  z-index: 1000001;
  pointer-events: none;
  padding: 10px 0;
  transition: filter 0.3s ease-in-out;
}

.midrun-v3-wrapper--blurred {
  filter: blur(4px);
}

/* ---- Card ---- */

.midrun-v3-card {
  display: flex;
  flex-direction: column;
  width: 225px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  background: linear-gradient(to bottom, rgba(15, 15, 15, 0.6), rgba(15, 15, 15, 0.2));
  border: 2px solid #5e5e5e;
  border-left: none;
  border-radius: 0 5px 5px 0;
  overflow: hidden;
}

/* ---- Timer row ---- */

.midrun-v3-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid #3c3c3c;
  background: linear-gradient(to bottom, rgba(15, 15, 15, 0.6), rgba(15, 15, 15, 0.2));
  color: #d5d5d5;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.midrun-v3-timer--danger {
  color: #f13034;
  animation: timerDangerPulse 1s ease-in-out infinite;
}

@keyframes timerDangerPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

.midrun-v3-timer__icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-color: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.midrun-v3-timer__text {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 36px;
  letter-spacing: 0;
}

/* ---- Objectives container ---- */

.midrun-v3-objectives {
  display: flex;
  flex-direction: column;
}

/* ---- Objective row ---- */

.midrun-v3-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 15px;
  border-top: 1px solid #3c3c3c;
  background: rgba(15, 15, 15, 0.2);
  transition: background-color 0.35s ease;
}

.midrun-v3-row--completed {
  background: rgba(25, 229, 148, 0.1);
  animation: rowCompletedFlash 0.7s ease-out forwards;
}

.midrun-v3-row--failed {
  background: rgba(241, 48, 52, 0.08);
  animation: rowFailedFlash 0.7s ease-out forwards;
}

@keyframes rowCompletedFlash {
  0%   { background: rgba(15, 15, 15, 0.2); }
  25%  { background: rgba(25, 229, 148, 0.45); }
  100% { background: rgba(25, 229, 148, 0.1); }
}

@keyframes rowFailedFlash {
  0%   { background: rgba(15, 15, 15, 0.2); }
  25%  { background: rgba(241, 48, 52, 0.4); }
  100% { background: rgba(241, 48, 52, 0.08); }
}

.midrun-v3-row__name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 22px;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.midrun-v3-row__value {
  font-family: 'Titillium Web', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  flex-shrink: 0;
  margin-left: 8px;
}

.midrun-v3-row__value--goal {
  color: #ffba00;
}

.midrun-v3-row__value--constraint {
  color: #ffba00;
}

/* ---- Completion / violation icon ---- */

.midrun-v3-row__icon {
  flex-shrink: 0;
  margin-left: 8px;
}

/* Goal reached: spring pop + persistent green glow */
.midrun-v3-row__icon--completed {
  animation:
    iconGoalIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both,
    iconGlowGreen 2.5s ease-in-out 0.5s infinite;
}

@keyframes iconGoalIn {
  0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
  55%  { transform: scale(1.4) rotate(8deg);  opacity: 1; }
  78%  { transform: scale(0.88) rotate(-3deg); }
  100% { transform: scale(1) rotate(0deg);    opacity: 1; }
}

@keyframes iconGlowGreen {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(25, 229, 148, 0.7)); }
  50%       { filter: drop-shadow(0 0 8px rgba(25, 229, 148, 1)); }
}

/* Constraint violated: shake in + persistent red glow */
.midrun-v3-row__icon--failed {
  animation:
    iconFailedIn 0.45s ease-out both,
    iconGlowRed 2.5s ease-in-out 0.45s infinite;
}

@keyframes iconFailedIn {
  0%   { transform: scale(0); opacity: 0; }
  45%  { transform: scale(1.25) rotate(-6deg); opacity: 1; }
  65%  { transform: scale(0.92) rotate(4deg); }
  80%  { transform: scale(1.06) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes iconGlowRed {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(241, 48, 52, 0.7)); }
  50%       { filter: drop-shadow(0 0 8px rgba(241, 48, 52, 1)); }
}

/* ---- ESC menu indicator ---- */

.midrun-v3-esc {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-top: 1px solid #3c3c3c;
  background: linear-gradient(to bottom, rgba(15, 15, 15, 0.6), rgba(15, 15, 15, 0.2));
}

.midrun-v3-esc__text {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 36px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0;
}

/* ---- Ultrawide (3440px+) ---- */

@media (min-width: 3440px) {
  .midrun-v3-card {
    width: 380px;
  }

  .midrun-v3-timer__icon {
    width: 22px;
    height: 22px;
  }

  .midrun-v3-timer__text {
    font-size: 32px;
    line-height: 48px;
  }

  .midrun-v3-row {
    height: 60px;
    padding: 0 24px;
  }

  .midrun-v3-row__name {
    font-size: 26px;
    line-height: 32px;
  }

  .midrun-v3-row__value {
    font-size: 24px;
    line-height: 30px;
  }

  .midrun-v3-row__icon {
    width: 36px;
    height: 36px;
  }

  .midrun-v3-esc__text {
    font-size: 28px;
    line-height: 48px;
  }
}
/* ==========================================================================
   ConnectionWarningPopup — top-center network warning overlay
   Figma: https://www.figma.com/design/3uHLT7XwpdFMoTZ8jenqtb?node-id=350-4417
   ========================================================================== */

@keyframes connectionWarnFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes connectionWarnFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.connection-warning-popup {
  position: absolute;
  top: 45px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  pointer-events: none;
}

.connection-warning-popup.fade-in {
  opacity: 0;
  animation: connectionWarnFadeIn 300ms ease-out forwards;
}

.connection-warning-popup.fade-out {
  opacity: 1;
  animation: connectionWarnFadeOut 600ms ease-in-out forwards;
}

@keyframes contentFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes contentFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ---- Card ---- */

.connection-warning-popup__card {
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  border: 2px solid #5e5e5e;
  border-radius: 5px;
  white-space: nowrap;
  transition: border-color 300ms ease-out;
}

.connection-warning-popup__card--fair {
  border-color: #cd6d32;
}

.connection-warning-popup__card--poor {
  border-color: #ff5656;
}

/* ---- Content row (icon + text) ---- */

.connection-warning-popup__content {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
}

/* Incoming: fade in during cross-fade */
.connection-warning-popup__content--in {
  animation: contentFadeIn 300ms ease-out forwards;
}

/* Outgoing: overlays the incoming and fades out */
.connection-warning-popup__content--out {
  position: absolute;
  inset: 0;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: contentFadeOut 300ms ease-out forwards;
  pointer-events: none;
}

/* ---- Icon ---- */

.connection-warning-popup__icon {
  width: 20px;
  height: 17px;
  flex-shrink: 0;
  object-fit: contain;
}

/* ---- Text ---- */

.connection-warning-popup__text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
}

.connection-warning-popup__text--fair {
  color: #cd6d32;
}

.connection-warning-popup__text--poor {
  color: #ff5656;
}
/* ==========================================================================
   EscapeMenuV3 — full-screen modal: TopBar + InfoPanel + footer
   Figma: https://www.figma.com/design/3uHLT7XwpdFMoTZ8jenqtb?node-id=121-4285
   ========================================================================== */

/* ---- Overlay: full-screen 20×20 grid ---- */

.escape-menu-v3 {
  position: fixed;
  inset: 0;
  z-index: 1000002;
  background: rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-rows: repeat(20, minmax(0, 1fr));
  grid-template-columns: repeat(20, 1fr);
  padding: 20px;
}

/* ---- Modal card: fills the overlay grid, has own 12×12 subgrid ---- */

.escape-menu-v3__card {
  grid-row: 2 / 20;
  grid-column: 2 / 20;
  display: grid;
  grid-template-rows: repeat(12, minmax(0, 1fr));
  grid-template-columns: repeat(12, 1fr);
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid #3c3c3c;
  border-radius: 10px;
  overflow: hidden;
}

/* ---- TopBar: row 1, full width ---- */

.escape-menu-v3__card > .top-bar {
  grid-row: 1 / 2;
  grid-column: 1 / 13;
}

/* ---- Info section: rows 3–11, full width ---- */

.escape-menu-v3__info {
  grid-row: 3 / 11;
  grid-column: 1 / 13;
  min-height: 0;
  display: flex;
  padding: 0 36px 30px;
}

/* ---- Footer: row 12, full width ---- */

.escape-menu-v3__footer {
  grid-row: 12 / 13;
  grid-column: 1 / 13;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 0 36px;
  border-top: 1px solid rgba(60, 60, 60, 0.50);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.40) 0%, rgba(0, 0, 0, 0.00) 100%);
}

.escape-menu-v3__game-paused {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 36px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: white;
}

.escape-menu-v3__footer-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ---- Continue Playing button (yellow gradient) ---- */

.escape-menu-v3__continue-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(180deg, #fbbd00 0.287%, #ff9a3d 100%);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  color: #1e1e1e;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.escape-menu-v3__continue-btn:hover {
  opacity: 0.9;
}

.escape-menu-v3__continue-logo {
  width: 20px;
  height: 21px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0);
}

/* ---- End Ludeo button (outlined) ---- */

.escape-menu-v3__end-btn {
  padding: 10px 20px;
  background: none;
  border: 1px solid #3c3c3c;
  border-radius: 2px;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  color: #f7f7f7;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.escape-menu-v3__end-btn:hover {
  border-color: #8f8f8f;
  color: white;
}
/* Full-screen overlay shown during countdown */
.countdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: opacity 600ms ease-out;
}

/* When thumb or webm first frame is used as bg, no extra dark overlay on root */
.countdown-overlay--has-bg {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.countdown-overlay--dissolving {
  opacity: 0;
  pointer-events: none;
}

/* Thumb background: below countdown text, above stream */
.countdown-overlay__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: transparent;
}

.countdown-overlay__bg-media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: blur(6px);
  transform: scale(1.02);
}

/* Dark overlay on bg so countdown text stays readable */
.countdown-overlay__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.countdown-overlay-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.countdown-overlay-number {
  color: var(--Text---icons-Body-1, #fff);
  text-align: center;
  text-shadow: 0 0 10px rgba(15, 15, 15, 0.60);
  font-family: "Sofia Sans";
  font-size: 72px;
  font-style: normal;
  font-weight: 900;
  line-height: 72px;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin: 0;
  animation: countdownPulse 1s ease-out;
}

@keyframes countdownPulse {
  0% {
    transform: scale(1.5);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.countdown-overlay-skip-hint {
  color: var(--Text---icons-Body-1, #fff);
  text-align: center;
  font-family: "Sofia Sans";
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px;
  margin: 0;
  text-transform: uppercase;
  animation: fadeIn 0.5s ease-out 0.3s forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .countdown-overlay {
    transition: none;
  }

  .countdown-overlay--dissolving {
    opacity: 0;
  }

  .countdown-overlay-number {
    animation: none;
    transform: scale(1);
    opacity: 1;
  }

  .countdown-overlay-skip-hint {
    animation: none;
    opacity: 1;
  }
}

/* Ultrawide screens (3440px and above) */
@media (min-width: 3440px) {
  .countdown-overlay-number {
    font-size: 144px;
    line-height: 144px;
    letter-spacing: 12px;
  }

  .countdown-overlay-skip-hint {
    font-size: 48px;
    line-height: 60px;
  }

  .countdown-overlay-content {
    gap: 32px;
  }
}
.stats-overlay-container {
  position: fixed;
  padding: 16px;
  background-color: rgba(0, 0, 0, 0.85);
  border-radius: 8px;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  z-index: 2147483647;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  width: 220px;
  pointer-events: none;
}

.stats-overlay-container.top-left {
  top: 20px;
  left: 20px;
}

.stats-overlay-container.top-right {
  top: 20px;
  right: 20px;
}

.stats-overlay-container.bottom-left {
  bottom: 20px;
  left: 20px;
}

.stats-overlay-container.bottom-right {
  bottom: 20px;
  right: 20px;
}

.stats-overlay-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stats-overlay-stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 90px;
  width: 90px;
}

.stats-overlay-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stats-overlay-stat-value {
  font-size: 18px;
  font-weight: 600;
  color: white;
  min-width: 60px;
  text-align: right;
  display: inline-block;
}

.stats-overlay-unit {
  font-size: 14px;
  margin-left: 2px;
}

.stats-overlay-section-header {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  grid-column: 1 / -1;
}

.stats-overlay-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-overlay-info-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stats-overlay-info-value {
  font-size: 14px;
  font-weight: 500;
  color: white;
}

.stats-overlay-timestamp {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-family: 'Courier New', Courier, monospace;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  letter-spacing: 0.5px;
}
.fullscreen-exit-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fullscreenExitFadeIn 0.3s ease-in;
}

@keyframes fullscreenExitFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(4px);
  }
}

.fullscreen-exit-container {
  display: flex;
  width: 600px;
  flex-direction: column;
  align-items: center;
  border-radius: var(--Sizing-Corners-x-large, 24px);
  border: 1px solid var(--Borders-Border-200, #2d2d2d);
  backdrop-filter: blur(15px);
  padding: 48px 24px 0;
}

.fullscreen-exit-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.fullscreen-exit-icon svg {
  width: 30px;
  height: 30px;
  color: #fff;
}

.fullscreen-exit-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: var(--Sizing-Sizing-m, 16px) var(--Sizing-Sizing-xl, 24px);
}

.fullscreen-exit-title {
  color: var(--Text---icons-Body-1, #fff);
  font-size: 24px;
  font-style: normal;
  font-weight: 900;
  line-height: 30px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.fullscreen-exit-description {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  margin: 0;
  max-width: 400px;
}

.fullscreen-exit-divider {
  width: 100%;
  height: 1px;
  background: rgba(112, 112, 112, 0.5);
}

.fullscreen-exit-buttons {
  height: 108px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.fullscreen-exit-resume-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 8px 16px;
  border-radius: var(--Sizing-Corners-s, 4px);
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: #ffffff;
  box-sizing: border-box;
  outline: none;
  transition: opacity 0.2s;
  border: none;
  background: var(--context-colors-success, #22c55e);
  gap: 8px;
}

.fullscreen-exit-resume-button:hover {
  opacity: 0.8;
}

.fullscreen-exit-resume-button:focus {
  outline: none;
}

.fullscreen-exit-resume-button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.fullscreen-exit-quit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--Sizing-Corners-s, 4px);
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  box-sizing: border-box;
  outline: none;
  color: white;
}

.fullscreen-exit-quit-button:hover {
  opacity: 0.8;
}

.fullscreen-exit-quit-button:focus {
  outline: none;
}
.poor-network-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: poorNetworkFadeIn 0.3s ease-in;
}

@keyframes poorNetworkFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.poor-network-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 520px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-3, #5e5e5e);
  background: rgba(10, 10, 10, 0.92);
  overflow: hidden;
  gap: 10px;
  padding-top: 30px;
}

.poor-network-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 30px;
  width: 100%;
  box-sizing: border-box;
}

.poor-network-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 30px;
  color: var(--gray1, #d5d5d5);
  text-transform: uppercase;
  text-align: center;
  margin: 0;
  white-space: nowrap;
}

.poor-network-description {
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 22px;
  color: #ffffff;
  text-align: center;
  margin: 0;
  width: 100%;
}

.poor-network-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 30px 20px;
  width: 100%;
  box-sizing: border-box;
}

.poor-network-buttons {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
}

.poor-network-accept-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 150px;
  padding: 10px 30px;
  border-radius: 2px;
  border: none;
  background: var(--white, #ffffff);
  color: var(--text---icons-body-2, #0f0f0f);
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 36px;
  text-transform: uppercase;
  cursor: pointer;
  box-sizing: border-box;
  transition: opacity 0.2s;
}

.poor-network-accept-button:hover {
  opacity: 0.85;
}

.poor-network-accept-button:focus {
  outline: none;
}

.poor-network-decline-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 150px;
  padding: 10px 30px;
  border-radius: 2px;
  border: none;
  background: var(--failed, #ff5656);
  color: var(--text---icons-body-2, #0f0f0f);
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 36px;
  text-transform: uppercase;
  cursor: pointer;
  box-sizing: border-box;
  transition: opacity 0.2s;
}

.poor-network-decline-button:hover {
  opacity: 0.85;
}

.poor-network-decline-button:focus {
  outline: none;
}
.exit-fullscreen-button {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    z-index: 2147483647;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    padding: 0;
    isolation: isolate;
  }
  
  .exit-fullscreen-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.4);
  }
  
  .exit-fullscreen-button:active {
    background-color: rgba(0, 0, 0, 0.9);
  }
  
  .exit-fullscreen-button svg {
    width: 24px;
    height: 24px;
  }.mid-run-screen {
  width: 100%;
  height: 100%;
}

.error-screen {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Full-screen blur + dark overlay — sits above the background image */
.error-screen__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: rgba(15, 15, 15, 0.5);
  backdrop-filter: blur(5px);
}

/* Centred body — covers the full screen so the card is truly vertically centred */
.error-screen__body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 60px;
  box-sizing: border-box;
  overflow-y: auto;
  pointer-events: none;
}

.error-screen__body > * {
  pointer-events: auto;
}

@media (max-width: 600px) {
  .error-screen__body {
    padding: 24px 16px;
  }
}
.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.background-image--skeleton {
  background-color: #f0f0f0;
  opacity: 0.5;
}

.background-image--loading {
  opacity: 0.7;
}

.error-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Figma: 800px wide on a 1366px frame */
  width: 800px;
  max-width: 100%;
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid #3c3c3c;
  border-radius: 10px;
  overflow: hidden;
}

/* 40px header band — same color as the card */
.error-card__header {
  width: 100%;
  height: 40px;
  flex-shrink: 0;
  background: transparent;
}

/* Info block — Figma y=70, header ends at y=40 → 30px gap top */
/* Text at x=60 → 60px horizontal padding */
.error-card__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 30px 60px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.error-card__title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 30px;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
  width: 100%;
}

.error-card__description {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 22px;
  color: #ffffff;
  margin: 0;
  white-space: pre-line;
  width: 100%;
}

.error-card__svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.error-card__svg img {
  max-width: 260px;
  width: 100%;
  height: auto;
}

.error-card__svg--multi {
  gap: 0;
}

.error-card__svg--multi img {
  width: 32px;
  height: 32px;
  max-width: none;
  object-fit: contain;
}

.error-card__svg-icon {
  display: flex;
  align-items: center;
}

.error-card__svg-icon + .error-card__svg-icon::before {
  content: '';
  display: block;
  width: 32px;
  height: 0;
  border-top: 2px dashed #FF5656;
  margin: 0 8px;
}

/* Footer — Figma: 100px tall, buttons at y=30 inside → 30px padding all sides */
.error-card__footer {
  width: 100%;
  border-top: 1px solid #3c3c3c;
  padding: 30px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 15, 15, 0.4);
}

.error-card__buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Grow slightly on very large screens */
@media (min-width: 1600px) {
  .error-card {
    width: 900px;
  }
}

@media (max-width: 900px) {
  .error-card__info {
    padding: 24px 30px;
  }
}

@media (max-width: 600px) {
  .error-card__title {
    font-size: 24px;
  }

  .error-card__description {
    font-size: 15px;
  }

  .error-card__buttons {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }
}
.try-again-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 20px;
  height: 40px;
  border-radius: 2px;
  background: #0f0f0f;
  border: 1px solid #5e5e5e;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 36px;
  text-transform: uppercase;
  color: #d5d5d5;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  transition: opacity 0.2s;
}

.try-again-btn:hover {
  background: #1a1a1a;
  border-color: #8a8a8a;
  opacity: 1;
}

.try-again-btn:focus,
.try-again-btn:focus-visible {
  outline: none;
}

.try-again-btn:active {
  opacity: 0.7;
}

.try-again-btn__icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}
.cta-store-btn-wrapper {
  position: relative;
  display: inline-block;
}

.cta-store-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 20px;
  min-width: 150px;
  height: 40px;
  border-radius: 2px;
  border: none;
  background: linear-gradient(180deg, #fbbd00 0.287%, #ff9a3d 100%);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 36px;
  text-transform: uppercase;
  color: #1e1e1e;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  transition: opacity 0.2s;
}

.cta-store-btn:hover {
  opacity: 0.9;
}

.cta-store-btn:focus {
  outline: none;
}

.cta-store-btn:active {
  opacity: 0.8;
}

.cta-store-btn__icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.cta-store-btn__badge {
  position: absolute;
  top: -12px;
  right: -8px;
  background-color: #006fcd;
  color: white;
  padding: 4px 8px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  min-width: 24px;
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.3);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.screen-router {
  position: relative;
  width: 100%;
  height: 100%;
}

.screen-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}

.screen-container > *:not(.exit-fullscreen-button) {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


.summary-screen-v3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000;
  animation: summaryFadeIn 0.6s ease-out;
}

@keyframes summaryFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- Background: splash image + dark overlay (no blur) ---- */

.summary-screen-v3__background {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.summary-screen-v3__background img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.summary-screen-v3__background-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.35);
}

/* ---- Body: flex column replacing old grid ---- */

.summary-screen-v3__body {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(5px);
  background: rgba(15, 15, 15, 0.5);
}

/* ---- Modal-open dimming ---- */

.summary-screen-v3__header,
.summary-screen-v3__content,
.summary-screen-v3__footer {
  transition: opacity 0.3s ease-in;
}

.summary-screen-v3--modal-open .summary-screen-v3__header,
.summary-screen-v3--modal-open .summary-screen-v3__content {
  opacity: .4;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}

.summary-screen-v3--modal-open .click-to-start-button {
  opacity: .4;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}

.summary-screen-v3--modal-open .summary-screen-v3__footer {
  opacity: .4;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}

/* ---- Content — fills available space, stacks heading + InfoPanel vertically ---- */

.summary-screen-v3__content {
  flex: 1;
  min-height: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 100px;
  box-sizing: border-box;
}

/* ---- YOU WIN heading — in-flow above InfoPanel ---- */

.summary-screen-v3__heading {
  margin: 0;
  flex-shrink: 0;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 70px;
  line-height: 1;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0;
  padding-bottom: 60px;
}

/* ---- Footer ---- */

.summary-screen-v3__footer {
  flex-shrink: 0;
  z-index: 10;
}

.summary-screen-v3__footer .footer-action {
  padding: 0 50px;
  box-sizing: border-box;
}

/* ---- No Plays Left message ---- */

.summary-screen-v3__no-plays {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100px;
  padding: 0 100px;
  box-sizing: border-box;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

.summary-screen-v3__no-plays-text {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 30px;
  color: #d5d5d5;
  text-align: center;
}
.start-skeleton {
  display: grid;
  grid-template-rows: repeat(12, minmax(0, 1fr));
  grid-template-columns: repeat(12, 1fr);
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.start-skeleton__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
}

.start-skeleton__header {
  grid-row: 1 / 3;
  grid-column: 2 / 12;
  padding: 24px 32px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.start-skeleton__game-logo {
  width: 200px;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.start-skeleton__ludeo-logo {
  width: 120px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  align-self: self-start;
}

.start-skeleton__content {
  grid-row: 4 / 10;
  grid-column: 2 / 12;
  display: flex;
}

.start-skeleton__instructions {
  display: flex;
  padding: var(--Sizing-Sizing-m, 16px) 0;
  justify-content: space-between;
  gap: var(--Sizing-Sizing-5xl, 48px);
  flex-grow: 1;
}

.start-skeleton__instructions-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-shrink: 0;
}

.start-skeleton__video-container {
  position: relative;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  margin-left: auto;
}

.start-skeleton__bar {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.start-skeleton__bar--mission-title {
  width: 400px;
  height: 48px;
}

.start-skeleton__bar--description {
  width: 100%;
  height: 16px;
}

.start-skeleton__objectives {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.start-skeleton__objective-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
}

.start-skeleton__objective-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.start-skeleton__objective-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.start-skeleton__bar--objective-label {
  width: 80px;
  height: 14px;
}

.start-skeleton__bar--objective-text {
  width: 100%;
  height: 16px;
}

.start-skeleton__footer {
  position: absolute;
  bottom: 32px;
  left: 0;
  width: 100%;
  z-index: 10;
  padding: 0 32px;
  box-sizing: border-box;
}

.start-skeleton__loading-bar {
  position: relative;
  width: 100%;
  padding: 6px;
  border-radius: 4px;
  background: rgba(15, 15, 15, 0.5);
  backdrop-filter: blur(15px);
  overflow: hidden;
  min-height: 40px;
  border: 2px solid rgba(6, 6, 6, 0.1);
  box-sizing: border-box;
}

.start-skeleton__loading-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 30%;
  background: rgba(128, 128, 128, 0.6);
  border-radius: 4px;
  z-index: 1;
}

.start-skeleton__loading-bar-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  box-sizing: border-box;
}

.start-skeleton__bar--loading-left {
  width: 180px;
  height: 16px;
}

.start-skeleton__bar--loading-right {
  width: 120px;
  height: 14px;
}

/* Shimmer animation - moving gradient effect */
@keyframes skeleton-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Apply shimmer effect to skeleton elements using pseudo-element */
.start-skeleton__game-logo,
.start-skeleton__ludeo-logo,
.start-skeleton__video-container,
.start-skeleton__bar,
.start-skeleton__objective-circle,
.start-skeleton__loading-bar-fill {
  position: relative;
  overflow: hidden;
}

.start-skeleton__game-logo::before,
.start-skeleton__ludeo-logo::before,
.start-skeleton__video-container::before,
.start-skeleton__bar::before,
.start-skeleton__objective-circle::before,
.start-skeleton__loading-bar-fill::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
.blurred-thumbnail-background {
  grid-row: 1 / 13;
  grid-column: 1 / 13;
  z-index: 0;
  overflow: hidden;
  filter: blur(15px);
}

.blurred-thumbnail-background__image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.details {
  border-radius: 0 10px 10px 0;
  width: 350px;
  position: relative;
  z-index: 10000000003;
  pointer-events: auto;
  transform: translateY(-50px);
}

.details__container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  border-radius: 0 10px 10px 0;
  width: 100%;
  height: 100%;
}

/* Header */
.details__header {
  position: relative;
  width: 100%;
  height: 169.5px;
  min-height: 169.5px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-shrink: 0;
  border-radius: 0 10px 0 0;
  overflow: hidden;
}

.details__header-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #1a1a1a;
}

.details__header-placeholder--skeleton {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(107, 107, 107) !important;
  overflow: hidden;
}

.details__header-placeholder--skeleton::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.details__header-overlay {
  box-sizing: border-box;
  display: flex;
  flex: 1 0 0;
  align-items: center;
  justify-content: space-between;
  min-height: 1px;
  min-width: 1px;
  padding: 16px 16px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.details__header-logo {
  width: 80px;
  position: relative;
  flex-shrink: 0;
}

.details__header-logo .game-logo__image {
  width: 80px;
  object-fit: contain;
  object-position: center;
}

.details__header-store-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
}

.details__header-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #ffffff;
  font-size: 14px;
}

.details__store-button {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  flex-shrink: 0;
  border: none;
  padding: 0;
  cursor: pointer;
  background: transparent;
  outline: none;
  transition: border 0.25s ease;
}

.details__store-button:hover {
  border: 1px solid white;
}

.details__store-button:focus,
.details__store-button:active {
  outline: none;
}

.details__store-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.details__store-button--xbox .details__store-icon {
  width: 24px;
  height: 24px;
}

/* Goals Section */
.details__goals {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 24px;
  gap: 16px;
  width: 100%;
  background: rgba(15, 15, 15, 0.5);
  backdrop-filter: blur(15px);
  /* Note: backdrop-filter has minimal browser support */
  flex: none;
  order: 1;
  align-self: stretch;
  flex-grow: 0;
}

.details__goals .details__heading {
  text-align: left;
  white-space: pre-wrap;
}

.details__goals-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: #ffffff;
  font-size: 14px;
}

.details__heading {
  font-family: "Sofia Sans", sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 30px;
  color: #ffffff;
  margin: 0;
  text-align: center;
  white-space: nowrap;
}

/* Objectives */
.details__objectives {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  flex: none;
  flex-grow: 0;
}

.details__objective-item-wrapper {
  position: relative;
  width: 100%;
}

.details__objective-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
  width: 100%;
}

.details__objective-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  justify-content: center;
  height: 48px;
}

.details__objective-label {
  font-size: 14px;
  font-style: normal;
  line-height: 18px;
}

.details__objective-text {
  font-weight: 700;
}

.details__objective-item:hover {
  opacity: 0.8;
}

.details__tooltip {
  background-color: #757575;
  color: #ffffff;
  padding: 16px;
  border-radius: 8px;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.2857142857142858em;
  white-space: nowrap;
  box-shadow: 0px 4px 30px 8px rgba(0, 0, 0, 0.5);
  z-index: 10000000002;
}

.details__progress-tracker {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.details__progress-tracker--goal .details__progress-tracker-number {
  color: #4caf50; /* Green for goal type */
}

.details__progress-tracker--non-goal .details__progress-tracker-number {
  color: #f44336; /* Red for non-goal types */
}

.details__progress-tracker--goal img {
  filter: brightness(0) saturate(100%) invert(67%) sepia(95%) saturate(400%)
    hue-rotate(87deg) brightness(95%) contrast(85%); /* Green filter */
}

.details__progress-tracker--non-goal img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(95%) saturate(7471%)
    hue-rotate(349deg) brightness(96%) contrast(96%); /* Red filter */
}

.details__progress-tracker-icon {
  width: 16px;
  height: 16px;
  color: #ffffff;
  display: block;
}

.details__progress-tracker-number {
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  color: #ffffff;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.details__progress-tracker-circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
}

.details__progress-tracker-circle {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background-color: transparent;
}

.details__progress-tracker-circle:nth-child(1) {
  top: 0;
  left: 18px;
}

.details__progress-tracker-circle:nth-child(2) {
  top: 0;
  left: 0;
}

.details__progress-tracker-circle:nth-child(3) {
  top: 18px;
  left: 18px;
}

.details__progress-tracker-circle:nth-child(4) {
  top: 18px;
  left: 0;
}

.details__objective-text {
  font-size: 16px;
  line-height: 1.25em;
  color: #ffffff;
  white-space: normal;
  word-wrap: break-word;
  height: 100%;
  display: flex;
  align-items: center;
}

.details__objective-tracker {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.details__progress-tracker {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.details__progress-corner {
  position: absolute;
  width: 18px;
  height: 18px;
}

.details__progress-corner--1 {
  left: 0;
  top: 0;
  transform: rotate(180deg) scaleY(-1);
}

.details__progress-corner--2 {
  left: 0;
  top: 18px;
  transform: rotate(90deg) scaleY(-1);
}

.details__progress-corner--3 {
  left: 18px;
  top: 18px;
  transform: rotate(90deg);
}

.details__progress-corner--4 {
  left: 18px;
  top: 0;
}

.details__timer-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  overflow: hidden;
}

.details__objective-counter {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: "Sofia Sans", sans-serif;
  font-weight: 900;
  font-size: 16px;
  line-height: 20px;
  color: #ffffff;
  text-align: center;
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.details__objective-value {
  font-family: "Sofia Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Controls Section */
.details__controls {
  backdrop-filter: blur(15px);
  background: rgba(15, 15, 15, 0.5);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  flex-shrink: 0;
  order: 2;
  border-radius: 0 0 10px 0;
  overflow: hidden;
  border-top: 1px solid var(--Gradient-border, rgba(217, 217, 217, 0.3));
}

.details__controls-header {
  box-sizing: border-box;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 24px;
  width: 100%;
  flex-shrink: 0;
}

.details__controls-header .details__heading {
  flex: 1 0 0;
  min-height: 1px;
  min-width: 1px;
  text-align: left;
  white-space: pre-wrap;
}

.details__toggle-button {
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  gap: 8px;
  height: 36px;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 8px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #ffffff;
  flex-shrink: 0;
}

.details__toggle-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.details__toggle-button svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
  transform: rotate(180deg);
}

.details__toggle-button--expanded svg {
  transform: rotate(0deg);
}

.details__controls-content {
  box-sizing: border-box;
  padding: 0 12px 12px 24px;
  width: 100%;
  flex-shrink: 0;
  transition: padding 0.2s ease;
}

.details__controls-content--expanded {
  padding: 24px 24px 24px 24px;
}

.details__controls-image {
  height: auto;
  object-fit: contain;
}

.details__controls-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  width: 100%;
  color: #ffffff;
  font-size: 14px;
}

.details__toggle-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive styles for larger screens */
/* Wide screens (1920px and above) */
@media (min-width: 1920px) {
  .instructions__goals .details__objective-label {
    font-size: 16px;
    line-height: 22px;
  }

  .instructions__goals .details__objective-text {
    font-size: 18px;
    line-height: 1.25em;
  }

  .instructions__goals .details__progress-tracker {
    width: 42px;
    height: 42px;
  }

  .instructions__goals .details__progress-tracker-number {
    font-size: 19px;
  }

  .instructions__goals .details__progress-tracker-icon,
  .instructions__goals .details__progress-tracker img {
    width: 19px;
    height: 19px;
  }

  .instructions__goals .details__progress-tracker-circles {
    width: 42px;
    height: 42px;
  }

  .instructions__game-controls-button {
    font-size: 18px;
    padding: 9px 18px;
    line-height: 26px;
  }

  .instructions__game-controls-icon {
    width: 18px;
    height: 18px;
  }
}

/* 2K screens (2560px and above) */
@media (min-width: 2560px) and (max-width: 3439px) {
  .instructions__goals .details__objective-label {
    font-size: 18px;
    line-height: 24px;
  }

  .instructions__goals .details__objective-text {
    font-size: 20px;
    line-height: 1.25em;
  }

  .instructions__goals .details__objective-item {
    gap: 16px;
  }

  .instructions__goals .details__progress-tracker {
    width: 48px;
    height: 48px;
    border-width: 3px;
  }

  .instructions__goals .details__progress-tracker-number {
    font-size: 22px;
  }

  .instructions__goals .details__progress-tracker-icon,
  .instructions__goals .details__progress-tracker img {
    width: 22px;
    height: 22px;
  }

  .instructions__goals .details__progress-tracker-circles {
    width: 48px;
    height: 48px;
  }

  .instructions__game-controls-button {
    font-size: 26px;
    padding: 13px 26px;
    line-height: 34px;
  }

  .instructions__game-controls-icon {
    width: 26px;
    height: 26px;
  }
}

/* Ultrawide screens (3440px and above) */
@media (min-width: 3440px) {
  .instructions__goals .details__objective-label {
    font-size: 20px;
    line-height: 26px;
  }

  .instructions__goals .details__objective-text {
    font-size: 22px;
    line-height: 1.25em;
  }

  .instructions__goals .details__objective-item {
    gap: 18px;
  }

  .instructions__goals .details__progress-tracker {
    width: 52px;
    height: 52px;
    border-width: 3px;
  }

  .instructions__goals .details__progress-tracker-number {
    font-size: 24px;
  }

  .instructions__goals .details__progress-tracker-icon,
  .instructions__goals .details__progress-tracker img {
    width: 24px;
    height: 24px;
  }

  .instructions__goals .details__progress-tracker-circles {
    width: 52px;
    height: 52px;
  }

  .instructions__game-controls-button {
    font-size: 22px;
    padding: 12px 24px;
    line-height: 30px;
  }

  .instructions__game-controls-icon {
    width: 22px;
    height: 22px;
  }
}
.midrun-objectives-new-wrapper {
  color: white;
    /* Objectives should be +1 above the ending overlay */
  z-index: 1000001;
  background: linear-gradient(
    293deg,
    rgba(15, 15, 15, 0.5) 0.57%,
    rgba(0, 0, 0, 0.6) 83.62%
  );
  box-shadow: 0 4px 30px 0 rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: var(--Sizing-Sizing-xl, 24px);
  gap: var(--Sizing-Sizing-xs, 8px);
  border-radius: 0 var(--Sizing-Corners-xl, 16px) var(--Sizing-Corners-xl, 16px)
    0;
  transition: filter 0.3s ease-in-out;
  /* Scale down 20% for mobile */
  transform: scale(0.8);
  transform-origin: left center;
}

/* Blur transition for midrun objectives when escape menu opens */
.midrun-objectives-new-wrapper--blurred {
  filter: blur(4px);
}

.midrun-objectives-new-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.midrun-objectives-new-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.midrun-objectives-new-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.midrun-objectives-new-text {
  color: var(--Text---icons-Body-1, #fff);
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.5px;
  margin: 0;
}

/* Circular Progress Indicator */
.midrun-objectives-new-progress-circle {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  transform: rotate(-90deg);
  align-self: center;
}

.midrun-objectives-new-progress-circle svg {
  width: 100%;
  height: 100%;
}

.midrun-objectives-new-progress-circle-bg {
  fill: none;
  stroke-width: 2px;
  stroke: var(--Input-Tag-Indicator-tag-2, rgba(255, 255, 255, 0.3));
}

.midrun-objectives-new-progress-circle-fill {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.3s ease;
}

.midrun-objectives-new-progress-circle-fill.timer {
  stroke: #f13034;
}

.midrun-objectives-new-progress-circle-fill.completed {
  stroke: #30d84a;
}

.midrun-objectives-new-progress-circle-fill.in-progress {
  stroke: #30d84a;
}

.midrun-objectives-new-progress-circle-fill.constraint {
  stroke: #f13034;
}

.midrun-objectives-new-progress-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  color: var(--Text---icons-Body-1, #fff);
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
  line-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.midrun-objectives-new-progress-icon.completed,
.midrun-objectives-new-progress-icon.in-progress {
  color: #30d84a;
}

.midrun-objectives-new-progress-icon.constraint {
  color: #f13034;
}

.midrun-objectives-new-progress-icon.timer svg {
  color: #f13034;
}

.midrun-objectives-new-progress-icon svg {
  width: 16px;
  height: 16px;
}

.midrun-objectives-new-wrapper {
  animation: paddingAnimation 0.4s ease forwards;
  animation-delay: 2s;
}

.midrun-objectives-new-wrapper .details__objective-label {
  animation: hideLabel 0.4s ease forwards;
  animation-delay: 2s;
}

.midrun-objectives-new-wrapper .details__objective-text {
  animation: expandText 0.4s ease forwards;
  animation-delay: 2s;
}

.midrun-objectives-new-wrapper .details__objectives {
  animation: smallerGap 0.4s ease forwards;
  animation-delay: 2s;
}

@keyframes paddingAnimation {
  from {
    padding: var(--Sizing-Sizing-xl, 24px);
  }
  to {
    padding: var(--Sizing-Sizing-md, 12px);
  }
}

@keyframes smallerGap {
  from {
    gap: 16px;
  }
  to {
    gap: 8px;
  }
}

@keyframes hideLabel {
  from {
    opacity: 1;
    max-height: 20px;
    margin: 0;
  }
  to {
    opacity: 0;
    max-height: 0;
    margin: 0;
  }
}

@keyframes expandText {
  from {
    font-weight: 700;
    font-size: 16px;
  }
  to {
    font-weight: 400;
    font-size: 14px;
  }
}

@keyframes midrunEndingHeartbeat {
  0% {
    transform: translateY(-50%) scale(0.8);
  }
  50% {
    transform: translateY(-50%) scale(0.96);
  }
  100% {
    transform: translateY(-50%) scale(0.8);
  }
}

/* Must override the base wrapper animation block below (same specificity otherwise). */
.midrun-objectives-new-wrapper.midrun-objectives-new-wrapper--ending {
  transform-origin: left center;

  /* Subtle heartbeat for 3s; preserve existing padding animation after. */
  animation-name: midrunEndingHeartbeat, paddingAnimation;
  animation-duration: 3s, 0.4s;
  animation-timing-function: ease-in-out, ease;
  animation-fill-mode: forwards, forwards;
  animation-delay: 0s, 3s;
}

/* Keep the existing "compact" animations, but align them to the 3s grow window while ending */
.midrun-objectives-new-wrapper--ending {
  animation-delay: 3s;
}
.midrun-objectives-new-wrapper--ending .details__objective-label {
  animation-delay: 3s;
}
.midrun-objectives-new-wrapper--ending .details__objective-text {
  animation-delay: 3s;
}
.midrun-objectives-new-wrapper--ending .details__objectives {
  animation-delay: 3s;
}

/* Ultrawide screens (3440px and above) */
@media (min-width: 3440px) {
  .midrun-objectives-new-wrapper {
    padding: 40px;
    gap: 16px;
    border-radius: 0 24px 24px 0;
  }

  .midrun-objectives-new-item {
    gap: 1.25rem;
  }

  .midrun-objectives-new-text {
    font-size: 26px;
    line-height: 32px;
    letter-spacing: 0.7px;
  }

  /* Circular Progress Indicator - scaled up */
  .midrun-objectives-new-progress-circle {
    width: 68px;
    height: 68px;
  }

  .midrun-objectives-new-progress-circle-bg {
    stroke-width: 3px;
  }

  .midrun-objectives-new-progress-circle-fill {
    stroke-width: 5;
  }

  .midrun-objectives-new-progress-icon {
    font-size: 26px;
    line-height: 32px;
  }

  .midrun-objectives-new-progress-icon svg {
    width: 28px;
    height: 28px;
  }

  /* Objectives container */
  .midrun-objectives-new-wrapper .details__objectives {
    gap: 24px;
  }

  .midrun-objectives-new-wrapper .details__objective-item {
    gap: 20px;
  }

  .midrun-objectives-new-wrapper .details__objective-content {
    height: 76px;
  }

  .midrun-objectives-new-wrapper .details__objective-label {
    font-size: 22px;
    line-height: 28px;
  }

  .midrun-objectives-new-wrapper .details__objective-text {
    font-size: 26px;
    line-height: 1.25em;
  }

  /* Animation adjustments for ultrawide */
  @keyframes paddingAnimation {
    from {
      padding: 40px;
    }
    to {
      padding: 20px;
    }
  }

  @keyframes smallerGap {
    from {
      gap: 24px;
    }
    to {
      gap: 14px;
    }
  }

  @keyframes hideLabel {
    from {
      opacity: 1;
      max-height: 28px;
      margin: 0;
    }
    to {
      opacity: 0;
      max-height: 0;
      margin: 0;
    }
  }

  @keyframes expandText {
    from {
      font-weight: 700;
      font-size: 26px;
    }
    to {
      font-weight: 400;
      font-size: 22px;
    }
  }

  @keyframes midrunEndingHeartbeat {
    0% {
      transform: translateY(-50%) scale(0.8);
    }
    50% {
      transform: translateY(-50%) scale(0.96);
    }
    100% {
      transform: translateY(-50%) scale(0.8);
    }
  }
}
.instructions {
  display: flex;
  justify-content: center;
  gap: var(--Sizing-Sizing-5xl, 48px);
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.instructions__content {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-shrink: 0;
}

.instructions__video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.instructions__video-container .details__header-video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.instructions__video-container .details__header-placeholder {
  max-width: 100%;
  height: 100%;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  inline-size: auto;
  justify-self: flex-end;
}

.instructions__title {
  color: #fff;
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  text-align: left;
  width: 100%;
}

.instructions__description {
  color: rgba(255, 255, 255, 0.87);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  text-align: left;
}

.instructions__goals {
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  padding: 0;
}

/* Objectives styles */
.instructions__goals .details__objectives {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  flex: none;
  flex-grow: 0;
}

.instructions__goals .details__objective-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
  width: 100%;
}

.instructions__goals .details__objective-item:hover {
  opacity: 0.8;
}

.instructions__goals .details__objective-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.instructions__goals .details__objective-label {
  font-size: 14px;
  font-style: normal;
  line-height: 18px;
}

.instructions__goals .details__objective-text {
  font-size: 16px;
  line-height: 1.25em;
  color: #ffffff;
  white-space: normal;
  word-wrap: break-word;
  flex: 1;
}

.instructions__goals .details__progress-tracker {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.instructions__goals
  .details__progress-tracker--goal
  .details__progress-tracker-number {
  color: #4caf50; /* Green for goal type */
}

.instructions__goals
  .details__progress-tracker--non-goal
  .details__progress-tracker-number {
  color: #f44336; /* Red for non-goal types */
}

.instructions__goals .details__progress-tracker--goal img {
  filter: brightness(0) saturate(100%) invert(67%) sepia(95%) saturate(400%)
    hue-rotate(87deg) brightness(95%) contrast(85%); /* Green filter */
}

.instructions__goals .details__progress-tracker--non-goal img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(95%) saturate(7471%)
    hue-rotate(349deg) brightness(96%) contrast(96%); /* Red filter */
}

.instructions__goals .details__progress-tracker-number {
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  color: #ffffff;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.instructions__goals .details__progress-tracker img {
  width: 16px;
  height: 16px;
}

.instructions__goals .details__progress-tracker-circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
}

.instructions__game-controls-button {
  padding: 8px 16px;
  background-color: transparent;
  border: 1px solid
    var(--Buttons-Solid-Outline-static, rgba(255, 255, 255, 0.4));
  border-radius: 8px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s;
  white-space: nowrap;
  box-sizing: border-box;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 8px;
}

.instructions__game-controls-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.instructions__game-controls-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(217, 217, 217, 0.5);
}

/* screen below 1920px */
@media (max-width: 1919px) {
  .instructions__video-container {
    align-self: flex-start;
  }
}

/* screen above 1920px */
@media (min-width: 1920px) {
  .instructions__video-container {
    align-self: none;
  }
}

/* 2K screens (2560px and above) */
@media (min-width: 2560px) and (max-width: 3439px) {
  .instructions {
    gap: 80px;
  }

  .instructions__video-container {
    align-self: flex-start;
  }

  .instructions__content {
    max-width: 560px;
    gap: 36px;
  }

  .instructions__title {
    font-size: 4rem;
  }

  .instructions__description {
    font-size: 1.5rem;
  }

  .instructions__goals .details__objective-label {
    font-size: 18px;
    line-height: 24px;
  }

  .instructions__goals .details__objective-text {
    font-size: 20px;
    line-height: 1.25em;
  }

  .instructions__goals .details__objectives {
    gap: 24px;
  }

  .instructions__goals .details__objective-item {
    gap: 16px;
  }

  .instructions__goals .details__progress-tracker {
    width: 48px;
    height: 48px;
    border-width: 3px;
  }

  .instructions__goals .details__progress-tracker-number {
    font-size: 22px;
  }

  .instructions__goals .details__progress-tracker-icon,
  .instructions__goals .details__progress-tracker img {
    width: 22px;
    height: 22px;
  }

  .instructions__goals .details__progress-tracker-circles {
    width: 48px;
    height: 48px;
  }

  .instructions__game-controls-button {
    font-size: 26px;
    padding: 13px 26px;
    line-height: 34px;
  }

  .instructions__game-controls-icon {
    width: 26px;
    height: 26px;
  }
}

/* Ultrawide screens (3440px and above) */
@media (min-width: 3440px) {
  .mission-brief__content {
    grid-column: 4 / 10;
  }

  .instructions {
    gap: 96px;
  }

  .instructions__content {
    max-width: 640px;
    gap: 40px;
  }

  .instructions__title {
    font-size: 5.5rem;
  }

  .instructions__description {
    font-size: 2.25rem;
  }

  .instructions__video-container {
    justify-content: center;
  }

  .instructions__goals .details__objective-label {
    font-size: 20px;
    line-height: 26px;
  }

  .instructions__goals .details__objective-text {
    font-size: 22px;
    line-height: 1.25em;
  }

  .instructions__goals .details__objectives {
    gap: 28px;
  }

  .instructions__goals .details__objective-item {
    gap: 18px;
  }

  .instructions__goals .details__progress-tracker {
    width: 52px;
    height: 52px;
    border-width: 3px;
  }

  .instructions__goals .details__progress-tracker-number {
    font-size: 24px;
  }

  .instructions__goals .details__progress-tracker-icon,
  .instructions__goals .details__progress-tracker img {
    width: 24px;
    height: 24px;
  }

  .instructions__goals .details__progress-tracker-circles {
    width: 52px;
    height: 52px;
  }

  .instructions__game-controls-button {
    font-size: 22px;
    padding: 12px 24px;
    line-height: 30px;
  }

  .instructions__game-controls-icon {
    width: 22px;
    height: 22px;
  }
}
.logo {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.logo-text {
  color: var(--Text---icons-Body-1, #ffffff8a);
  text-align: center;
  font-size: 14px;
  font-style: normal;
  line-height: 24px;
}

.logo-brand {
  display: flex;
  align-items: center;
}

.logo-icon {
  width: 88px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(.8);
}

.mobile-mission-brief {
  position: absolute;
  display: flex;
  flex-direction: column;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background-color: #000;
  box-sizing: border-box;
}

/* Fix BlurredThumbnailBackground for mobile flexbox layout */
.mobile-mission-brief .blurred-thumbnail-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  filter: blur(15px);
}

/* ── Header ── */
.mobile-mission-brief__header {
  flex: 0 0 auto;
  padding: 8px 16px;
  display: flex;
  justify-content: flex-start;
  box-sizing: border-box;
  position: relative;
  z-index: 5;
}

.mobile-mission-brief__game-logo {
  height: 40px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Constrain logo image to container height */
.mobile-mission-brief__game-logo .game-logo__image {
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
}

/* ── Content ── */
.mobile-mission-brief__content {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 0 16px;
}

/* ── Footer ── */
.mobile-mission-brief__footer {
  flex: 0 0 auto;
  z-index: 10;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 16px;
}

.mobile-mission-brief__ludeo-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 4px;
}

/* Hide the "HOW TO PLAY" game controls button on mobile */
.mobile-mission-brief .instructions__game-controls-button {
  display: none;
}

/* ═══════════════════════════════════════════
   Instructions overrides – Portrait (default)
   ═══════════════════════════════════════════ */
.mobile-mission-brief .instructions {
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.mobile-mission-brief .instructions__content {
  max-width: 100%;
  gap: 10px;
  flex: 0 1 auto;       /* take natural size, allow shrink */
  min-height: 0;
  overflow: hidden;
}

.mobile-mission-brief .instructions__title {
  font-size: clamp(1.25rem, 5vw, 2rem);
  text-align: center;
}

.mobile-mission-brief .instructions__description {
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Video: unset forced aspect-ratio so it can shrink freely */
.mobile-mission-brief .instructions__video-container {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
}

/* Keep video itself contained within its flexible parent */
.mobile-mission-brief .instructions__video-container .details__header-video,
.mobile-mission-brief .instructions__video-container .details__header-placeholder {
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: 16 / 9;
}

.mobile-mission-brief .instructions__goals {
  flex: 0 1 auto;
  min-height: 0;
  overflow: hidden;
}

.mobile-mission-brief .instructions__goals .details__objectives {
  gap: 10px;
}

.mobile-mission-brief .instructions__goals .details__objective-text {
  font-size: 14px;
}

.mobile-mission-brief .instructions__goals .details__progress-tracker {
  width: 28px;
  height: 28px;
}

.mobile-mission-brief .instructions__goals .details__progress-tracker-circles {
  width: 28px;
  height: 28px;
}

.mobile-mission-brief .instructions__goals .details__progress-tracker-number {
  font-size: 12px;
}

/* ── Tap to Start ── */
.mobile-tap-to-start {
  min-height: 44px;
  padding: 6px;
  box-sizing: border-box;
  z-index: 10001;
  cursor: pointer;
  user-select: none;
  animation: mobileTapFadeIn 0.6s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mobile-tap-to-start--disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.mobile-tap-to-start--disabled .mobile-tap-to-start__text {
  opacity: 0;
  visibility: hidden;
}

.mobile-tap-to-start__text {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(18px, 6vw, 36px);
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  letter-spacing: clamp(2px, 0.8vw, 4px);
  text-transform: uppercase;
  pointer-events: none;
  animation: mobileTapBreathing 2s ease-in-out infinite;
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

@keyframes mobileTapFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes mobileTapBreathing {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ═══════════════════════════════
   Landscape overrides
   ═══════════════════════════════ */
@media (orientation: landscape) {
  .mobile-mission-brief {
    padding-top: max(4px, env(safe-area-inset-top));
    padding-bottom: max(4px, env(safe-area-inset-bottom));
  }

  .mobile-mission-brief__header {
    padding: 2px 12px;
  }

  .mobile-mission-brief__game-logo {
    height: 24px;
  }

  .mobile-mission-brief__content {
    padding: 0 12px;
  }

  .mobile-mission-brief__footer {
    gap: 2px;
    padding: 2px 12px;
  }

  .mobile-mission-brief__ludeo-logo {
    padding-bottom: 0;
  }

  .mobile-mission-brief__ludeo-logo .logo-text {
    font-size: 11px;
    line-height: 16px;
  }

  .mobile-mission-brief__ludeo-logo .logo-icon {
    width: 64px;
    height: 18px;
  }

  .mobile-tap-to-start {
    min-height: 28px;
    padding: 2px;
  }

  .mobile-tap-to-start__text {
    font-size: clamp(14px, 3vw, 20px);
    letter-spacing: clamp(1px, 0.4vw, 2px);
  }

  /* Landscape: instructions side by side */
  .mobile-mission-brief .instructions {
    flex-direction: row;
    gap: 16px;
    align-items: center;
    height: 100%;
  }

  .mobile-mission-brief .instructions__content {
    flex: 1 1 0;
    max-width: 50%;
    gap: 6px;
  }

  .mobile-mission-brief .instructions__title {
    font-size: clamp(0.875rem, 2.5vw, 1.25rem);
  }

  .mobile-mission-brief .instructions__description {
    font-size: 0.75rem;
    line-height: 1.2;
  }

  .mobile-mission-brief .instructions__video-container {
    flex: 1 1 0;
    max-width: 50%;
    max-height: 100%;
  }

  .mobile-mission-brief .instructions__goals .details__objectives {
    gap: 6px;
  }

  .mobile-mission-brief .instructions__goals .details__objective-text {
    font-size: 11px;
    line-height: 1.2;
  }

  .mobile-mission-brief .instructions__goals .details__objective-label {
    font-size: 10px;
    line-height: 14px;
  }

  .mobile-mission-brief .instructions__goals .details__progress-tracker {
    width: 22px;
    height: 22px;
  }

  .mobile-mission-brief .instructions__goals .details__progress-tracker-circles {
    width: 22px;
    height: 22px;
  }

  .mobile-mission-brief .instructions__goals .details__progress-tracker-number {
    font-size: 10px;
  }

  .mobile-mission-brief .instructions__goals .details__progress-tracker img {
    width: 12px;
    height: 12px;
  }

  /* Loading bar compact */
  .mobile-mission-brief .loading-bar {
    min-height: 28px;
  }

  .mobile-mission-brief .loading-bar__text--left {
    font-size: 11px;
    letter-spacing: 0.5px;
  }

  .mobile-mission-brief .loading-bar__text--right {
    font-size: 11px;
  }
}
.midrun-objectives-new-wrapper {
  color: white;
    /* Objectives should be +1 above the ending overlay */
  z-index: 1000001;
  background: linear-gradient(
    293deg,
    rgba(15, 15, 15, 0.5) 0.57%,
    rgba(0, 0, 0, 0.6) 83.62%
  );
  box-shadow: 0 4px 30px 0 rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: var(--Sizing-Sizing-xl, 24px);
  gap: var(--Sizing-Sizing-xs, 8px);
  border-radius: 0 var(--Sizing-Corners-xl, 16px) var(--Sizing-Corners-xl, 16px)
    0;
  transition: filter 0.3s ease-in-out;
  /* Scale down 20% for mobile */
  transform: scale(0.8);
  transform-origin: left center;
}

/* Blur transition for midrun objectives when escape menu opens */
.midrun-objectives-new-wrapper--blurred {
  filter: blur(4px);
}

.midrun-objectives-new-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.midrun-objectives-new-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.midrun-objectives-new-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.midrun-objectives-new-text {
  color: var(--Text---icons-Body-1, #fff);
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.5px;
  margin: 0;
}

/* Circular Progress Indicator */
.midrun-objectives-new-progress-circle {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  transform: rotate(-90deg);
  align-self: center;
}

.midrun-objectives-new-progress-circle svg {
  width: 100%;
  height: 100%;
}

.midrun-objectives-new-progress-circle-bg {
  fill: none;
  stroke-width: 2px;
  stroke: var(--Input-Tag-Indicator-tag-2, rgba(255, 255, 255, 0.3));
}

.midrun-objectives-new-progress-circle-fill {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.3s ease;
}

.midrun-objectives-new-progress-circle-fill.timer {
  stroke: #f13034;
}

.midrun-objectives-new-progress-circle-fill.completed {
  stroke: #30d84a;
}

.midrun-objectives-new-progress-circle-fill.in-progress {
  stroke: #30d84a;
}

.midrun-objectives-new-progress-circle-fill.constraint {
  stroke: #f13034;
}

.midrun-objectives-new-progress-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  color: var(--Text---icons-Body-1, #fff);
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
  line-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.midrun-objectives-new-progress-icon.completed,
.midrun-objectives-new-progress-icon.in-progress {
  color: #30d84a;
}

.midrun-objectives-new-progress-icon.constraint {
  color: #f13034;
}

.midrun-objectives-new-progress-icon.timer svg {
  color: #f13034;
}

.midrun-objectives-new-progress-icon svg {
  width: 16px;
  height: 16px;
}

.midrun-objectives-new-wrapper {
  animation: paddingAnimation 0.4s ease forwards;
  animation-delay: 2s;
}

.midrun-objectives-new-wrapper .details__objective-label {
  animation: hideLabel 0.4s ease forwards;
  animation-delay: 2s;
}

.midrun-objectives-new-wrapper .details__objective-text {
  animation: expandText 0.4s ease forwards;
  animation-delay: 2s;
}

.midrun-objectives-new-wrapper .details__objectives {
  animation: smallerGap 0.4s ease forwards;
  animation-delay: 2s;
}

@keyframes paddingAnimation {
  from {
    padding: var(--Sizing-Sizing-xl, 24px);
  }
  to {
    padding: var(--Sizing-Sizing-md, 12px);
  }
}

@keyframes smallerGap {
  from {
    gap: 16px;
  }
  to {
    gap: 8px;
  }
}

@keyframes hideLabel {
  from {
    opacity: 1;
    max-height: 20px;
    margin: 0;
  }
  to {
    opacity: 0;
    max-height: 0;
    margin: 0;
  }
}

@keyframes expandText {
  from {
    font-weight: 700;
    font-size: 16px;
  }
  to {
    font-weight: 400;
    font-size: 14px;
  }
}

@keyframes midrunEndingHeartbeat {
  0% {
    transform: translateY(-50%) scale(0.8);
  }
  50% {
    transform: translateY(-50%) scale(0.96);
  }
  100% {
    transform: translateY(-50%) scale(0.8);
  }
}

/* Must override the base wrapper animation block below (same specificity otherwise). */
.midrun-objectives-new-wrapper.midrun-objectives-new-wrapper--ending {
  transform-origin: left center;

  /* Subtle heartbeat for 3s; preserve existing padding animation after. */
  animation-name: midrunEndingHeartbeat, paddingAnimation;
  animation-duration: 3s, 0.4s;
  animation-timing-function: ease-in-out, ease;
  animation-fill-mode: forwards, forwards;
  animation-delay: 0s, 3s;
}

/* Keep the existing "compact" animations, but align them to the 3s grow window while ending */
.midrun-objectives-new-wrapper--ending {
  animation-delay: 3s;
}
.midrun-objectives-new-wrapper--ending .details__objective-label {
  animation-delay: 3s;
}
.midrun-objectives-new-wrapper--ending .details__objective-text {
  animation-delay: 3s;
}
.midrun-objectives-new-wrapper--ending .details__objectives {
  animation-delay: 3s;
}

/* Ultrawide screens (3440px and above) */
@media (min-width: 3440px) {
  .midrun-objectives-new-wrapper {
    padding: 40px;
    gap: 16px;
    border-radius: 0 24px 24px 0;
  }

  .midrun-objectives-new-item {
    gap: 1.25rem;
  }

  .midrun-objectives-new-text {
    font-size: 26px;
    line-height: 32px;
    letter-spacing: 0.7px;
  }

  /* Circular Progress Indicator - scaled up */
  .midrun-objectives-new-progress-circle {
    width: 68px;
    height: 68px;
  }

  .midrun-objectives-new-progress-circle-bg {
    stroke-width: 3px;
  }

  .midrun-objectives-new-progress-circle-fill {
    stroke-width: 5;
  }

  .midrun-objectives-new-progress-icon {
    font-size: 26px;
    line-height: 32px;
  }

  .midrun-objectives-new-progress-icon svg {
    width: 28px;
    height: 28px;
  }

  /* Objectives container */
  .midrun-objectives-new-wrapper .details__objectives {
    gap: 24px;
  }

  .midrun-objectives-new-wrapper .details__objective-item {
    gap: 20px;
  }

  .midrun-objectives-new-wrapper .details__objective-content {
    height: 76px;
  }

  .midrun-objectives-new-wrapper .details__objective-label {
    font-size: 22px;
    line-height: 28px;
  }

  .midrun-objectives-new-wrapper .details__objective-text {
    font-size: 26px;
    line-height: 1.25em;
  }

  /* Animation adjustments for ultrawide */
  @keyframes paddingAnimation {
    from {
      padding: 40px;
    }
    to {
      padding: 20px;
    }
  }

  @keyframes smallerGap {
    from {
      gap: 24px;
    }
    to {
      gap: 14px;
    }
  }

  @keyframes hideLabel {
    from {
      opacity: 1;
      max-height: 28px;
      margin: 0;
    }
    to {
      opacity: 0;
      max-height: 0;
      margin: 0;
    }
  }

  @keyframes expandText {
    from {
      font-weight: 700;
      font-size: 26px;
    }
    to {
      font-weight: 400;
      font-size: 22px;
    }
  }

  @keyframes midrunEndingHeartbeat {
    0% {
      transform: translateY(-50%) scale(0.8);
    }
    50% {
      transform: translateY(-50%) scale(0.96);
    }
    100% {
      transform: translateY(-50%) scale(0.8);
    }
  }
}
/* Full-screen overlay shown during `ending` */
.ending-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Start fully transparent, animate in */
  opacity: 0;
  background: rgba(0, 0, 0, 0);
  animation: endingOverlayEnter 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes endingOverlayEnter {
  0% {
    opacity: 0;
    background: rgba(0, 0, 0, 0);
  }
  100% {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
  }
}

.ending-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  /* Start hidden and small, grow from center */
  opacity: 0;
  transform: scale(0.5);
  animation: endingContentEnter 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

@keyframes endingContentEnter {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes endingOverlayExit {
  0% {
    opacity: 1;
    background: rgba(0, 0, 0, 0.8);
  }
  100% {
    opacity: 1;
    background: rgba(0, 0, 0, 1);
  }
}

@keyframes endingContentExit {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
}

.ending-overlay--fadeout {
  animation: endingOverlayExit 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.ending-overlay--fadeout .ending-overlay-content {
  animation: endingContentExit 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.ending-overlay-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ending-overlay-icon {
  width: 56px;
  height: 56px;
}

.ending-overlay-title {
  color: var(--Text---icons-Body-1, #fff);
  font-family: "Sofia Sans";
  font-size: 56px;
  font-style: normal;
  font-weight: 900;
  line-height: 72px; /* 128.571% */
  letter-spacing: 6px;
  margin: 0;
  text-transform: uppercase;
}

.ending-overlay-subtitle {
  color: var(--Text---icons-Body-1, #fff);
  text-align: center;
  font-family: "Sofia Sans";
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px; /* 125% */
  margin: 0;
}

.ending-overlay-target {
  color: #ff4d4d;
  font-weight: 700;
}
.escape-menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(4px);
  }
}

.escape-menu-container {
  display: flex;
  width: 600px;
  flex-direction: column;
  align-items: flex-end;
  border-radius: var(--Sizing-Corners-x-large, 24px);
  border: 1px solid var(--Borders-Border-200, #2d2d2d);
  backdrop-filter: blur(15px);
}

.escape-menu-image-section {
  position: relative;
  height: 240px;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  border-radius: var(--Sizing-Corners-x-large, 24px)
    var(--Sizing-Corners-x-large, 24px) 0 0;
}

.escape-menu-image-overlay {
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 16px 0px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.escape-menu-image-logo {
  width: 120px;
  object-fit: contain;
  object-position: center;
  position: relative;
  flex-shrink: 0;
  margin-left: 8px;
}

.escape-menu-goals-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--Sizing-Sizing-m, 16px);
}

.escape-menu-goals-title {
  display: flex;
  padding: var(--Sizing-Sizing-m, 16px) var(--Sizing-Sizing-xl, 24px);
  align-items: center;
  gap: 16px;
  align-self: stretch;
  color: var(--Text---icons-Body-1, #fff);
  font-size: 24px;
  font-style: normal;
  font-weight: 900;
  line-height: 30px;
  margin: 0;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.escape-menu-goals-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 0 var(--Sizing-Sizing-xl, 24px) var(--Sizing-Sizing-m, 16px);
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
}

.escape-menu-goals-content .midrun-objectives-new-item {
  flex-shrink: 0;
}

.escape-menu-controls-section {
  height: 180px;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-bottom: 1px solid rgba(112, 112, 112, 0.5);
}

.escape-menu-controls-title {
  display: flex;
  padding: var(--Sizing-Sizing-m, 16px) var(--Sizing-Sizing-xl, 24px);
  align-items: center;
  gap: 16px;
  align-self: stretch;
  color: var(--Text---icons-Body-1, #fff);
  font-size: 24px;
  font-style: normal;
  font-weight: 900;
  line-height: 30px;
  margin: 0;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.escape-menu-controls-image-container {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 var(--Sizing-Sizing-xl, 24px) var(--Sizing-Sizing-m, 16px);
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

/* Custom scrollbar styling */
.escape-menu-controls-image-container::-webkit-scrollbar {
  width: 6px;
}

.escape-menu-controls-image-container::-webkit-scrollbar-track {
  background: transparent;
}

.escape-menu-controls-image-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.escape-menu-controls-image-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Firefox scrollbar styling */
.escape-menu-controls-image-container {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.escape-menu-controls-image {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.escape-menu-buttons-section {
  height: 108px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
}

.escape-menu-download-button {
  display: flex;
  align-items: center;
  margin-left: 50px;
}

.escape-menu-download-button
  .download-game-button.escape-menu-download-button-inner {
  height: 36px;
  padding: 8px 16px;
  font-size: 16px;
  line-height: 20px;
  animation: none;
  box-shadow: none;
}

.escape-menu-download-button .download-icon {
  width: 16px;
  height: 16px;
}

.escape-menu-right-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.escape-menu-button {
  color: inherit;
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
}

.escape-menu-resume-button {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 8px 16px;
  border-radius: var(--Sizing-Corners-s, 4px);
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: #ffffff;
  margin: 0;
  box-sizing: border-box;
  outline: none;
  transition: opacity 0.2s;
  border: none;
  background: var(--context-colors-success, #22c55e);
  transform-origin: center;
}

.escape-menu-resume-button:hover {
  opacity: 0.8;
}

.escape-menu-resume-button:focus {
  outline: none;
}

.escape-menu-quit-button {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--Sizing-Corners-s, 4px);
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  margin: 0;
  box-sizing: border-box;
  outline: none;
  color: white;
}

.escape-menu-quit-button:hover {
  opacity: 0.8;
}

.escape-menu-quit-button:focus {
  outline: none;
}

@media (min-width: 1024px) {
  .escape-menu-controls-image-container {
    min-height: 300px;
  }
}

.escape-menu-goals-content .details__objectives {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.escape-menu-goals-content .details__objective-item {
  width: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.escape-menu-goals-content .details__objective-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.escape-menu-goals-content .details__objective-label {
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.escape-menu-goals-content .details__objective-text {
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}
@keyframes breathing {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.download-game-button-container {
  position: relative;
  display: inline-block;
  animation: breathing 2s ease-in-out infinite;
  transform-origin: center;
}

.download-game-button {
  padding: 0 16px;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  height: 48px;
  cursor: pointer;
  transition: background-color 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0px 16px 32px -12px rgba(88, 92, 95, 0.1);
  box-sizing: border-box;
}

.download-game-button:hover {
  opacity: 0.9;
}

.download-game-button:active {
  opacity: 0.85;
}

.download-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

/* Mobile portrait centering */
@media (max-width: 768px) and (orientation: portrait) {
  .download-game-button-container {
    display: flex;
    justify-content: center;
  }
}

.download-game-button-discount {
  position: absolute;
  top: -12px;
  right: -8px;
  background-color: #006fcd;
  color: white;
  padding: 4px 8px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  min-width: 24px;
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.3);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.discount-banner-blur {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .discount-banner-blur {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .discount-banner-blur {
    padding: 8px 16px;
  }
}

@keyframes zoomIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.discount-banner {
  margin: 0;
  color: var(--Colors-Feedback-colors-Lemon-Lemon-prime-500, #EEDA00);
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
  line-height: 24px; /* 120% */
  letter-spacing: 1.4px;
  text-align: center;
}

/* Animation only applies when DiscountBanner is inside SummaryTextSection */
.summary-text-section .discount-banner {
  opacity: 0;
  transform: scale(0.8);
  animation: zoomIn 0.6s ease-out 1.5s forwards;
}

@media (max-width: 768px) {
  .discount-banner {
    font-size: 18px;
    line-height: 22px;
    letter-spacing: 1.2px;
  }
}

@media (max-width: 480px) {
  .discount-banner {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 1px;
  }
}

/* Full-screen overlay shown during countdown */
.countdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.countdown-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.countdown-overlay-number {
  color: var(--Text---icons-Body-1, #fff);
  text-align: center;
  text-shadow: 0 0 10px rgba(15, 15, 15, 0.60);
  font-family: "Sofia Sans";
  font-size: 72px;
  font-style: normal;
  font-weight: 900;
  line-height: 72px;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin: 0;
  animation: countdownPulse 1s ease-out;
}

@keyframes countdownPulse {
  0% {
    transform: scale(1.5);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.countdown-overlay-skip-hint {
  color: var(--Text---icons-Body-1, #fff);
  text-align: center;
  font-family: "Sofia Sans";
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px;
  margin: 0;
  text-transform: uppercase;
  animation: fadeIn 0.5s ease-out 0.3s forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .countdown-overlay-number {
    animation: none;
    transform: scale(1);
    opacity: 1;
  }

  .countdown-overlay-skip-hint {
    animation: none;
    opacity: 1;
  }
}

/* Ultrawide screens (3440px and above) */
@media (min-width: 3440px) {
  .countdown-overlay-number {
    font-size: 144px;
    line-height: 144px;
    letter-spacing: 12px;
  }

  .countdown-overlay-skip-hint {
    font-size: 48px;
    line-height: 60px;
  }

  .countdown-overlay-content {
    gap: 32px;
  }
}
/* Fill parent and flex-center the internal SVG glyph (wa-icon shadow DOM) */
.icon.virtual-gamepad-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: inherit;
}
.mobile-mid-run-screen {
  width: 100%;
  height: 100%;
}
.summary-image {
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.summary-image--skeleton {
  background-color: #e0e0e0;
}

.summary-image--skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.summary-image--loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .summary-image {
    width: 100%;
    height: 50%;
  }

  .summary-image__feedback-button {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }

  .summary-image__feedback-button svg {
    width: 18px;
    height: 18px;
  }
}



/* Import fonts - Titillium Web */
.feedback-button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--Text---icons-Body-1, #FFF);
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  padding: 10px 16px;
  height: auto;
  min-height: 44px;
}
.feedback-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}
.feedback-button:active {
  background-color: rgba(0, 0, 0, 0.9);
  transform: scale(0.95);
}
.feedback-button:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}
.feedback-button__text {
  color: var(--Text---icons-Body-1, #FFF);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px; /* 125% */
  white-space: nowrap;
}
/* Position variants */
.feedback-button--bottom-right {
  bottom: 20px;
  right: 20px;
}
.feedback-button--bottom-left {
  bottom: 20px;
  left: 20px;
}
.feedback-button--top-right {
  top: 20px;
  right: 20px;
}
.feedback-button--top-left {
  top: 20px;
  left: 20px;
}
@media (max-width: 768px) {
  .feedback-button {
    padding: 8px 12px;
    min-height: 40px;
  }

  .feedback-button__text {
    font-size: 14px;
    line-height: 18px;
  }

  .feedback-button--bottom-right {
    bottom: 16px;
    right: 16px;
  }

  .feedback-button--bottom-left {
    bottom: 16px;
    left: 16px;
  }

  .feedback-button--top-right {
    top: 16px;
    right: 16px;
  }

  .feedback-button--top-left {
    top: 16px;
    left: 16px;
  }
}

.summary-text-section {
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.summary-text-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

.summary-text-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  /* padding: 48px; */
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.summary-text-section__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.summary-text-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  justify-content: center;
  flex: 1 0 0;
  min-height: 0;
  min-width: 0;
}

.summary-text-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 24px;
  box-sizing: border-box;
}

.summary-text-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(36px, 6vw, 80px);
  line-height: 1.1;
  color: white;
  text-transform: uppercase;
  letter-spacing: clamp(1px, 0.3vw, 4px);
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.summary-text-cta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  width: 100%;
}

.summary-text-subtitle {
  margin: 0;
  font-weight: 400;
  font-size: 20px;
  line-height: 36px;
  color: white;
  text-align: center;
  letter-spacing: 1px;
  white-space: nowrap;
}

.summary-text-buttons {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

.summary-text-play-again {
  border: 1px solid #464646;
  background-color: transparent;
  color: white;
  padding: 12px 16px;
  height: 48px;
  border-radius: 4px;
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  white-space: nowrap;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s;
}

.summary-text-play-again:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #464646;
}


/* Style share button within summary-text-section */
.summary-text-section .share-button {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 8px !important;
  background-color: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
  border-radius: 4px !important;
}

.summary-text-footer {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.summary-text-powered {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.summary-text-powered-text {
  margin: 0;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  color: white;
  text-align: center;
  white-space: nowrap;
}

.summary-text-logo {
  display: flex;
  margin-left: 20px;
  gap: 4px;
  align-items: center;
  height: 24px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .summary-text-section {
    width: 100%;
    height: 50%;
  }

  .summary-text-content {
    padding: 24px;
  }

  .summary-text-title {
    font-size: 48px;
    line-height: 48px;
    letter-spacing: 2px;
  }

  .summary-text-subtitle {
    font-size: 16px;
    line-height: 24px;
    white-space: normal;
  }

  .summary-text-buttons {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .summary-text-play-again,
  .summary-text-download {
    width: 100%;
  }

  .summary-text-footer {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .summary-text-logo {
    margin: 16px;
  }

  .summary-text-section__logo {
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .summary-text-content {
    padding: 16px;
  }

  .summary-text-title {
    font-size: 36px;
    line-height: 40px;
    letter-spacing: 1px;
  }

  .summary-text-subtitle {
    font-size: 14px;
    line-height: 20px;
  }

  .summary-text-buttons {
    gap: 12px;
  }
}

.play-again-button {
  padding: 8px 16px;
  background-color: transparent;
  color: white;
  border: 1px solid rgba(217, 217, 217, 0.3);
  border-radius: 4px;
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  height: 48px;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s;
  white-space: nowrap;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-again-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(217, 217, 217, 0.5);
}

.play-again-button:active {
  background-color: rgba(255, 255, 255, 0.15);
}

.mobile-summary {
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background-color: #000000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: mobileSmFadeIn 1.2s ease-out;
  box-sizing: border-box;
}

@keyframes mobileSmFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.mobile-summary--skeleton {
  background-color: #e0e0e0;
}

.mobile-summary--skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.mobile-summary--loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

/* ═══════════════════════════════════════════
   Override SummaryTextSection for mobile
   ═══════════════════════════════════════════ */

/* Portrait: Text takes 60%, Image takes 40% */
.mobile-summary .summary-text-section {
  width: 100%;
  height: 60%;
  flex-shrink: 0;
}

.mobile-summary .summary-image {
  width: 100%;
  height: 40%;
  flex-shrink: 0;
}

.mobile-summary .summary-text-content {
  padding: 16px 20px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  position: relative;
}

/* Allow main container to shrink (base has flex-shrink: 0) */
.mobile-summary .summary-text-main {
  flex: 1 1 0;
  gap: 20px;
  padding-top: 50px; /* Space for absolute positioned logo */
}

/* Position GameLogo in top left corner */
.mobile-summary .game-logo {
  position: absolute;
  top: 16px;
  left: 20px;
  max-height: 40px;
  overflow: hidden;
  z-index: 10;
}

.mobile-summary .game-logo__image {
  max-height: 40px;
  width: auto;
  height: auto;
}

.mobile-summary .summary-text-title-wrapper {
  padding: 0;
  flex: 0 0 auto;
}

.mobile-summary .summary-text-title {
  font-size: clamp(32px, 10vw, 56px);
  line-height: 1.1;
  margin-bottom: 0;
}

/* Center the subtitle above buttons */
.mobile-summary .summary-text-subtitle {
  font-size: clamp(16px, 4vw, 20px);
  line-height: 1.4;
  white-space: normal;
  text-align: center;
  margin: 0;
}

.mobile-summary .summary-text-cta {
  gap: 20px;
  justify-content: center;
}

.mobile-summary .summary-text-buttons {
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 300px;
}

.mobile-summary .summary-text-play-again,
.mobile-summary .summary-text-download {
  width: 100%;
}

/* Slightly smaller buttons for mobile */
.mobile-summary .play-again-button {
  height: 44px;
  font-size: 18px;
  padding: 8px 16px;
}

.mobile-summary .discount-banner {
  font-size: 16px;
  line-height: 20px;
}

.mobile-summary .summary-text-section__logo {
  margin-top: 8px;
}

/* ═══════════════════════════════
   Landscape overrides
   ═══════════════════════════════ */
@media (orientation: landscape) {
  /* Switch to row layout in landscape */
  .mobile-summary {
    flex-direction: row;
  }

  .mobile-summary .summary-text-section {
    width: 50%;
    height: 100%;
  }

  .mobile-summary .summary-image {
    width: 50%;
    height: 100%;
  }

  .mobile-summary .summary-text-content {
    padding: 8px 24px;
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .mobile-summary .summary-text-main {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    padding-top: 40px; /* Smaller in landscape */
  }

  /* Keep logo in top left for landscape too */
  .mobile-summary .game-logo {
    position: absolute;
    top: 8px;
    left: 24px;
    max-height: 32px;
  }

  .mobile-summary .game-logo__image {
    max-height: 32px;
  }

  .mobile-summary .summary-text-title {
    font-size: clamp(28px, 6vh, 48px);
    margin-bottom: 8px;
  }

  .mobile-summary .summary-text-cta {
    gap: 12px;
  }

  .mobile-summary .summary-text-subtitle {
    font-size: clamp(14px, 3vh, 18px);
  }

  .mobile-summary .summary-text-buttons {
    flex-direction: row;
    gap: 12px;
    max-width: none;
  }

  .mobile-summary .summary-text-play-again,
  .mobile-summary .summary-text-download {
    width: auto;
  }

  .mobile-summary .play-again-button {
    height: 38px;
    font-size: 14px;
    padding: 6px 14px;
  }

  .mobile-summary .discount-banner {
    font-size: 13px;
    line-height: 16px;
  }

  .mobile-summary .summary-text-section__logo {
    margin-top: 4px;
  }

  .mobile-summary .summary-text-section__logo .logo-text {
    font-size: 11px;
    line-height: 16px;
  }

  .mobile-summary .summary-text-section__logo .logo-icon {
    width: 64px;
    height: 18px;
  }
}
.mobile-error-screen {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.mobile-error-screen__footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-error-screen__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  box-sizing: border-box;
  background: rgba(15, 15, 15, 0.5);
  backdrop-filter: blur(10px);
  width: 100%;
  min-height: 0;
  padding-top: max(0px, env(safe-area-inset-top));
  padding-bottom: 48px; /* Space for absolute footer */
}

.mobile-error-screen__modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  max-height: 100%;
  overflow: hidden;
}

.mobile-error-screen__game-logo {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-error-screen__game-logo .game-logo__image {
  max-width: 100%;
  max-height: 80px;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mobile-error-screen__title {
  font-size: 24px;
  line-height: 1.2em;
  text-align: center;
  color: #FFFFFF;
  margin: 0;
}

.mobile-error-screen__description {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4em;
  text-align: center;
  color: #FFFFFF;
  margin: 0;
  white-space: pre-line;
}

.mobile-error-screen__buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  width: 100%;
  max-width: 300px;
}

.mobile-error-screen__button {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  min-height: 44px;
  width: 100%;
  border-radius: 4px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2em;
  color: #FFFFFF;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mobile-error-screen__button:active {
  opacity: 0.85;
}

.mobile-error-screen__button--outline {
  background: transparent;
  border: 1px solid transparent;
  background-image: linear-gradient(180deg, rgba(217, 217, 217, 0.3) 0%, rgba(115, 115, 115, 0.4) 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.mobile-error-screen__button-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mobile-error-screen__download-wrapper {
  position: relative;
  width: 100%;
}

.mobile-error-screen__download-button {
  margin: 0;
  width: 100%;
}

/* === Landscape overrides === */
@media (orientation: landscape) {
  .mobile-error-screen__content {
    padding-bottom: 36px;
  }

  .mobile-error-screen__modal {
    gap: 6px;
    padding: 12px 24px;
  }

  .mobile-error-screen__game-logo {
    margin-bottom: 4px;
  }

  .mobile-error-screen__game-logo .game-logo__image {
    max-height: 40px;
  }

  .mobile-error-screen__title {
    font-size: 18px;
  }

  .mobile-error-screen__description {
    font-size: 12px;
    line-height: 1.3em;
  }

  .mobile-error-screen__buttons {
    flex-direction: row;
    gap: 12px;
    margin-top: 0;
    max-width: none;
    width: auto;
  }

  .mobile-error-screen__button {
    min-height: 36px;
    padding: 8px 16px;
    font-size: 14px;
    width: auto;
  }

  .mobile-error-screen__download-wrapper {
    width: auto;
  }

  .mobile-error-screen__footer {
    padding: 6px;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
  }

  .mobile-error-screen__footer .logo-text {
    font-size: 11px;
    line-height: 16px;
  }

  .mobile-error-screen__footer .logo-icon {
    width: 64px;
    height: 18px;
  }
}
.summary-error-text-section {
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  will-change: transform;
  background-color: rgba(15, 15, 15, 0.50);
  backdrop-filter: blur(10px);
}


@keyframes zoomIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.summary-error-text-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.summary-error-text-section__logo {
  max-width: 200px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 0;
}

.summary-error-text-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  justify-content: center;
  flex: 1 0 0;
  min-height: 0;
  min-width: 0;
}

.summary-error-text-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 24px;
  box-sizing: border-box;
  opacity: 0;
  transform: rotate(359.908deg) scale(0.8);
}

.summary-error-text-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(36px, 6vw, 80px);
  line-height: 1.1;
  color: white;
  text-transform: uppercase;
  letter-spacing: clamp(1px, 0.3vw, 4px);
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.summary-error-text-cta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  width: 100%;
}

.summary-error-text-content-area {
  width: 100%;
  min-height: 100px;
  /* Empty content area - will be populated later */
}

.summary-error-text-buttons {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

.summary-error-text-play-again {
  border: 1px solid #464646;
  background-color: transparent;
  color: white;
  padding: 12px 16px;
  height: 48px;
  border-radius: 4px;
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  white-space: nowrap;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s;
}

.summary-error-text-play-again:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #464646;
}

.summary-error-text-footer {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  flex-shrink: 0;
  box-sizing: border-box;
  opacity: 0;
  transform: scale(0.8);
  animation: zoomIn 0.6s ease-out 1.6s forwards;
}

.summary-error-text-logo {
  display: flex;
  margin-left: 20px;
  gap: 4px;
  align-items: center;
  height: 24px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .summary-error-text-section {
    width: 100%;
    height: 50%;
  }

  .summary-error-text-content {
    padding: 24px;
  }

  .summary-error-text-title {
    font-size: 48px;
    line-height: 48px;
    letter-spacing: 2px;
  }

  .summary-error-text-buttons {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .summary-error-text-play-again,
  .summary-error-text-download {
    width: 100%;
  }

  .summary-error-text-footer {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .summary-error-text-logo {
    margin: 16px;
  }

  .summary-error-text-section__logo {
    max-width: 150px;
    max-height: 60px;
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .summary-error-text-content {
    padding: 16px;
  }

  .summary-error-text-title {
    font-size: 36px;
    line-height: 40px;
    letter-spacing: 1px;
  }

  .summary-error-text-buttons {
    gap: 12px;
  }
}
/* @keyframes zoomIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
} */

.bad-network-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 24px;
}

.bad-network-error__title {
  margin: 0;
  font-weight: 700;
  font-size: 36px;
  line-height: 42px;
  letter-spacing: 0px;
  vertical-align: middle;
  color: white;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.bad-network-error__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 252px;
}

.bad-network-error__icon img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.bad-network-error__description {
  margin: 0;
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  color: white;
  text-align: center;
  max-width: 100%;
  padding: 0 32px;
  box-sizing: border-box;
}

.bad-network-error__tabs {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 32px;
  box-sizing: border-box;
}

.bad-network-error__tips-only {
  width: 100%;
  padding-left: 24px;
  box-sizing: border-box;
}

.bad-network-error__tab-headers {
  display: flex;
  gap: 0;
  width: 100%;
}

.bad-network-error__tab-headers--single {
  justify-content: flex-start;
}

.bad-network-error__tab-headers--single .bad-network-error__tab-header {
  flex: 0 1 auto;
}

.bad-network-error__tab-header {
  flex: 1;
  padding: 12px 16px;
  background-color: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  font-size: 16px;
  line-height: 16px;
  letter-spacing: 0px;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  outline: none !important;
  position: relative;
  box-shadow: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.bad-network-error__tab-header:hover {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

.bad-network-error__tab-header:active {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.6);
  outline: none !important;
  box-shadow: none !important;
}

.bad-network-error__tab-header--active {
  color: white;
  outline: none !important;
  box-shadow: none !important;
  border-color: white;
}

.bad-network-error__tab-header--active,
.bad-network-error__tab-header--active:hover {
  color: white;
  border-color: white;
}

.bad-network-error__tab-content-wrapper {
  width: 100%;
  position: relative;
}

/* Fixed height wrapper to prevent layout shifts */
.bad-network-error__tab-content-fixed-height {
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Measurement container - hidden, used for height measurement */
.bad-network-error__tab-measurements {
  width: 100%;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  display: flex;
  flex-direction: column;
  height: auto;
}

.bad-network-error__tab-content {
  width: 100%;
  padding: 16px 0;
  box-sizing: border-box;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  /* Ensure grid maintains height */
  grid-auto-rows: minmax(0, auto);
}

.bad-network-error__details {
  width: 100%;
  color: white;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  grid-row: 1;
  grid-column: 1;
  visibility: hidden;
  pointer-events: none;
  position: relative;
  min-height: 0;
}

.bad-network-error__details--active {
  visibility: visible;
  pointer-events: auto;
}

.bad-network-error__troubleshooting-tab {
  width: 100%;
  grid-row: 1;
  grid-column: 1;
  visibility: hidden;
  pointer-events: none;
  position: relative;
  min-height: 0;
}

.bad-network-error__troubleshooting-tab--active {
  visibility: visible;
  pointer-events: auto;
}

.bad-network-error__tips-list {
  margin: 0;
  padding: 0 0 0 24px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bad-network-error__tips-list li {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: white;
  padding-left: 32px;
  position: relative;
}

.bad-network-error__tip-icon {
  position: absolute;
  left: 0;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.bad-network-error__details-content {
  display: flex;
  width: 100%;
  gap: 0;
}

/* Measurement elements - contribute to parent height */
.bad-network-error__details--measure,
.bad-network-error__troubleshooting-tab--measure {
  width: 100%;
  height: auto;
}

/* Responsive styles */
@media (max-width: 768px) {
  .bad-network-error {
    gap: 20px;
  }

  .bad-network-error__title {
    font-size: 36px;
    line-height: 42px;
    letter-spacing: 0px;
  }

  .bad-network-error__description {
    font-size: 16px;
    line-height: 24px;
    padding: 0 24px;
  }

  .bad-network-error__tabs {
    padding: 0 24px;
  }

  .bad-network-error__tab-header {
    font-size: 12px;
    line-height: 16px;
    padding: 10px 12px;
  }

  .bad-network-error__tips-only {
    padding-left: 20px;
  }

  .bad-network-error__tips-list {
    padding-left: 20px;
  }

  .bad-network-error__tips-list li {
    font-size: 14px;
    line-height: 20px;
    padding-left: 28px;
  }

  .bad-network-error__tip-icon {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .bad-network-error__title {
    font-size: 36px;
    line-height: 42px;
    letter-spacing: 0px;
  }

  .bad-network-error__description {
    font-size: 14px;
    line-height: 20px;
    padding: 0 20px;
  }

  .bad-network-error__tabs {
    padding: 0 20px;
  }

  .bad-network-error__tab-header {
    font-size: 12px;
    line-height: 16px;
    padding: 8px 10px;
  }

  .bad-network-error__tips-only {
    padding-left: 16px;
  }

  .bad-network-error__tips-list {
    padding-left: 16px;
  }

  .bad-network-error__tips-list li {
    font-size: 12px;
    line-height: 18px;
    padding-left: 24px;
  }

  .bad-network-error__tip-icon {
    width: 16px;
    height: 16px;
  }
}
.network-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  flex: 1;
  padding: 0 16px;
}

.network-detail:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.network-detail__title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  margin-bottom: 8px;
  width: 100%;
}

.network-detail__title {
  margin: 0;
  font-weight: 700;
  font-style: normal;
  font-size: 14px;
  line-height: 18px;
  vertical-align: middle;
  color: white;
}

.network-detail__value {
  font-weight: 700;
  font-style: normal;
  font-size: 14px;
  line-height: 18px;
  vertical-align: middle;
}

.network-detail__value--passing {
  color: #4caf50;
}

.network-detail__value--failing {
  color: #f44336;
}

.network-detail__subtitle {
  margin: 0;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 18px;
  vertical-align: middle;
  color: rgba(255, 255, 255, 0.6);
  text-align: left;
  width: 100%;
}

/* Responsive styles */
@media (max-width: 768px) {
  .network-detail {
    padding: 0 12px;
  }

  .network-detail__title-row {
    margin-bottom: 6px;
  }

  .network-detail__title {
    font-size: 12px;
    line-height: 18px;
  }

  .network-detail__value {
    font-size: 12px;
    line-height: 18px;
  }

  .network-detail__subtitle {
    font-size: 11px;
    line-height: 14px;
  }
}

@media (max-width: 480px) {
  .network-detail {
    padding: 0 8px;
  }

  .network-detail__title-row {
    margin-bottom: 4px;
  }

  .network-detail__title {
    font-size: 11px;
    line-height: 16px;
  }

  .network-detail__value {
    font-size: 11px;
    line-height: 16px;
  }

  .network-detail__subtitle {
    font-size: 10px;
    line-height: 12px;
  }
}
.mobile-summary-error {
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background-color: #000000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: mobileBneFadeIn 1.2s ease-out;
  box-sizing: border-box;
}

@keyframes mobileBneFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.mobile-summary-error--skeleton {
  background-color: #e0e0e0;
}

.mobile-summary-error--skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.mobile-summary-error--loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

/* Override shared component layouts for portrait mobile */
.mobile-summary-error .summary-error-text-section {
  width: 100%;
  height: 65%;
  flex-shrink: 0;
}

.mobile-summary-error .summary-image {
  width: 100%;
  height: 35%;
  flex-shrink: 0;
}

/* Compact content for mobile */
.mobile-summary-error .summary-error-text-content {
  padding: 12px;
  padding-top: max(12px, env(safe-area-inset-top));
}

.mobile-summary-error .summary-error-text-main {
  gap: 12px;
}

.mobile-summary-error .summary-error-text-section__logo {
  max-width: 120px;
  max-height: 48px;
}

.mobile-summary-error .summary-error-text-cta {
  gap: 12px;
}

.mobile-summary-error .summary-error-text-buttons {
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 280px;
}

.mobile-summary-error .summary-error-text-play-again {
  width: 100%;
  font-size: 16px;
  height: 40px;
}

.mobile-summary-error .play-again-button {
  height: 40px;
  font-size: 16px;
  padding: 6px 14px;
}

/* Compact BadNetworkError content for mobile */
.mobile-summary-error .bad-network-error {
  gap: 8px;
  transform: scale(0.85);
  transform-origin: center;
}

.mobile-summary-error .bad-network-error__title {
  font-size: 20px;
  line-height: 24px;
}

.mobile-summary-error .bad-network-error__icon {
  max-width: 100px;
}

.mobile-summary-error .bad-network-error__description {
  font-size: 12px;
  line-height: 18px;
  padding: 0 12px;
}

.mobile-summary-error .bad-network-error__tabs {
  padding: 0 12px;
}

.mobile-summary-error .bad-network-error__tab-header {
  font-size: 10px;
  padding: 6px 6px;
}

.mobile-summary-error .bad-network-error__tips-list li {
  font-size: 11px;
  line-height: 15px;
}

/* === Landscape overrides === */
@media (orientation: landscape) {
  .mobile-summary-error {
    flex-direction: row;
  }

  .mobile-summary-error .summary-error-text-section {
    width: 50%;
    height: 100%;
  }

  .mobile-summary-error .summary-image {
    width: 50%;
    height: 100%;
  }

  .mobile-summary-error .summary-error-text-content {
    padding: 8px 16px;
    padding-top: max(8px, env(safe-area-inset-top));
  }

  .mobile-summary-error .summary-error-text-main {
    gap: 8px;
  }

  .mobile-summary-error .summary-error-text-cta {
    gap: 8px;
  }

  .mobile-summary-error .bad-network-error {
    gap: 6px;
    transform: scale(0.75);
  }

  .mobile-summary-error .bad-network-error__title {
    font-size: 16px;
    line-height: 20px;
  }

  .mobile-summary-error .bad-network-error__icon {
    max-width: 70px;
  }

  .mobile-summary-error .bad-network-error__description {
    font-size: 11px;
    line-height: 15px;
    padding: 0 10px;
  }

  .mobile-summary-error .summary-error-text-section__logo {
    max-width: 100px;
    max-height: 36px;
  }

  .mobile-summary-error .summary-error-text-buttons {
    flex-direction: row;
    max-width: none;
  }

  .mobile-summary-error .summary-error-text-play-again {
    width: auto;
    font-size: 14px;
    height: 36px;
  }

  .mobile-summary-error .bad-network-error__tabs {
    padding: 0 12px;
  }

  .mobile-summary-error .bad-network-error__tab-header {
    font-size: 10px;
    padding: 6px 6px;
  }

  .mobile-summary-error .bad-network-error__tips-list li {
    font-size: 11px;
    line-height: 14px;
  }

  .mobile-summary-error .play-again-button {
    height: 36px;
    font-size: 14px;
    padding: 6px 12px;
  }
}
.mobile-screen-router {
  position: relative;
  width: 100%;
  height: 100%;
}

.mobile-screen-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
}

.mobile-screen-container > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Portrait warning overlay */
.portrait-warning {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.portrait-warning-content {
  text-align: center;
  color: white;
  padding: 2rem;
}

.portrait-warning-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: rotate-device 2s ease-in-out infinite;
}

.portrait-warning-text {
  font-size: 1.25rem;
  font-weight: 500;
}

@keyframes rotate-device {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(90deg);
  }
}

/* Show warning only in portrait mode */
@media (orientation: portrait) {
  .portrait-warning {
    display: flex;
  }
}
.mock-gameplay-message {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  transform: none;
}

.mock-gameplay-message img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.mock-debug-panel {
  position: fixed;
  z-index: 9999999;
  background-color: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 240px;
  user-select: none;
}

.mock-debug-panel--collapsed {
  padding: 8px 12px;
}

.mock-debug-panel__header {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
  margin-bottom: 0;
  cursor: move;
  user-select: none;
}

.mock-debug-panel--collapsed .mock-debug-panel__header {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.mock-debug-panel__drag-handle {
  cursor: move;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.mock-debug-panel__drag-handle:hover {
  opacity: 0.8;
}

.mock-debug-panel__favicon {
  width: 20px;
  height: 20px;
  display: block;
}

.mock-debug-panel__title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
  flex: 1;
  margin: 0;
  text-align: center;
}

.mock-debug-panel__refresh-button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 18px;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-debug-panel__refresh-button:hover {
  color: rgba(255, 255, 255, 0.9);
  background-color: rgba(255, 255, 255, 0.1);
}

.mock-debug-panel__collapse-button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
  line-height: 1;
}

.mock-debug-panel__collapse-button:hover {
  color: rgba(255, 255, 255, 0.9);
  background-color: rgba(255, 255, 255, 0.1);
}

.mock-debug-panel__button {
  padding: 10px 16px;
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  width: 100%;
}

.mock-debug-panel__button:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.mock-debug-panel__button:active {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(0.98);
}

.mock-debug-panel__button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.mock-debug-panel__square-button {
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mock-debug-panel__square-button:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.mock-debug-panel__square-button:active {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(0.98);
}

.mock-debug-panel__square-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.mock-debug-panel__dropdown-container {
  position: relative;
}

.mock-debug-panel__dropdown {
  padding: 10px 16px;
  padding-right: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  appearance: none;
  width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.7)' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: all 0.2s;
}

.mock-debug-panel__dropdown:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.mock-debug-panel__dropdown:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.mock-debug-panel__dropdown option {
  background-color: #1a1a1a;
  color: rgba(255, 255, 255, 0.9);
  padding: 8px;
}

.mock-debug-panel__divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}

.mock-debug-panel__network-state-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
  font-weight: 400;
}

.mock-debug-panel__network-state-value {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.mock-debug-panel__section-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin: 8px 0 4px;
}

.mock-debug-panel__objective-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-debug-panel__input {
  padding: 6px 10px;
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.mock-debug-panel__input:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.mock-debug-panel__input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.mock-debug-panel__input::-webkit-inner-spin-button,
.mock-debug-panel__input::-webkit-outer-spin-button {
  opacity: 1;
}

