.about-react-trigger {
  cursor: default;
}

.about-react-trigger:focus-visible {
  outline: 2px solid rgba(91, 197, 212, 0.75);
  outline-offset: 3px;
}

.afterhours-lock-scroll {
  overflow: hidden;
}

.afterhours-curtain {
  --afterhours-accent: #5bc5d4;
  --afterhours-accent-strong: #06b6d4;
  --afterhours-ink: #042a30;
  --afterhours-panel-glass: rgba(255, 255, 255, 0.1);
  --afterhours-border: rgba(255, 255, 255, 0.34);
  --afterhours-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  z-index: 12000;
  pointer-events: none;
  transition: height 1.18s cubic-bezier(0.18, 1, 0.32, 1);
}

.afterhours-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.52s ease;
  background: linear-gradient(to right, #5bc5d4, #5bc5d4, #06b6d4);
}

.afterhours-curtain.is-open {
  height: 100vh;
}

.afterhours-curtain.is-revealed {
  pointer-events: auto;
}

.afterhours-curtain.is-revealed .afterhours-backdrop {
  opacity: 0.98;
}

.afterhours-panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 24px;
  opacity: 0;
  transform: translateY(42px);
  transition:
    opacity 0.46s ease,
    transform 0.68s cubic-bezier(0.18, 1, 0.32, 1);
  pointer-events: none;
  overflow-y: auto;
}

.afterhours-curtain.is-revealed .afterhours-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.afterhours-close {
  position: absolute;
  right: 18px;
  top: 14px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  padding: 6px;
}

.afterhours-close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.afterhours-title {
  color: #fff;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin: 52px 0 8px;
  max-width: 760px;
  line-height: 1.25;
}

.afterhours-copy {
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0 0 14px;
  max-width: 860px;
}

.afterhours-shell {
  width: min(1220px, 100%);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
  box-shadow: none;
}

.afterhours-host {
  margin-top: 14px;
  min-height: 360px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  padding: 0;
}

.afterhours-host.is-game-mounted {
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 0;
}

.afterhours-fullscreen-active {
  overflow: hidden;
}

.afterhours-fullscreen-layer {
  position: fixed;
  inset: 0;
  z-index: 12040;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at top right, rgba(91, 197, 212, 0.18), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255, 182, 77, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(4, 26, 30, 0.96), rgba(5, 39, 44, 0.98));
  transition: opacity 0.22s ease;
}

.afterhours-fullscreen-layer[data-game="skifree"] {
  background: #f6fbfd;
}

.afterhours-fullscreen-layer[data-game="blockrain"] {
  background:
    radial-gradient(circle at top center, rgba(91, 197, 212, 0.14), transparent 34%),
    linear-gradient(180deg, #03131a 0%, #051b23 100%);
}

.afterhours-fullscreen-layer[data-game="duckhunt"] {
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(180deg, #79c1ff 0%, #79c1ff 70%, #37a857 70%, #2f8d4b 100%);
}

.afterhours-fullscreen-layer.is-active {
  opacity: 1;
  pointer-events: auto;
}

.afterhours-fullscreen-shell {
  position: relative;
  width: 100%;
  height: 100%;
}

.afterhours-fullscreen-close {
  position: fixed;
  top: max(18px, calc(env(safe-area-inset-top) + 10px));
  right: max(18px, calc(env(safe-area-inset-right) + 10px));
  z-index: 2;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(3, 25, 29, 0.72);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.afterhours-fullscreen-close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
}

.afterhours-fullscreen-layer[data-game="skifree"] .afterhours-fullscreen-close {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
}

.afterhours-fullscreen-layer[data-game="skifree"] .afterhours-fullscreen-close:focus-visible {
  outline-color: rgba(15, 23, 42, 0.86);
}

.afterhours-fullscreen-status {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 28px;
  color: #fff;
}

.afterhours-fullscreen-layer[data-game="skifree"] .afterhours-fullscreen-status {
  background: #f6fbfd;
  color: #0f172a;
}

.afterhours-fullscreen-status strong {
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.afterhours-fullscreen-status span {
  max-width: 620px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.afterhours-fullscreen-layer[data-game="skifree"] .afterhours-fullscreen-status span {
  color: rgba(15, 23, 42, 0.74);
}

.afterhours-fullscreen-frame-host {
  position: relative;
  width: 100%;
  height: 100%;
  background: #f6fbfd;
}

.afterhours-fullscreen-layer[data-game="blockrain"] .afterhours-fullscreen-frame-host,
.afterhours-fullscreen-layer[data-game="blockrain"] .afterhours-fullscreen-frame {
  background: #03131a;
}

.afterhours-fullscreen-layer[data-game="duckhunt"] .afterhours-fullscreen-frame-host,
.afterhours-fullscreen-layer[data-game="duckhunt"] .afterhours-fullscreen-frame {
  background: #79c1ff;
}

.afterhours-fullscreen-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f6fbfd;
}

.afterhours-stage {
  min-height: 100%;
  position: relative;
}

.afterhours-chooser-stage,
.afterhours-status-stage {
  min-height: 324px;
  display: flex;
  align-items: stretch;
}

.afterhours-game-stage {
  display: block;
  width: 100%;
}

.afterhours-status-card {
  position: relative;
  width: 100%;
  min-height: 324px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at top right, rgba(111, 238, 255, 0.18), transparent 36%),
    radial-gradient(circle at bottom left, rgba(255, 191, 121, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(4, 38, 43, 0.82), rgba(10, 72, 80, 0.72));
  box-shadow: inset 0 0 26px rgba(255, 255, 255, 0.06);
}

.afterhours-game-status {
  position: relative;
  z-index: 1;
  min-height: 324px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 24px;
}

.afterhours-game-status strong {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.afterhours-game-status span {
  display: block;
  max-width: 540px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.afterhours-chooser {
  position: relative;
  width: 100%;
  min-height: 324px;
  border-radius: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  padding: 0;
  box-shadow: none;
}

.afterhours-chooser::before,
.afterhours-chooser::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.afterhours-chooser::before {
  top: -120px;
  right: -40px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(91, 197, 212, 0.26), transparent 70%);
}

.afterhours-chooser::after {
  bottom: -110px;
  left: -50px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 182, 77, 0.14), transparent 68%);
}

.afterhours-fireworks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.82;
}

.afterhours-fireworks span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.82);
  animation: afterhours-spark 2.3s ease-in-out infinite;
}

.afterhours-fireworks span:nth-child(1) {
  top: 14%;
  left: 12%;
  animation-delay: 0s;
}

.afterhours-fireworks span:nth-child(2) {
  top: 24%;
  left: 78%;
  animation-delay: 0.25s;
}

.afterhours-fireworks span:nth-child(3) {
  top: 72%;
  left: 18%;
  animation-delay: 0.5s;
}

.afterhours-fireworks span:nth-child(4) {
  top: 60%;
  left: 82%;
  animation-delay: 0.75s;
}

.afterhours-fireworks span:nth-child(5) {
  top: 38%;
  left: 50%;
  animation-delay: 1s;
}

.afterhours-chooser-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.afterhours-chooser-copy-wrap {
  max-width: 720px;
}

.afterhours-chooser-eyebrow {
  margin: 0 0 8px;
  color: rgba(212, 248, 252, 0.85);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.afterhours-chooser-title {
  margin: 0;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

.afterhours-chooser-copy {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.93rem;
  line-height: 1.55;
}

.afterhours-chooser-badge {
  position: relative;
  z-index: 1;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.afterhours-chooser-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.afterhours-chooser-badge-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.afterhours-choice-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.afterhours-choice-grid[data-deck="desktop"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.afterhours-choice-grid[data-deck="mobile"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.afterhours-choice {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 132px;
  padding: 14px 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.24) 0%,
    rgba(255, 255, 255, 0.09) 100%
  );
  text-align: left;
  color: #fff;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 36px rgba(4, 42, 48, 0.12);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.afterhours-choice::before,
.afterhours-choice::after {
  content: "";
  position: absolute;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.afterhours-choice::before {
  inset: 0;
  opacity: 0;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.04) 45%,
    rgba(91, 197, 212, 0.16) 100%
  );
}

.afterhours-choice::after {
  right: -34px;
  bottom: -54px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  opacity: 0.75;
  background: radial-gradient(circle, rgba(91, 197, 212, 0.28), transparent 68%);
}

.afterhours-choice > * {
  position: relative;
  z-index: 1;
}

.afterhours-choice-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.05);
}

.afterhours-choice-icon {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.afterhours-choice-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.afterhours-choice strong {
  display: block;
  margin-top: auto;
  font-size: 0.95rem;
  line-height: 1.35;
}

.afterhours-choice.is-live {
  cursor: pointer;
  border-color: rgba(162, 246, 255, 0.42);
  box-shadow: 0 18px 36px rgba(4, 42, 48, 0.18);
}

.afterhours-choice.is-live .afterhours-choice-badge {
  background: rgba(0, 0, 0, 0.18);
  color: #d6fbff;
  border: 1px solid rgba(214, 251, 255, 0.22);
}

.afterhours-choice.is-live:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.54);
  box-shadow: 0 24px 42px rgba(4, 42, 48, 0.22);
}

.afterhours-choice.is-live:hover::before,
.afterhours-choice.is-live.is-selected::before {
  opacity: 1;
}

.afterhours-choice.is-live:hover::after,
.afterhours-choice.is-live.is-selected::after {
  transform: scale(1.08);
}

.afterhours-choice.is-live:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
}

.afterhours-choice.is-selected {
  border-color: rgba(255, 255, 255, 0.74);
  box-shadow: 0 26px 46px rgba(4, 42, 48, 0.24);
}

.afterhours-choice.is-selected .afterhours-choice-icon-wrap {
  background: rgba(255, 255, 255, 0.18);
}

.afterhours-choice.is-locked {
  opacity: 0.74;
  cursor: not-allowed;
}

.afterhours-choice.is-locked::before {
  opacity: 0.42;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.02) 44%,
    rgba(0, 0, 0, 0.16) 100%
  );
}

.afterhours-choice.is-locked .afterhours-choice-badge {
  background: rgba(0, 0, 0, 0.2);
}

.afterhours-choice.is-locked .afterhours-choice-icon-wrap {
  background: rgba(255, 255, 255, 0.08);
}

.afterhours-game-frame-wrap {
  margin-top: 0;
}

.afterhours-game-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.afterhours-trex-screen {
  width: min(100%, 600px);
  margin: 0 auto;
}

.afterhours-game-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.afterhours-game-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff 0%, #d8fbff 100%);
  color: #0f5661;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(4, 42, 48, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.afterhours-game-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(4, 42, 48, 0.18);
}

.afterhours-game-action:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 2px;
}

.afterhours-game-action.is-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: none;
}

.afterhours-trex-wrap {
  width: 100%;
  margin: 0;
}

.afterhours-trex-root {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #f7f7f7;
  color: #2b2b2b;
  min-height: 250px;
  border: 1px solid rgba(4, 42, 48, 0.08);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.afterhours-trex-root .icon {
  user-select: none;
  display: inline-block;
}

.afterhours-trex-root .icon-offline {
  content: -webkit-image-set(
    url("/assets/games/t-rex-runner/default_100_percent/100-error-offline.png") 1x,
    url("/assets/games/t-rex-runner/default_200_percent/200-error-offline.png") 2x
  );
  width: 62px;
  height: 62px;
  margin-top: 20px;
  background-image: image-set(
    url("/assets/games/t-rex-runner/default_100_percent/100-error-offline.png") 1x,
    url("/assets/games/t-rex-runner/default_200_percent/200-error-offline.png") 2x
  );
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.afterhours-trex-root.offline .interstitial-wrapper {
  color: #2b2b2b;
  font-size: 1em;
  line-height: 1.55;
  margin: 0 auto;
  width: 100%;
  min-height: 250px;
  position: relative;
  text-align: center;
}

.afterhours-trex-root .runner-container {
  height: 150px;
  max-width: none;
  overflow: hidden;
  position: absolute;
  top: 35px;
  left: 0;
  width: 44px;
  transform-origin: top left;
}

.afterhours-trex-root .runner-canvas {
  height: 150px;
  max-width: none;
  opacity: 1;
  overflow: hidden;
  position: absolute;
  top: 0;
  z-index: 2;
}

.afterhours-trex-root .controller {
  background: rgba(247, 247, 247, 0.1);
  cursor: pointer;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}

.afterhours-trex-root #offline-resources {
  display: none;
}

.afterhours-trex-root.arcade-mode,
.afterhours-trex-root.arcade-mode .runner-container,
.afterhours-trex-root.arcade-mode .runner-canvas {
  image-rendering: pixelated;
  max-width: 100%;
  overflow: hidden;
}

.afterhours-trex-root.inverted {
  filter: invert(1);
}

@keyframes afterhours-spark {
  0% {
    transform: scale(1);
    opacity: 0.2;
  }

  35% {
    transform: scale(1.7);
    opacity: 1;
  }

  100% {
    transform: scale(0.2);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .afterhours-title {
    margin-top: 44px;
  }

  .afterhours-copy {
    font-size: 0.94rem;
  }

  .afterhours-shell {
    width: 100%;
  }

  .afterhours-host {
    min-height: 0;
  }

  .afterhours-fullscreen-close {
    top: max(14px, calc(env(safe-area-inset-top) + 8px));
    right: max(14px, calc(env(safe-area-inset-right) + 8px));
    width: 48px;
    height: 48px;
    font-size: 1.85rem;
  }

  .afterhours-fullscreen-status {
    padding: 22px;
  }

  .afterhours-chooser-stage,
  .afterhours-status-stage,
  .afterhours-status-card,
  .afterhours-game-status {
    min-height: 260px;
  }

  .afterhours-chooser {
    min-height: 260px;
    padding: 0;
    border-radius: 0;
  }

  .afterhours-chooser-header {
    display: block;
    margin-bottom: 14px;
  }

  .afterhours-chooser-badge {
    margin-top: 10px;
  }

  .afterhours-choice-grid {
    gap: 10px;
  }

  .afterhours-choice {
    min-height: 112px;
    padding: 12px;
    border-radius: 14px;
  }

  .afterhours-choice-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .afterhours-choice strong {
    font-size: 0.88rem;
  }

  .afterhours-trex-root {
    min-height: 220px;
    border-radius: 16px;
  }

  .afterhours-game-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .afterhours-game-action {
    width: 100%;
  }
}
