:root {
  color-scheme: dark;
  --bg: #0e1116;
  --bg-soft: #171c24;
  --bg-panel: #202733;
  --line: #343d4c;
  --text: #f4f7fb;
  --muted: #aeb8c6;
  --accent: #35d4bd;
  --accent-2: #f2c94c;
  --danger: #ff647c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --pad: clamp(1rem, 4vw, 4rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(14, 17, 22, 0.86), #0e1116 34rem),
    url("Asset/main-menu.jpeg");
  background-attachment: fixed;
  background-position: center top;
  background-size: cover;
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

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

.site-header {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0 2rem;
  height: 4.5rem;
  background: rgba(14, 17, 22, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #3868ff);
  border-radius: 0.4rem;
  color: #081015;
  font-weight: 900;
}

.main-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.main-nav {
  display: flex;
  gap: 2rem;
  margin-right: auto;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.main-nav a:hover,
.site-footer a:hover {
  color: #fff;
}

.header-cta,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0 1.2rem;
  border-radius: 0.45rem;
  font-weight: 800;
}

.header-cta,
.primary-button {
  background: var(--accent);
  color: #061114;
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--text);
}

main {
  overflow: hidden;
}

.hero,
.preview-section,
.game-strip,
.game-overview,
.media-section,
.devlog,
.about,
.final-cta,
.inner-page {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(20rem, 1.05fr);
  align-items: center;
  gap: 4rem;
  min-height: calc(100vh - 4.5rem);
  padding: 5rem 0 4rem;
}

.hero-copy {
  max-width: 38rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

h3 {
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.hero-text,
.preview-copy p,
.about p,
.post-list p,
.final-cta p,
.page-hero p,
.content-panel p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-art {
  min-height: 34rem;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(53, 212, 189, 0.22), rgba(242, 201, 76, 0.06)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.art-frame,
.preview-window,
.trailer-card,
.screenshot-row div {
  display: grid;
  place-items: center;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.03)
    ),
    var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  color: var(--text);
  text-align: center;
}

.art-frame {
  height: 100%;
  min-height: 32rem;
  align-content: center;
  gap: 0.7rem;
}

.art-frame span,
.preview-window span,
.trailer-card span {
  font-size: 2rem;
  font-weight: 900;
}

.art-frame small,
.preview-window small {
  max-width: 18rem;
  color: var(--muted);
  line-height: 1.5;
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.preview-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(28rem, 1.25fr);
  align-items: center;
  gap: 2rem;
  padding: 2rem 0 5rem;
}

.preview-copy {
  max-width: 32rem;
}

.preview-window.image-preview {
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 34rem;
  display: block;
  overflow: hidden;
}

.preview-window.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.game-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.game-strip article {
  display: grid;
  gap: 0.45rem;
  min-height: 7rem;
  padding: 1.4rem;
  background: rgba(23, 28, 36, 0.94);
}

.game-strip span {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-strip strong {
  font-size: 1.25rem;
}

.game-overview,
.media-section,
.devlog,
.about,
.final-cta {
  padding: 5rem 0;
}

.game-grid,
.post-list,
.feature-cards,
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.info-panel,
.feature-panel,
.feature-cards article,
.post-list article,
.content-panel,
.about,
.final-cta {
  background: rgba(23, 28, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.info-panel,
.feature-panel,
.feature-cards article,
.post-list article,
.content-panel {
  padding: 1.5rem;
}

dl,
dd {
  margin: 0;
}

dl {
  display: grid;
  gap: 1rem;
}

dt,
.post-list span {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

dd,
.feature-panel li,
.content-panel li {
  color: var(--muted);
  line-height: 1.6;
}

.feature-panel ul,
.content-panel ul {
  margin: 0;
  padding-left: 1.2rem;
}

.feature-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-cards p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.trailer-card {
  aspect-ratio: 16 / 7;
  margin-bottom: 1rem;
}

.screenshot-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.screenshot-row div {
  aspect-ratio: 16 / 10;
  color: var(--muted);
  font-weight: 800;
}

.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  padding: 2rem;
}

.final-cta {
  text-align: center;
  padding: 4rem 2rem;
}

.final-cta .hero-actions {
  justify-content: center;
}

.inner-page {
  padding: 5rem 0;
}

.page-hero {
  display: grid;
  align-content: center;
  min-height: 24rem;
  padding: 5rem 0 3rem;
}

.page-hero h1 {
  max-width: 56rem;
}

.page-hero p {
  max-width: 52rem;
}

.content-grid,
.post-list {
  margin-bottom: 4rem;
}

.legal-copy {
  max-width: 56rem;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 1.4rem;
  padding: 3.5rem 1rem;
  background: #0b0d11;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.86rem;
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 0.8rem 1rem;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }

  .hero,
  .preview-section,
  .game-strip,
  .game-grid,
  .post-list,
  .about,
  .feature-cards,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 2rem;
    min-height: auto;
    padding-top: 4rem;
  }

  .hero-art,
  .art-frame {
    min-height: 22rem;
  }
}

.screenshot-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.screenshot-row div {
  aspect-ratio: 16 / 10;
  color: var(--muted);
  font-weight: 800;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.screenshot-row img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: 24px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.screenshot-row img:hover {
  transform: scale(1.04);
}

.section-label::before,
.hero.section-label::before {
  top: 1rem;
}

.download-page {
  background:
    linear-gradient(180deg, rgba(14, 17, 22, 0.35), rgba(14, 17, 22, 0.96)),
    url("Asset/main-menu.jpeg");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.download-hero {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 4.5rem);
  padding: 4rem 1rem;
  text-align: center;
}

.download-hero-content {
  width: min(920px, 100%);
}

.download-hero p {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.download-actions-center {
  justify-content: center;
}

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 18rem;
  min-height: 5.6rem;
  padding: 1rem 1.4rem;
  border-radius: 0.45rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.download-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.42);
  filter: brightness(1.04);
}

.download-button strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.download-button small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  text-transform: none;
}

.download-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.22);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 950;
}

.download-icon img {
  width: 1.65rem;
  height: 1.65rem;
  object-fit: contain;
}

.android-download {
  background: #35d4bd;
  color: #061114;
}

.android-download small {
  color: rgba(6, 17, 20, 0.72);
}

.android-download .download-icon {
  background: rgba(6, 17, 20, 0.16);
  color: #061114;
}

.windows-download {
  background: #f2c94c;
  color: #12100a;
}

.windows-download small {
  color: rgba(18, 16, 10, 0.72);
}

.windows-download .download-icon {
  background: rgba(18, 16, 10, 0.16);
  color: #12100a;
}

.download-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 2rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(14, 17, 22, 0.74), rgba(14, 17, 22, 0.92)),
    url("main-menu.jpeg");
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.download-section p {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
}

@media (max-width: 620px) {
  .download-actions {
    flex-direction: column;
  }

  .download-button {
    width: 100%;
    min-width: 0;
  }
}

.footer-logo {
  width: 2rem;
  height: 2rem;
  object-fit: cover;
  border-radius: 0.4rem;
}

.contact-body {
  background:
    linear-gradient(180deg, rgba(14, 17, 22, 0.85), rgba(14, 17, 22, 0.95)),
    url("Asset/main-menu.jpeg") center / cover fixed;
  color: var(--text);
}

.contact-copy h1 {
  color: #ffffff;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.contact-copy p {
  color: var(--muted);
}

.contact-page {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 5rem 2rem;
  overflow: hidden;
}

.contact-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.contact-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(22rem, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.contact-copy {
  max-width: 30rem;
}

.contact-copy h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(4.5rem, 10vw, 8.5rem);
  line-height: 0.86;
}

.contact-copy p:not(.eyebrow) {
  color: rgba(244, 247, 251, 0.74);
  font-size: 1.08rem;
  line-height: 1.8;
}

.contact-board {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.03)
    ),
    rgba(15, 20, 29, 0.66);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.support-card,
.social-grid a {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 18, 27, 0.76);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.support-card:hover,
.social-grid a:hover {
  transform: translateY(-3px);
  border-color: rgba(53, 212, 189, 0.58);
  background: rgba(24, 34, 45, 0.86);
}

.support-card {
  display: grid;
  gap: 0.65rem;
  min-height: 13rem;
  padding: clamp(1.4rem, 4vw, 2rem);
  border-left: 0.32rem solid var(--accent);
}

.support-card span,
.social-grid span {
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.support-card strong {
  color: var(--text);
  font-size: clamp(1.55rem, 4vw, 2.6rem);
  line-height: 1.05;
}

.support-card small {
  max-width: 28rem;
  color: rgba(244, 247, 251, 0.62);
  font-size: 0.98rem;
  line-height: 1.6;
}

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

.social-grid a {
  display: grid;
  gap: 0.35rem;
  min-height: 8rem;
  align-content: end;
  padding: 1.1rem;
  border-radius: 0.4rem;
}

.social-grid strong {
  color: var(--text);
  font-size: 1.05rem;
}

@media (max-width: 820px) {
  .contact-page {
    min-height: auto;
    padding: 4rem 1rem;
  }

  .contact-shell {
    grid-template-columns: 1fr;
  }

  .contact-copy h1 {
    font-size: clamp(4rem, 20vw, 6rem);
  }

  .social-grid {
    grid-template-columns: 1fr;
  }
}

.home-page {
  background: #090c10;
  font-family: "Inter", sans-serif;
}

.global-navbar {
  background: rgba(14, 17, 22, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.brand-text {
  font-weight: 900 !important;
  letter-spacing: 0.15em;
  color: #fff;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-login {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.header-login:hover {
  color: #fff;
}

.portal-cta {
  background: var(--accent) !important;
  color: #0e1116;
  font-weight: 800 !important;
  border-radius: 4px !important;
  padding: 0.5rem 1.2rem !important;
}

.portal-hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
  background:
    linear-gradient(
      90deg,
      rgba(9, 12, 16, 0.95) 30%,
      rgba(9, 12, 16, 0.4) 100%
    ),
    url("Asset/main-menu.jpeg") no-repeat center top;
  background-size: cover;
  overflow: hidden;
}

.portal-hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-tagline {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.hero-game-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 900;
  margin: 0 0 1.5rem 0;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-game-desc {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-portal-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary-nexon {
  background: #fff;
  color: #000;
  padding: 0.9rem 2rem;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  transition:
    transform 0.2s,
    background-color 0.2s;
}

.btn-primary-nexon:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.btn-secondary-nexon {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.9rem 2rem;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 4px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s;
}

.btn-secondary-nexon:hover {
  background: rgba(255, 255, 255, 0.1);
}

.portal-games-grid-container {
  padding: 5rem var(--pad);
  max-width: 1300px;
  margin: 0 auto;
}

.section-header-nexon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
}

.section-header-nexon h2 {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin: 0;
}

.game-filters {
  display: flex;
  gap: 0.5rem;
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  letter-spacing: 0.05rem;
  transition: color 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
  color: #fff;
  border-bottom: 2px solid #fff;
}

.games-grid-nexon {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.game-card-nexon {
  background: #13171f;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.game-card-nexon:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  border-color: rgba(53, 212, 189, 0.3);
}

.card-img-wrapper {
  position: relative;
  height: 200px;
  background: #1a202c;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.game-card-nexon:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.card-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 12, 16, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}

.card-img-wrapper:hover .card-hover-overlay {
  opacity: 1;
}

.card-btn {
  background: var(--accent);
  color: #000;
  padding: 0.6rem 1.5rem;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 4px;
}

.placeholder-card-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

.game-card-info {
  padding: 1.5rem;
}

.game-card-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  color: #fff;
}

.game-card-info p {
  margin: 0 0 1rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.platform-tags {
  display: flex;
  gap: 0.5rem;
}

.platform-tags span {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.tag-pc {
  color: #56ccf2;
}
.tag-mobile {
  color: #6fcf97;
}
.item-disabled {
  opacity: 0.6;
}

.game-card-nexon.is-hidden {
  display: none;
}

.portal-news-section {
  padding: 2rem var(--pad) 6rem var(--pad);
  max-width: 1300px;
  margin: 0 auto;
}

.view-all-news {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.news-list-nexon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .news-list-nexon {
    grid-template-columns: 1fr;
  }
}

.news-item-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.news-item-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.news-date {
  color: var(--muted);
  font-size: 0.8rem;
  margin-right: 1rem;
}

.news-category {
  color: var(--accent-2);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.news-item-card h3 {
  margin: 0.25rem 0;
  color: #fff;
  font-size: 1.2rem;
}

.news-item-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.portal-footer {
  background: #05070a !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem var(--pad) !important;
}

.footer-top-nexon {
  width: min(1300px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 2rem;
}

.footer-links-nexon {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  order: 1;
}

.footer-links-nexon a {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  padding: 0 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  line-height: 1;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-links-nexon a:last-child {
  border-right: none;
}

.footer-links-nexon a:hover {
  color: #fff;
}

.footer-brand-nexon {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #fff;
  order: 2;
}

.footer-logo {
  height: 2rem;
  border-radius: 4px;
}

.footer-bottom-nexon p {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem !important;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

.launcher-section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 3rem var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  background: #111722;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.launcher-copy {
  max-width: 44rem;
}

.launcher-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.launcher-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 720px) {
  .launcher-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .inner-page,
  .content-grid,
  .content-panel,
  .legal-copy,
  .post-list {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 820px) {
  .header-right-actions {
    justify-content: flex-end;
  }

  .section-header-nexon {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --pad: 1.25rem;
  }

  .global-navbar {
    height: 60px;
    padding: 0 1rem !important;
  }

  .global-navbar .main-nav {
    display: none !important;
  }

  .header-right-actions {
    gap: 0.5rem;
  }

  .header-login {
    font-size: 0.8rem;
  }

  .portal-cta {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.75rem !important;
  }

  .portal-hero {
    height: 60vh;
    min-height: 400px;
    padding: 2rem 1.25rem;
    display: flex;
    align-items: flex-end;
  }

  .portal-hero-content {
    max-width: 100%;
    text-align: left;
  }

  .portal-hero-content h1,
  .hero-game-title {
    font-size: 1.8rem !important;
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }

  .portal-hero-content p {
    font-size: 0.9rem !important;
    line-height: 1.4;
  }

  #games-section {
    padding: 2.5rem 1.25rem !important;
  }

  .games-grid-nexon {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .game-card-nexon {
    max-width: 100%;
  }

  .card-img-wrapper {
    height: 160px;
  }

  .game-card-info h3 {
    font-size: 1.1rem !important;
  }

  .game-card-info p {
    font-size: 0.85rem !important;
  }

  .portal-news-section {
    padding: 2rem 1.25rem 4rem 1.25rem !important;
  }

  .news-list-nexon {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .news-item-card {
    padding: 1.25rem !important;
  }

  .news-item-card h3 {
    font-size: 1.05rem !important;
    margin: 0.5rem 0;
  }

  .news-item-card p {
    font-size: 0.85rem !important;
  }

  .portal-footer {
    padding: 2.5rem 1.25rem !important;
  }

  /*
  .footer-top-nexon {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-links-nexon {
    flex-direction: column;
    gap: 0.8rem;
  }
*/

  .footer-links-nexon a {
    font-size: 0.8rem;
  }

  .inner-page,
  .content-grid,
  .content-panel,
  .legal-copy,
  .post-list {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    box-sizing: border-box !important;
  }
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem) !important;
}
h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem) !important;
}
h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem) !important;
}

.contact-copy h1 {
  font-size: clamp(3rem, 6vw, 5.5rem) !important;
}

.hero-game-title {
  font-size: clamp(1.8rem, 4vw, 3rem) !important;
}

.support-card strong {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem) !important;
}

p,
.hero-text,
.preview-copy p,
.about p,
.post-list p,
.final-cta p,
.page-hero p,
.content-panel p,
.hero-game-desc {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem) !important;
  line-height: 1.6 !important;
}

@media screen and (max-width: 768px) {
  body,
  main {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  .portal-hero,
  .portal-games-grid-container,
  .portal-news-section,
  .launcher-section,
  .footer-top-nexon,
  .download-section {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .portal-hero {
    height: auto !important;
    min-height: 70vh !important;
    padding-top: 6rem !important;
    padding-bottom: 3rem !important;
    align-items: center !important;
  }

  .hero-portal-actions,
  .download-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.8rem !important;
  }
  .hero-portal-actions a,
  .download-actions a {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .games-grid-nexon,
  .news-list-nexon,
  .feature-cards,
  .screenshot-row,
  .game-strip {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .site-header {
    padding: 0.5rem 1rem !important;
    gap: 0.5rem !important;
  }
  .header-right-actions {
    gap: 0.75rem !important;
  }
  .header-cta,
  .portal-cta {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.75rem !important;
    min-height: 0 !important;
  }

  .header-cta,
  .portal-cta {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.75rem !important;
    min-height: 0 !important;
  }

  .game-filters {
    flex-wrap: wrap !important;
  }

  .filter-btn {
    display: inline-block !important;
  }
}

.title-with-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.mini-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.inner-page,
.content-grid,
.content-panel,
.legal-copy,
.post-list {
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
  box-sizing: border-box !important;
}

@media screen and (max-width: 768px) {
  .mini-logo {
    height: 30px;
  }

  .inner-page,
  .content-grid,
  .content-panel,
  .legal-copy,
  .post-list {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    box-sizing: border-box !important;
  }

  .inner-page,
  .content-grid,
  .content-panel,
  .legal-copy,
  .post-list {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    box-sizing: border-box !important;
  }
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Pop-up Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000; /* Paling atas */
}

.popup-content {
  background: #171c24;
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  border: 1px solid #343d4c;
  color: #f4f7fb;
}

.popup-content h3 {
  margin-top: 0;
  color: #35d4bd;
}

.close-btn {
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  background: #35d4bd;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #0e1116;
  font-weight: bold;
}

.nav-logo {
  height: 35px;
  width: auto;
  margin-right: 10px;
  vertical-align: middle;
}

.brand {
  display: flex;
  align-items: center;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.25rem;
}

.social-link img {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.25rem;
}

.accent-link {
  color: var(--accent);
  text-decoration: underline;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  justify-items: center;
}

.social-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 1.5rem 1rem;
  border-radius: 0.4rem;
}

.social-grid a img {
  display: block;
  margin: 0 auto 0.5rem auto;
  height: 2.5rem;
  width: auto;
  object-fit: contain;
}

@media (max-width: 820px) {
  .social-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .inner-page,
  .content-grid,
  .content-panel {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .page-hero {
    min-height: auto !important;
    padding: 2rem 0 !important;
  }
}

/* Tampilan Desktop Nexon Style */
.global-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
} /* Nama dekat logo */
.main-nav {
  display: flex;
  gap: 2rem;
  margin-left: 2rem;
  margin-right: auto;
}
.nav-link {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Mobile Menu Toggle - Sembunyikan di Desktop */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.bar {
  width: 25px;
  height: 3px;
  background: white;
}

/* Responsive Mobile */
@media (max-width: 992px) {
  .main-nav,
  .desktop-only {
    display: none;
  } /* Sembunyikan menu desktop */
  .mobile-menu-toggle {
    display: flex;
  } /* Tampilkan garis 3 */
}

/* Pastikan overlay tinggi penuh dan muncul dari kanan */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: min(80vw, 300px);
  height: 100vh;
  background: #0e1116;
  z-index: 9999;
  flex-direction: column;
  padding: 1rem; /* Padding luar lebih kecil */
  transition: right 0.4s ease;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

.mobile-menu-overlay.active {
  display: flex !important;
  right: 0 !important;
}

/* Sembunyikan Login di mobile agar tidak duplikat */
@media (max-width: 992px) {
  .header-login {
    display: none !important;
  }
}

/* Memisahkan daftar menu dengan tombol aksi */
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Jarak antar menu lebih rapat */
  margin-top: 2rem;
  padding-left: 0.5rem;
}

.mobile-nav-links a {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  opacity: 0.9;
}

.mobile-auth-actions {
  margin-top: auto; /* Mendorong ke bawah */
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* Jarak antar tombol lebih rapat */
  padding-bottom: 2rem;
}
.mobile-auth-actions a {
  padding: 0.8rem;
  text-align: center;
  border-radius: 4px;
  font-weight: 600;
}

.close-menu-btn {
  position: absolute;
  top: 0; /* Tempel ke paling atas */
  right: 0; /* Tempel ke paling kanan */
  width: 4.5rem; /* Lebar sama dengan area tombol menu */
  height: 4.5rem; /* Tinggi sama dengan tinggi navbar */
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Styling untuk elemen di dalam overlay */
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Jarak antar menu lebih rapat */
  margin-top: 2rem;
  padding-left: 0.5rem;
}
.mobile-nav-links a {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  opacity: 0.9;
}

.mobile-auth-actions {
  margin-top: auto; /* Mendorong ke bawah */
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* Jarak antar tombol lebih rapat */
  padding-bottom: 2rem;
}
.mobile-auth-actions a {
  padding: 0.8rem;
  text-align: center;
  border-radius: 4px;
  font-weight: 600;
}
.mobile-login-btn {
  padding: 12px;
  border: 1px solid #555;
  text-align: center;
}
.mobile-register-btn {
  padding: 12px;
  background: #35d4bd;
  color: black;
  text-align: center;
  font-weight: bold;
}

@media (max-width: 768px) {
  /* Hilangkan margin bawaan agar tidak ada celah kosong */
  .footer-top-nexon,
  .footer-links-nexon,
  .footer-bottom-nexon,
  .footer-bottom-nexon p {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Rapatkan kontainer utama footer */
  .footer-top-nexon {
    padding-bottom: 0.5rem !important;
  }

  /* Rapatkan link footer */
  .footer-links-nexon {
    gap: 0.2rem 1rem !important; /* Jarak vertikal diperkecil jadi 0.2rem */
    line-height: 1.2; /* Mengatur tinggi baris teks */
  }

  /* Rapatkan teks copyright */
  .footer-bottom-nexon {
    padding-top: 0.5rem !important;
  }
}
