:root { --bg: #0f172a; --card: #111827; --text: #e2e8f0; --accent: #38bdf8; }
* { box-sizing: border-box; }
html { width: 100%; max-width: 100%; overflow-x: hidden; background: #060b14; color-scheme: dark; }
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; }
html.pow-wasm-active,
html.pow-wasm-active body {
  width: 100vw !important;
  width: var(--pow-game-viewport-width, 100dvw) !important;
  height: 100vh !important;
  height: var(--pow-game-viewport-height, 100dvh) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #060b14 !important;
}
html.pow-wasm-active body {
  position: fixed;
  inset: 0 auto auto 0;
  touch-action: none;
}
.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;
}
html.pow-low-performance #fxCanvas,
html.pow-low-performance #lightningCanvas {
  display: none;
}

html.pow-wasm-active #fxCanvas,
html.pow-wasm-active #lightningCanvas {
  display: none;
}

/* Low Performance Mode keeps the site fully usable but removes cosmetic
   repaint work: canvas effects, pulsing controls, guide loops, and fades. */
html.pow-low-performance *,
html.pow-low-performance *::before,
html.pow-low-performance *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

.offline-install-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .76);
}

.offline-install-modal[hidden] { display: none; }

.offline-install-card {
  position: relative;
  width: min(100%, 460px);
  padding: 30px;
  border: 1px solid rgba(250, 204, 21, .75);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(18, 23, 33, .99), rgba(4, 7, 12, .99));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .72);
  color: #eef4fb;
  text-align: center;
}

.offline-install-card h2 { margin: 0 0 14px; color: #fde047; }
.offline-install-mark { margin-bottom: 10px; color: #fde047; font-size: 34px; line-height: 1; }
.offline-install-instructions { color: #dbe8f6; line-height: 1.5; }
.offline-install-instructions p { margin: 12px 0; }
.offline-install-note { color: #aab8ca; font-size: .9em; }
.offline-install-close {
  position: absolute;
  top: 9px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #fde047;
  font-size: 28px;
  cursor: pointer;
}
#powInlinePlayShell {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  width: var(--pow-game-viewport-width, 100dvw);
  height: 100vh;
  height: var(--pow-game-viewport-height, 100dvh);
  min-width: 0;
  min-height: 0;
  z-index: 1200;
  background: #060b14;
  border: 0;
  outline: 0;
  box-shadow: none;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}
#powInlinePlayShell[hidden] {
  display: none;
}
#game-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  background: #060b14;
  overflow: hidden;
  border: 0;
  outline: 0;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}
#game-shell canvas.pow-ebiten-canvas,
#game-shell canvas.pow-ebiten-canvas:focus,
#game-shell canvas.pow-ebiten-canvas:focus-visible {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  max-width: none;
  max-height: none;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}
#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-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-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: 124px;
  left: 54px;
  transform: none;
  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;
}

@font-face {
  font-family: "POW Display";
  src: url("POWAssets/quick-guide/fonts/Lifecraft.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "POW Body";
  src: url("POWAssets/quick-guide/fonts/UIBody.ttf") format("truetype");
  font-display: swap;
}

.how-to-play-button {
  position: absolute;
  top: 124px;
  left: 50%;
  width: 142px;
  min-height: 42px;
  margin-left: -71px;
  padding: 8px 14px;
  border: 1px solid rgba(214, 179, 112, .74);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(75, 62, 43, .98), rgba(30, 27, 23, .98)),
    #2c2822;
  color: #f4e8c8;
  box-shadow: inset 0 0 0 2px rgba(18, 14, 10, .62), 0 8px 20px rgba(0, 0, 0, .36);
  font: 18px/1 "POW Display", "POW Body", serif;
  letter-spacing: .035em;
  text-shadow: 0 2px 2px #000;
  cursor: pointer;
  pointer-events: auto;
  z-index: 24;
  transition: filter .2s ease, transform .2s ease, border-color .2s ease;
}

.how-to-play-button:hover,
.how-to-play-button:focus-visible {
  border-color: #f3d48f;
  filter: brightness(1.15);
  transform: translateY(-2px);
  outline: none;
}

body.how-to-play-open {
  overflow: hidden;
}

.how-to-play-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}

.how-to-play-modal-shell[hidden] {
  display: none;
}

.how-to-play-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 8, .9);
  backdrop-filter: blur(8px);
}

.how-to-play-window {
  position: relative;
  width: min(1440px, 96vw);
  height: min(860px, 94svh);
  min-height: 560px;
  overflow: hidden;
  border: 2px solid rgba(184, 151, 94, .78);
  border-radius: 5px;
  background:
    radial-gradient(circle at 50% -10%, rgba(74, 95, 126, .2), transparent 52%),
    linear-gradient(140deg, rgba(17, 23, 33, .99), rgba(5, 8, 13, .995));
  box-shadow: inset 0 0 0 3px rgba(5, 8, 13, .9), inset 0 0 80px rgba(0, 0, 0, .72), 0 32px 90px rgba(0, 0, 0, .78);
  color: #dce3ec;
  font-family: "POW Body", Inter, system-ui, sans-serif;
  animation: how-to-play-enter .32s cubic-bezier(.2, .75, .2, 1) both;
}

@keyframes how-to-play-enter {
  from { opacity: 0; transform: translateY(16px) scale(.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.how-to-play-rain {
  position: absolute;
  inset: 0;
  opacity: .16;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(106deg, transparent 0 46px, rgba(154, 193, 230, .42) 47px 48px, transparent 49px 88px),
    repeating-linear-gradient(106deg, transparent 0 91px, rgba(110, 151, 191, .28) 92px 93px, transparent 94px 151px);
  background-size: 180px 260px, 240px 340px;
  animation: how-to-play-rain 2.2s linear infinite;
}

@keyframes how-to-play-rain {
  to { background-position: -90px 260px, -60px 340px; }
}

.how-to-play-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(190, 158, 103, .65);
  border-radius: 3px;
  background: rgba(32, 27, 22, .95);
  color: #f4e8c8;
  font: 20px/1 "POW Body", sans-serif;
  cursor: pointer;
}

.how-to-play-close:hover,
.how-to-play-close:focus-visible {
  background: rgba(83, 55, 37, .96);
  outline: 2px solid rgba(248, 220, 154, .45);
}

.how-to-play-header {
  position: relative;
  z-index: 2;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 68px 10px 24px;
  border-bottom: 1px solid rgba(175, 146, 96, .42);
  background: linear-gradient(180deg, rgba(31, 38, 50, .9), rgba(12, 16, 23, .78));
}

.how-to-play-kicker {
  margin-bottom: 2px;
  color: #bfa976;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.how-to-play-header h2 {
  margin: 0;
  color: #f4e8c8;
  font: clamp(24px, 2.4vw, 38px)/1 "POW Display", "POW Body", serif;
  font-weight: 400;
  letter-spacing: .04em;
  text-shadow: 0 3px 3px #000;
}

.how-to-play-device-toggle,
.guide-faction-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(151, 132, 101, .45);
  border-radius: 4px;
  background: rgba(5, 8, 13, .76);
}

.how-to-play-device-toggle button,
.guide-faction-toggle button {
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #aeb8c6;
  font: 14px/1.15 "POW Body", sans-serif;
  cursor: pointer;
}

.how-to-play-device-toggle button {
  min-width: 108px;
  padding: 10px 16px;
}

.how-to-play-device-toggle button.active,
.guide-faction-toggle button.active {
  border-color: rgba(226, 195, 130, .7);
  background: linear-gradient(180deg, rgba(92, 75, 49, .94), rgba(49, 42, 32, .96));
  color: #fff0c6;
  box-shadow: inset 0 0 12px rgba(239, 201, 124, .08);
}

.how-to-play-guide {
  position: relative;
  z-index: 2;
  height: calc(100% - 78px);
  display: grid;
  grid-template-columns: clamp(176px, 15.5vw, 226px) minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.guide-section-nav,
.guide-section-content,
.guide-content-panel {
  min-width: 0;
  min-height: 0;
}

.guide-section-nav {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.how-to-play-guide[data-device="mobile"] .guide-section-nav {
  grid-template-rows: repeat(4, minmax(0, 1fr));
}

.how-to-play-guide[data-controller="true"] .guide-section-nav,
.how-to-play-guide[data-controller="true"][data-device="mobile"] .guide-section-nav {
  grid-template-rows: repeat(5, minmax(0, 1fr));
}

.guide-section-button {
  min-height: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  overflow: hidden;
  border: 1px solid rgba(107, 130, 158, .42);
  border-radius: 3px;
  background: linear-gradient(145deg, rgba(26, 34, 47, .92), rgba(11, 16, 24, .94));
  color: #dce4ee;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, filter .15s ease, background .15s ease;
}

.guide-section-button:hover,
.guide-section-button:focus-visible {
  border-color: rgba(171, 197, 225, .7);
  filter: brightness(1.12);
  outline: none;
}

.guide-section-button.active {
  border-color: rgba(225, 190, 119, .86);
  background: linear-gradient(145deg, rgba(79, 65, 43, .92), rgba(26, 27, 31, .96));
  box-shadow: inset 3px 0 #d8b773, inset 0 0 20px rgba(218, 182, 111, .08);
}

.guide-nav-icon {
  width: 52px;
  height: 58px;
}

.guide-section-button.guide-controller-section-button {
  grid-template-columns: 126px minmax(0, 1fr);
}

.guide-nav-icon.guide-controller-nav-icon {
  width: 122px;
  height: 86px;
}

.guide-section-button strong,
.guide-section-button small {
  display: block;
  overflow-wrap: anywhere;
}

.guide-section-button strong {
  color: #f2e7ca;
  font: clamp(13px, 1.15vw, 17px)/1.08 "POW Display", "POW Body", serif;
  font-weight: 400;
}

.guide-section-button small {
  margin-top: 5px;
  color: #aeb9c8;
  font-size: clamp(9px, .75vw, 11px);
  line-height: 1.2;
}

.guide-section-content {
  overflow: hidden;
}

.guide-content-panel {
  height: 100%;
  overflow: auto;
  padding: clamp(14px, 1.6vw, 24px);
  border: 1px solid rgba(107, 130, 158, .42);
  border-radius: 3px;
  background:
    radial-gradient(circle at 50% 0, rgba(63, 82, 110, .14), transparent 45%),
    rgba(10, 14, 21, .84);
  scrollbar-color: #8f7447 #111923;
  scrollbar-width: thin;
}

.guide-panel-heading {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 auto 14px;
  text-align: left;
}

.guide-heading-icon {
  flex: 0 0 auto;
  width: 70px;
  height: 76px;
}

.guide-panel-heading h3 {
  margin: 0 0 6px;
  color: #f4e8c8;
  font: clamp(21px, 2vw, 31px)/1 "POW Display", "POW Body", serif;
  font-weight: 400;
  letter-spacing: .025em;
  text-shadow: 0 2px 2px #000;
}

.guide-panel-heading p {
  max-width: 760px;
  margin: 0;
  color: #c6cfda;
  font-size: clamp(12px, 1.05vw, 15px);
  line-height: 1.4;
}

.guide-touch-control-heading {
  width: min(720px, 100%);
  min-height: 84px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 auto 12px;
}

.guide-touch-control-action {
  min-width: 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid rgba(119, 142, 169, .38);
  background: linear-gradient(150deg, rgba(33, 43, 57, .68), rgba(10, 15, 23, .78));
}

.guide-touch-control-action canvas {
  width: 76px;
  height: 72px;
}

.guide-touch-control-action h3 {
  margin: 0 0 4px;
  color: #f4e8c8;
  font: 20px/1 "POW Display", "POW Body", serif;
  font-weight: 400;
}

.guide-touch-control-action p {
  margin: 0;
  color: #c6cfda;
  font-size: 12px;
}

.guide-faction-toggle {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0 auto 16px;
}

.guide-faction-toggle button {
  min-height: 38px;
  padding: 7px 10px;
}

.guide-preview-controls {
  width: min(900px, 100%);
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(240px, .8fr);
  gap: 8px;
  align-items: stretch;
  margin: 0 auto 12px;
}

.guide-preview-controls .guide-faction-toggle {
  width: 100%;
  margin: 0;
}

.guide-preview-mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(151, 132, 101, .45);
  border-radius: 4px;
  background: rgba(5, 8, 13, .76);
}

.guide-preview-mode-toggle button {
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #aeb8c6;
  font: 12px/1.15 "POW Body", sans-serif;
  cursor: pointer;
}

.guide-preview-mode-toggle button.active {
  border-color: rgba(226, 195, 130, .7);
  background: linear-gradient(180deg, rgba(92, 75, 49, .94), rgba(49, 42, 32, .96));
  color: #fff0c6;
}

.guide-unit-grid {
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: clamp(8px, 1vw, 14px);
  margin: 0 auto;
}

.guide-unit-card {
  position: relative;
  min-height: 176px;
  display: grid;
  grid-template-columns: minmax(76px, .7fr) minmax(112px, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(119, 142, 169, .46);
  border-radius: 3px;
  background: linear-gradient(150deg, rgba(36, 45, 59, .72), rgba(12, 17, 25, .9));
  box-shadow: inset 0 0 22px rgba(0, 0, 0, .32);
}

.guide-unit-card:nth-child(7) {
  grid-column: 2;
}

.guide-unit-identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.guide-unit-sprite {
  width: 100%;
  height: 116px;
  min-height: 70px;
}

.guide-unit-card strong {
  max-width: 100%;
  color: #ede3c9;
  font-size: clamp(11px, .95vw, 14px);
  line-height: 1.1;
  text-align: center;
}

.guide-unit-card .guide-unit-count {
  position: absolute;
  top: 7px;
  right: 8px;
  color: #d8c18b;
  font-size: 11px;
  font-weight: 800;
}

.guide-move-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: -7px auto 10px;
  color: #cbd4df;
  font-size: 11px;
  font-weight: 700;
}

.guide-move-legend span::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border-radius: 50%;
  vertical-align: -1px;
}

.guide-move-legend .move::before { background: #58d7f2; box-shadow: 0 0 7px #58d7f2; }
.guide-move-legend .attack::before { background: #ef755f; box-shadow: 0 0 7px #ef755f; }

.guide-move-board {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(var(--guide-move-cols), 1fr);
  overflow: hidden;
  border: 1px solid rgba(191, 162, 106, .66);
  box-shadow: 0 7px 15px rgba(0, 0, 0, .32);
  forced-color-adjust: none;
}

.guide-move-cell {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  forced-color-adjust: none;
}

.guide-move-cell.light { background: #556a72; }
.guide-move-cell.dark { background: #273945; }
.guide-move-cell.move::after,
.guide-move-cell.attack::after,
.guide-move-cell.both::after,
.guide-move-cell.opening::after {
  content: "";
  position: absolute;
  inset: 21%;
  z-index: 1;
  border-radius: 50%;
}
.guide-move-cell.move::after { background: #58d7f2; box-shadow: 0 0 6px #58d7f2; }
.guide-move-cell.attack::after { background: #ef755f; box-shadow: 0 0 6px #ef755f; }
.guide-move-cell.both::after {
  background: linear-gradient(135deg, #58d7f2 0 48%, #ef755f 52% 100%);
  box-shadow: 0 0 6px rgba(146, 206, 221, .85);
}
.guide-move-cell.opening::after {
  background: transparent;
  border: 2px dashed #58d7f2;
  box-shadow: 0 0 5px rgba(88, 215, 242, .8);
}
.guide-move-cell.origin {
  z-index: 2;
  box-shadow: inset 0 0 0 2px #e4c47e;
}
.guide-move-cell.origin .guide-unit-sprite {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190%;
  height: 190%;
  min-height: 0;
  z-index: 3;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .9));
}

.guide-carrier-demo {
  position: relative;
  width: min(900px, 96%);
  height: min(430px, 50vh);
  min-height: 280px;
  margin: 24px auto 0;
  overflow: hidden;
  border: 1px solid rgba(105, 132, 161, .5);
  background: radial-gradient(ellipse at 50% 56%, rgba(50, 75, 99, .46), rgba(7, 11, 17, .94) 72%);
}

.guide-carry-board {
  position: absolute;
  left: 50%;
  bottom: -3%;
  width: min(74%, 590px);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(var(--guide-carry-cols), 1fr);
  transform: translateX(-50%) perspective(650px) rotateX(48deg);
  transform-origin: bottom center;
  border: 2px solid #7d6747;
  box-shadow: 0 0 28px rgba(99, 153, 197, .18);
  forced-color-adjust: none;
}

.guide-carry-square { position: relative; aspect-ratio: 1; forced-color-adjust: none; }
.guide-carry-square.light { background: #687a78; }
.guide-carry-square.dark { background: #283e49; }
.guide-carry-square.target::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 4px solid rgba(127, 230, 255, .9);
  border-radius: 50%;
  box-shadow: 0 0 18px #65dfff, inset 0 0 12px #65dfff;
  animation: guide-target-pulse 1.1s ease-in-out infinite;
}

.guide-target-ring {
  position: absolute;
  left: 72%;
  top: 34%;
  width: 54px;
  aspect-ratio: 1;
  border: 4px solid rgba(127, 230, 255, .82);
  border-radius: 50%;
  box-shadow: 0 0 18px #65dfff, inset 0 0 12px #65dfff;
  animation: guide-target-pulse 1.1s ease-in-out infinite;
}

@keyframes guide-target-pulse {
  50% { transform: scale(1.22); opacity: .58; }
}

.guide-carrier-flight {
  position: absolute;
  top: 4%;
  left: 8%;
  width: 32%;
  height: 58%;
  animation: guide-carrier-flight 3.6s ease-in-out infinite;
}

.guide-carrier-animation {
  position: absolute;
  inset: 0 0 20% 0;
  width: 100%;
  height: 80%;
  filter: drop-shadow(0 12px 10px rgba(0, 0, 0, .55));
}

@keyframes guide-carrier-flight {
  0%, 100% { transform: translate(0, 12px) rotate(-2deg); }
  50% { transform: translate(160%, -6px) rotate(2deg); }
}

.guide-flight-path {
  position: absolute;
  left: 24%;
  top: 44%;
  width: 52%;
  border-top: 2px dashed rgba(126, 222, 245, .58);
  transform: rotate(-7deg);
}

.guide-carried-pawn {
  position: absolute;
  left: 36%;
  bottom: 0;
  width: 30%;
  height: 42%;
  filter: drop-shadow(0 5px 4px rgba(0, 0, 0, .85));
}

.guide-carried-pawn .guide-unit-sprite {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.guide-pillar-layout {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(190px, .72fr) minmax(360px, 1.5fr);
  gap: clamp(18px, 3vw, 48px);
  align-items: stretch;
  margin: 10px auto 0;
}

.guide-pillar-visual {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(107, 130, 158, .32);
  background: radial-gradient(ellipse at 50% 55%, rgba(62, 102, 133, .28), transparent 66%);
}

.guide-pillar-visual canvas {
  width: 88%;
  height: 94%;
  filter: drop-shadow(0 12px 15px rgba(0, 0, 0, .72));
}

.guide-pillar-lightning {
  position: absolute;
  inset: 9% 20%;
  opacity: .55;
  background: repeating-linear-gradient(104deg, transparent 0 20px, rgba(133, 226, 255, .85) 21px 22px, transparent 23px 41px);
  filter: drop-shadow(0 0 5px #6bdcff);
  animation: guide-pillar-lightning .75s steps(2) infinite;
  mix-blend-mode: screen;
}

@keyframes guide-pillar-lightning {
  50% { opacity: .16; transform: translateX(7px) skewX(-4deg); }
}

.guide-ability-list {
  display: grid;
  gap: 12px;
}

.guide-ability-row {
  min-height: 112px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(112, 138, 166, .45);
  background: linear-gradient(150deg, rgba(34, 43, 57, .8), rgba(11, 15, 22, .88));
}

.guide-ability-row canvas {
  width: 82px;
  height: 86px;
}

.guide-ability-row strong {
  color: #f1e5c7;
  font: 20px/1 "POW Display", "POW Body", serif;
  font-weight: 400;
}

.guide-ability-row p,
.guide-mode-descriptions p {
  margin: 5px 0 0;
  color: #bdc7d3;
  font-size: 12px;
  line-height: 1.35;
}

.guide-mode-descriptions {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 auto 14px;
}

.guide-mode-descriptions article {
  min-height: 92px;
  display: grid;
  grid-template-columns: 66px 1fr;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(112, 138, 166, .36);
  background: rgba(20, 27, 38, .72);
}

.guide-mode-descriptions canvas {
  width: 60px;
  height: 68px;
}

.guide-mode-descriptions strong {
  color: #f1e5c7;
  font: 18px/1 "POW Display", "POW Body", serif;
  font-weight: 400;
}

.guide-mode-board {
  width: min(520px, 78%);
  display: grid;
  grid-template-columns: repeat(var(--guide-board-cols), 1fr);
  aspect-ratio: var(--guide-board-aspect);
  margin: 0 auto;
  overflow: hidden;
  border: 5px solid #5e4d34;
  box-shadow: inset 0 0 0 2px #b39561, 0 12px 30px rgba(0, 0, 0, .48);
  forced-color-adjust: none;
}

.guide-en-passant-demo {
  width: min(680px, 94%);
  margin: 2px auto 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 230px);
  grid-template-rows: auto 1fr;
  grid-template-areas: "button board" "copy board";
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #9c7d45;
  background: linear-gradient(110deg, rgba(31, 38, 55, .94), rgba(11, 13, 20, .94));
  box-shadow: inset 0 0 0 1px rgba(255, 220, 130, .12);
}

.guide-en-passant-demo p { grid-area: copy; margin: 0; font-size: .82rem; line-height: 1.3; color: #d8e0ec; }
.guide-en-passant-demo button { grid-area: button; min-height: 34px; justify-self: start; white-space: nowrap; color: #f5d78f; }
.guide-en-passant-board { display: grid; grid-template-columns: repeat(var(--guide-en-passant-cols), 1fr); aspect-ratio: 4 / 3; border: 2px solid #9c7d45; }
.guide-en-passant-board { grid-area: board; width: 100%; }
.guide-en-passant-cell { position: relative; display: grid; place-items: center; min-width: 0; }
.guide-en-passant-cell.light { background: #37465c; }
.guide-en-passant-cell.dark { background: #182231; }
.guide-en-passant-cell canvas { width: 78%; height: 78%; z-index: 1; }
.guide-en-passant-cell.ghost canvas { opacity: .38; animation: guide-en-passant-ghost .23s ease-in-out infinite alternate; }
.guide-en-passant-cell.exploded::after { content: '✦'; color: #ffd36a; font-size: 2rem; text-shadow: 0 0 15px #f36d35; animation: guide-en-passant-burst .55s ease-out infinite alternate; }
@keyframes guide-en-passant-ghost { to { opacity: .50; } }
@keyframes guide-en-passant-burst { to { transform: scale(1.25); opacity: .45; } }

@media (max-width: 680px) {
  .guide-en-passant-demo { grid-template-columns: 1fr; grid-template-rows: auto auto auto; grid-template-areas: "button" "copy" "board"; text-align: center; }
  .guide-en-passant-demo button { justify-self: center; }
  .guide-en-passant-board { width: min(210px, 76vw); margin: auto; }
}

.guide-controller-panel {
  display: flex;
  flex-direction: column;
}

.guide-controller-grid {
  width: min(880px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: auto;
}

.guide-controller-row {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(148px, .7fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(112, 138, 166, .36);
  background: rgba(20, 27, 38, .72);
}

.guide-controller-input {
  display: grid;
  grid-template-columns: 62px minmax(64px, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.guide-controller-input canvas {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.guide-controller-input-pair {
  grid-template-columns: 42px 42px minmax(64px, 1fr);
  gap: 3px;
}

.guide-controller-input-pair canvas {
  width: 42px;
  height: 54px;
}

.guide-controller-input-face {
  grid-template-columns: 96px minmax(64px, 1fr);
}

.guide-controller-input-face canvas {
  width: 94px;
  height: 90px;
}

.guide-controller-input kbd {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 5px 9px;
  border: 1px solid rgba(226, 195, 130, .7);
  border-radius: 4px;
  background: rgba(5, 8, 13, .76);
  color: #fff0c6;
  font: 700 15px/1 "POW Body", sans-serif;
  text-align: center;
}

.guide-controller-row strong {
  color: #f1e5c7;
  font: 18px/1 "POW Display", "POW Body", serif;
  font-weight: 400;
}

.guide-controller-row p {
  margin: 5px 0 0;
  color: #bdc7d3;
  font-size: 12px;
  line-height: 1.35;
}

.locale-rtl {
  direction: rtl;
}

.locale-rtl .guide-section-button {
  text-align: right;
}

.locale-rtl .guide-controller-row {
  grid-template-columns: minmax(0, 1fr) minmax(148px, .7fr);
}

.locale-rtl .guide-controller-input {
  direction: ltr;
}

.guide-board-square {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  forced-color-adjust: none;
}

.guide-board-square.light { background: #6d7b83; }
.guide-board-square.dark { background: #283943; }
.guide-board-square .guide-unit-sprite {
  position: absolute;
  left: 2%;
  top: 2%;
  width: 96%;
  height: 96%;
  min-height: 0;
}

@media (max-width: 900px) {
  .how-to-play-window {
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 0;
  }

  .how-to-play-modal-shell {
    padding: 0;
  }

  .how-to-play-header {
    min-height: 68px;
    padding: 8px 50px 8px 12px;
  }

  .how-to-play-kicker { display: none; }
  .how-to-play-header h2 { font-size: clamp(20px, 6vw, 28px); }

  .how-to-play-device-toggle button {
    min-width: 70px;
    padding: 8px 9px;
    font-size: 12px;
  }

  .how-to-play-guide {
    height: calc(100% - 68px);
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 7px;
    padding: 7px;
  }

  .guide-section-nav { gap: 6px; }

  .guide-section-button {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2px;
    padding: 4px;
    text-align: center;
  }

  .guide-nav-icon {
    width: 36px;
    height: 36px;
  }

  .guide-section-button strong { font-size: 12px; }
  .guide-section-button small { display: none; }
  .guide-section-button.guide-controller-section-button { grid-template-columns: 1fr; }
  .guide-nav-icon.guide-controller-nav-icon { width: 58px; height: 48px; }
  .guide-content-panel { padding: 10px; }
  .guide-panel-heading { min-height: 52px; gap: 8px; margin-bottom: 8px; }
  .guide-heading-icon { width: 44px; height: 48px; }
  .guide-panel-heading h3 { font-size: 18px; }
  .guide-panel-heading p { font-size: 10px; }
  .guide-touch-control-heading { min-height: 58px; gap: 6px; margin-bottom: 7px; }
  .guide-touch-control-action { grid-template-columns: 50px minmax(0, 1fr); gap: 5px; padding: 3px 6px; }
  .guide-touch-control-action canvas { width: 50px; height: 50px; }
  .guide-touch-control-action h3 { margin-bottom: 2px; font-size: 14px; }
  .guide-touch-control-action p { font-size: 9px; }
  .guide-faction-toggle { margin-bottom: 8px; }
  .guide-faction-toggle button { min-height: 30px; padding: 5px; font-size: 10px; }
  .guide-preview-controls { grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 6px; }
  .guide-preview-controls .guide-faction-toggle { margin-bottom: 0; }
  .guide-preview-mode-toggle button { padding: 3px; font-size: 9px; }
  .guide-unit-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 5px; }
  .guide-unit-card { min-height: 120px; grid-template-columns: minmax(56px, .65fr) minmax(90px, 1fr); padding: 5px; }
  .guide-unit-card:nth-child(7) { grid-column: 1 / -1; width: calc(50% - 3px); justify-self: center; }
  .guide-unit-sprite { height: 72px; min-height: 45px; }
  .guide-unit-card strong { font-size: 9px; }
  .guide-unit-card .guide-unit-count { top: 3px; right: 4px; font-size: 8px; }
  .guide-carrier-demo { min-height: 230px; height: calc(100% - 90px); margin-top: 8px; }
  .guide-pillar-layout { grid-template-columns: minmax(120px, .62fr) minmax(250px, 1.5fr); gap: 8px; }
  .guide-pillar-visual { min-height: 300px; }
  .guide-ability-list { gap: 6px; }
  .guide-ability-row { min-height: 90px; grid-template-columns: 62px 1fr; gap: 5px; padding: 5px; }
  .guide-ability-row canvas { width: 58px; height: 62px; }
  .guide-ability-row strong { font-size: 15px; }
  .guide-ability-row p { font-size: 9px; }
  .guide-mode-descriptions { gap: 6px; margin-bottom: 6px; }
  .guide-mode-descriptions article { min-height: 64px; grid-template-columns: 42px 1fr; padding: 4px; }
  .guide-mode-descriptions canvas { width: 38px; height: 44px; }
  .guide-mode-descriptions strong { font-size: 14px; }
  .guide-mode-descriptions p { font-size: 8px; }
  .guide-mode-board { width: min(360px, 70%); border-width: 3px; }
  .guide-controller-grid { gap: 6px; }
  .guide-controller-row { min-height: 70px; grid-template-columns: 116px minmax(0, 1fr); gap: 7px; padding: 7px; }
  .guide-controller-input { grid-template-columns: 46px minmax(56px, 1fr); gap: 4px; }
  .guide-controller-input canvas { width: 46px; height: 40px; }
  .guide-controller-input-pair { grid-template-columns: 30px 30px minmax(48px, 1fr); gap: 2px; }
  .guide-controller-input-pair canvas { width: 30px; height: 40px; }
  .guide-controller-input-face { grid-template-columns: 68px minmax(44px, 1fr); }
  .guide-controller-input-face canvas { width: 66px; height: 62px; }
  .guide-controller-input kbd { min-height: 34px; padding: 4px; font-size: 11px; }
  .guide-controller-row strong { font-size: 14px; }
  .guide-controller-row p { font-size: 9px; }
}

@media (max-width: 600px) and (orientation: portrait) {
  .how-to-play-header {
    align-items: flex-start;
    min-height: 104px;
    flex-direction: column;
    gap: 5px;
  }

  .how-to-play-device-toggle { width: 100%; }
  .how-to-play-device-toggle button { flex: 1; }
  .how-to-play-guide { height: calc(100% - 104px); grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .guide-section-nav { display: flex; overflow-x: auto; }
  .guide-section-button { flex: 1 0 78px; min-height: 66px; }
  .guide-nav-icon { width: 28px; height: 28px; }
  .guide-unit-grid { grid-template-columns: repeat(2, minmax(84px, 1fr)); }
  .guide-preview-controls { grid-template-columns: 1fr; }
  .guide-touch-control-heading { grid-template-columns: 1fr; }
  .guide-pillar-layout { grid-template-columns: 1fr; }
  .guide-pillar-visual { min-height: 220px; }
  .guide-mode-descriptions { grid-template-columns: 1fr; }
  .guide-controller-grid { grid-template-columns: 1fr; }
}

@media (forced-colors: active) {
  .guide-move-board,
  .guide-carry-board,
  .guide-mode-board {
    border-color: #d8b773;
    box-shadow: none;
  }

  .guide-move-cell,
  .guide-carry-square,
  .guide-board-square {
    outline: 1px solid rgba(216, 183, 115, .28);
    outline-offset: -1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .how-to-play-window,
  .how-to-play-rain,
  .guide-target-ring,
  .guide-carrier-flight,
  .guide-pillar-lightning {
    animation: none !important;
  }
}

.obigames-section {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(760px, calc(100vw - 32px));
  height: 196px;
  transform: translate(-50%, -50%);
  margin-top: 126px;
  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: none;
  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);
}

/* Keep every hero navigation action visually identical, including Leaderboard. */
#watchTrailer,
#buyNow,
#gameUpdatesButton,
#leaderboardButton {
  border: 1px solid rgba(110, 155, 204, 0.34);
  background: linear-gradient(180deg, rgba(9, 14, 24, 0.9), rgba(9, 14, 24, 0.76));
}

@media (min-width: 721px) {
  /* Keep the four hero actions as one centered group. Individual absolute
     offsets made the growing right-hand side pull the row off-center. */
  .hero-cta-row {
    position: absolute;
    top: calc(50% + 280px);
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: max-content;
    transform: translate(-50%, -50%);
    z-index: 6;
  }

  .hero-cta-row .launch-button {
    position: static;
    transform: none;
    margin: 0;
  }
}

@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;
}

@media (min-width: 721px) {
  /* Desktop hero actions are absolute; reserve their visual footprint before
     the founder purchase CTA so neither set of buttons can overlap. */
  .hero-header {
    padding-bottom: clamp(112px, 6.5vw, 132px);
  }
}
.founders-cta #paymentStatus { color: #cbd5e1; font-weight: 600; text-align: center; }
.founders-cta #paymentStatus.payment-status-notice {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  width: min(100%, 500px);
  margin: .55rem auto 0;
  padding: .72rem .78rem;
  overflow: hidden;
  border: 1px solid rgba(240, 202, 118, .7);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(245, 203, 99, .15), transparent 35%),
    linear-gradient(180deg, rgba(79, 55, 23, .88), rgba(27, 21, 16, .94));
  box-shadow:
    inset 0 0 0 1px rgba(255, 239, 194, .1),
    inset 0 1px 0 rgba(255, 247, 210, .13),
    0 10px 24px rgba(0, 0, 0, .28);
  color: #fff3d2;
  font-size: .92rem;
  line-height: 1.3;
  text-align: left;
  animation: payment-status-arrive .22s ease-out both;
}
.payment-status-marker {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 220, 126, .82);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 224, 126, .22), rgba(126, 74, 19, .32));
  color: #ffe588;
  font-size: 1rem;
  text-shadow: 0 0 8px rgba(255, 218, 104, .7);
}
.payment-status-copy {
  display: grid;
  min-width: 0;
  gap: .35rem;
}
.payment-status-title {
  font-weight: 800;
}
.payment-status-action {
  justify-self: start;
  min-height: 28px;
  padding: .18rem .55rem;
  border: 1px solid rgba(255, 221, 129, .66);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(125, 83, 24, .65), rgba(50, 34, 17, .85));
  color: #fff1c6;
  font: 700 .78rem/1.2 "POW Body", system-ui, sans-serif;
  cursor: pointer;
}
.payment-status-action:hover,
.payment-status-action:focus-visible {
  border-color: #ffe18a;
  background: linear-gradient(180deg, rgba(155, 106, 30, .78), rgba(66, 43, 18, .94));
  color: #fff9e4;
  outline: none;
}
.payment-status-dismiss {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: rgba(255, 242, 203, .72);
  font: 1.35rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.payment-status-dismiss:hover,
.payment-status-dismiss:focus-visible {
  border-color: rgba(255, 220, 126, .66);
  background: rgba(255, 222, 136, .1);
  color: #fff7de;
  outline: none;
}
@keyframes payment-status-arrive {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
.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-description {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.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 label {
  display: block;
  margin: 8px 0 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.founder-name-form input,
.founder-name-form textarea {
  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 textarea {
  resize: vertical;
  min-height: 58px;
}

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

.founder-name-character-count {
  margin-top: -4px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  text-align: right;
}

.admin-panel-submission-info label {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.admin-panel-founder-name-input,
.admin-panel-founder-description-input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font: inherit;
}

.admin-panel-founder-description-input {
  resize: vertical;
}

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

.modal-card.admin-panel-card {
  max-width: none;
  width: 100vw;
  height: 100vh;
  max-height: none;
  margin: 0;
  border-radius: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* The admin workspace needs density, not a wall of text. Keep its focused
   layout on wide desktops while retaining the full-screen editor on compact
   and landscape-touch displays. */
@media (min-width: 960px) and (min-height: 640px) {
  .modal-card.admin-panel-card {
    width: min(1180px, calc(100vw - 64px));
    height: min(860px, calc(100vh - 64px));
    max-height: calc(100vh - 64px);
    margin: 32px auto;
    border-radius: 16px;
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.62);
  }

  .admin-panel-tabs,
  #adminPanelContent {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.admin-panel-card > .modal-kicker,
.admin-panel-card > h2,
.admin-panel-card > .admin-panel-tabs {
  flex: 0 0 auto;
}

.admin-panel-tabs {
  display: flex;
	flex: 0 0 auto;
  gap: 8px;
  margin-bottom: 16px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: thin;
}

#adminPanelContent {
	flex: 1 1 auto;
  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) {
  .modal-card.admin-panel-card {
    width: 100vw;
    height: 100vh;
    max-height: none;
    margin: 0;
    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: flex;
    gap: 6px;
    margin-bottom: 8px;
    padding: 0;
  }

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

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

.admin-users-panel { padding: 4px 0 18px; }
.admin-users-toolbar { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.admin-users-search-label { flex: 1 1 320px; }
.admin-users-sort-label { flex: 0 0 150px; }
.admin-users-toolbar label { display: grid; gap: 5px; font-size: 12px; color: rgba(255,255,255,.72); }
.admin-users-toolbar input, .admin-users-toolbar select, .admin-user-controls select { width: 100%; box-sizing: border-box; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; background: rgba(0,0,0,.35); color: #fff; padding: 8px 10px; font: inherit; }
.admin-users-count { padding: 8px 0; color: rgba(255,255,255,.6); font-size: 13px; }
.admin-users-help { margin: 0 0 14px; color: rgba(255,255,255,.62); font-size: 12px; line-height: 1.4; }
.admin-users-list { display: grid; gap: 10px; }
.admin-ai-leaderboard { padding: 4px 0 18px; }
.admin-ai-toolbar { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.admin-ai-filter-group { display: inline-flex; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; }
.admin-ai-filter { border: 0; border-right: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.26); color: rgba(255,255,255,.74); padding: 8px 11px; font: inherit; font-size: 12px; cursor: pointer; }
.admin-ai-filter:last-child { border-right: 0; }
.admin-ai-filter:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-ai-filter.active { background: rgba(217,185,95,.22); color: #f4d77d; box-shadow: inset 0 -2px 0 #f4d77d; }
.admin-ai-search-label { display: grid; gap: 5px; flex: 1 1 210px; color: rgba(255,255,255,.72); font-size: 12px; }
.admin-ai-search-label input { width: 100%; box-sizing: border-box; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; background: rgba(0,0,0,.35); color: #fff; padding: 8px 10px; font: inherit; }
.admin-ai-leaderboard-table { overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; }
.admin-ai-leaderboard-row { display: grid; grid-template-columns: 72px minmax(200px, 1fr) 115px 90px 120px; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.88); font-size: 13px; }
.admin-ai-leaderboard-row:first-child { border-top: 0; }
.admin-ai-leaderboard-header { min-height: 38px; background: rgba(255,255,255,.06); color: #f4d77d; font-weight: 700; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.admin-ai-commander-name { display: grid; gap: 3px; min-width: 0; }
.admin-ai-commander-name small { overflow: hidden; color: rgba(255,255,255,.45); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-ai-leaderboard-row small { color: rgba(255,255,255,.55); }
.admin-ai-difficulty { display: inline-block; padding: 3px 6px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-size: 11px; }
.admin-ai-difficulty-easy { color: #9ee493; border-color: rgba(158,228,147,.5); }
.admin-ai-difficulty-normal { color: #f4d77d; border-color: rgba(244,215,125,.5); }
.admin-ai-difficulty-hard { color: #f38b8b; border-color: rgba(243,139,139,.5); }
.admin-ai-difficulty-insane { color: #c8a3ff; border-color: rgba(200,163,255,.5); }
@media (max-width: 680px) { .admin-ai-leaderboard-row { grid-template-columns: 44px minmax(130px, 1fr) 84px 66px; gap: 7px; padding: 8px; } .admin-ai-leaderboard-row > span:last-child { display: none; } .admin-ai-leaderboard-header > span:last-child { display: none; } }
.admin-user-card { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.1fr); gap: 18px; align-items: center; padding: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(255,255,255,.04); }
.admin-user-name { font-weight: 700; overflow-wrap: anywhere; }
.admin-user-email, .admin-user-meta, .admin-user-id { margin-top: 4px; font-size: 12px; color: rgba(255,255,255,.66); overflow-wrap: anywhere; }
.admin-user-id { color: rgba(255,255,255,.4); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.admin-user-admin-badge { display: inline-block; margin-left: 6px; padding: 2px 5px; border: 1px solid rgba(56,189,248,.55); border-radius: 4px; color: #7dd3fc; font-size: 10px; text-transform: uppercase; vertical-align: 1px; }
.admin-user-controls { display: grid; grid-template-columns: auto auto minmax(180px, 1fr) auto; align-items: center; gap: 10px; font-size: 12px; color: rgba(255,255,255,.82); }
.admin-user-controls label { display: flex; align-items: center; gap: 5px; }
.admin-user-controls label:has(select) { display: grid; gap: 5px; }
@media (max-width: 1100px) { .admin-user-card { grid-template-columns: 1fr; } .admin-user-controls { grid-template-columns: 1fr 1fr; } .admin-user-controls label:has(select) { grid-column: span 2; } .admin-user-controls button { justify-self: start; } }
@media (max-width: 520px) { .admin-user-controls { grid-template-columns: 1fr; } .admin-user-controls label:has(select) { grid-column: auto; } }

.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-bug-reports {
  display: grid;
  gap: 12px;
}

.admin-bug-report {
  border: 1px solid rgba(255, 245, 176, 0.75);
  border-radius: 12px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.42);
}

.admin-bug-report-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-bug-report-category {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 235, 0, 0.75);
  border-radius: 999px;
  padding: 3px 9px;
  color: #fff26a;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-bug-report-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.admin-bug-report-source {
  flex: 0 0 auto;
  border: 1px solid rgba(147, 197, 253, 0.6);
  border-radius: 999px;
  padding: 3px 9px;
  color: #bfdbfe;
  background: rgba(30, 64, 175, 0.18);
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-bug-report-source-signal {
  border-color: rgba(196, 181, 253, 0.6);
  color: #ddd6fe;
  background: rgba(91, 33, 182, 0.18);
}

.admin-bug-report-message {
  margin: 11px 0;
  color: #fff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-bug-report-details {
  display: grid;
  gap: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.admin-bug-report-detail strong {
  color: #fff4bd;
}

.admin-bug-report-reply { display: flex; gap: 8px; margin-top: 12px; }
.admin-bug-report-reply textarea { min-height: 42px; flex: 1; resize: vertical; }
.admin-bug-report-anonymous-note {
  margin-top: 12px;
  border-left: 3px solid rgba(147, 197, 253, 0.7);
  padding: 7px 10px;
  color: rgba(219, 234, 254, 0.86);
  background: rgba(30, 64, 175, 0.12);
  font-size: 0.82rem;
}
.admin-bug-report-delete { margin-top: 8px; }

.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;
}

.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));
  }

  .founders-tier .tier-benefits {
    padding-left: 0;
    list-style-position: inside;
    text-align: center;
  }

  .founders-tier .tier-amount {
    text-align: center;
  }

  .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-large::before,
  .launch-button-large::after {
    width: 75px;
    height: 72px;
    background-size: 320px 72px;
  }

  .launch-button-large::after {
    width: 74px;
    background-position: -247px 0;
  }

  .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,
  .hero-actions-grid .how-to-play-button {
    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;
  }

  #leaderboardButton {
    order: 4;
  }

  .how-to-play-button {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    order: 5;
    min-height: 42px;
    margin: 0;
    font-size: clamp(14px, 4vw, 18px);
    justify-self: stretch;
  }

  .obigames-logo {
    order: 5;
  }

  .obi-discord {
    order: 6;
  }

  .obi-steam {
    order: 7;
  }

  .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 {
  position: relative;
  overflow: hidden;
  max-width: 1040px;
  margin-inline: auto;
  padding: clamp(1.35rem, 3vw, 2.7rem);
  background:
    radial-gradient(circle at 8% 0%, rgba(153, 90, 244, .19), transparent 29%),
    radial-gradient(circle at 92% 100%, rgba(213, 167, 76, .12), transparent 30%),
    linear-gradient(145deg, rgba(13, 18, 31, .99), rgba(5, 8, 14, .99));
  border: 1px solid rgba(211, 169, 84, .62);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 20px 55px rgba(0,0,0,.34);
}

.game-updates-panel::before,
.game-updates-panel::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(222, 183, 98, .24);
  transform: rotate(45deg);
  pointer-events: none;
}

.game-updates-panel::before { top: -82px; left: -82px; }
.game-updates-panel::after { right: -82px; bottom: -82px; }

.game-updates-content {
  position: relative;
  z-index: 1;
}

.game-updates-titlebar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.65rem, 1.8vw, 1.15rem);
  margin: 0 0 clamp(1.15rem, 2.5vw, 1.8rem);
}

.game-updates-titlebar::before,
.game-updates-titlebar::after {
  content: '';
  flex: 1 1 120px;
  max-width: 290px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(221, 182, 95, .76));
}

.game-updates-titlebar::after {
  background: linear-gradient(90deg, rgba(221, 182, 95, .76), transparent);
}

.game-updates-content h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 800;
  color: #f8e7bd;
  text-align: center;
  letter-spacing: .08em;
  text-shadow: 0 2px 20px rgba(0,0,0,.6);
}

.game-updates-title-ornament {
  color: #d8aa58;
  font-size: .82rem;
  text-shadow: 0 0 14px rgba(169, 97, 255, .74);
}

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

.game-update-item {
  position: relative;
  display: flex;
  gap: clamp(.7rem, 1.8vw, 1.1rem);
  overflow: hidden;
  padding: clamp(1rem, 2.4vw, 1.35rem) clamp(1rem, 2.8vw, 1.55rem);
  border: 1px solid rgba(184, 142, 67, .37);
  border-radius: 12px;
  background: linear-gradient(105deg, rgba(31, 26, 42, .96), rgba(10, 16, 28, .98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 8px 20px rgba(0,0,0,.18);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.game-update-item::before {
  content: '';
  position: absolute;
  inset: 9px 10px;
  border: 1px solid rgba(232, 198, 126, .12);
  border-radius: 8px;
  pointer-events: none;
}

.game-update-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(221, 181, 94, .6), transparent);
  opacity: .8;
}

.game-update-item:hover {
  transform: translateY(-2px);
  border-color: rgba(224, 181, 91, .72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 13px 30px rgba(0,0,0,.32);
}

.game-update-item.is-latest {
  border-color: rgba(221, 179, 89, .7);
  background:
    radial-gradient(circle at 0% 50%, rgba(159, 88, 250, .13), transparent 32%),
    linear-gradient(105deg, rgba(47, 31, 52, .98), rgba(13, 22, 36, .99));
}

.game-update-rune {
  position: relative;
  z-index: 1;
  flex: 0 0 clamp(1.6rem, 3.4vw, 2.25rem);
  display: grid;
  place-items: center;
  align-self: flex-start;
  min-height: 2.25rem;
  color: #eccb7c;
  font-size: 1.15rem;
}

.game-update-rune::before {
  content: '';
  position: absolute;
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid rgba(220, 179, 89, .52);
  border-radius: 50%;
  box-shadow: inset 0 0 14px rgba(130, 70, 207, .32), 0 0 16px rgba(164, 94, 255, .15);
}

.game-update-rune span {
  position: relative;
  text-shadow: 0 0 14px rgba(204, 132, 255, .82);
}

.game-update-body {
  min-width: 0;
  flex: 1;
}

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

.game-update-heading {
  min-width: 0;
}

.game-update-version {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  font-weight: 800;
  color: #fae8bf;
  letter-spacing: .025em;
}

.game-update-date {
  flex: 0 0 auto;
  align-self: center;
  padding: .28rem .55rem;
  border: 1px solid rgba(193, 156, 84, .36);
  border-radius: 999px;
  background: rgba(4, 7, 12, .44);
  color: #d8c5a0;
  font-size: .73rem;
  font-weight: 700;
  white-space: nowrap;
}

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

.game-update-changes li {
  padding: .32rem 0 .32rem 1.3rem;
  position: relative;
  color: #d9deea;
  line-height: 1.45;
}

.game-update-changes li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: #c69aeb;
  font-size: .65em;
  top: .65em;
  font-weight: 700;
}

@media (max-width: 600px) {
  .game-update-item { gap: .65rem; padding: 1rem .85rem 1rem .8rem; }
  .game-update-rune { flex-basis: 1.35rem; font-size: 1rem; }
  .game-update-rune::before { width: 1.45rem; height: 1.45rem; }
  .game-update-date { width: 100%; align-self: auto; }
  .game-updates-titlebar::before,
  .game-updates-titlebar::after { flex-basis: 42px; }
}

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

.leaderboard-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.leaderboard-content {
  max-width: 1050px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
}

.leaderboard-content > * {
  flex: 0 0 auto;
}

.leaderboard-list {
  display: block;
  height: auto;
  min-height: 0;
  margin: 0;
}

#leaderboardList {
  height: auto !important;
  min-height: 0 !important;
}

.leaderboard-heading,
.leaderboard-controls,
.leaderboard-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.leaderboard-heading {
  margin-bottom: 1.25rem;
}

.leaderboard-heading h2 {
  margin: 0 0 .35rem;
  color: #e2e8f0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.leaderboard-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
}

.leaderboard-season-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: .12rem .58rem;
  border: 1px solid rgba(240, 202, 118, .72);
  border-radius: 999px;
  color: #f7d783;
  background: linear-gradient(135deg, rgba(107, 70, 20, .38), rgba(16, 24, 37, .82));
  box-shadow: inset 0 0 0 1px rgba(255, 234, 172, .08);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.leaderboard-heading p {
  margin: 0;
  color: #a9b7c8;
}

.leaderboard-tabs {
  display: flex;
  padding: 3px;
  border: 1px solid #3a4a5d;
  border-radius: 6px;
  background: #101722;
}

.leaderboard-tabs button {
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #a9b7c8;
  cursor: pointer;
  padding: .55rem .8rem;
}

.leaderboard-tabs button.active {
  background: #2d5d83;
  color: #f5fbff;
}

.leaderboard-controls {
  margin-bottom: 1rem;
}

.leaderboard-ranked-filters {
  display: grid;
  flex: 1 1 430px;
  gap: .4rem;
}

/* Speed filters only apply to ranked matches.
   Keep them out of the Challenges leaderboard instead of relying on the
   browser's default hidden styling against the grid declaration above. */
.leaderboard-ranked-filters[hidden] {
  display: none;
}

.leaderboard-scope-tabs,
.leaderboard-speed-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .4rem;
}

.leaderboard-scope-tabs button,
.leaderboard-speed-tabs button {
  min-height: 38px;
  border: 1px solid #3a4a5d;
  border-radius: 4px;
  background: #111a26;
  color: #a9b7c8;
  cursor: pointer;
  padding: .45rem .6rem;
}

/* Tactical and Real-Time share a compact two-up source sheet with the game.
   The image is loaded only when the leaderboard is visible and the same
   runtime asset is reused by the WASM export. */
.leaderboard-speed-tabs button,
.admin-ai-filter[data-ai-filter="speed"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .34rem;
}

.leaderboard-speed-tabs button[data-leaderboard-speed="tactical"]::before,
.leaderboard-speed-tabs button[data-leaderboard-speed="realtime"]::before,
.admin-ai-filter[data-ai-filter="speed"][data-value="tactical"]::before,
.admin-ai-filter[data-ai-filter="speed"][data-value="realtime"]::before {
  content: "";
  width: 24px;
  height: 22px;
  flex: 0 0 24px;
  background: url("POWAssets/runtime/assets/ui/gamespeeds.png") left center / 48px 22px no-repeat;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .65));
}

.leaderboard-speed-tabs button[data-leaderboard-speed="tactical"]::before,
.admin-ai-filter[data-ai-filter="speed"][data-value="tactical"]::before {
  background-position: right center;
}

.leaderboard-scope-tabs button.active,
.leaderboard-speed-tabs button.active {
  border-color: #d5ad54;
  background: #3a2d16;
  color: #fff2c5;
}

.leaderboard-search {
  flex: 1 1 280px;
  align-self: end;
}

.leaderboard-search input,
.leaderboard-challenge-picker select {
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  border: 1px solid #3a4a5d;
  border-radius: 4px;
  background: #111a26;
  color: #e2e8f0;
  padding: .55rem .7rem;
}

.leaderboard-table {
  margin: 0;
  overflow: hidden;
  border: 1px solid #2d3748;
  border-radius: 7px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 130px 140px;
  align-items: center;
  min-height: 51px;
  border-top: 1px solid rgba(66, 84, 105, .55);
  background: rgba(19, 29, 43, .8);
  color: #d7e1ed;
}

.leaderboard-row:first-child {
  border-top: 0;
}

.leaderboard-row > span {
  min-width: 0;
  padding: .7rem .85rem;
}

.leaderboard-header {
  min-height: 41px;
  background: #202d3c;
  color: #8ed0ff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.leaderboard-rank {
  color: #f0ca76;
  font-weight: 800;
}

.leaderboard-name {
	overflow: hidden;
	color: #f0f5fa;
	font-weight: 700;
	text-overflow: ellipsis;
	line-height: 1.15;
}

.leaderboard-name strong,
.leaderboard-tier {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.profile-season-history {
	display: grid;
	gap: .45rem;
	color: rgba(232, 239, 247, .82);
	font-size: .82rem;
}

.profile-season-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: .8rem;
	padding: .55rem .65rem;
	border: 1px solid rgba(142, 208, 255, .24);
	border-radius: 6px;
	background: rgba(19, 29, 43, .58);
}

.profile-season-row strong { color: #f0ca76; }
.profile-season-row span { text-align: right; }

.leaderboard-tier {
	margin-top: .18rem;
	color: #f0ca76;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .035em;
	text-transform: uppercase;
}

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

.leaderboard-provisional {
  margin: 0 0 .7rem;
  padding: .65rem .85rem;
  border: 1px solid rgba(240, 202, 118, .55);
  border-radius: 6px;
  background: rgba(87, 59, 24, .34);
  color: #fff0c7;
  font-weight: 750;
  text-align: center;
}

.leaderboard-pagination {
  justify-content: center;
  margin-top: 1.15rem;
}

.leaderboard-pagination button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.leaderboard-page {
  min-width: 130px;
  color: #bdcadd;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Keep the leaderboard in its phone layout everywhere the rest of the site
   is already using its mobile layout. */
@media (max-width: 720px) {
  .leaderboard-panel {
    padding: 1rem;
    scroll-margin-top: calc(76px + env(safe-area-inset-top));
  }

  .leaderboard-heading,
  .leaderboard-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .leaderboard-heading {
    margin-bottom: .75rem;
  }

  .leaderboard-controls {
    margin-bottom: .5rem;
  }

  .leaderboard-ranked-filters {
    flex-basis: auto;
    width: 100%;
  }

  .leaderboard-list {
    height: auto;
    min-height: 0;
  }

  .leaderboard-tabs {
    width: 100%;
  }

  .leaderboard-tabs button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
  }

  .leaderboard-row {
    grid-template-columns: 48px minmax(0, 1fr) 64px 72px;
    font-size: .82rem;
  }

  .leaderboard-row > span {
    padding: .65rem .4rem;
  }
}

@media (max-width: 420px) {
  .leaderboard-row {
    grid-template-columns: 42px minmax(0, 1fr) 54px 58px;
    font-size: .76rem;
  }

  .leaderboard-row > span {
    padding: .62rem .3rem;
  }

  .leaderboard-header {
    font-size: .66rem;
    letter-spacing: .025em;
  }
}

.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); }
}

/* -------------------------------------------------------------------------
   Website visual foundation

   The landing page previously used several independent absolute-positioned
   groups.  That made the logo, CTAs, and community links compete for space
   and left large, unpredictable gaps at different viewport sizes.  Keep the
   game art, but give the website one quiet, document-like visual hierarchy.
   ------------------------------------------------------------------------- */
.hero-shell {
  width: min(calc(100% - 48px), 1240px);
}

.hero-content {
  width: 100%;
  max-width: 1120px;
}

.hero-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 42px 0 32px;
}

.brand-logo {
  position: relative;
  width: min(100%, 650px);
  margin: 0;
  padding: 0;
}

.logo-canvas {
  width: 100%;
}

.launch-button-large {
  position: absolute;
  top: 71%;
  left: 50%;
  width: clamp(280px, 33vw, 400px);
  height: auto;
  aspect-ratio: 640 / 144;
  margin: 0;
  padding: 16px 13.5% 0;
  transform: translate(-50%, -50%);
  isolation: isolate;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background-image: url('POWAssets/pillarframe-center.webp');
  background-position: center;
  background-repeat: no-repeat;
  /* The center texture fills behind both pillars, preventing seams at any scale. */
  background-size: 100% 100%;
  box-shadow: none;
  color: #fff3d2 !important;
  font: 28px/1 "POW Display", "POW Body", serif;
  letter-spacing: .035em;
  text-shadow: 0 2px 2px #000, 0 0 10px rgba(255, 211, 101, .34);
  z-index: 4;
}

.launch-button-large::before,
.launch-button-large::after {
  position: absolute;
  top: 0;
  width: 25.8621%;
  height: 100%;
  content: '';
  pointer-events: none;
  background-image: url('POWAssets/pillarframe-left.webp');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  z-index: 0;
}

.launch-button-large::before {
  left: -1px;
  background-position: 0 0;
}

.launch-button-large::after {
  right: -1px;
  width: 25.3448%;
  background-image: url('POWAssets/pillarframe-right.webp');
  background-position: left top;
}

.launch-button-large:hover {
  transform: translate(-50%, calc(-50% - 2px));
}

.hero-launch-status {
  position: static;
  width: min(100%, 620px);
  transform: none;
}

.hero-actions-grid {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-cta-row {
  position: static;
  display: grid;
  grid-template-columns: repeat(4, minmax(128px, 1fr));
  gap: 8px;
  width: min(100%, 640px);
  transform: none;
}

.hero-cta-row .launch-button,
.launch-button {
  position: static;
  display: inline-flex;
  min-width: 0;
  height: 42px;
  margin: 0;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  transform: none;
  border-color: rgba(184, 151, 75, .42);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(25, 28, 34, .96), rgba(10, 12, 17, .96));
  box-shadow: inset 0 1px 0 rgba(255, 243, 207, .05);
  color: #f1eadc;
  font-weight: 700;
}

.hero-cta-row .launch-button:hover,
.hero-cta-row .launch-button:focus-visible {
  border-color: rgba(241, 202, 112, .84);
  background: linear-gradient(180deg, rgba(43, 38, 29, .98), rgba(17, 16, 14, .98));
  color: #fff7df;
  outline: none;
}

.obigames-section {
  position: static;
  display: flex;
  width: auto;
  height: auto;
  margin: 0;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transform: none;
}

.obi-discord,
.obi-steam,
.how-to-play-button,
.obigames-logo {
  margin: 0;
  transform: none;
}

.obi-discord,
.obi-steam {
  position: relative;
  top: auto;
  left: auto;
}

.how-to-play-button,
.obigames-logo {
  position: static;
}

.obi-discord,
.obi-steam {
  width: 164px;
  height: 48px;
  box-shadow: none;
}

.how-to-play-button {
  position: absolute;
  top: calc(71% + 56px);
  left: 50%;
  display: inline-flex;
  width: 154px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-color: rgba(184, 151, 75, .56);
  border-radius: 6px;
  background: #090c12 !important;
  box-shadow: inset 0 1px 0 rgba(255, 239, 199, .08), 0 5px 13px rgba(0, 0, 0, .35);
  color: #f8eccb;
  font-size: 15px;
  transform: translateX(-50%);
  z-index: 4;
}

.how-to-play-button:hover,
.how-to-play-button:focus-visible {
  transform: translate(-50%, -1px);
}

.obigames-logo {
  position: absolute;
  top: auto;
  right: auto;
  bottom: 14px;
  left: 16px;
  width: 52px;
  opacity: .76;
  z-index: 3;
}

.founders {
  position: relative;
  padding: 28px 0 8px;
  border-top: 1px solid rgba(184, 151, 75, .26);
}

.founders-cta {
  margin: 0 0 18px;
}

.founders-cta #payButton {
  width: min(100%, 430px);
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid rgba(244, 208, 119, .82);
  border-radius: 6px;
  background: linear-gradient(180deg, #d9ae4d, #89631f);
  box-shadow: inset 0 1px 0 rgba(255, 246, 200, .46), 0 8px 20px rgba(0, 0, 0, .22);
  color: #1c160c;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
  white-space: normal;
}

.founders-tiers {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.founders-tier {
  min-height: 100%;
  padding: 16px 14px;
  border-color: rgba(151, 164, 182, .28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(22, 26, 33, .96), rgba(10, 12, 17, .98));
  box-shadow: none;
}

.founders-tier.selected {
  border-width: 1px;
  border-color: rgba(244, 208, 119, .9);
  background: linear-gradient(180deg, rgba(71, 56, 29, .72), rgba(18, 17, 15, .98));
  box-shadow: inset 0 0 0 1px rgba(244, 208, 119, .16), 0 8px 22px rgba(0, 0, 0, .2);
}

.founders-tier:hover:not(.owned) {
  border-color: rgba(244, 208, 119, .68);
  background: linear-gradient(180deg, rgba(37, 34, 28, .98), rgba(13, 14, 17, .98));
}

.founders-tier .tier-badge {
  transform: scale(.9);
  margin: -3px auto .1rem;
}

.founders-tier .tier-benefits {
  color: #b7c1cd;
  font-size: .76rem;
  line-height: 1.36;
}

@media (max-width: 720px) and (orientation: portrait) and (min-height: 650px) {
  .hero-shell,
  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .hero-header {
    gap: 12px;
    padding: calc(68px + env(safe-area-inset-top)) 16px 24px;
  }

  .brand-logo {
    width: min(100%, 520px);
  }

  .launch-button-large {
    position: absolute;
    top: 71%;
    left: 50%;
    width: min(42%, 220px);
    height: auto;
    aspect-ratio: 640 / 144;
    margin: 0;
    padding: 16px 13.5% 0;
    transform: translate(-50%, -50%);
    font-size: clamp(16px, 4vw, 22px);
  }

  .launch-button-large:hover {
    transform: translate(-50%, calc(-50% - 2px));
  }

  .hero-actions-grid {
    width: min(100%, 420px);
  }

  .hero-cta-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .obigames-section {
    width: 100%;
    flex-wrap: wrap;
  }

  .obi-discord,
  .obi-steam {
    width: min(164px, calc(50% - 5px));
  }

  .how-to-play-button {
    position: absolute;
    top: calc(71% + 56px);
    left: 50%;
    width: 154px;
    min-height: 38px;
    margin: 0;
    transform: translateX(-50%);
  }

  .how-to-play-button:hover,
  .how-to-play-button:focus-visible {
    transform: translate(-50%, -1px);
  }

  .obigames-logo {
    position: absolute;
    top: auto;
    right: auto;
    bottom: 8px;
    left: 8px;
    width: 44px;
  }

  .founders {
    padding: 24px 16px 4px;
  }

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

@media (max-width: 420px) and (orientation: portrait) and (min-height: 650px) {
  .hero-header {
    padding-right: 12px;
    padding-left: 12px;
  }

  .obigames-section {
    gap: 7px;
  }

  .obi-discord,
  .obi-steam {
    width: min(150px, calc(50% - 4px));
    height: 45px;
  }

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

/* -------------------------------------------------------------------------
   Responsive landing-page shell

   The hero artwork remains one interactive canvas.  The image behind it is
   an immediate-loading fallback, so the campaign art never becomes an empty
   black rectangle while JavaScript or the remaining layers are loading.
   ------------------------------------------------------------------------- */
body {
  background:
    radial-gradient(circle at 50% 0%, rgba(66, 35, 88, .18), transparent 34rem),
    #02050a;
}

.page-wrapper {
  position: relative;
  z-index: 60;
}

.site-masthead {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(118px, .75fr) auto minmax(280px, .75fr);
  min-height: 72px;
  padding: 9px clamp(18px, 3vw, 44px);
  align-items: center;
  gap: clamp(16px, 3vw, 42px);
  border-bottom: 1px solid rgba(191, 135, 42, .55);
  background: rgba(2, 6, 12, .96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .34);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.masthead-brand {
  display: inline-flex;
  width: max-content;
  flex-direction: column;
  color: #f1c866;
  font: 30px/.72 "POW Display", Georgia, serif;
  letter-spacing: .035em;
  text-decoration: none;
  text-shadow: 0 2px 2px #000, 0 0 12px rgba(195, 99, 29, .45);
}

.masthead-brand small {
  align-self: center;
  color: #a76df0;
  font-size: .62em;
  line-height: 1;
}

.masthead-links {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 5px;
}

.masthead-link {
  min-width: 0;
  min-height: 44px;
  padding: 0 clamp(12px, 1.7vw, 25px);
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #e7d6ae;
  font: 17px/1 "POW Body", Georgia, serif;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.masthead-link:hover,
.masthead-link:focus-visible,
.masthead-link-featured {
  border-color: rgba(189, 132, 42, .28);
  background: linear-gradient(180deg, rgba(31, 28, 24, .9), rgba(10, 12, 16, .95));
  color: #ffda79;
  box-shadow: inset 0 0 18px rgba(206, 146, 45, .08), 0 5px 16px rgba(0, 0, 0, .24);
  outline: none;
}

.masthead-tools {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.site-masthead .account-anchor,
.site-masthead .language-dropdown-container {
  position: relative;
  inset: auto;
  z-index: 1;
  padding: 0;
}

.site-masthead .auth-toggle {
  min-width: 190px;
  min-height: 48px;
  gap: 9px;
  padding: 5px 12px 5px 6px;
  border-color: rgba(196, 142, 49, .58);
  border-radius: 11px;
  background: #070b11;
  box-shadow: inset 0 0 14px rgba(166, 112, 36, .08);
}

.site-masthead .auth-toggle-avatar {
  width: 37px;
  height: 37px;
  border-radius: 8px;
}

.site-masthead .auth-toggle-label {
  max-width: 170px;
  overflow: hidden;
  color: #ffe08b;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-masthead .language-dropdown-toggle {
  min-height: 48px;
  border-color: rgba(196, 142, 49, .58);
  border-radius: 11px;
  background: #070b11;
  color: #ffe08b;
  box-shadow: none;
}

.site-masthead .auth-dropdown,
.site-masthead .language-dropdown {
  top: calc(100% + 10px);
  right: 0;
  left: auto;
}

#top {
  scroll-margin-top: 92px;
}

.hero-shell {
  width: min(calc(100% - 32px), 1240px);
  margin-inline: auto;
  padding-top: 72px;
}

.hero-content {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
}

.hero-header {
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: clamp(22px, 3vw, 42px) 0 30px;
  overflow: visible;
}

.hero-header .founders-countdown {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: max-content;
  max-width: calc(100vw - 28px);
  margin: 0 0 -44px;
  padding: 10px 22px;
  transform: none;
  border: 1px solid rgba(238, 199, 113, .82);
  border-radius: 10px;
  background: rgba(3, 6, 11, .94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .5), inset 0 0 18px rgba(145, 84, 211, .08);
  color: #f8ebc9;
  font: 700 15px/1.25 "POW Body", Georgia, serif;
  text-transform: uppercase;
  z-index: 8;
}

.brand-logo {
  position: relative;
  display: block;
  width: min(100%, 980px);
  aspect-ratio: 1024 / 682;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #070307;
  box-shadow: 0 20px 52px rgba(0, 0, 0, .46);
  isolation: isolate;
}

.hero-card-fallback,
.logo-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  margin: 0;
}

.hero-effect-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-static-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-card-fallback {
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

/* A second, clipped copy of the hero artwork is displaced by the SVG noise
   filter above. This bends the orange ground itself instead of drawing visible
   bands or lines over it. */
.hero-heatwave-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
  opacity: .62;
  clip-path: polygon(0 42%, 100% 42%, 100% 100%, 0 100%);
  filter: url("#heroHeatwaveDistortion") saturate(1.08);
  transform: translate3d(0, 0, 0) scale(1.006);
  transform-origin: 50% 100%;
  animation: hero-heatwave-drift 6.8s ease-in-out infinite alternate;
}

@keyframes hero-heatwave-drift {
  0% { transform: translate3d(-.35%, .25%, 0) scale(1.006); }
  50% { transform: translate3d(.25%, -.15%, 0) scale(1.009); }
  100% { transform: translate3d(.45%, .1%, 0) scale(1.007); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-heatwave-art {
    animation: none;
    filter: none;
  }
}

html.pow-low-performance .hero-heatwave-art {
  display: none;
}

.logo-canvas {
  cursor: default;
  opacity: 0;
  pointer-events: none;
  touch-action: manipulation;
  transition: opacity 120ms linear;
  z-index: 1;
}

.logo-canvas.is-ready {
  opacity: 1;
  pointer-events: auto;
}

.hero-static-layer {
  position: absolute;
  display: block;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  cursor: pointer;
  filter: none;
  pointer-events: auto;
}

.hero-static-layer:hover,
.hero-static-layer:focus-visible {
  filter: drop-shadow(0 0 9px rgba(255, 213, 104, .78));
  outline: none;
}

.hero-static-layer > img,
.hero-static-logo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
}

.hero-static-pillar {
  top: 52%;
  left: 75.9%;
  width: 45.95%;
  height: 103.6%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.hero-static-emblem {
  top: 32.7%;
  left: 75.9%;
  width: 29%;
  height: 34%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.hero-static-logo {
  position: absolute;
  top: 36.5%;
  left: 26%;
  width: 82%;
  height: 82%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.hero-static-king {
  top: 77.6%;
  left: 84.9%;
  width: 32.7%;
  height: 73.6%;
  transform: translate(-50%, -50%);
  z-index: 4;
}

.static-emblem-img {
  opacity: 1;
  transform: rotateY(0deg);
  transition: opacity 100ms linear, transform 240ms ease;
}

.static-textbox-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100% !important;
  height: auto !important;
  opacity: 0;
  transform: translate(-50%, -50%) rotateY(90deg);
  transition: opacity 100ms linear, transform 240ms ease;
}

.static-textbox-copy {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72%;
  opacity: 0;
  color: #f7f3e8;
  font: 900 clamp(10px, 1.7vw, 20px)/1.08 Inter, system-ui, sans-serif;
  text-align: center;
  text-shadow: 0 2px 2px #000;
  transform: translate(-50%, -50%) rotateY(90deg);
  transition: opacity 100ms linear, transform 240ms ease;
  pointer-events: none;
}

.hero-static-art.is-message .static-emblem-img {
  opacity: 0;
  transform: rotateY(90deg);
}

.hero-static-art.is-message .static-textbox-img,
.hero-static-art.is-message .static-textbox-copy {
  opacity: 1;
  transform: translate(-50%, -50%) rotateY(0deg);
}

.hero-static-art.is-message .hero-static-king > img {
  animation: static-king-slam 360ms ease-out;
}

.hero-static-art.is-struck .static-pillar-img {
  animation: static-pillar-strike 620ms ease-out;
}

.hero-static-art.canvas-ready .hero-static-layer {
  pointer-events: none;
}

@keyframes static-king-slam {
  0%, 100% { transform: translateY(0) scale(1); }
  38% { transform: translateY(12px) scale(1.05, .94); }
  68% { transform: translateY(-3px) scale(.98, 1.02); }
}

@keyframes static-pillar-strike {
  0%, 100% { transform: translateX(0); filter: brightness(1); }
  18% { transform: translateX(-3px); filter: brightness(1.45) drop-shadow(0 0 12px #f7cf63); }
  36% { transform: translateX(3px); }
  54% { transform: translateX(-2px); }
  72% { transform: translateX(1px); }
}

.hero-tagline {
  position: absolute;
  top: 60%;
  left: 2%;
  width: 55%;
  margin: 0;
  color: #ffd76a;
  font: 700 clamp(10px, 1.35vw, 17px)/1.08 "POW Body", Georgia, serif;
  letter-spacing: .055em;
  text-align: center;
  text-transform: uppercase;
  -webkit-text-fill-color: #ffd76a;
  -webkit-text-stroke: .25px rgba(62, 33, 8, .9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9);
  pointer-events: none;
  z-index: 6;
}

.hero-tagline span {
  display: block;
  white-space: normal;
  text-wrap: balance;
}

.launch-button-large {
  position: absolute;
  display: flex !important;
  top: 72.5%;
  left: 50%;
  width: clamp(245px, 40%, 410px);
  padding-top: clamp(8px, 1.2vw, 16px);
  font-size: clamp(20px, 2.4vw, 34px);
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.how-to-play-button {
  position: absolute;
  display: inline-flex !important;
  top: 84%;
  left: 50%;
  width: clamp(126px, 17%, 170px);
  min-height: clamp(32px, 4vw, 39px);
  font-size: clamp(13px, 1.45vw, 17px);
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%);
  z-index: 10;
}

.obigames-logo {
  bottom: clamp(8px, 1.7vw, 18px);
  left: clamp(9px, 2vw, 20px);
  width: clamp(38px, 6vw, 62px);
}

.hero-launch-status {
  position: absolute;
  right: 10%;
  bottom: 2.5%;
  left: 10%;
  width: 80%;
  transform: none;
  pointer-events: none;
  z-index: 5;
}

.hero-actions-grid {
  display: flex !important;
  width: min(100%, 720px);
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 1 !important;
  visibility: visible !important;
}

.hero-cta-row {
  position: static;
  display: flex;
  width: auto;
  transform: none;
}

.hero-cta-row .launch-button {
  position: static;
  min-width: 170px;
  height: 46px;
  transform: none;
  border-color: rgba(215, 169, 71, .75);
  background: linear-gradient(180deg, rgba(22, 24, 29, .98), rgba(6, 8, 12, .98));
  color: #f8e3a5;
}

.obigames-section {
  position: static;
  display: flex;
  width: auto;
  height: auto;
  margin: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: none;
  pointer-events: auto;
}

.obi-discord,
.obi-steam {
  position: relative;
  inset: auto;
  width: 170px;
  height: 50px;
  margin: 0;
  transform: none;
}

.hero-action-proxies[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .site-masthead {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding-inline: 14px;
  }

  .masthead-link {
    padding-inline: 10px;
    font-size: 14px;
  }

  .site-masthead .auth-toggle {
    min-width: 0;
  }

  .site-masthead .auth-toggle-label {
    max-width: 120px;
  }
}

@media (max-width: 760px) {
  .site-masthead {
    grid-template-columns: auto 1fr;
    padding: max(7px, env(safe-area-inset-top)) 10px 7px;
  }

  .masthead-brand {
    grid-column: 1;
    grid-row: 1;
    font-size: 24px;
  }

  .masthead-tools {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .masthead-links {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 3px;
  }

  .masthead-link {
    min-height: 34px;
    padding: 0 5px;
    border-radius: 6px;
    font-size: clamp(10px, 3vw, 13px);
  }

  .site-masthead .auth-toggle,
  .site-masthead .language-dropdown-toggle {
    min-height: 39px;
  }

  .site-masthead .auth-toggle-avatar {
    width: 31px;
    height: 31px;
  }

  .site-masthead .auth-toggle-label {
    max-width: 110px;
    font-size: 12px;
  }

  .hero-shell,
  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .hero-shell {
    padding-top: 101px;
  }

  .hero-header {
    gap: 12px;
    padding: 20px 10px 24px;
    overflow: visible;
  }

  .hero-header .founders-countdown {
    width: max-content;
    margin-bottom: -34px;
    padding: 7px 12px;
    font-size: 11px;
  }

  .brand-logo {
    width: 100%;
    max-width: 680px;
  }

  .hero-tagline {
    top: 60.5%;
    font-size: clamp(9px, 2.4vw, 13px);
  }

  .launch-button-large {
    top: 76%;
    width: min(42%, 285px);
    padding: clamp(5px, 2vw, 10px) 12% 0;
    font-size: clamp(14px, 5vw, 25px);
  }

  .how-to-play-button {
    top: 88%;
    width: min(30%, 154px);
    min-height: 30px;
    padding: 4px 7px;
    font-size: clamp(11px, 3.2vw, 15px);
  }

  .hero-actions-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 550px);
    gap: 7px;
  }

  .hero-cta-row,
  .obigames-section {
    display: contents;
  }

  .hero-cta-row .launch-button {
    width: 100%;
    min-width: 150px;
    height: 43px;
  }

  .obi-discord,
  .obi-steam {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 45px;
  }

  .founders {
    padding-inline: 12px;
  }
}

@media (max-width: 480px) {
  .masthead-brand {
    font-size: 21px;
  }

  .site-masthead .auth-toggle-label {
    display: none;
  }

  .site-masthead .auth-toggle {
    padding-right: 6px;
  }

  .site-masthead .language-dropdown-toggle {
    padding-inline: 10px;
  }

  .site-masthead .auth-dropdown,
  .site-masthead .language-dropdown {
    position: fixed;
    top: 98px;
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
  }

  .hero-header {
    padding-inline: 4px;
  }

  .hero-header .founders-countdown {
    margin-bottom: -28px;
  }

  .hero-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: 8px;
  }

  .hero-cta-row .launch-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .obi-discord,
  .obi-steam {
    width: 100%;
  }
}
