/*
Theme Name: 22KINGS Launch V4
Theme URI: https://22-king.com/
Author: 22KINGS
Description: A fast multi-page WordPress theme for the 22KINGS online gaming brand.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: Proprietary
Text Domain: king22
*/

:root {
  --bg: #050712;
  --bg-soft: #0d1225;
  --panel: #121832;
  --panel-strong: #192147;
  --line: rgba(255, 255, 255, 0.12);
  --line-gold: rgba(246, 181, 43, 0.54);
  --text: #f7f9ff;
  --muted: #b8c0d8;
  --gold: #f4b127;
  --gold-dark: #b56f08;
  --blue: #1d7cff;
  --cyan: #00d8ff;
  --pink: #ea3cff;
  --green: #19d57b;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  font-family: Inter, Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 12px 12px,
    #070915;
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.site-header {
  position: relative;
  z-index: 5;
  background: #070216;
  border-bottom: 1px solid rgba(246, 181, 43, 0.5);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
}

.header-row {
  width: min(1180px, calc(100% - 44px));
  min-height: 94px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 30px);
}

.brand-link,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: clamp(132px, 13vw, 176px);
}

.brand-link img,
.custom-logo-link img {
  width: 100%;
  max-width: 176px;
  max-height: 64px;
  object-fit: contain;
}

.header-menu-panel {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(20px, 2vw, 32px);
}

.primary-nav {
  min-width: 0;
  width: auto;
}

.primary-nav ul,
.fallback-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.1vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a,
.fallback-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: color 160ms ease, transform 160ms ease;
}

.primary-nav a:hover,
.fallback-menu a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  margin-left: clamp(4px, 1vw, 14px);
}

.menu-toggle,
.menu-close,
.menu-backdrop {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: none;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-login,
.btn-register {
  background: #9f3f21;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.84);
}

.mast-visual {
  min-height: 94px;
  display: grid;
  place-items: center;
  background: #070216;
}

.nav-bar {
  width: min(1180px, calc(100% - 44px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-bar .header-actions {
  justify-content: flex-end;
}

.btn-primary {
  background: #9f3f21;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.84);
}

.btn-secondary {
  background: #f7f7fb;
  color: #e33b17;
  border-color: rgba(255, 255, 255, 0.9);
}

.hero {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 14px 14px,
    linear-gradient(180deg, #070915 0%, #10183a 100%);
  padding: 34px 0 56px;
}

.hero-inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.main-banner,
.content-banner {
  margin: 0 0 28px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
  background: #071025;
}

.content-banner {
  margin-top: 12px;
  border-color: #dce2f0;
}

.main-banner img,
.content-banner img {
  width: 100%;
  object-fit: cover;
}

.game-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.game-tabs button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  background: #02030a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.game-tabs .active {
  background: linear-gradient(180deg, #ffc243, #d88904);
  color: #160d02;
  border-color: rgba(255, 238, 174, 0.62);
}

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

.feature-card {
  min-width: 0;
  min-height: 0;
  background: rgba(13, 18, 37, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 27 / 10;
  object-fit: cover;
}

.game-tile {
  display: block;
}

.game-tile[hidden] {
  display: none;
}

.game-tile img {
  height: 100%;
  transition: transform 180ms ease, filter 180ms ease;
}

.game-tile:hover img {
  transform: scale(1.015);
  filter: brightness(1.08);
}

.feature-card-body {
  min-width: 0;
  min-height: 168px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 12px 12px,
    #111733;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-card h2 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.25;
}

.feature-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.text-section {
  max-width: 980px;
}

.text-section h2 {
  margin: 0 0 18px;
  color: #1b253d;
  font-size: 2.4rem;
  line-height: 1.15;
}

.text-section h3 {
  margin: 30px 0 12px;
  color: #202a43;
  font-size: 1.55rem;
  line-height: 1.25;
}

.text-section h4,
.text-section h5,
.text-section h6 {
  margin: 24px 0 10px;
  color: #26324d;
  font-size: 1.18rem;
  line-height: 1.3;
}

.text-section p,
.text-section li {
  color: #4d5a72;
  font-size: 1rem;
}

.text-section ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.text-section ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.content-band {
  background: #fff;
  color: #192136;
  padding: 46px 0 58px;
}

.content-inner {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.content-inner h1 {
  margin: 0 0 18px;
  color: #1b253d;
  font-size: 3.1rem;
  line-height: 1.1;
  font-weight: 800;
}

.lead {
  margin: 0 0 28px;
  color: #44506a;
  font-size: 1.1rem;
  max-width: 900px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 34px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.info-panel {
  min-width: 0;
  border: 1px solid #dce2f0;
  border-radius: var(--radius);
  background: #fbfcff;
  padding: 24px;
}

.info-panel h2,
.info-panel h3 {
  margin: 0 0 12px;
  color: #1a2238;
  font-size: 1.35rem;
  line-height: 1.25;
}

.info-panel p,
.info-panel li {
  color: #505c73;
  font-size: 0.98rem;
}

.info-panel ol,
.info-panel ul {
  margin: 0;
  padding-left: 20px;
}

.info-panel li + li {
  margin-top: 8px;
}

.wide-section {
  margin-top: 28px;
}

.game-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.mini-card {
  min-width: 0;
  min-height: 110px;
  padding: 18px;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(244, 177, 39, 0.22), transparent 44%),
    linear-gradient(180deg, #172044, #0d132b);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.mini-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.mini-card span {
  color: #c9d2ec;
  font-size: 0.9rem;
}

.asset-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.asset-panel {
  min-width: 0;
  border: 1px solid #dce2f0;
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
}

.asset-panel h2 {
  margin: 0 0 16px;
  color: #192136;
  font-size: 1.28rem;
}

.asset-panel img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #e2e7f3;
  background: #071025;
}

.notice {
  margin-top: 28px;
  padding: 18px 20px;
  color: #5b4214;
  background: #fff7df;
  border: 1px solid #f2d17d;
  border-radius: var(--radius);
  font-size: 0.94rem;
}

.site-footer {
  background: #08061a;
  color: #fff;
  border-top: 1px solid var(--line-gold);
}

.footer-main {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 46px;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.footer-brand img {
  width: min(280px, 100%);
  margin-bottom: 16px;
}

.footer-brand p {
  margin: 0;
  max-width: 360px;
  color: #fff;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.65;
}

.footer-panel h2 {
  margin: 0 0 24px;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.2;
}

.footer-panel img {
  width: min(360px, 100%);
  max-height: 100px;
  object-fit: contain;
  object-position: left center;
}

.footer-bottom {
  background: #11102a;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
}

.footer-bottom span {
  display: block;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 14px 0;
}

.page-content {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0;
}

.page-content h1 {
  font-size: 2.2rem;
  line-height: 1.2;
}

.post-card {
  border-bottom: 1px solid #e0e5f1;
  padding: 24px 0;
}

@media (max-width: 1080px) {
  .header-row {
    gap: 16px;
  }

  .brand-link,
  .custom-logo-link {
    width: 140px;
  }

  .brand-link img,
  .custom-logo-link img {
    max-width: 150px;
  }

  .primary-nav ul,
  .fallback-menu {
    gap: 16px;
  }

  .primary-nav a,
  .fallback-menu a {
    font-size: 0.86rem;
  }

  .btn {
    min-height: 46px;
    padding: 0 18px;
  }

}

@media (max-width: 860px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .header-row {
    width: min(100% - 28px, 1200px);
    min-height: 78px;
    gap: 12px;
  }

  .brand-link,
  .custom-logo-link {
    width: 118px;
  }

  .brand-link img,
  .custom-logo-link img {
    max-width: 132px;
    max-height: 54px;
  }

  .menu-toggle {
    margin-left: 0;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span:not(.screen-reader-text) {
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
  }

  .header-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    width: min(420px, calc(100% - 38px));
    padding: 72px 34px 34px;
    flex-direction: column;
    justify-content: flex-start;
    gap: 28px;
    background: #fff;
    color: #050816;
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.34);
    transform: translateX(110%);
    transition: transform 180ms ease;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .header-menu-panel {
    transform: translateX(0);
  }

  .menu-close {
    position: absolute;
    top: 18px;
    right: 28px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #0b0b0f;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
  }

  body.menu-open .menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: block;
    border: 0;
    background: rgba(0, 0, 0, 0.54);
    cursor: pointer;
  }

  .primary-nav {
    width: 100%;
  }

  .primary-nav ul,
  .fallback-menu {
    width: 100%;
    flex-direction: column;
    gap: 22px;
  }

  .primary-nav a,
  .fallback-menu a {
    min-height: 30px;
    color: #050816;
    font-size: 1.05rem;
    font-weight: 500;
  }

  .header-actions {
    width: auto;
    flex-direction: row;
    gap: 7px;
    margin-left: auto;
  }

  .header-actions .btn {
    width: auto;
    min-width: 70px;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 5px;
    font-size: 0.72rem;
  }

  .feature-grid,
  .section-grid,
  .asset-row {
    grid-template-columns: 1fr;
  }

  .content-inner h1 {
    font-size: 2.1rem;
  }

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

@media (max-width: 560px) {
  .header-row {
    gap: 8px;
  }

  .brand-link,
  .custom-logo-link {
    width: 104px;
  }

  .hero-inner,
  .content-inner,
  .footer-main,
  .footer-bottom span,
  .page-content {
    width: min(100% - 28px, 1200px);
  }

  .brand-link img,
  .custom-logo-link img {
    max-width: 104px;
  }

  .quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .btn {
    min-width: 0;
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.78rem;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .btn {
    min-width: 62px;
    min-height: 38px;
    padding: 0 8px;
    font-size: 0.68rem;
  }

  .hero {
    padding: 30px 0 36px;
  }

  .main-banner {
    margin-bottom: 22px;
  }

  .feature-card {
    min-height: auto;
  }

  .game-list {
    grid-template-columns: 1fr;
  }

  .text-section h2 {
    font-size: 1.9rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 38px 0 34px;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-panel h2 {
    margin-bottom: 14px;
  }
}
