html,
body {
  font-family: "Golos Text", "Outfit", sans-serif;
  margin: 0;
  position: relative;
  z-index: 99;
  scroll-behavior: smooth;
  color: var(--text-primary);
  background: var(--bg-page);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

.uppercase {
  text-transform: uppercase;
}

.capitalize {
  text-transform: capitalize;
}
footer {
  margin-top: auto !important;
  position: static;
}

.back-to-top {
  transition: all 0.3s ease;
}

.back-to-top.back-to-top-active {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-5px);
}

body::-webkit-scrollbar {
  display: none;
}

#copy-message {
  position: fixed;
  z-index: 999;
  bottom: 30%;
  width: 72px;
  height: 30px;
  left: 50%;
  transform: translate(-50%, 0);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-primary);
  font-size: 12px;
  text-align: center;
  line-height: 30px;
  border-radius: 20px;
  box-shadow: 0 0 16px rgba(255, 107, 53, 0.2);
}

::-webkit-scrollbar {
  background: var(--bg-scroll);
  border-radius: 9999px;
  height: 6px;
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 9999px;
}

.nav-links.nav-active {
  transform: translateX(0);
}


#play-game:not(.is-playing) .play-cover {
  z-index: 10;
}

#play-game:not(.is-playing) #gameIframe {
  z-index: 0;
  visibility: hidden;
  pointer-events: none;
}

#play-game.is-playing .top__shading,
#play-game.is-playing .play-cover {
  display: none;
}

#play-game.is-playing #gameIframe {
  z-index: 1;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  touch-action: manipulation;
}

#play-player:fullscreen,
#play-player:-webkit-full-screen {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #020617;
}

#play-player:fullscreen #play-game,
#play-player:-webkit-full-screen #play-game {
  flex: 1 1 0% !important;
  width: 100% !important;
  height: 0 !important;
  max-height: none !important;
  min-height: 0 !important;
  aspect-ratio: unset !important;
}

#play-player:fullscreen .play-bar,
#play-player:-webkit-full-screen .play-bar {
  flex: 0 0 auto !important;
  width: 100% !important;
  margin-top: auto;
  display: flex !important;
  z-index: 20;
  position: relative;
}

.pt {
  /* padding: 20px; */
}

.pt h1 {
  line-height: 1.5 !important;
  font-size: 22px !important;
  padding: 0 0 10px 0;
  margin: 0 0 10px 0;
  font-weight: 800;
}

.pt h2 {
  position: relative;
  padding-left: 16px;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
}

.pt h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 10px;
  width: 4px;
  background: var(--color-btn-primary-bg);
  border-radius: 2px;
}

.pt h3,
.pt h4 {
  line-height: 1.5 !important;
  font-size: 16px !important;
  padding: 0 0 10px 0;
  margin: 0 0 10px 0;
}

.pt p,
.pt li {
  line-height: 1.5 !important;
  font-size: 14px !important;
  padding: 0 0 10px 0;
}

.pt p {
  margin: 0 0 15px;
}

.pt img {
  width: 100%;
}

.pt a {
  word-break: break-all;
  color: #007bff;
}

.pt ul {
  padding-left: 20px
}

table {
  margin-bottom: 10px
}

table,
th,
td {
  border: 1px solid;
  border-collapse: collapse;
}

th,
td {
  padding: 8px;
  text-align: center;
}

/* ===== Mobile menu (drawer) ===== */
.burger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface-muted);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.burger:hover {
  background: var(--color-btn-ghost-hover);
  border-color: var(--color-border-default);
}

.burger-line {
  display: block;
  width: 1.125rem;
  height: 2px;
  border-radius: 9999px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.burger.burger-active .burger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger.burger-active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger.burger-active .burger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
  background: var(--color-modal-backdrop);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.nav-links.nav-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-menu-panel {
  position: relative;
  width: min(20rem, 82vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--color-surface-bg);
  border-left: 1px solid var(--color-border-subtle);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.nav-links.nav-active .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.mobile-menu-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface-muted);
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-menu-close:hover {
  background: var(--color-btn-ghost-hover);
  color: var(--color-text-primary);
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
}

.mobile-menu-link {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text-secondary);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-menu-link:hover {
  background: var(--color-btn-ghost-bg);
  color: var(--color-brand-primary);
}

.mobile-menu-link.is-active {
  background: var(--color-brand-primary-light);
  color: var(--color-brand-primary);
}

@media (min-width: 1024px) {
  .burger {
    display: none;
  }

  .nav-links {
    display: none;
  }
}

