/**
 * PMX landing redesign — cinematic school-war poster
 */

@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Orbitron:wght@600;700;800&family=Sora:wght@400;500;600;700&display=swap");

:root {
  --pmx-gold: #f0c14d;
  --pmx-ink: #07090d;
  --pmx-fog: rgba(236, 232, 224, 0.78);
  --pmx-line: rgba(240, 193, 77, 0.28);
}

body.index-page {
  font-family: "Sora", system-ui, sans-serif;
  background: var(--pmx-ink);
}

#hero.cgames-hero > img.cgames-hero__bg {
  object-fit: cover !important;
  object-position: center 35% !important;
  filter: saturate(0.95) contrast(1.05) brightness(0.55) !important;
  transform: scale(1.04);
}

.cgames-hero__shade {
  background:
    radial-gradient(ellipse 55% 50% at 72% 48%, rgba(240, 193, 77, 0.14), transparent 60%),
    linear-gradient(105deg, rgba(7, 9, 13, 0.82) 0%, rgba(7, 9, 13, 0.35) 48%, rgba(7, 9, 13, 0.55) 100%),
    linear-gradient(180deg, rgba(7, 9, 13, 0.55) 0%, transparent 28%, rgba(7, 9, 13, 0.88) 100%) !important;
}

.cgames-hero__fx,
.cgames-hero__flash,
.cgames-hero__warp {
  opacity: 0.35;
}

.cgames-pathboard--carousel {
  padding: clamp(72px, 9vh, 100px) clamp(12px, 2.2vw, 28px) 4px !important;
}

.cgames-pathboard--carousel .cgames-pathboard__inner {
  max-width: 1440px;
  gap: 0 !important;
  height: 100%;
}

.cgames-pathboard--carousel .cgames-pathboard__head,
.cgames-pathboard--carousel .cgames-classview,
.cgames-pathboard--carousel .cgames-classview__controls {
  display: none !important;
}

.pmx-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.48fr) minmax(0, 1.85fr);
  align-items: end;
  gap: clamp(4px, 1.2vw, 16px);
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.pmx-showcase__copy {
  position: relative;
  z-index: 3;
  align-self: center;
  padding-bottom: clamp(8px, 2vh, 28px);
  animation: pmxRise 0.9s cubic-bezier(0.16, 0.84, 0.28, 1) both;
}

/* Kill #hero img absolute stretch (main.php) for showcase only */
#hero.cgames-hero .pmx-showcase img.pmx-showcase__logo,
#hero.cgames-hero .pmx-showcase .pmx-showcase__slide > img,
#hero.cgames-hero .pmx-showcase .pmx-showcase__thumb > img {
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  max-width: none !important;
}

#hero.cgames-hero .pmx-showcase img.pmx-showcase__logo {
  display: block !important;
  width: 88px !important;
  height: 88px !important;
  margin: 0 0 12px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.55));
}

.pmx-showcase__kicker {
  margin: 0 0 10px;
  color: var(--pmx-gold);
  font-family: "Orbitron", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.pmx-showcase__title {
  margin: 0;
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

.pmx-showcase__title span {
  color: var(--pmx-gold);
}

.pmx-showcase__lead {
  margin: 14px 0 0;
  max-width: 34ch;
  color: var(--pmx-fog);
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  line-height: 1.45;
}

.pmx-showcase__stage {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: clamp(420px, 68vh, 820px);
  height: 100%;
  overflow: visible;
}

#hero.cgames-hero .pmx-showcase__slide {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: end center;
  margin: 0 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(24px);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 0.84, 0.28, 1), visibility 0.4s;
  z-index: 1;
}

#hero.cgames-hero .pmx-showcase__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 2;
}

#hero.cgames-hero .pmx-showcase .pmx-showcase__slide > img {
  display: block !important;
  width: auto !important;
  height: 100% !important;
  max-height: 100% !important;
  max-width: min(100%, 1100px) !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  -webkit-mask-image: none;
  mask-image: none;
  filter:
    brightness(1.1) contrast(1.05) saturate(1.06)
    drop-shadow(0 16px 32px rgba(0, 0, 0, 0.4));
}

.pmx-showcase__meta {
  position: absolute;
  left: 12px;
  bottom: 18%;
  z-index: 4;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(7, 9, 13, 0.85), rgba(7, 9, 13, 0.25));
  border-left: 3px solid var(--pmx-gold);
  max-width: min(100%, 260px);
}

.pmx-showcase__meta strong {
  display: block;
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pmx-showcase__meta span {
  color: var(--pmx-gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pmx-showcase__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border: 1px solid var(--pmx-line);
  background: rgba(7, 9, 13, 0.55);
  color: var(--pmx-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.pmx-showcase__nav:hover,
.pmx-showcase__nav:focus-visible {
  background: rgba(240, 193, 77, 0.16);
  border-color: var(--pmx-gold);
  outline: none;
}

.pmx-showcase__nav--prev { left: 4px; }
.pmx-showcase__nav--next { right: 4px; }

.pmx-showcase__thumbs {
  grid-column: 1 / -1;
  position: relative;
  z-index: 30;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-top: 4px;
  padding: 16px 4px 10px;
  scrollbar-width: thin;
  background: transparent;
  justify-content: center;
}

#hero.cgames-hero .pmx-showcase__thumb {
  position: relative !important;
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.62;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 52%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 45%, #000 52%, transparent 78%);
}

#hero.cgames-hero .pmx-showcase .pmx-showcase__thumb > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: top center !important;
  display: block !important;
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 42%, rgba(0,0,0,0.55) 62%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 42%, #000 42%, rgba(0,0,0,0.55) 62%, transparent 78%);
  filter: brightness(1.05) contrast(1.05);
}

#hero.cgames-hero .pmx-showcase__thumb:hover,
#hero.cgames-hero .pmx-showcase__thumb:focus-visible {
  opacity: 0.95;
  outline: none;
  transform: translateY(-2px) scale(1.04);
}

#hero.cgames-hero .pmx-showcase__thumb.is-active {
  opacity: 1;
  border-color: var(--pmx-gold);
  box-shadow:
    0 0 0 1px rgba(240, 193, 77, 0.35),
    0 0 18px rgba(240, 193, 77, 0.28);
  transform: translateY(-3px) scale(1.06);
}

.cgames-center {
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.15) 0%, rgba(7, 9, 13, 0.92) 45%, #07090d 100%) !important;
  border-top: 1px solid var(--pmx-line) !important;
}

.cgames-center__brand,
.cgames-enter {
  font-family: "Orbitron", sans-serif !important;
  letter-spacing: 0.08em !important;
}

.cgames-enter {
  border-radius: 2px !important;
}

.cgames-enter span {
  text-transform: uppercase;
}

.cgames-status {
  backdrop-filter: blur(10px);
  border: 1px solid var(--pmx-line) !important;
  background: rgba(7, 9, 13, 0.62) !important;
}

@media (min-width: 1200px) {
  #hero.cgames-hero .cgames-status {
    display: block !important;
    position: absolute !important;
    top: calc(var(--cg-dock-h, 68px) + 14px) !important;
    right: clamp(20px, 3vw, 48px) !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 12 !important;
    margin: 0 !important;
    transform: none !important;
  }
}

@keyframes pmxRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1199.98px) {
  #hero.cgames-hero .cgames-status,
  .cgames-status {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  #hero.cgames-hero .cgames-center {
    order: 1 !important;
    padding-top: 12px !important;
    padding-bottom: 16px !important;
    border-top: 0 !important;
    border-bottom: 1px solid var(--pmx-line) !important;
    background:
      linear-gradient(180deg, rgba(7, 9, 13, 0.2), rgba(7, 9, 13, 0.92)) !important;
  }

  #hero.cgames-hero .cgames-pathboard {
    order: 2 !important;
    padding-top: 12px !important;
  }

  .pmx-showcase {
    grid-template-columns: 1fr;
  }

  .pmx-showcase__copy {
    align-self: start;
    text-align: center;
    padding-bottom: 0;
  }

  #hero.cgames-hero .pmx-showcase img.pmx-showcase__logo {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 72px !important;
    height: 72px !important;
  }

  .pmx-showcase__title {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .pmx-showcase__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .pmx-showcase__stage {
    min-height: clamp(360px, 56vh, 560px);
    overflow: visible;
  }

  #hero.cgames-hero .pmx-showcase .pmx-showcase__slide > img {
    height: min(62vh, 520px) !important;
    max-height: min(62vh, 520px) !important;
    max-width: 100% !important;
  }

  .pmx-showcase__meta {
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    border-left: 0;
    border-bottom: 3px solid var(--pmx-gold);
    background: rgba(7, 9, 13, 0.75);
  }

  .pmx-showcase__thumbs {
    justify-content: center;
  }

  /* Keep desktop dock actions obvious */
  #hero.cgames-hero .cgames-center__actions {
    margin-top: 8px !important;
  }
}

/* Desktop: never let hero grow past viewport (login dock must stay visible) */
@media (min-width: 992px) {
  #hero.cgames-hero {
    height: 100dvh !important;
    height: 100svh !important;
    max-height: 100dvh !important;
    max-height: 100svh !important;
    overflow: hidden !important;
  }

  .cgames-pathboard--carousel {
    min-height: 0 !important;
    padding-top: calc(var(--cg-dock-h, 68px) + 6px) !important;
  }

  .pmx-showcase__stage {
    min-height: 0 !important;
    overflow: visible !important;
  }

  #hero.cgames-hero .pmx-showcase .pmx-showcase__slide > img {
    height: min(82vh, 860px) !important;
    max-height: min(82vh, 860px) !important;
    max-width: min(100%, 1120px) !important;
  }

  .cgames-pathboard--carousel {
    overflow: hidden !important;
  }

  .pmx-showcase__thumbs {
    z-index: 30 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pmx-showcase__copy,
  #hero.cgames-hero .pmx-showcase__slide {
    animation: none !important;
    transition: none !important;
  }
}

/* Featured splash: image only, no class copy */
#hero.cgames-hero .pmx-splash {
  justify-content: stretch !important;
  align-items: stretch !important;
  padding: calc(var(--cg-dock-h, 68px) + 2px) 0 0 !important;
  overflow: visible;
}

#hero.cgames-hero .pmx-splash picture {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#hero.cgames-hero .pmx-splash img {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  z-index: 2 !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0;
  object-fit: cover !important;
  object-position: center center !important;
  filter: none !important;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
}

.pmx-loadcopy,
.pmx-vault-actions {
  display: none;
}

@media (min-width: 992px) {
  .pmx-loadcopy {
    display: block;
    position: absolute;
    z-index: 6;
    left: clamp(28px, 4vw, 72px);
    top: 18%;
    max-width: 320px;
    pointer-events: none;
  }

  .pmx-loadcopy__kicker {
    margin: 0 0 6px;
    color: rgba(240, 193, 77, 0.72);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }

  .pmx-loadcopy h2 {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-family: "Orbitron", sans-serif;
    font-size: clamp(1.55rem, 2.4vw, 2.15rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.15;
    text-transform: uppercase;
    text-shadow: none;
    filter: none;
  }

  .pmx-loadcopy h2 span {
    color: rgba(240, 193, 77, 0.88);
  }

  .pmx-loadcopy p:last-child {
    margin: 10px 0 0;
    color: rgba(243, 240, 232, 0.55);
    font-family: "Sora", system-ui, sans-serif;
    font-size: 0.86rem;
  }

  .pmx-vault-actions {
    display: flex;
    flex-direction: column;
    position: absolute;
    z-index: 8;
    left: 28%;
    top: 52%;
    width: max-content;
    max-width: none;
    gap: 14px;
    align-items: flex-start;
    padding: 0 1.4em 0.5em 0;
    overflow: visible;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: translate(0, -50%) rotate(-6deg);
  }

  .pmx-vault-actions .pmx-hitbtn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    width: auto;
    max-width: none;
    min-height: 1.15em;
    padding: 0.28em 0.85em 0.34em 0.55em;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    border: 0;
    background: none;
    text-decoration: none;
    transform: skewX(-16deg);
    transform-origin: left center;
    overflow: visible;
    transition: opacity 0.28s ease, filter 0.2s ease, transform 0.18s ease;
  }

  /* Dark plate — contrast vs character so it reads as a button */
  .pmx-vault-actions .pmx-hitbtn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 2px;
    background:
      linear-gradient(
        105deg,
        rgba(7, 9, 13, 0.92) 0%,
        rgba(10, 12, 18, 0.88) 55%,
        rgba(7, 9, 13, 0.82) 100%
      );
    border: 1px solid rgba(240, 193, 77, 0.45);
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.65),
      8px 12px 0 rgba(0, 0, 0, 0.55),
      0 18px 36px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  /* Gold hit-line under label */
  .pmx-vault-actions .pmx-hitbtn::after {
    content: "";
    position: absolute;
    left: 0.55em;
    right: 0.85em;
    bottom: 0.18em;
    z-index: 2;
    height: 3px;
    border-radius: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      #f0c14d 20%,
      #fff3c0 50%,
      #f0c14d 80%,
      transparent
    );
    box-shadow: 0 0 10px rgba(240, 193, 77, 0.65);
    animation: pmxHitBar 2.2s ease-in-out infinite;
  }

  .pmx-vault-actions .pmx-hitbtn span {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding-right: 0.12em;
    font-family: "Archivo Black", Impact, sans-serif;
    font-size: clamp(3.4rem, 6.2vw, 5.6rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.02em;
    line-height: 1;
    text-transform: uppercase;
    color: #fff;
    background-image: linear-gradient(
      105deg,
      #ffffff 0%,
      #ffffff 38%,
      #ffffff 44%,
      #cfe9ff 46.5%,
      #ffffff 48%,
      #9fd0ff 49.2%,
      #ffffff 50.5%,
      #eaf5ff 52%,
      #ffffff 54%,
      #ffffff 100%
    );
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.85));
    animation: pmxBoltSweep 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
  }

  .pmx-vault-actions .pmx-hitbtn:hover {
    transform: skewX(-16deg) translateY(-4px);
    filter: brightness(1.08);
  }

  .pmx-vault-actions .pmx-hitbtn:hover::before {
    border-color: rgba(240, 193, 77, 0.85);
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.65),
      8px 14px 0 rgba(0, 0, 0, 0.55),
      0 0 28px rgba(240, 193, 77, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .pmx-vault-actions .pmx-hitbtn:hover::after {
    animation: none;
    opacity: 1;
    box-shadow: 0 0 16px rgba(240, 193, 77, 0.9);
  }

  .pmx-vault-actions .pmx-hitbtn:hover span {
    filter:
      drop-shadow(0 2px 0 rgba(0, 0, 0, 0.85))
      drop-shadow(0 0 12px rgba(180, 220, 255, 0.45));
    animation-duration: 1.35s;
  }

  .pmx-vault-actions .pmx-hitbtn.is-pressing {
    opacity: 0.45;
  }

  .pmx-vault-actions .pmx-hitbtn--ghost {
    width: auto;
    margin-left: 10px;
  }

  .pmx-vault-actions .pmx-hitbtn--ghost::before {
    background:
      linear-gradient(
        105deg,
        rgba(7, 9, 13, 0.78) 0%,
        rgba(12, 14, 20, 0.72) 100%
      );
    border-color: rgba(240, 193, 77, 0.32);
  }

  .pmx-vault-actions .pmx-hitbtn--ghost span {
    font-size: clamp(2.35rem, 4.3vw, 3.7rem);
    color: var(--pmx-gold);
    background-image: linear-gradient(
      105deg,
      #f0c14d 0%,
      #f0c14d 38%,
      #f0c14d 44%,
      #fff 46.5%,
      #f0c14d 48%,
      #dcefff 49.2%,
      #fff 50.5%,
      #f0c14d 54%,
      #f0c14d 100%
    );
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pmxBoltSweep 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }

  #hero.cgames-hero .cgames-center__actions {
    display: none !important;
  }
}

.pmx-vault-actions {
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#hero.cgames-hero.is-sheet-open .pmx-vault-actions,
#hero.cgames-hero.is-auth .pmx-vault-actions {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

#hero.cgames-hero:not(.is-sheet-open):not(.is-auth) .pmx-vault-actions.is-returning {
  animation: pmxBtnFadeIn 0.45s ease both;
}

@keyframes pmxBtnFadeIn {
  from {
    opacity: 0;
    visibility: visible;
  }
  to {
    opacity: 1;
  }
}

@keyframes pmxBoltSweep {
  0%,
  62% { background-position: 120% 0; }
  78% { background-position: -20% 0; }
  100% { background-position: -120% 0; }
}

@keyframes pmxHitBar {
  0%,
  100% {
    opacity: 0.7;
    filter: brightness(0.95);
  }
  50% {
    opacity: 1;
    filter: brightness(1.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pmx-vault-actions,
  .pmx-vault-actions .pmx-hitbtn {
    transition: none !important;
  }

  .pmx-vault-actions .pmx-hitbtn span,
  .pmx-vault-actions .pmx-hitbtn--ghost span,
  .pmx-vault-actions .pmx-hitbtn::after {
    animation: none !important;
  }

  .pmx-vault-actions .pmx-hitbtn span {
    background-image: none !important;
    -webkit-text-fill-color: #fff;
    color: #fff;
  }

  .pmx-vault-actions .pmx-hitbtn--ghost span {
    background-image: none !important;
    -webkit-text-fill-color: var(--pmx-gold);
    color: var(--pmx-gold);
  }

  #hero.cgames-hero:not(.is-sheet-open):not(.is-auth) .pmx-vault-actions.is-returning {
    animation: none;
  }
}

body.index-page #hero.cgames-hero.is-sheet-open .cgames-sheet-backdrop,
body.index-page #hero.cgames-hero.is-auth .cgames-sheet-backdrop {
  background: rgba(6, 8, 12, 0.08) !important;
  backdrop-filter: blur(4px) saturate(1.02);
  -webkit-backdrop-filter: blur(4px) saturate(1.02);
}

body.index-page #hero.cgames-hero.is-sheet-open .cgames-pathboard,
body.index-page #hero.cgames-hero.is-auth .cgames-pathboard,
body.index-page #hero.cgames-hero.is-sheet-open .pmx-splash,
body.index-page #hero.cgames-hero.is-auth .pmx-splash {
  opacity: 1 !important;
  filter: none !important;
  visibility: visible !important;
}

body.index-page #hero.cgames-hero.is-sheet-open .cgames-hero__shade,
body.index-page #hero.cgames-hero.is-auth .cgames-hero__shade {
  background: transparent !important;
  opacity: 0 !important;
}

body.index-page #hero.cgames-hero.is-sheet-open .cgames-left-rail,
body.index-page #hero.cgames-hero.is-auth .cgames-left-rail {
  position: fixed !important;
  inset: auto !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: min(440px, calc(100vw - 28px)) !important;
  max-height: min(84vh, 700px) !important;
  transform: translate(-50%, -50%) !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: auto !important;
  display: block !important;
}

/* Class board: nine classes, no character art */
.pmx-classboard {
  justify-content: center !important;
}

.pmx-classboard__inner {
  width: min(1120px, 100%);
  height: auto;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.25fr);
  gap: clamp(16px, 2.4vw, 36px);
  align-items: center;
}

.pmx-classboard__kicker {
  margin: 0 0 10px;
  color: var(--pmx-gold);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pmx-classboard__title {
  margin: 0;
  color: #fff;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.pmx-classboard__title span {
  color: var(--pmx-gold);
}

.pmx-classboard__lead {
  margin: 18px 0 8px;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.pmx-classboard__detail {
  margin: 0;
  max-width: 36ch;
  color: rgba(243, 240, 232, 0.74);
  font-size: 0.95rem;
  line-height: 1.55;
}

.pmx-classboard__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

button.pmx-classcard {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2px;
  width: 100%;
  min-height: 96px;
  margin: 0;
  padding: 12px 12px 10px;
  text-align: left;
  color: #f7f4ee;
  background: rgba(8, 10, 14, 0.74);
  border: 1px solid rgba(240, 193, 77, 0.24);
  border-radius: 2px;
  box-shadow: none;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

button.pmx-classcard:hover,
button.pmx-classcard:focus-visible {
  border-color: rgba(240, 193, 77, 0.7);
  transform: translateY(-2px);
  outline: none;
}

button.pmx-classcard.is-active {
  border-color: var(--pmx-gold);
  background: linear-gradient(180deg, rgba(240, 193, 77, 0.2), rgba(8, 10, 14, 0.86));
  box-shadow: 0 0 0 1px rgba(240, 193, 77, 0.28), 0 12px 28px rgba(0, 0, 0, 0.35);
}

.pmx-classcard__index {
  color: var(--pmx-gold);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

button.pmx-classcard strong {
  color: #fff;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

button.pmx-classcard em {
  color: rgba(243, 240, 232, 0.64);
  font-style: normal;
  font-size: 0.72rem;
  line-height: 1.25;
}

.pmx-classcard__count {
  margin-top: 6px;
  color: rgba(240, 193, 77, 0.88);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.03em;
}

@media (min-width: 992px) {
  .pmx-classboard {
    padding-right: clamp(150px, 14vw, 210px) !important;
  }
}

@media (max-width: 991.98px) {
  #hero.cgames-hero {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #hero.cgames-hero .pmx-splash picture {
    height: auto;
  }

  #hero.cgames-hero .pmx-splash img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  .pmx-loadcopy {
    display: none !important;
  }

  .pmx-classboard__inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pmx-classboard__copy {
    text-align: center;
  }

  .pmx-classboard__detail {
    margin-left: auto;
    margin-right: auto;
  }

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

@media (max-width: 520px) {
  button.pmx-classcard {
    min-height: 78px;
    padding: 10px;
  }

  button.pmx-classcard strong {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  button.pmx-classcard {
    transition: none;
  }
}
