:root {
  --black: #050505;
  --black-soft: #140c06;
  --yellow: #ffea00;
  --yellow-soft: #fff59d;
  --yellow-deep: #caa100;
  --brown: #a66f1f;
  --brown-dark: #2d1b0f;
  --brown-darker: #100905;
  --cream: #fff3a6;
  --panel: rgba(58, 34, 18, 0.76);
  --panel-strong: rgba(90, 55, 25, 0.82);
  --text: var(--yellow);
  --muted: #f4d867;
  --line: rgba(255, 234, 0, 0.22);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: linear-gradient(
    90deg,
    var(--yellow) 0,
    var(--yellow) calc(50% - 650px),
    var(--brown) calc(50% - 600px),
    var(--yellow) calc(50% - 599px),
    var(--yellow) calc(50% + 599px),
    var(--brown) calc(50% + 600px),
    var(--yellow) calc(50% + 650px),
    var(--yellow) 100%
  );
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(5, 5, 5, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 5, 5, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.65), transparent 72%);
}

a {
  color: var(--yellow);
  text-decoration: none;
}

a:hover {
  color: var(--yellow-soft);
}

img,
video {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5px clamp(14px, 3vw, 34px);
  border-bottom: 3px solid var(--brown-darker);
  border-left: 3px solid var(--brown);
  border-right: 3px solid var(--brown);
  background: linear-gradient(180deg, var(--brown-darker) 0%, var(--brown-dark) 100%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(clamp(430px, 42vw, 590px) - 100px);
  background: linear-gradient(180deg, #fff400 0%, var(--yellow) 100%);
  z-index: -1;
}

.site-header::after {
  content: "";
  position: absolute;
  left: calc(clamp(430px, 42vw, 590px) - 100px);
  top: 0;
  bottom: 0;
  width: 100px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0 C74 18 26 82 100 100 L0 100 Z' fill='%23ffea00'/%3E%3Cpath d='M0 0 C74 18 26 82 100 100' fill='none' stroke='%23050505' stroke-width='4' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
  z-index: -1;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 205px;
  position: relative;
  z-index: 1;
  color: var(--black);
  line-height: 1;
}

.brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

.brand img {
  display: block;
  width: 178px;
  height: auto;
}

.brand span {
  display: block;
  margin-top: 1px;
  color: var(--black);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.views-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 92px;
  min-height: 44px;
  padding: 5px 10px;
  border: 2px solid var(--brown-darker);
  border-radius: 8px;
  background: var(--yellow);
  color: var(--brown-darker);
  line-height: 1.05;
  position: relative;
  z-index: 1;
}

.views-badge-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.views-badge strong {
  font-size: 1.08rem;
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 2px solid var(--brown-darker);
  background: var(--brown-darker);
  color: var(--yellow);
  font-weight: 700;
  letter-spacing: 0;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-link img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brown-darker);
  background: var(--yellow);
  transform: translateY(-1px);
}

.mobile-menu-toggle,
.mobile-menu,
.mobile-menu-overlay {
  display: none;
}

.mobile-menu-toggle {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
  border: 2px solid rgba(255, 234, 0, 0.45);
  border-radius: 8px;
  background: var(--brown-darker);
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: var(--yellow);
}

.mobile-menu-toggle span + span {
  margin-top: 3px;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(5, 5, 5, 0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 51;
  display: block;
  width: min(86vw, 330px);
  height: 100dvh;
  padding: 18px;
  background: linear-gradient(180deg, rgba(16, 9, 5, 0.96) 0%, rgba(45, 27, 15, 0.96) 100%);
  border-left: 4px solid var(--yellow);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.42);
  transform: translateX(105%);
  transition: transform 220ms ease;
  overflow-y: auto;
}

.mobile-menu-open {
  overflow: hidden;
}

.mobile-menu-open .mobile-menu-overlay {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-open .mobile-menu {
  transform: translateX(0);
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(255, 234, 0, 0.34);
}

.mobile-menu-head img {
  width: 150px;
  height: auto;
}

.mobile-menu-close {
  width: 38px;
  height: 38px;
  border: 2px solid var(--yellow);
  border-radius: 8px;
  background: var(--yellow);
  color: var(--black);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.mobile-menu-section {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.mobile-menu-section h2 {
  margin: 0 0 4px;
  color: var(--yellow);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.mobile-menu-section a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 234, 0, 0.22);
  border-radius: 8px;
  background: rgba(255, 234, 0, 0.08);
  color: var(--yellow);
  font-weight: 800;
}

.mobile-menu-section a img,
.footer-links a img,
.link-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}

.mobile-menu-section a img,
.footer-links a img {
  object-fit: contain;
}

.link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.mobile-menu-section a:hover {
  background: var(--yellow);
  color: var(--black);
}

.site-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-left: 3px solid var(--brown);
  border-right: 3px solid var(--brown);
}

.content-panel {
  --panel-pad: clamp(28px, 5vw, 70px);
  --panel-gutter: min(30px, 2.5vw);
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 480px;
  padding: 40px var(--panel-pad) var(--panel-pad);
  border: 0;
  border-radius: 0;
  background: var(--yellow);
  box-shadow: var(--shadow);
  color: var(--brown-darker);
}

.content-panel > b:first-of-type,
.content-panel > h1:first-child,
.content-panel > h2:first-child {
  display: inline-block;
  margin-top: 0;
}

.content-panel b,
.content-panel strong {
  color: var(--brown-darker);
}

.content-panel p,
.content-panel li {
  color: inherit;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.content-panel a:not(.game-button):not(.rpgbutton1):not(.rpg-primary-link):not(.rpg-secondary-link) {
  color: var(--brown-dark);
}

.content-panel > * + h1,
.content-panel > * + h2,
.content-panel > * + h3 {
  position: relative;
}

.content-panel > * + h1::before,
.content-panel > * + h2::before,
.content-panel > * + h3::before {
  content: "";
  display: block;
  width: 100%;
  height: 22px;
  margin: clamp(22px, 4vw, 42px) 0 clamp(18px, 3vw, 30px);
  background:
    linear-gradient(135deg, transparent 0 44%, #c28a2e 45% 55%, transparent 56%) center bottom / 250px 12px no-repeat,
    linear-gradient(90deg, rgba(194, 138, 46, 0), #c28a2e 18%, #f3d06a 50%, #c28a2e 82%, rgba(194, 138, 46, 0)) center 4px / 100% 6px no-repeat;
}

.game-list-separator {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(100% + (var(--panel-pad) * 2) + (var(--panel-gutter) * 2));
  margin: clamp(22px, 4vw, 38px) 0 clamp(18px, 3vw, 30px);
  margin-left: calc((var(--panel-pad) + var(--panel-gutter)) * -1);
  margin-right: calc((var(--panel-pad) + var(--panel-gutter)) * -1);
}

.game-list-separator-line {
  display: block;
  width: 100%;
  height: 6px;
  background: #a66f1f;
}

.game-list-separator-tab {
  display: block;
  width: 30%;
  height: 12px;
  margin-top: -2px;
  background: #a66f1f;
  transform: skewX(-38deg);
}

.home-light-section {
  width: calc(100% + (var(--panel-pad) * 2) + (var(--panel-gutter) * 2));
  min-height: calc(100vh - 72px);
  margin: -40px calc((var(--panel-pad) + var(--panel-gutter)) * -1) clamp(-70px, -5vw, -28px);
  padding: 0;
  color: var(--brown-darker);
  background: var(--yellow);
}

.home-section-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-top: 0;
  background: var(--yellow);
}

.home-section-divider-line {
  width: 100%;
  height: 6px;
  background: #a66f1f;
}

.home-section-divider-tab {
  width: 30%;
  height: 12px;
  margin-top: -2px;
  background: #a66f1f;
  transform: skewX(-38deg);
}

.home-section {
  width: 100%;
  color: var(--brown-darker);
}

.home-section-inner {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 122px) clamp(28px, 5vw, 80px);
}

.home-section-split .home-section-inner,
.home-section-split {
  display: grid;
}

.home-section-split {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr);
  column-gap: clamp(44px, 6vw, 80px);
  row-gap: 28px;
  align-items: center;
}

.home-section-side {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.home-section-side-left {
  justify-self: stretch;
}

.home-section-side-right {
  justify-self: stretch;
}

.home-section-hero {
  background: var(--yellow);
}

.home-section-who {
  background: var(--yellow);
}

.home-section-mission {
  background: var(--yellow);
}

.home-light-section h1 {
  margin: 0;
  color: var(--brown-darker);
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: 1.08;
  text-transform: uppercase;
  text-shadow: none;
  overflow-wrap: normal;
  word-break: normal;
}

.home-light-section h2 {
  margin: 0;
  color: var(--brown-darker);
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: none;
  overflow-wrap: normal;
  word-break: normal;
}

.home-section-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.18;
  text-transform: none;
}

.home-light-section p {
  margin: 0;
  color: var(--brown-darker);
  font-size: clamp(1.08rem, 1.6vw, 1.45rem);
  line-height: 1.45;
  text-shadow: none;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--yellow);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
}

h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  margin: 0 0 18px;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

.game-button,
.rpgbutton1,
.form-group button[type="submit"],
#form1 button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid var(--brown-darker);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--brown-darker) 0%, var(--brown-dark) 100%);
  color: var(--yellow) !important;
  font-weight: 800;
  font-size: 0.92rem;
  text-align: center;
  text-shadow: none;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.game-button:hover,
.rpgbutton1:hover,
.form-group button[type="submit"]:hover,
#form1 button[type="submit"]:hover {
  background: var(--yellow);
  color: var(--black) !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.game-container {
  position: relative;
  overflow: visible;
  margin: 0;
  padding: clamp(22px, 4vw, 42px) 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.game-container + .game-container {
  margin-top: 8px;
}

.game-container + br,
.game-container + br + br,
.game-container + br + br + br {
  display: none;
}

.game-content {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 52px);
  align-items: center;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.game-image {
  margin: 0;
  padding: 0;
  border-radius: 18px;
  background: rgba(5, 5, 5, 0.42);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.game-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.game-title {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.game-description {
  color: var(--brown-darker);
  max-width: 860px;
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  line-height: 1.62;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.72);
}

.button-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.video-container {
  margin-top: 24px;
  text-align: center;
}

.video-container video {
  display: block;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 8px;
  border-radius: 8px;
  background: var(--black);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.content-box,
.content-box2,
.cool-box {
  width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--yellow);
  color: var(--brown-darker);
}

#form1,
.contact-form2 {
  width: min(100%, 860px);
  margin: 22px 0 34px;
  padding: clamp(18px, 3vw, 30px);
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.42), rgba(5, 5, 5, 0.18));
  color: var(--yellow);
  box-shadow: none;
  backdrop-filter: blur(2px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--yellow);
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.72);
}

.description {
  display: block;
  margin-bottom: 8px;
  color: #fff59d;
  font-size: 0.94rem;
}

.form-group input,
.form-group textarea,
#form1 input,
#form1 textarea {
  width: 100% !important;
  min-height: 46px;
  padding: 12px 13px !important;
  border: 1px solid rgba(255, 234, 0, 0.38) !important;
  border-radius: 8px !important;
  background: rgba(255, 243, 166, 0.92);
  color: var(--brown-darker);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.form-group textarea,
#form1 textarea {
  min-height: 150px;
  resize: vertical;
}

.captcha-container {
  padding: 16px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 234, 0, 0.1);
}

.error-message {
  display: block;
  margin-top: 6px;
  color: #fecaca;
  font-size: 0.92rem;
}

.success-message {
  padding: 20px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 234, 0, 0.18);
  color: var(--yellow);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 44px);
  border-top: 0;
  border-left: 3px solid var(--brown);
  border-right: 3px solid var(--brown);
  border-radius: 0;
  background: linear-gradient(180deg, var(--brown-darker) 0%, var(--brown-dark) 100%);
  color: var(--yellow);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.section-separator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  border-left: 3px solid var(--brown);
  border-right: 3px solid var(--brown);
  background-color: var(--yellow);
  padding: 6px 0 10px;
}

.section-separator-line {
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(166, 111, 31, 0), #a66f1f 14%, #a66f1f 86%, rgba(166, 111, 31, 0));
}

.section-separator-tab {
  display: block;
  width: min(28.8%, 426px);
  height: 10px;
  margin-top: -1px;
  background: #a66f1f;
  transform: skewX(-38deg);
}

.footer-brand img {
  width: 190px;
  height: auto;
}

.footer-brand p {
  max-width: 420px;
  margin: 14px 0 0;
  color: var(--yellow-soft);
}

.footer-links {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-links h2 {
  margin: 0 0 6px;
  color: var(--yellow);
  font-size: 1rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow-soft);
}

.footer-links a:hover {
  color: var(--yellow);
}

.tablelinkcontainer,
.bottomlinks,
.menuB1,
.menuB2,
.header-table2,
.tree-background {
  width: 100%;
}

@media (max-width: 820px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .site-header::before {
    width: 252px;
    height: 100%;
    border-right: 0;
    border-bottom-right-radius: 0;
  }

  .site-header::after {
    display: block;
    left: 252px;
    top: 0;
    bottom: 0;
    width: 58px;
    height: auto;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0 C74 18 26 82 100 100 L0 100 Z' fill='%23ffea00'/%3E%3Cpath d='M0 0 C74 18 26 82 100 100' fill='none' stroke='%23050505' stroke-width='4' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E")
      center / 100% 100% no-repeat;
  }

  .brand {
    min-width: 150px;
  }

  .brand-cluster {
    gap: 4px;
  }

  .views-badge {
    min-width: 50px;
    min-height: 32px;
    padding: 3px 6px;
  }

  .views-badge-label {
    display: none;
  }

  .views-badge strong {
    font-size: 0.9rem;
  }

  .site-nav {
    display: flex;
    justify-content: flex-end;
    width: auto;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 2px;
    margin-top: 0;
    margin-left: 0;
  }

  .nav-link {
    flex: 0 0 28px;
    min-width: 0;
    min-height: 32px;
    padding: 4px;
    font-size: 0;
    gap: 0;
  }

  .nav-link span {
    display: none;
  }

  .nav-link img {
    width: 19px;
    height: 19px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    flex: 0 0 38px;
    margin-left: 4px;
  }

  .game-content {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 18px 26px;
    padding: 24px 18px;
  }

  .footer-brand {
    flex: 1 1 190px;
  }

  .footer-brand img {
    width: 150px;
  }

  .footer-brand p {
    margin-top: 8px;
    font-size: 0.95rem;
  }

  .footer-links {
    flex: 1 1 145px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .footer-links h2 {
    flex: 0 0 100%;
    margin-bottom: 0;
  }

  .footer-links a {
    min-height: 30px;
    white-space: nowrap;
  }

  .footer-links a img,
  .footer-links .link-icon {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 520px) {
  .site-header,
  .site-main,
  .site-footer {
    width: 100%;
  }

  .site-header {
    margin-top: 0;
  }

  .brand img {
    width: 132px;
  }

  .brand span {
    font-size: 7.5px;
  }

  .content-panel {
    padding: 40px 20px 20px;
  }

  .home-light-section {
    min-height: 0;
    margin: -40px -20px -20px;
  }

  .home-section-inner {
    padding: 52px 20px 58px;
  }

  .home-light-section h1 {
    font-size: clamp(1.8rem, 9vw, 2.8rem);
  }

  .home-section-split {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-section-reverse .home-section-side-left {
    order: 2;
  }

  .home-section-reverse .home-section-side-right {
    order: 1;
  }

  .home-light-section h2 {
    font-size: clamp(1.8rem, 9vw, 2.8rem);
  }

  .home-section-copy h2 {
    font-size: 1.25rem;
    line-height: 1.22;
    text-transform: none;
  }

  .home-light-section p {
    font-size: 1rem;
  }
}

/* 2026 visual refresh: saturated BMP yellow, espresso structure, readable brown type. */
:root {
  --yellow: #ffea00;
  --yellow-hot: #ffe000;
  --yellow-soft: #fff176;
  --yellow-pale: #fff6a8;
  --brown: #8b5a19;
  --brown-mid: #5b3517;
  --brown-dark: #2a1308;
  --brown-darker: #120805;
  --brown-light: #c99a48;
  --brown-lighter: #d7b66a;
  --ink: #251104;
  --line: rgba(76, 39, 12, 0.24);
  --shadow: 0 18px 42px rgba(50, 22, 4, 0.22);
}

body {
  color: var(--ink);
  background:
    linear-gradient(90deg,
      #5b3517 0,
      #5b3517 calc(50% - 690px),
      #6d3d14 calc(50% - 665px),
      #a66f1f calc(50% - 635px),
      #d7a928 calc(50% - 605px),
      #fff176 calc(50% - 575px),
      var(--yellow) calc(50% - 545px),
      var(--yellow) calc(50% + 545px),
      #fff176 calc(50% + 575px),
      #d7a928 calc(50% + 605px),
      #a66f1f calc(50% + 635px),
      #6d3d14 calc(50% + 665px),
      #5b3517 calc(50% + 690px),
      #5b3517 100%);
}

body::before {
  background:
    linear-gradient(rgba(80, 43, 11, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 43, 11, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: none;
}

.site-header,
.site-main,
.section-separator,
.site-footer {
  max-width: 1200px;
  border-left: 3px solid var(--brown);
  border-right: 3px solid var(--brown);
}

.site-header {
  min-height: 72px;
  border-bottom: 3px solid var(--brown);
  background:
    linear-gradient(180deg, rgba(56, 26, 9, 0.98), rgba(26, 11, 5, 0.98));
  box-shadow: 0 12px 30px rgba(36, 14, 4, 0.22);
}

.site-header::before {
  background: linear-gradient(180deg, #fff000 0%, var(--yellow) 100%);
}

.site-header::after {
  filter: drop-shadow(5px 0 0 rgba(18, 8, 5, 0.98));
}

.nav-link {
  border-color: rgba(255, 234, 0, 0.18);
  background: rgba(18, 8, 5, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 234, 0, 0.08);
}

.nav-link:hover,
.nav-link.is-active {
  border-color: var(--brown-darker);
  background: var(--yellow);
  color: var(--brown-darker);
}

.views-badge {
  min-width: 72px;
  min-height: 38px;
  border-color: var(--brown-darker);
  background: var(--yellow);
  color: var(--brown-darker);
}

.content-panel {
  width: 95%;
  max-width: 1200px;
  min-height: 520px;
  padding: clamp(34px, 5vw, 68px);
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.28), transparent 22rem),
    linear-gradient(180deg, #fff36d 0%, var(--yellow) 48%, #e7c326 100%);
  color: var(--ink);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    var(--shadow);
}

.content-panel p,
.content-panel li,
.game-description,
.home-light-section p {
  color: var(--ink);
  text-shadow: none;
}

.content-panel a:not(.game-button):not(.rpgbutton1):not(.rpg-primary-link):not(.rpg-secondary-link) {
  color: #4c2508;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
.game-title {
  color: var(--brown-darker);
  text-shadow: none;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--brown-mid);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plain-page {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  padding: clamp(24px, 5vw, 64px) 0;
}

.plain-page h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.6rem, 6vw, 5.25rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.plain-copy {
  max-width: 760px;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.plain-copy p:first-child {
  margin-top: 0;
}

.content-panel > b {
  display: block;
  margin: clamp(26px, 4vw, 44px) 0 10px;
  color: var(--brown-darker);
  font-size: clamp(1.35rem, 2.4vw, 2.3rem);
  line-height: 1.12;
}

.content-panel > b:first-of-type {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  text-transform: uppercase;
}

.content-panel br {
  line-height: 1.35;
}

.section-separator,
.home-section-divider,
.game-list-separator {
  background: var(--yellow);
  padding: 0;
}

.section-separator-line,
.home-section-divider-line,
.game-list-separator-line {
  width: 100%;
  height: 7px;
  background: var(--brown);
}

.section-separator-tab,
.home-section-divider-tab,
.game-list-separator-tab {
  width: 30%;
  height: 13px;
  margin-top: -1px;
  background: var(--brown);
  transform: skewX(-38deg);
}

.home-light-section {
  min-height: 0;
  background: transparent;
}

.home-section {
  color: var(--ink);
  background: rgba(255, 234, 0, 0.34);
}

.home-section:nth-of-type(2) {
  background: rgba(255, 217, 42, 0.32);
}

.home-section:nth-of-type(3) {
  background: rgba(255, 241, 118, 0.38);
}

.home-section-inner {
  padding: clamp(46px, 7vw, 92px) clamp(30px, 6vw, 86px);
}

.home-section-split {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(34px, 7vw, 96px);
}

.home-light-section h1,
.home-light-section h2 {
  color: var(--brown-darker);
  max-width: 12ch;
  text-shadow: none;
}

.home-light-section h1 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.home-light-section h2 {
  font-size: clamp(2.15rem, 4.5vw, 4.2rem);
}

.home-section-copy h2 {
  max-width: 18ch;
  font-size: clamp(1.45rem, 2.5vw, 2.35rem);
}

.home-light-section p {
  max-width: 720px;
  font-size: clamp(1.02rem, 1.45vw, 1.22rem);
}

.game-container {
  margin: 0;
  padding: clamp(34px, 5vw, 62px) 0;
  background:
    linear-gradient(90deg, rgba(77, 39, 11, 0.1), rgba(255, 255, 255, 0.14), rgba(77, 39, 11, 0.08));
}

.game-container:nth-of-type(odd) {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 201, 33, 0.28), rgba(255, 255, 255, 0.12));
}

.game-content {
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  padding: 0 clamp(18px, 3vw, 34px);
}

.game-image {
  border: 4px solid var(--brown-darker);
  border-radius: 10px;
  background: var(--brown-darker);
  box-shadow: 0 16px 32px rgba(53, 24, 5, 0.24);
}

.game-title {
  margin-bottom: 10px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.98;
}

.game-description {
  max-width: 820px;
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  line-height: 1.58;
}

.game-button,
.rpgbutton1,
.form-group button[type="submit"],
#form1 button[type="submit"] {
  border: 2px solid var(--brown-darker) !important;
  border-radius: 7px !important;
  background: linear-gradient(180deg, #2b1308 0%, #140805 100%) !important;
  color: var(--yellow) !important;
  box-shadow: 0 10px 20px rgba(42, 19, 8, 0.24);
}

.game-button:hover,
.rpgbutton1:hover,
.form-group button[type="submit"]:hover,
#form1 button[type="submit"]:hover {
  background: var(--yellow) !important;
  color: var(--brown-darker) !important;
}

#form1,
.contact-form2 {
  width: min(100%, 820px);
  margin: clamp(18px, 4vw, 42px) 0;
  padding: clamp(20px, 4vw, 40px);
  border-left: 7px solid var(--brown);
  background: rgba(255, 246, 168, 0.58);
  color: var(--ink);
}

.form-group label,
.description {
  color: var(--brown-darker);
  text-shadow: none;
}

.description {
  opacity: 0.8;
}

.form-group input,
.form-group textarea,
#form1 input,
#form1 textarea {
  border: 2px solid rgba(91, 53, 23, 0.32) !important;
  background: rgba(255, 255, 230, 0.86) !important;
}

.captcha-container {
  background: rgba(139, 90, 25, 0.12);
}

.success-message {
  background: rgba(255, 246, 168, 0.7);
  color: var(--ink);
}

.contact-mark {
  max-width: 520px;
  margin-top: 28px;
  opacity: 0.82;
}

.site-footer {
  background:
    linear-gradient(180deg, rgba(56, 26, 9, 0.98), rgba(26, 11, 5, 0.98));
  color: var(--yellow);
  border-top: 3px solid var(--brown);
}

.footer-brand p,
.footer-links a {
  color: var(--yellow-pale);
}

.footer-links h2 {
  color: var(--yellow);
}

@media (max-width: 820px) {
  .site-header {
    min-height: 66px;
  }

  .content-panel {
    width: 100%;
    padding: 28px 18px;
  }

  .plain-page,
  .home-section-split,
  .game-content {
    grid-template-columns: 1fr;
  }

  .plain-page h1,
  .home-light-section h1,
  .home-light-section h2 {
    max-width: 100%;
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .home-section-reverse .home-section-side-left {
    order: 2;
  }

  .home-section-reverse .home-section-side-right {
    order: 1;
  }

  .game-title {
    font-size: clamp(2rem, 11vw, 3.4rem);
  }
}

@media (max-width: 520px) {
  body {
    background: #5b3517;
  }

  .site-header,
  .site-main,
  .site-footer,
  .section-separator {
    border-left: 0;
    border-right: 0;
  }

  .home-light-section {
    margin-left: -18px;
    margin-right: -18px;
  }
}

/* 2026 neon HUD theme: angular panels, olive grid, electric yellow UI. */
:root {
  --hud-bg: #182307;
  --hud-bg-deep: #071204;
  --hud-panel: rgba(196, 213, 10, 0.22);
  --hud-panel-strong: rgba(233, 246, 12, 0.9);
  --hud-neon: #f3ff00;
  --hud-neon-soft: #f8ff73;
  --hud-line: rgba(243, 255, 0, 0.72);
  --hud-glass: rgba(69, 82, 7, 0.66);
  --hud-text: #f3ff00;
  --hud-muted: #dbe45a;
  --hud-dark-text: #172004;
}

body {
  color: var(--hud-text);
  background:
    radial-gradient(circle at 82% 14%, rgba(243, 255, 0, 0.18), transparent 18rem),
    radial-gradient(circle at 18% 80%, rgba(243, 255, 0, 0.1), transparent 24rem),
    linear-gradient(rgba(243, 255, 0, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 255, 0, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, #263109 0%, var(--hud-bg) 42%, var(--hud-bg-deep) 100%);
  background-size: auto, auto, 42px 42px, 42px 42px, auto;
}

body::before {
  background:
    linear-gradient(90deg, rgba(243, 255, 0, 0.08), transparent 20%, transparent 80%, rgba(243, 255, 0, 0.08)),
    repeating-linear-gradient(90deg, transparent 0 88px, rgba(243, 255, 0, 0.035) 88px 90px);
  background-size: auto;
  opacity: 0.72;
}

.site-header,
.site-main,
.section-separator,
.site-footer {
  border-left: 2px solid rgba(243, 255, 0, 0.5);
  border-right: 2px solid rgba(243, 255, 0, 0.5);
}

.site-header {
  min-height: 82px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--hud-line);
  background:
    linear-gradient(90deg, rgba(243, 255, 0, 0.98) 0 29%, transparent 29%),
    linear-gradient(180deg, rgba(17, 28, 4, 0.96), rgba(7, 18, 4, 0.98));
  box-shadow: 0 0 0 1px rgba(243, 255, 0, 0.18), 0 18px 50px rgba(0, 0, 0, 0.38);
}

.site-header::before {
  width: clamp(330px, 34vw, 500px);
  background:
    linear-gradient(135deg, var(--hud-neon) 0 78%, transparent 78%),
    linear-gradient(180deg, #fbff1f, var(--hud-neon));
  clip-path: polygon(0 0, 91% 0, 100% 38%, 92% 100%, 0 100%);
}

.site-header::after {
  display: none;
}

.brand img {
  filter: drop-shadow(0 0 8px rgba(243, 255, 0, 0.28));
}

.brand span,
.views-badge {
  color: #101903;
}

.views-badge {
  border: 2px solid #101903;
  border-radius: 0;
  background: var(--hud-neon);
  clip-path: polygon(0 0, 88% 0, 100% 22%, 100% 100%, 12% 100%, 0 78%);
}

.nav-link,
.mobile-menu-toggle {
  border: 2px solid rgba(243, 255, 0, 0.55);
  border-radius: 0;
  background: rgba(7, 18, 4, 0.78);
  color: var(--hud-neon);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--hud-neon);
  color: var(--hud-dark-text);
  box-shadow: 0 0 18px rgba(243, 255, 0, 0.38);
}

.content-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(243, 255, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 255, 0, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(40, 53, 7, 0.82), rgba(12, 24, 5, 0.86));
  background-size: 36px 36px, 36px 36px, auto;
  color: var(--hud-text);
  border: 2px solid var(--hud-line);
  box-shadow:
    inset 0 0 0 2px rgba(243, 255, 0, 0.12),
    inset 0 0 70px rgba(243, 255, 0, 0.12),
    0 26px 70px rgba(0, 0, 0, 0.38);
}

.content-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(243, 255, 0, 0.38);
  clip-path: polygon(0 18px, 18px 18px, 18px 0, calc(100% - 130px) 0, calc(100% - 105px) 18px, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) calc(100% - 18px), calc(100% - 18px) 100%, 130px 100%, 105px calc(100% - 18px), 0 calc(100% - 18px));
}

.content-panel p,
.content-panel li,
.game-description,
.home-light-section p,
.plain-copy,
.content-panel b,
.content-panel strong {
  color: var(--hud-neon-soft);
}

.content-panel a:not(.game-button):not(.rpgbutton1):not(.rpg-primary-link):not(.rpg-secondary-link) {
  color: var(--hud-neon);
}

h1,
h2,
h3,
.game-title,
.home-light-section h1,
.home-light-section h2,
.plain-page h1 {
  color: var(--hud-neon);
  text-shadow: 0 0 18px rgba(243, 255, 0, 0.25);
}

.eyebrow {
  color: var(--hud-neon);
}

.plain-page,
.home-section,
.game-container,
#form1,
.contact-form2,
.content-box,
.content-box2,
.cool-box {
  position: relative;
  background: linear-gradient(180deg, rgba(111, 128, 10, 0.46), rgba(41, 55, 8, 0.58));
  border: 2px solid var(--hud-line);
  clip-path: polygon(18px 0, calc(100% - 48px) 0, 100% 34px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 48px 100%, 0 calc(100% - 34px), 0 18px);
  box-shadow: inset 0 0 30px rgba(243, 255, 0, 0.08), 0 18px 42px rgba(0, 0, 0, 0.25);
}

.plain-page {
  padding: clamp(28px, 5vw, 66px);
}

.home-section {
  margin: 18px 0;
}

.home-section:nth-of-type(2),
.home-section:nth-of-type(3),
.game-container:nth-of-type(odd) {
  background: linear-gradient(180deg, rgba(150, 163, 12, 0.4), rgba(34, 48, 7, 0.58));
}

.section-separator,
.home-section-divider,
.game-list-separator {
  background: transparent;
  padding: 10px 0;
}

.section-separator-line,
.home-section-divider-line,
.game-list-separator-line {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--hud-neon) 12%, var(--hud-neon) 88%, transparent);
  box-shadow: 0 0 14px rgba(243, 255, 0, 0.28);
}

.section-separator-tab,
.home-section-divider-tab,
.game-list-separator-tab {
  width: 24%;
  height: 12px;
  background: var(--hud-neon);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transform: none;
}

.game-content {
  padding: clamp(18px, 3vw, 34px);
}

.game-image {
  border-color: var(--hud-neon);
  border-radius: 0;
  background: rgba(7, 18, 4, 0.9);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  box-shadow: 0 0 24px rgba(243, 255, 0, 0.18);
}

.game-button,
.rpgbutton1,
.form-group button[type="submit"],
#form1 button[type="submit"],
.rpg-primary-link,
.rpg-secondary-link {
  border-color: var(--hud-neon) !important;
  border-radius: 0 !important;
  background: var(--hud-neon) !important;
  color: var(--hud-dark-text) !important;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  box-shadow: 0 0 18px rgba(243, 255, 0, 0.25);
}

.game-button:hover,
.rpgbutton1:hover,
.form-group button[type="submit"]:hover,
#form1 button[type="submit"]:hover {
  filter: brightness(1.08);
}

.form-group label,
.description {
  color: var(--hud-neon-soft);
}

.form-group input,
.form-group textarea,
#form1 input,
#form1 textarea {
  border-color: rgba(243, 255, 0, 0.55) !important;
  background: rgba(12, 24, 5, 0.82) !important;
  color: var(--hud-neon-soft) !important;
  border-radius: 0 !important;
}

.site-footer,
.mobile-menu {
  background:
    linear-gradient(rgba(243, 255, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 255, 0, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 31, 5, 0.98), rgba(5, 13, 3, 0.98));
  background-size: 34px 34px, 34px 34px, auto;
  border-color: var(--hud-line);
}

.footer-brand p,
.footer-links a {
  color: var(--hud-neon-soft);
}

.footer-links h2 {
  color: var(--hud-neon);
}

@media (max-width: 820px) {
  .site-header {
    min-height: 70px;
    background:
      linear-gradient(90deg, rgba(243, 255, 0, 0.98) 0 57%, transparent 57%),
      linear-gradient(180deg, rgba(17, 28, 4, 0.96), rgba(7, 18, 4, 0.98));
  }

  .site-header::before {
    width: 255px;
    clip-path: polygon(0 0, 88% 0, 100% 38%, 88% 100%, 0 100%);
  }

  .plain-page,
  .home-section,
  .game-container,
  #form1,
  .contact-form2 {
    clip-path: polygon(12px 0, calc(100% - 28px) 0, 100% 20px, 100% 100%, 0 100%, 0 12px);
  }
}

@media (max-width: 520px) {
  body {
    background:
      linear-gradient(rgba(243, 255, 0, 0.055) 1px, transparent 1px),
      linear-gradient(90deg, rgba(243, 255, 0, 0.055) 1px, transparent 1px),
      linear-gradient(180deg, #263109 0%, var(--hud-bg-deep) 100%);
    background-size: 36px 36px, 36px 36px, auto;
  }
}

/* Compact desktop layout: let the content fit naturally without clipping the page. */
.mobile-menu[aria-hidden="true"] {
  display: none;
}

.legal-reader h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.legal-pagination[hidden] {
  display: none;
}

.legal-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.legal-pagination button {
  min-height: 36px;
  padding: 6px 18px;
  border: 1px solid var(--hud-neon);
  background: var(--hud-neon);
  color: var(--hud-dark-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.legal-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

@media (min-width: 821px) {
  body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    padding-block: 50px;
    font-size: 15px;
    line-height: 1.45;
  }

  .site-header {
    position: relative;
    flex-shrink: 0;
    border-top: 2px solid var(--hud-line);
    min-height: 64px;
    padding: 5px 20px;
    gap: 12px;
  }

  .site-header::before {
    width: 340px;
  }

  .brand {
    min-width: 180px;
  }

  .brand img {
    width: 152px;
  }

  .brand span {
    font-size: 9px;
  }

  .nav-link {
    gap: 5px;
    padding: 5px 8px;
    font-size: 14px;
  }

  .site-main {
    flex: 1 0 auto;
    display: flex;
  }

  .content-panel {
    --panel-pad: 20px;
    --panel-gutter: 0px;
    width: 100%;
    min-height: 0;
    padding: clamp(14px, 2.5vh, 24px) 20px;
    min-width: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }

  .content-panel::before {
    inset: 7px;
  }

  .section-separator,
  .home-section-divider,
  .game-list-separator {
    display: none;
  }

  .home-light-section {
    width: 100%;
    min-height: 0;
    margin: 0;
    background: transparent;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .home-section {
    min-width: 0;
    margin: 0;
  }

  .home-section-hero {
    grid-column: 1 / -1;
  }

  .home-section-inner {
    padding: clamp(20px, 3.5vh, 38px) clamp(20px, 3vw, 36px);
  }

  .home-section-split {
    gap: 16px 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-light-section h1 {
    max-width: 13ch;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
  }

  .home-light-section h2 {
    max-width: none;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    line-height: 1.15;
  }

  .home-section-copy h2 {
    margin-bottom: 10px;
  }

  .home-light-section p {
    font-size: 1rem;
    line-height: 1.45;
  }

  .home-section-who .home-section-split,
  .home-section-mission .home-section-split {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-section-who .home-section-side-right {
    order: -1;
  }

  .game-container,
  .game-container + .game-container {
    margin: 0;
    padding: 0;
  }

  .game-content {
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 22px;
    padding: 16px 24px;
  }

  .game-image img {
    height: 148px;
    object-fit: contain;
  }

  .game-title {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    line-height: 1.1;
  }

  .game-description {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
  }

  .button-container {
    gap: 8px;
    margin-top: 12px;
  }

  .game-button {
    min-height: 36px;
    padding: 6px 14px;
    font-size: 13px;
  }

  .plain-page {
    padding: clamp(22px, 4vh, 44px);
    gap: 28px;
    align-items: center;
  }

  .plain-page h1 {
    font-size: clamp(2rem, 3.5vw, 3rem);
  }

  .plain-copy {
    font-size: 1rem;
    line-height: 1.5;
  }

  .plain-copy p:last-child {
    margin-bottom: 0;
  }

  .contact-page {
    padding: 14px 24px;
  }

  .contact-page .eyebrow,
  .contact-mark,
  #form1 .description,
  #form1 .error-message:empty {
    display: none;
  }

  .contact-page h1 {
    font-size: 1.8rem;
  }

  .contact-page p {
    margin: 0;
  }

  #form1 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
    width: 100%;
    margin: 0;
    padding: 16px 24px;
  }

  #form1 .form-group {
    min-width: 0;
    margin: 0;
  }

  #form1 label {
    margin-bottom: 4px;
    font-size: 14px;
  }

  #form1 input,
  #form1 textarea {
    min-height: 38px;
    padding: 7px 10px !important;
    font-size: 15px;
  }

  #form1 .contact-message {
    grid-column: 1 / -1;
  }

  #form1 textarea {
    display: block;
    height: clamp(70px, 12vh, 110px);
    min-height: 70px;
  }

  #form1 .captcha-container {
    display: grid;
    grid-template-columns: auto minmax(80px, 1fr);
    align-items: center;
    gap: 4px 12px;
    padding: 0;
    background: transparent;
  }

  #form1 .captcha-container label,
  #form1 .captcha-container .error-message {
    grid-column: 1 / -1;
  }

  #form1 .captcha-container p {
    margin: 0;
  }

  #form1 .contact-submit {
    align-self: end;
    justify-self: end;
  }

  .site-footer {
    flex-shrink: 0;
    border-bottom: 2px solid var(--hud-line);
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 4px 24px;
    padding: 12px 20px;
  }

  .footer-brand {
    grid-row: span 2;
  }

  .footer-brand img {
    display: block;
    width: 145px;
  }

  .footer-brand p,
  .footer-links h2 {
    display: none;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px 16px;
    font-size: 13px;
  }

  .footer-links a {
    gap: 5px;
    min-height: 24px;
  }

  .footer-links a img,
  .footer-links .link-icon {
    flex-basis: 16px;
    width: 16px;
    height: 16px;
    font-size: 10px;
  }

  .legal-reader.is-paged .legal-viewport {
    height: max(100px, calc(100dvh - 410px));
    overflow: hidden;
  }

  .legal-reader.is-paged .legal-copy {
    height: 100%;
    column-width: var(--reader-width);
    column-gap: 32px;
    column-fill: auto;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 821px) and (max-height: 700px) {
  .home-section-inner {
    padding: 18px 24px;
  }

  .game-content {
    grid-template-columns: 120px minmax(0, 1fr);
    padding: 12px 20px;
  }

  .game-image img {
    height: 120px;
  }

  .game-title {
    font-size: 1.5rem;
  }
}

@media print {
  .legal-reader.is-paged .legal-viewport,
  .legal-reader.is-paged .legal-copy {
    height: auto;
    overflow: visible;
    columns: auto;
  }

  .legal-pagination {
    display: none;
  }
}

/* Fill the desktop frame with studio information and featured games. */
.home-demo-card {
  background: linear-gradient(135deg, rgba(188, 207, 12, 0.4), rgba(42, 61, 7, 0.85));
}


.home-demo-inner {
  display: grid;
  align-content: center;
  height: 100%;
  gap: 12px;
  padding: 24px;
}

.home-demo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.home-demo-link {
  font-size: 13px;
  white-space: nowrap;
}

.home-explore {
  margin-top: 14px;
}

.home-game-inner {
  display: grid;
  grid-template-columns: minmax(90px, 30%) minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  height: 100%;
  padding: 24px;
}

.home-game-poster {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border: 2px solid var(--hud-line);
  background: var(--hud-bg-deep);
}

.home-game-copy {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 12px;
  min-width: 0;
}

.home-game-copy .eyebrow {
  margin: 0;
}

.home-light-section .home-game-copy h2 {
  max-width: none;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.12;
  text-transform: none;
}

.home-light-section .home-game-copy p {
  font-size: 1rem;
  line-height: 1.45;
}

@media (min-width: 821px) {
  .home-light-section {
    flex: 1;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    gap: 12px;
  }

  .home-section-hero {
    grid-column: 1 / -1;
  }

  .home-game-card {
    grid-column: 1 / -1;
  }

  .home-section-who,
  .home-section-mission,
  .home-demo-card {
    grid-column: span 2;
  }

  .home-section-inner {
    height: 100%;
    align-content: center;
    padding: clamp(16px, 2.7vh, 30px) clamp(20px, 2.5vw, 30px);
  }

  .home-section-who .home-section-split,
  .home-section-mission .home-section-split {
    gap: 12px;
  }

  .home-game-inner {
    padding: clamp(16px, 2.7vh, 28px) 24px;
  }
}

@media (min-width: 821px) and (max-height: 850px), (min-width: 821px) and (max-width: 1100px) {
  .home-light-section {
    gap: 10px;
  }

  .home-section-inner,
  .home-game-inner,
  .home-demo-inner {
    padding: 10px 18px;
  }

  .home-demo-inner {
    gap: 6px;
  }

  .home-light-section h1 {
    font-size: 1.9rem;
  }

  .home-light-section h2,
  .home-light-section .home-game-copy h2 {
    font-size: 1.15rem;
  }

  .home-light-section p,
  .home-light-section .home-game-copy p {
    font-size: 14px;
    line-height: 1.35;
  }

  .home-light-section .eyebrow {
    font-size: 10px;
    margin-bottom: 5px;
  }

  .home-section-copy h2 {
    margin-bottom: 6px;
  }

  .home-explore {
    margin-top: 8px;
  }

  .home-light-section .game-button {
    min-height: 30px;
    padding: 4px 12px;
    font-size: 12px;
  }

  .home-game-inner {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
  }

  .home-game-poster {
    max-height: 120px;
  }

  .home-game-copy {
    gap: 6px;
  }

  .home-game-copy .eyebrow {
    display: none;
  }

  .home-section-who .home-section-split,
  .home-section-mission .home-section-split {
    gap: 6px;
  }
}

@media (min-width: 821px) and (max-height: 700px) {
  .home-game-copy p {
    display: none;
  }

  .home-section-inner,
  .home-game-inner,
  .home-demo-inner {
    padding-block: 8px;
  }

  .content-panel {
    padding-block: 10px;
  }
}

@media (max-width: 820px) {
  .home-light-section {
    width: 100%;
    margin: 0;
  }

  .home-game-inner {
    padding: 24px 20px;
    gap: 16px;
  }

  .home-game-copy .game-button {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* Top-aligned introductions with a filled discovery area beneath. */
.discovery-page {
  display: grid;
  gap: 14px;
  min-width: 0;
  width: 100%;
}
.discovery-home .home-light-section {
  flex: none;
  grid-template-rows: auto;
}
.discovery-home .home-section-divider { display: none; }
.discover-content {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(230px, 1fr);
  gap: 14px;
  min-width: 0;
}
.discover-spotlight, .discover-card {
  min-width: 0;
  border: 2px solid var(--hud-line);
  background: linear-gradient(145deg, rgba(108, 126, 13, .42), rgba(11, 26, 5, .88));
  clip-path: polygon(16px 0, calc(100% - 26px) 0, 100% 22px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 26px 100%, 0 calc(100% - 22px), 0 16px);
}
.discover-spotlight {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 22px;
}
.discover-heading, .discover-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.discover-heading { justify-content: space-between; }
.discover-heading .eyebrow, .discover-card .eyebrow { margin: 0; }
.discover-controls[hidden], .discover-slide[hidden] { display: none; }
.discover-controls button {
  min-width: 32px;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid var(--hud-line);
  color: var(--hud-neon);
  background: rgba(7, 18, 4, .75);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.discover-controls button:hover { background: rgba(243, 255, 0, .16); }
.discover-content :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.discover-controls span { font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.discover-feature {
  display: grid;
  grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 24px;
  min-width: 0;
}
.discover-poster {
  display: block;
  width: 100%;
  max-height: clamp(180px, 34vh, 380px);
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.4));
}
.discover-slide {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  min-height: 270px;
}
.discover-tag {
  color: var(--hud-neon-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.discover-content h2 {
  margin: 0;
  color: var(--hud-neon);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.12;
}
.discover-content p { margin: 0; font-size: 15px; line-height: 1.5; }
.discover-slide br { display: initial; }
.discover-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  border-top: 1px solid rgba(243, 255, 0, .28);
  padding-top: 12px;
  font-size: 12px;
  color: var(--hud-neon-soft);
}
.discover-traits span::before { content: '✦'; margin-right: 6px; color: var(--hud-neon); }
.discover-links { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }
.discover-card {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 12px;
  padding: 24px;
}
.discover-card h2 { font-size: clamp(1.25rem, 1.7vw, 1.6rem); }
.discover-card a { font-size: 13px; }
.discover-demo { background: linear-gradient(135deg, rgba(170, 190, 15, .45), rgba(40, 55, 7, .85)); }
@media (min-width: 821px) {
  .discovery-page { flex: 1; grid-template-rows: auto 1fr; min-height: 0; }
  .discovery-about .plain-page { padding: clamp(18px, 2.8vh, 30px) 28px; }
  .discovery-about .plain-copy p:last-child { margin-bottom: 0; }
}
@media (min-width: 821px) and (max-height: 950px), (min-width: 821px) and (max-width: 1100px) {
  .discovery-page, .discover-content, .discover-links { gap: 10px; }
  .discover-spotlight { padding: 14px 18px; gap: 12px; }
  .discover-feature { grid-template-columns: minmax(90px, .65fr) minmax(0, 1.35fr); gap: 16px; }
  .discover-slide { gap: 10px; min-height: 210px; }
  .discover-content h2 { font-size: 1.4rem; }
  .discover-content p { font-size: 14px; line-height: 1.4; }
  .discover-card { padding: 12px 20px; gap: 8px; }
  .discover-card h2 { font-size: 1.2rem; }
  .discover-content .eyebrow { font-size: 10px; }
  .discover-content .game-button { padding: 5px 10px; min-height: 32px; font-size: 12px; }
}
@media (min-width: 821px) and (max-height: 700px), (min-width: 821px) and (max-width: 1100px) {
  .discovery-about .plain-page { grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); padding: 14px 22px; gap: 20px; }
  .discovery-about .plain-copy { font-size: 14px; line-height: 1.4; }
  .discovery-about .plain-copy p { margin-bottom: 8px; }
  .discovery-about .plain-page h1 { font-size: 2rem; }
}
@media (min-width: 821px) and (max-height: 850px) {
  .discover-spotlight { padding: 10px 16px; gap: 8px; }
  .discover-slide { min-height: 0; gap: 8px; }
  .discover-poster { max-height: 170px; }
  .discover-content h2 { font-size: 1.25rem; }
  .discover-content p { font-size: 13px; line-height: 1.35; }
  .discover-card { padding: 10px 18px; gap: 6px; }
  .discover-card h2 { font-size: 1.1rem; }
  .discover-traits { font-size: 10px; gap: 6px 12px; padding-top: 8px; }
  .discover-tag { font-size: 9px; }
  .discover-links { grid-template-rows: 1fr; }
  .discover-studio, .discover-tag, .discover-traits { display: none; }
  .discover-spotlight { grid-template-rows: auto 1fr; }
}
@media (max-width: 820px) {
  .discovery-page { gap: 16px; }
  .discovery-page > .game-container, .discovery-page .home-section { margin-block: 0; }
  .discover-content { grid-template-columns: 1fr; }
  .discover-heading { flex-wrap: wrap; }
  .discover-feature { grid-template-columns: minmax(80px, .65fr) minmax(0, 1.35fr); gap: 16px; }
  .discover-slide { min-height: 290px; gap: 12px; }
  .discover-content h2 { font-size: 1.35rem; }
  .discover-content p { font-size: 14px; }
  .discover-content .game-button { white-space: normal; text-align: center; padding: 8px 12px; font-size: 12px; }
  .discover-spotlight { padding: 20px 16px; }
  .discover-links { grid-template-rows: auto; }
  .discover-card { padding: 24px; }
  .discover-traits { font-size: 10px; gap: 6px 12px; }
}

/* Contact form first, followed by invitations to the fan community. */
.contact-community-page, .contact-top, .fan-community, .fan-cards {
  display: grid;
  min-width: 0;
  gap: 14px;
}
.contact-community-page { width: 100%; }
.contact-top .success-message { grid-column: 1 / -1; }
.fan-community { grid-template-rows: auto 1fr; }
.fan-community-heading, .fan-platform {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fan-community-heading { justify-content: space-between; }
.fan-community-heading h2 { margin: 0; font-size: 1.6rem; line-height: 1.15; }
.fan-community-heading p { margin: 0; color: var(--hud-neon-soft); font-size: 14px; }
.fan-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fan-card { align-content: center; gap: 16px; }
.fan-platform h3 { margin: 0; color: var(--hud-neon); font-size: 1.45rem; line-height: 1.15; }
.fan-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid var(--hud-line);
  background: rgba(243, 255, 0, .12);
  color: var(--hud-neon);
  font-size: 24px;
  font-weight: 800;
}
.fan-card p { margin: 0; font-size: 15px; line-height: 1.45; }
.fan-card a { white-space: normal; text-align: center; }
.fan-card a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (min-width: 821px) {
  .contact-community-page { flex: 1; grid-template-rows: 1fr auto; min-height: 0; }
  .fan-community { grid-template-rows: auto auto; }
  .fan-card { align-content: start; }
  .contact-top { grid-template-columns: minmax(190px, .65fr) minmax(0, 1.65fr); }
  .contact-top .contact-page { grid-template-columns: 1fr; align-content: center; gap: 18px; padding: 24px; }
  .contact-top .contact-page .eyebrow { display: block; margin-bottom: 12px; font-size: 11px; }
  .contact-top .contact-page h1 { font-size: clamp(1.8rem, 2.7vw, 2.5rem); }
  .contact-top #form1 { grid-template-rows: auto 1fr auto; padding: 16px 22px; gap: 10px 18px; }
  .contact-top #form1 .contact-message { grid-column: 1; grid-row: 2 / 4; display: flex; flex-direction: column; }
  .contact-top #form1 textarea { flex: 1; height: 96px; min-height: 70px; resize: none; }
  .contact-top #form1 .captcha-container { grid-column: 2; grid-row: 2; align-self: start; }
  .contact-top #form1 .contact-submit { grid-column: 2; grid-row: 3; }
  .contact-top #form1 button[type="submit"] { min-height: 36px; padding: 6px 16px !important; }
}
@media (min-width: 821px) and (max-height: 850px), (min-width: 821px) and (max-width: 1100px) {
  .contact-community-page, .contact-top, .fan-community, .fan-cards { gap: 10px; }
  .contact-top { grid-template-columns: minmax(190px, .7fr) minmax(0, 1.7fr); }
  .contact-top .contact-page { padding: 18px 20px; gap: 12px; }
  .contact-top .plain-copy { font-size: 14px; line-height: 1.4; }
  .contact-top #form1 { padding: 12px 20px; gap: 8px 14px; }
  .contact-top #form1 label { font-size: 13px; }
  .fan-community-heading h2 { font-size: 1.3rem; }
  .fan-community-heading p { font-size: 12px; }
  .fan-card { padding: 16px 20px; gap: 10px; }
  .fan-platform h3 { font-size: 1.2rem; }
  .fan-icon { width: 30px; height: 30px; flex-basis: 30px; font-size: 20px; }
  .fan-card p { font-size: 14px; line-height: 1.4; }
  .fan-card .game-button { min-height: 32px; padding: 5px 10px; font-size: 12px; }
}
@media (min-width: 821px) and (max-height: 700px) {
  .contact-top .contact-page .eyebrow { display: none; }
  .contact-top #form1 { padding-block: 10px; }
  .contact-top #form1 .error-message { font-size: 12px; line-height: 1.3; margin-top: 3px; }
  .contact-top #form1 input { min-height: 32px; padding: 4px 8px !important; }
  .contact-top #form1 textarea { height: 76px; }
  .contact-top #form1 button[type="submit"] { min-height: 32px; padding: 4px 12px !important; font-size: 12px; }
  .fan-card { padding: 12px 18px; gap: 8px; }
  .fan-card p { font-size: 13px; line-height: 1.35; }
  .contact-community-page:has(#form1 .error-message:not(:empty)) .fan-card p { display: none; }
}
@media (max-width: 820px) {
  .contact-top .contact-page { gap: 16px; }
  .contact-top #form1 { width: 100%; margin: 0; }
  .fan-community-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .fan-cards { grid-template-columns: 1fr; }
  .fan-card { padding: 24px; }
}

/* Compact social cards within the shared desktop frame. */
@media (min-width: 821px) {
  .fan-card { padding: 12px 18px; gap: 8px; }
  .fan-platform h3 { font-size: 1.1rem; }
  .fan-icon { width: 28px; height: 28px; flex-basis: 28px; font-size: 19px; }
  .fan-card p { font-size: 14px; line-height: 1.4; }
  .fan-card .game-button { min-height: 32px; padding: 5px 10px; font-size: 12px; }
}
@media (min-width: 821px) and (max-height: 700px) {
  .contact-community-page, .contact-top, .fan-community, .fan-cards { gap: 8px; }
  .contact-top .contact-page { padding: 12px 18px; gap: 8px; }
  .contact-top #form1 { gap: 4px 14px; padding-block: 6px; }
  .contact-top #form1 label { margin-bottom: 2px; line-height: 1.2; }
  .fan-card { padding-block: 8px; gap: 6px; }
  .fan-platform h3 { font-size: 1rem; }
  .fan-icon { width: 24px; height: 24px; flex-basis: 24px; font-size: 17px; }
  .fan-card p { font-size: 13px; line-height: 1.35; }
  .fan-card .game-button { min-height: 28px; padding-block: 4px; }
}

/* Preserve the shared 50px frame gaps on short desktop screens. */
@media (min-width: 821px) and (max-height: 700px) {
  .discover-slide p { display: none; }
  .discovery-about .plain-page { padding: 8px 20px; gap: 16px; }
  .discovery-about .plain-copy { font-size: 13px; line-height: 1.35; }
  .discovery-about .plain-page h1 { font-size: 1.8rem; }
  .discovery-games .game-content { grid-template-columns: 100px minmax(0, 1fr); padding: 10px 18px; }
  .discovery-games .game-image img { height: 100px; }
  .discovery-games .game-title { font-size: 1.25rem; margin-bottom: 6px; }
  .discovery-games .game-description { font-size: 13px; line-height: 1.35; }
  .discovery-games .button-container { margin-top: 8px; }
  .discovery-games .game-button { min-height: 30px; padding: 4px 12px; }
  .content-panel .rpg-steam-page, .content-panel .rpg-steam-page .rpg-details { gap: 8px; }
  .content-panel .rpg-steam-page .rpg-card { padding: 10px 14px; }
  .content-panel .rpg-steam-page .rpg-kicker { display: none; }
  .content-panel .rpg-steam-page h1 { margin-bottom: 6px; font-size: 1.5rem; }
  .content-panel .rpg-steam-page h2 { margin-bottom: 6px; font-size: 1rem; }
  .content-panel .rpg-steam-page p,
  .content-panel .rpg-steam-page li,
  .content-panel .rpg-steam-page .rpg-info { font-size: 13px; line-height: 1.3; }
  .content-panel .rpg-steam-page .rpg-features,
  .content-panel .rpg-steam-page .rpg-info { row-gap: 4px; }
  .content-panel .rpg-steam-page .rpg-actions { margin-top: 8px; gap: 6px; }
  .content-panel .rpg-steam-page .rpg-actions .game-button { min-height: 28px; padding: 4px 10px; font-size: 11px; }
}
