:root { --bg: #0f172a; --card: #111827; --text: #e2e8f0; --accent: #38bdf8; }
* { box-sizing: border-box; }
html { width: 100%; max-width: 100%; overflow-x: hidden; }
body { margin: 0; width: 100%; max-width: 100%; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, sans-serif; }
.page-wrapper { position: relative; }
img,
canvas,
iframe {
  max-width: 100%;
}
#fxCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
}
#powInlinePlayShell {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: #060b14;
}
#powInlinePlayShell[hidden] {
  display: none;
}
#game-shell {
  position: fixed;
  inset: 0;
  background: #060b14;
  overflow: hidden;
}
#powPlayOverlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at top, rgba(30,41,59,.72), rgba(2,6,23,.92));
  z-index: 100;
}
#powInlinePlayShell .card {
  max-width: 540px;
  width: 100%;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 16px;
  background: rgba(15,23,42,.92);
  padding: 24px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
#powInlinePlayShell .card h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 38px);
}
#powInlinePlayShell .card p {
  margin: 0 0 16px;
  line-height: 1.5;
  color: #cbd5e1;
}
#powInlinePlayShell .buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
#powInlinePlayShell .buttons a,
#powInlinePlayShell .buttons button {
  color: #0f172a;
  background: #38bdf8;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  font: inherit;
}
#powInlinePlayShell .buttons button[disabled] {
  opacity: .7;
  cursor: wait;
}
#powWasmLoadingScreen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #060b14;
  z-index: 50;
}
#powWasmLoadingScreen[hidden] {
  display: none;
}
#powWasmLoadingCanvas {
  width: min(600px, 90vw);
  height: auto;
}
.wasm-loading-text {
  color: #94a3b8;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.founders-countdown {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: .5rem .7rem;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid #1f2937;
  color: #e2e8f0;
  font-weight: 700;
  letter-spacing: .02em;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
header { text-align: center; margin-bottom: 1.5rem; }
.hero-header { position: relative; padding-top: 8px; }

.hero-shell {
  width: min(92vw, 1600px);
  margin: 0 auto;
  position: relative;
}

.hero-content {
  width: clamp(720px, 55vw, 1100px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

#lightningCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 1400px) {
  #lightningCanvas {
    display: none;
  }
}

.language-dropdown-container {
  position: relative;
}

.language-dropdown-container.floating-language-toggle {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1000;
}

.language-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(10, 15, 28, 0.92);
  border: 1px solid rgba(110, 155, 204, 0.35);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.28);
  color: #dbe8f6;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.language-dropdown-toggle:hover {
  background: rgba(20, 30, 50, 0.95);
}

.language-dropdown-toggle[aria-expanded="true"] {
  border-color: rgba(250, 204, 21, 0.5);
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.language-dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  max-height: 400px;
  background: rgba(10, 15, 28, 0.98);
  border: 1px solid rgba(110, 155, 204, 0.35);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 1001;
}

.language-search {
  padding: 12px;
  border-bottom: 1px solid rgba(110, 155, 204, 0.2);
}

.language-search input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(110, 155, 204, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #dbe8f6;
  font-size: 0.9rem;
  outline: none;
  box-sizing: border-box;
}

.language-search input::placeholder {
  color: rgba(219, 232, 246, 0.5);
}

.language-search input:focus {
  border-color: rgba(250, 204, 21, 0.5);
}

.language-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 4px 0;
}

.language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
  color: #dbe8f6;
}

.language-option:hover,
.language-option[aria-selected="true"] {
  background: rgba(110, 155, 204, 0.15);
}

.language-option.active {
  background: rgba(250, 204, 21, 0.15);
}

.language-option .lang-code {
  font-size: 0.75rem;
  color: rgba(219, 232, 246, 0.6);
  font-weight: 600;
}

.language-option .lang-name {
  font-size: 0.9rem;
}

.language-option .checkmark {
  color: #facc15;
  font-weight: bold;
  margin-left: 8px;
}

.language-list:empty::after {
  content: "No languages found";
  display: block;
  padding: 20px;
  text-align: center;
  color: rgba(219, 232, 246, 0.5);
  font-size: 0.9rem;
}
header h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.25rem); }
.brand-logo {
   margin-top: 22px;
   position: relative;
   padding-bottom: 20px;
}
.hero-cta-row {
  display: contents;
}

.hero-actions-grid {
  display: contents;
}
.logo-canvas {
  display: block;
  width: min(100%, 760px);
  height: auto;
  margin: 0 auto;
}

.discord-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 60px;
  background-image: url('POWAssets/discordbutton.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  padding: 0;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 25;
  margin-top: 150px;
  margin-left: -170px;
  pointer-events: auto;
  box-shadow: 0 8px 24px rgba(56, 34, 112, 0.28);
}

.discord-button:hover {
  transform: translate(-50%, -50%) translateY(-2px);
  animation: pulse 1.5s infinite;
}

.discord-button-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: 600;
  font-size: 12.8px;
  font-family: inherit;
  pointer-events: none;
  z-index: 1;
  background: transparent;
}

.steam-button {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   width: 180px;
   height: 60px;
   background-image: url('POWAssets/steambutton.webp');
   background-size: contain;
   background-repeat: no-repeat;
   background-position: center;
   border: none;
   border-radius: 8px;
   text-decoration: none;
   transition: all 0.3s ease;
   z-index: 24;
   margin-top: 150px;
   margin-left: 30px;
   pointer-events: auto;
}

.steam-button:hover {
  transform: translate(-50%, -50%) translateY(-2px);
  filter: brightness(1.1);
  animation: pulse 1.5s infinite;
}

.steam-button-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-left: 10px;
  color: white;
  font-weight: 600;
  font-size: 12.8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-family: inherit;
  pointer-events: none;
  white-space: nowrap;
}

.obigames-logo {
  position: absolute;
  top: 118px;
  left: 50%;
  transform: translateX(-50%);
  width: 71px;
  height: auto;
  z-index: 23;
  transition: all 0.3s ease;
  opacity: 0.8;
  margin-top: 0;
  margin-left: 0;
  pointer-events: auto;
}

.obigames-logo:hover {
  opacity: 1;
  animation: pulse 1.5s infinite;
}

.obigames-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.obigames-section {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(760px, calc(100vw - 32px));
  height: 196px;
  transform: translate(-50%, -50%);
  margin-top: 150px;
  z-index: 23;
  pointer-events: none;
}

.obi-discord {
  position: absolute;
  top: 0;
  left: 0;
  transform: none;
  width: 180px;
  height: 60px;
  background-image: url('POWAssets/discordbutton.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  padding: 0;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 25;
  pointer-events: auto;
  box-shadow: 0 8px 24px rgba(56, 34, 112, 0.28);
  margin-top: 0;
  margin-left: 0;
}

.obi-discord:hover {
  transform: none;
  animation: pulse 1.5s infinite;
  filter: brightness(1.06);
}

.obi-steam {
  position: absolute;
  top: 60px;
  left: 0;
  transform: none;
  width: 180px;
  height: 60px;
  background-image: url('POWAssets/steambutton.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 24;
  pointer-events: auto;
  margin-top: 0;
  margin-left: 0;
}

.obi-steam:hover {
  transform: none;
  filter: brightness(1.1);
  animation: pulse 1.5s infinite;
}

.launch-button-large {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 365px;
  height: 115px;
  padding: 0 41px;
  border: none;
  background-color: transparent;
  background-image: url('POWAssets/playbutton.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  color: #fffce8;
  font-weight: 800;
  font-size: 38px;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.65),
    0 1px 1px rgba(0, 0, 0, 0.85),
    1px 1px 1px rgba(0, 0, 0, 0.75),
    -1px 1px 1px rgba(0, 0, 0, 0.75);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s ease, filter 0.3s ease, transform 0.3s ease;
  z-index: 6;
  pointer-events: auto;
  margin-top: 106px;
}

.launch-button-large:hover {
  color: #fffef6;
  text-shadow:
    0 0 5px rgba(255, 255, 255, 0.98),
    0 0 14px rgba(255, 226, 96, 0.88),
    0 1px 1px rgba(0, 0, 0, 0.88),
    1px 1px 1px rgba(0, 0, 0, 0.8),
    -1px 1px 1px rgba(0, 0, 0, 0.8);
  filter: brightness(1.14) saturate(1.08);
  transform: translate(-50%, -50%) translateY(-2px);
}

.launch-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 118px;
  height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(110, 155, 204, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(9, 14, 24, 0.9), rgba(9, 14, 24, 0.76));
  color: white;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 6;
  pointer-events: auto;
}

.launch-button:hover {
  background: linear-gradient(180deg, rgba(9, 14, 24, 0.95), rgba(9, 14, 24, 0.85));
  border-color: rgba(110, 155, 204, 0.6);
}

@media (min-width: 721px) {
  #watchTrailer {
     margin-top: 280px;
     margin-left: -138px;
  }

  #buyNow {
     margin-top: 280px;
     margin-left: 0;
  }

  #gameUpdatesButton {
     margin-top: 280px;
     margin-left: 138px;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
  }
  50% {
    box-shadow: 0 6px 30px rgba(88, 101, 242, 0.6);
  }
  100% {
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
  }
}
.founders-tiers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .75rem;
}
.founders-cta {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.founders-cta #paymentStatus { color: #cbd5e1; font-weight: 600; text-align: center; }
.founders-tier {
  text-align: center;
  padding: 1rem .5rem;
  border-radius: 10px;
  border: 1px solid #1f2937;
  background: #0e131f;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.founders-tier.selected {
  border: 2px solid #facc15;
  background: rgba(250, 204, 21, 0.1);
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
}

.founders-tier .tier-badge {
  display: block;
  width: 105px;
  height: 107px;
  background-image: url('POWAssets/founders.webp');
  background-repeat: no-repeat;
  background-size: 640px 96px;
  margin: .25rem auto .35rem;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.45));
  pointer-events: none;
}

.foundationhand-badge {
  background-position: -416px 4px;
  width: 98px;
  height: 107px;
}

.stonemason-badge {
  background-position: -544px 5px;
  width: 97px;
  height: 101px;
}

.contractor-badge {
  background-position: -133px 5px;
  width: 101px;
  height: 99px;
}

.architect-badge {
  background-position: 6px 6px;
  width: 102px;
  height: 102px;
}

.engineer-badge {
  background-position: -273px 2px;
  width: 105px;
  height: 98px;
}

.founders-tier .tier-amount {
  display: block;
  margin-top: .5rem;
  color: #cbd5e1;
  font-weight: 700;
  text-align: left;
}
.founders-tier .tier-amount input {
  margin-top: .35rem;
  width: 100%;
}
.founders-tier .tier-title {
  font-weight: 900;
  letter-spacing: .02em;
}
.founders-tier .tier-price {
  margin-top: .25rem;
  color: #facc15;
  font-weight: 900;
}
.founders-tier .tier-remaining {
  margin-top: .35rem;
  color: #a3e635;
  font-weight: 800;
  font-size: .9rem;
}
.founders-tier .tier-benefits {
  margin: .65rem 0 0;
  padding-left: 1.1rem;
  text-align: left;
  font-weight: 600;
  color: #cbd5e1;
  line-height: 1.18;
  font-size: .68rem;
}
.founders-tier .tier-benefits li { margin: .22rem 0; }

.founders-tier.owned {
  cursor: not-allowed;
  border-color: #374151;
  background: #1a1d2d;
}

.founders-tier.owned .tier-badge {
  filter: grayscale(90%) brightness(0.84) drop-shadow(0 10px 18px rgba(0,0,0,.45));
  opacity: 0.78;
}

.founders-tier.owned .tier-price {
  color: #6b7280;
  opacity: 0.55;
}

.founders-tier.owned .tier-remaining {
  color: #6b7280;
  opacity: 0.55;
}

.founders-tier.owned .tier-benefits,
.founders-tier.owned .tier-benefits li {
  color: #94a3b8;
  opacity: 0.72;
}

.founders-tier.owned .tier-title,
.founders-tier.owned .tier-amount,
.founders-tier.owned .tier-amount span {
  color: #9ca3af;
  opacity: 0.65;
}

.founders-tier.owned .tier-amount input {
  color: #6b7280;
  border-color: #4b5563;
  background: #111827;
  opacity: 0.7;
}

.founders-tier.owned:hover {
  border-color: #374151;
  background: #1a1d2d;
}

.founders-tier:hover {
  border-color: rgba(250, 204, 21, 0.5);
  background: rgba(250, 204, 21, 0.05);
}

.tier-disabled-message {
  margin-top: 0.5rem;
  color: #f87171;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: rgba(248, 113, 113, 0.1);
  border-radius: 4px;
}

.founders-tiers.tier-loading {
  opacity: 0;
  pointer-events: none;
}

.founders-tier::after {
  content: attr(data-i18n-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  padding: 8px 12px;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: pre-line;
  border-radius: 6px;
  border: 1px solid #334155;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
  width: 200px;
  text-align: center;
  z-index: 100;
}

.founders-tier:hover::after {
  opacity: 1;
  visibility: visible;
}
button { appearance: none; border: 0; border-radius: 8px; background: var(--accent); color: #0f172a; cursor: pointer; font-weight: 600; padding: .65rem 1rem; }
button:hover { filter: brightness(1.05); }
input, textarea { width: 100%; border: 1px solid #334155; background: #0f172a; color: #e2e8f0; border-radius: 8px; padding: .65rem .75rem; margin-top: .35rem; margin-bottom: .9rem; }
input:focus, textarea:focus { outline: 2px solid #38bdf8; }
label { display: block; margin-top: .5rem; font-size: .95rem; }
footer { text-align: center; margin-top: 2rem; color: #9ca3af; }
.footer-link {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.85rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer-link:hover {
  opacity: 1;
}
.account-anchor {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 50;
  padding: 6px;
}

.auth-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 212px;
  min-height: 58px;
  justify-content: flex-start;
  border-radius: 18px;
  padding: 10px 14px 10px 10px;
  background: rgba(10, 15, 28, 0.92);
  color: #eef5ff;
  border: 1px solid rgba(110, 155, 204, 0.35);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  touch-action: manipulation;
}

.auth-toggle:hover {
  filter: none;
  background: rgba(16, 23, 39, 0.98);
}

.auth-toggle-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  flex: 0 0 auto;
}

.auth-toggle-avatar[data-profile-key="human"],
.auth-toggle-avatar[data-profile-key="guidinglight"],
.auth-toggle-avatar[data-profile-key="scaleborn"] {
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,0.18), rgba(16,23,39,0.94) 72%);
}

.auth-toggle-avatar-image {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  display: block;
}

.auth-toggle-avatar[data-profile-key="guidinglight"] .auth-toggle-avatar-image {
  transform: scale(1.16);
}

.auth-toggle-avatar-rank {
  position: relative;
  overflow: hidden;
}

.auth-toggle-avatar-rank::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 120px;
  margin: -60px 0 0 -50px;
  background-image: inherit;
  background-size: inherit;
  background-position: inherit;
  background-repeat: no-repeat;
  transform: scale(0.383);
  transform-origin: center;
}

.auth-toggle-label {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.auth-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-height: min(80vh, 600px);
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(10, 14, 24, 0.98);
  box-shadow: 0 30px 54px rgba(0, 0, 0, 0.35);
  text-align: left;
  z-index: 100;
  padding: 16px;
}

.auth-dropdown-section + .auth-dropdown-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.auth-dropdown-kicker,
.modal-kicker {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}

.auth-dropdown-title {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.profile-steam-key-button-wrap {
  display: inline-flex;
}

.profile-steam-key-button {
  appearance: none;
  border: 1px solid rgba(250, 204, 21, 0.32);
  background: rgba(250, 204, 21, 0.12);
  color: #fde68a;
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.profile-steam-key-button:hover:not(:disabled) {
  background: rgba(250, 204, 21, 0.18);
  filter: none;
}

.profile-steam-key-button.is-disabled,
.profile-steam-key-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.profile-name-change-button {
  font-size: 13px;
  padding: 4px 10px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.profile-name-change-button:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.5);
}

.profile-name-change-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.profile-name-edit-input {
  font-size: 18px;
  font-weight: 800;
  padding: 4px 8px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 6px;
  color: #e2e8f0;
  width: 200px;
}

.auth-dropdown-subtitle {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.8;
}

.auth-provider-list,
.profile-option-grid {
  display: grid;
  gap: 10px;
}

.auth-provider-list {
  margin-top: 14px;
}

.auth-provider,
.profile-option {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}

.auth-provider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  padding: 12px 14px;
}

.auth-provider-copy strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.auth-provider-copy span {
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.8;
}

.auth-provider-mark {
  font-size: 18px;
  opacity: 0.75;
}

.profile-status-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.profile-status-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(110, 155, 204, 0.28);
  background: rgba(56, 189, 248, 0.1);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.profile-status-chip-inline {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  border: 1px solid rgba(110, 155, 204, 0.28);
  background: rgba(56, 189, 248, 0.1);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  margin-left: 8px;
}

.profile-linked-accounts-inline {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.profile-linked-accounts-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.profile-linked-accounts-row .profile-linked-accounts-inline {
  margin-top: 0;
}

.profile-linked-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.profile-linked-badge--linked {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.profile-linked-badge--unlinked {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.profile-linked-badge--unlinked:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
}

.web-only-purchase {
  margin-top: 20px;
  padding: 24px;
  border-radius: 12px;
  background: rgba(10, 14, 24, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.web-only-purchase-content {
  text-align: center;
}

.web-only-purchase-content h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 12px 0;
}

.web-only-purchase-content p {
  font-size: 14px;
  opacity: 0.8;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.web-only-price {
  font-size: 28px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 16px;
}

.web-only-buy-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 10px 20px;
  border: 1px solid rgba(110, 155, 204, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(9, 14, 24, 0.9), rgba(9, 14, 24, 0.76));
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.web-only-buy-button:hover {
  background: linear-gradient(180deg, rgba(9, 14, 24, 0.95), rgba(9, 14, 24, 0.85));
  border-color: rgba(110, 155, 204, 0.6);
}

.profile-dropdown-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.profile-dropdown-actions--inline {
  margin-top: 0;
  margin-left: auto;
  justify-content: flex-end;
}

.profile-launch-button {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  color: white;
  border: 1px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.profile-launch-button:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  filter: none;
}

.ghost-button {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: inherit;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
}

.ghost-button:hover {
  background: rgba(255,255,255,0.14);
  filter: none;
}

.alert-ok-button {
  margin-top: 16px;
}

.founder-name-loading,
.founder-name-error {
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.founder-name-error {
  color: #f87171;
}

.founder-name-status {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.founder-name-display {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.founder-name-status-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.founder-name-status--pending .founder-name-status-text {
  color: #fbbf24;
}

.founder-name-status--approved .founder-name-status-text {
  color: #4ade80;
}

.founder-name-status--rejected .founder-name-status-text {
  color: #f87171;
}

.founder-name-reason {
  margin-top: 6px;
  padding: 6px 8px;
  background: rgba(248, 113, 113, 0.1);
  border-radius: 6px;
  font-size: 12px;
  color: #f87171;
}

.founder-name-cooldown {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.founder-name-form {
  padding: 8px 12px;
}

.founder-name-form input {
  width: 100%;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: white;
  font: inherit;
  margin-bottom: 8px;
}

.founder-name-form input:focus {
  outline: none;
  border-color: #38bdf8;
}

.founder-name-form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.admin-panel-card {
  max-width: 600px;
  width: 90vw;
  height: min(80vh, 760px);
  max-height: calc(100vh - 32px);
  margin: min(10vh, 16px) auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-panel-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 0 16px;
}

#adminPanelContent {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 16px;
}

.admin-panel-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-panel-tab:hover {
  background: rgba(255, 255, 255, 0.1);
}

.admin-panel-tab.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
}

@media (max-width: 720px), (max-height: 520px) {
  .admin-panel-card {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    max-height: calc(100vh - 16px);
    margin: 8px auto;
    padding: 12px;
  }

  .admin-panel-card .modal-kicker {
    margin-bottom: 2px;
  }

  .admin-panel-card h2 {
    margin: 0 44px 8px 0;
    font-size: 20px;
  }

  .admin-panel-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
    padding: 0;
  }

  .admin-panel-tab {
    min-width: 0;
    padding: 7px 6px;
    font-size: 11px;
    line-height: 1.15;
  }

  #adminPanelContent {
    padding: 0 2px 10px;
  }
}

.admin-panel-loading,
.admin-panel-error,
.admin-panel-empty {
  padding: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.admin-panel-error {
  color: #f87171;
}

.admin-panel-submissions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.admin-panel-submission {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-panel-submission-info {
  flex: 1;
}

.admin-panel-submission-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.admin-panel-submission-display {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 4px;
}

.admin-panel-submission-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.admin-panel-submission-actions {
  display: flex;
  gap: 8px;
}

.admin-panel-approve {
  background: rgba(74, 222, 128, 0.2);
  border-color: rgba(74, 222, 128, 0.5);
  color: #4ade80;
  padding: 6px 12px;
  font-size: 12px;
}

.admin-panel-approve:hover {
  background: rgba(74, 222, 128, 0.3);
}

.admin-panel-reject {
  background: rgba(248, 113, 113, 0.2);
  border-color: rgba(248, 113, 113, 0.5);
  color: #f87171;
  padding: 6px 12px;
  font-size: 12px;
}

.admin-panel-reject:hover {
  background: rgba(248, 113, 113, 0.3);
}

.admin-panel-updates {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.admin-panel-update {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-panel-update-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.admin-panel-update-version {
  font-weight: 600;
  font-size: 14px;
}

.admin-panel-update-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.admin-panel-update-changes {
  margin-bottom: 8px;
}

.admin-panel-update-changes ul {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.admin-panel-update-actions {
  display: flex;
  gap: 8px;
}

.admin-panel-edit {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  padding: 6px 12px;
  font-size: 12px;
}

.admin-panel-edit:hover {
  background: rgba(56, 189, 248, 0.3);
}

.admin-panel-delete {
  background: rgba(248, 113, 113, 0.2);
  border-color: rgba(248, 113, 113, 0.5);
  color: #f87171;
  padding: 6px 12px;
  font-size: 12px;
}

.admin-panel-delete:hover {
  background: rgba(248, 113, 113, 0.3);
}

.admin-panel-add-button {
  margin: 0 16px 16px;
  background: rgba(74, 222, 128, 0.2);
  border-color: rgba(74, 222, 128, 0.5);
  color: #4ade80;
  padding: 8px 16px;
  font-size: 13px;
}

.admin-panel-add-button:hover {
  background: rgba(74, 222, 128, 0.3);
}

.admin-panel-form {
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin: 0 16px 16px;
}

.admin-panel-form label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.admin-panel-form input,
.admin-panel-form textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: white;
  font-size: 13px;
}

.admin-panel-form textarea {
  min-height: 100px;
  resize: vertical;
}

.admin-panel-form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.admin-panel-server {
  padding: 12px 0;
}

.admin-panel-server-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-panel-server-status.is-live {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(22, 163, 74, 0.12);
}

.admin-panel-server-status.is-offline {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(185, 28, 28, 0.14);
}

.admin-panel-server-status-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-panel-server-status-value {
  margin-top: 3px;
  font-size: 18px;
  font-weight: 800;
  color: #f8fafc;
}

.admin-panel-server-status-detail {
  max-width: 60%;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
  overflow-wrap: anywhere;
}

.admin-panel-server-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .admin-panel-server-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.admin-panel-server-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.admin-panel-server-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.admin-panel-server-value {
  font-size: 22px;
  font-weight: 800;
  color: #f8fafc;
}

.admin-panel-server-section {
  margin-bottom: 20px;
}

.admin-panel-server-section h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.admin-panel-server-metrics {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
}

.admin-panel-server-metrics-secondary {
  margin-top: 10px;
}

.admin-panel-server-metric {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.admin-panel-server-metric span:last-child {
  white-space: nowrap;
}

.admin-panel-server-metric:last-child {
  border-bottom: none;
}

.admin-panel-server-empty {
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.52);
}

.admin-panel-server-timestamp {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-align: right;
  margin-top: 8px;
}

@media (max-width: 560px) {
  .admin-panel-server-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-panel-server-status-detail {
    max-width: none;
    text-align: left;
  }
}

.profile-option-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.profile-option-wrapper {
  position: relative;
}

.profile-option {
  appearance: none;
  padding: 8px;
  background: rgba(255,255,255,0.04);
  color: inherit;
  text-align: center;
  width: 100%;
  height: 100%;
}

.profile-option.active {
  border-color: rgba(250, 204, 21, 0.55);
  background: rgba(250, 204, 21, 0.11);
}

.profile-option img,
.profile-option-rank,
.profile-portrait-rank {
  width: 100%;
  max-width: 78px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  margin: 0 auto 8px;
}

.profile-option-rank,
.profile-portrait-rank {
  position: relative;
  overflow: hidden;
  background-image: none !important;
}

.profile-option-rank::before,
.profile-portrait-rank::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 120px;
  margin: -60px 0 0 -50px;
  background-image: var(--profile-rank-sprite);
  background-size: var(--profile-rank-sprite-size);
  background-position: var(--profile-rank-sprite-position);
  background-repeat: no-repeat;
  transform: scale(0.65);
  transform-origin: center;
}

.profile-option span {
  display: block;
  font-size: 12px;
  line-height: 1.25;
}

.profile-option.disabled {
  opacity: 0.5;
  cursor: pointer;
}

.profile-option.disabled:hover {
  opacity: 0.7;
}

.profile-option-get-it-button {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 4px 8px;
  background: rgba(56, 189, 248, 0.95);
  color: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.profile-option-get-it-button:hover {
  background: rgba(56, 189, 248, 1);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
}

.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  cursor: help;
}

.account-status {
  min-height: 20px;
  font-size: 14px;
  opacity: 0.9;
  width: 100%;
  text-align: center;
}

.hero-launch-status {
   position: absolute;
   top: calc(50% + 390px);
   left: 50%;
   transform: translateX(-50%);
   width: min(720px, calc(100% - 32px));
   z-index: 6;
}

.trailer-section {
  margin-top: -6px;
}

.trailer-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  margin-bottom: 12px;
}

.trailer-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  width: 100%;
  text-align: center;
}

.game-updates-content h2 {
  text-align: center;
}

.trailer-frame-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.trailer-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 7px;
  overflow: hidden;
}

.tier-disabled-message {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
}

.modal-shell:not([hidden]) {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 18, 0.76);
}

.modal-card {
  position: relative;
  width: min(540px, calc(100vw - 32px));
  margin: 10vh auto;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(115, 153, 201, 0.3);
  background: rgba(11, 16, 27, 0.98);
  box-shadow: 0 30px 60px rgba(0,0,0,0.42);
  overflow: visible;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: #eff6ff;
}

.signup-form {
  margin-top: 16px;
}

.signup-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
  font-size: 14px;
  color: #d5deec;
}

.signup-checkbox input {
  width: auto;
  margin: 3px 0 0;
}

.signup-checkbox a {
  color: #38bdf8;
  text-decoration: none;
}

.signup-checkbox a:hover {
  text-decoration: underline;
}

.auth-modal-card {
  width: min(450px, calc(100vw - 32px));
  text-align: center;
  padding: 40px 32px;
  max-height: none;
  overflow: visible;
}

.launch-mode-card {
  width: min(460px, calc(100vw - 32px));
  text-align: center;
  padding: 36px 28px 28px;
}

.launch-mode-copy {
  margin: 12px 0 0;
  color: #d5deec;
  line-height: 1.5;
}

.launch-mode-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.launch-mode-actions button {
  min-width: 150px;
}

.auth-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #edf2fa;
  margin: 0 0 32px 0;
  line-height: 1.4;
  word-wrap: break-word;
}

.auth-modal-provider-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.auth-modal-provider-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #eff6ff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: background 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  box-sizing: border-box;
}

.auth-modal-provider-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.auth-modal-provider-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.auth-modal-google-button {
  background: rgba(66, 133, 244, 0.15);
  border-color: rgba(66, 133, 244, 0.3);
}

.auth-modal-google-button:hover {
  background: rgba(66, 133, 244, 0.2);
}

.auth-modal-discord-button {
  background: rgba(88, 101, 242, 0.15);
  border-color: rgba(88, 101, 242, 0.3);
}

.auth-modal-discord-button:hover {
  background: rgba(88, 101, 242, 0.2);
}

.signup-form-status {
  min-height: 20px;
  margin: 10px 0 14px;
  font-size: 14px;
}

@media (max-width: 720px) {
  :root {
    --mobile-main-action-y: clamp(52px, 10svh, 82px);
  }

  html,
  body {
    min-width: 0;
    overscroll-behavior-x: none;
  }

  .hero-shell {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .hero-content {
    width: 100%;
    max-width: 100vw;
    margin: 0;
  }

  .hero-header {
    min-height: 0;
    width: 100%;
    padding-top: calc(64px + env(safe-area-inset-top));
    padding-bottom: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .container {
    padding-top: calc(78px + env(safe-area-inset-top));
  }

  .brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .logo-canvas {
    width: min(100%, 560px);
    margin-bottom: 12px;
  }

  .hero-cta-row {
    display: contents;
  }

  .hero-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    align-items: start;
    gap: 8px;
    width: min(296px, calc(100vw - 32px));
    margin: 12px auto 0;
  }

  .account-anchor {
    left: 10px;
    right: 10px;
    top: max(10px, env(safe-area-inset-top));
    display: flex;
    justify-content: flex-end;
    padding: 8px;
  }

  .auth-toggle {
    min-width: 0;
    min-height: 56px;
    max-width: calc(100vw - 20px);
    padding: 8px 12px 8px 8px;
    border-radius: 14px;
    gap: 8px;
  }

  .auth-toggle-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .auth-toggle-label {
    max-width: calc(100vw - 96px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
  }

  .auth-dropdown {
    width: min(360px, calc(100vw - 24px));
    right: max(12px, env(safe-area-inset-right));
  }

  .profile-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .founders-tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-launch-status {
    position: static;
    width: calc(100vw - 24px);
  }

  .launch-button-large {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    font-size: clamp(20px, 6vw, 24px);
    width: min(248px, calc(100vw - 48px));
    height: auto;
    aspect-ratio: 365 / 115;
    padding: 0 20px;
    margin: -140px auto 0;
    z-index: 8;
  }

  .launch-button-large:hover {
    transform: translateY(-2px);
  }

  .launch-button {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 42px;
    padding: 0 12px;
    font-size: clamp(11px, 3.4vw, 13px);
    line-height: 1;
    margin: 0 auto;
    text-align: center;
  }

  .hero-actions-grid .launch-button,
  .hero-actions-grid .obi-discord,
  .hero-actions-grid .obi-steam {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    justify-self: stretch;
  }

  .obigames-section {
    position: static;
    display: contents;
    width: auto;
    height: auto;
    margin: 0;
    z-index: 23;
  }

  .obi-discord,
  .obi-steam {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    flex: 0 0 auto;
    width: min(180px, 100%);
    max-width: 100%;
    height: 50px;
    margin: 0;
    display: block;
  }

  #watchTrailer {
    order: 1;
  }

  #buyNow {
    order: 2;
  }

  #gameUpdatesButton {
    order: 3;
  }

  .obigames-logo {
    order: 4;
  }

  .obi-discord {
    order: 5;
  }

  .obi-steam {
    order: 6;
  }

  .obigames-logo {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    flex: 0 0 auto;
    width: 72px;
    margin: 0;
    justify-self: center;
    align-self: center;
  }

  .discord-button-text,
  .steam-button-text {
    font-size: 11px;
  }

  .founders-countdown {
    top: auto;
    bottom: 8px;
    width: min(320px, calc(100vw - 24px));
    font-size: 12px;
    padding: 7px 9px;
  }

  .floating-language-toggle {
    top: max(10px, env(safe-area-inset-top));
    right: auto;
    left: max(10px, env(safe-area-inset-left));
  }

  .language-dropdown {
    left: max(10px, env(safe-area-inset-left));
    right: auto;
    width: min(280px, calc(100vw - 20px));
    max-height: min(400px, calc(100svh - 72px));
  }
}

@media (max-width: 400px) {
  .hero-header {
    padding-top: calc(52px + env(safe-area-inset-top));
    padding-bottom: 6px;
  }

  .logo-canvas {
    width: min(100%, 420px);
    margin-bottom: 8px;
  }

  .hero-cta-row {
    display: contents;
  }

  .hero-actions-grid {
    grid-template-columns: 1fr;
    width: min(260px, calc(100vw - 20px));
    margin: 12px auto 0;
  }

  .launch-button-large {
    width: min(260px, calc(100vw - 24px));
    margin: -112px auto 0;
  }

  .launch-button-large:hover {
    transform: translateY(-2px);
  }

  .profile-option-grid,
  .founders-tiers {
    grid-template-columns: 1fr;
  }

  .auth-dropdown {
    width: calc(100vw - 24px);
    right: 12px;
  }
}

.game-updates-panel {
  padding: 2rem;
}

.game-updates-content h2 {
  margin: 0 0 1.5rem 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #e2e8f0;
}

.game-updates-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.game-update-item {
  background: #1a1f2e;
  border: 1px solid #2d3748;
  border-radius: 8px;
  padding: 1.25rem;
}

.game-update-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.game-update-version {
  font-size: 1.25rem;
  font-weight: 700;
  color: #38bdf8;
}

.game-update-date {
  font-size: 0.875rem;
  color: #94a3b8;
}

.game-update-changes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.game-update-changes li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #cbd5e1;
  line-height: 1.5;
}

.game-update-changes li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #38bdf8;
  font-weight: 700;
}

.game-updates-empty {
  text-align: center;
  color: #94a3b8;
  padding: 2rem;
}

.landscape-overlay {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 9999;
  background: rgba(10, 15, 28, 0.96);
  color: #eef5ff;
  text-align: center;
  padding: 24px;
}

.landscape-overlay.visible {
  display: flex;
}

.landscape-overlay-icon {
  width: 64px;
  height: 64px;
  border: 3px solid rgba(110, 155, 204, 0.6);
  border-radius: 10px;
  position: relative;
  animation: landscape-rotate 1.5s ease-in-out infinite;
}

.landscape-overlay-icon::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 2px solid rgba(110, 155, 204, 0.9);
  border-radius: 4px;
}

.landscape-overlay-text {
  font-size: 18px;
  font-weight: 700;
  max-width: 320px;
  line-height: 1.35;
}

@keyframes landscape-rotate {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(90deg); }
}
