:root {
  --bg: #0b0d1c;
  --bg-deep: #070914;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.065);
  --line: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --pink: #ff4f98;
  --pink-soft: #ff9fc5;
  --violet: #8b5cf6;
  --radius-xl: 32px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 70% 0%, rgba(255, 79, 152, 0.18), transparent 36%),
    radial-gradient(circle at 20% 8%, rgba(139, 92, 246, 0.18), transparent 32%),
    var(--bg);
  font-family: Inter, Pretendard, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 20, 0.84);
  backdrop-filter: blur(18px);
}
.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pink-soft), var(--violet));
  box-shadow: 0 14px 38px rgba(255, 79, 152, 0.25);
}
.brand-mark.small {
  width: 34px;
  height: 34px;
  border-radius: 14px;
}
.brand-text {
  font-size: 21px;
}
.brand-text em {
  font-style: normal;
  font-weight: 500;
  opacity: 0.78;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 800;
}
.nav-links a {
  transition: 0.2s ease;
}
.nav-links a:hover {
  color: white;
}
.nav-cta {
  padding: 14px 24px;
  border-radius: 17px;
  color: white !important;
  background: linear-gradient(90deg, var(--pink), #e946d2);
  box-shadow: 0 14px 34px rgba(255, 79, 152, 0.28);
}
.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
}
.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: white;
  border-radius: 99px;
}

.hero {
  position: relative;
  min-height: 650px;
  padding-top: 112px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    var(--bg-deep);
  background-size: 44px 44px;
}
.section-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 22%, rgba(255, 79, 152, 0.32), transparent 36%),
    radial-gradient(circle at 28% 20%, rgba(139, 92, 246, 0.25), transparent 34%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 520px;
  display: block;
  padding: 56px 0 100px;
}
.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--pink-soft);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(56px, 6.2vw, 94px);
  line-height: 0.94;
  letter-spacing: -0.07em;
}
.hero-copy h1 span {
  background: linear-gradient(90deg, #ffc0d6, var(--pink), #f06bee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-description {
  max-width: 500px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 36px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 24px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease;
}
.button:hover {
  transform: translateY(-2px);
}
.button.primary {
  background: linear-gradient(90deg, var(--pink), #e946d2);
  box-shadow: 0 16px 42px rgba(255, 79, 152, 0.32);
}
.button.secondary {
  border: 1px solid rgba(255, 159, 197, 0.28);
  background: rgba(255, 255, 255, 0.045);
}

.hero-slider {
  position: relative;
  width: min(900px, 76vw);
  min-height: 390px;
  margin: 0 auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.hero-slider::before {
  content: "";
  position: absolute;
  inset: -34px;
  z-index: -1;
  border-radius: 48px;
  background: rgba(255, 79, 152, 0.16);
  filter: blur(60px);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 34px;
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: scale(0.88) translateX(0);
  transition: opacity 0.8s ease, transform 1.15s ease, filter 0.8s ease;
  pointer-events: none;
}
.hero-slide.is-active {
  z-index: 3;
  opacity: 1;
  transform: scale(1) translateX(0);
  pointer-events: auto;
}

.hero-slide.is-prev {
  z-index: 1;
  opacity: 0.28;
  transform: scale(0.86) translateX(-58%);
  filter: brightness(0.55) saturate(0.8);
}

.hero-slide.is-next {
  z-index: 1;
  opacity: 0.28;
  transform: scale(0.86) translateX(58%);
  filter: brightness(0.55) saturate(0.8);
}
.hero-slide > img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,9,20,0.16), transparent 30%, rgba(7,9,20,0.08)),
    linear-gradient(0deg, rgba(7,9,20,0.18), transparent 52%);
}

.slider-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: -32px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.slider-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 99px;
  background: rgba(255,255,255,0.42);
  cursor: pointer;
  transition: 0.25s ease;
}
.slider-dot.is-active {
  width: 28px;
  background: linear-gradient(90deg, var(--pink-soft), #f6a622);
}
.hero-curve {
  position: absolute;
  left: 50%;
  bottom: -62px;
  width: 124%;
  height: 150px;
  transform: translateX(-50%);
  border-top: 2px solid rgba(255, 79, 152, 0.7);
  border-radius: 50% 50% 0 0;
  background: var(--bg);
}

.section {
  position: relative;
  z-index: 1;
}
.page-section {
  padding: 24px 0;
}
.compact-top {
  padding-top: 14px;
}
.section-panel,
.about-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.section-panel {
  padding: 42px;
}
.section-head {
  max-width: 760px;
}
.section-head h2,
.about-panel h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -0.06em;
}
.section-head p {
  margin: 14px 0 0;
  color: rgba(255,255,255,0.64);
  line-height: 1.7;
}
.row-head {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}
.row-head p:last-child {
  max-width: 480px;
}

.main-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 36px;
}
.main-game-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,0.05);
  box-shadow: 0 22px 55px rgba(0,0,0,0.24);
}
.game-cover-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 748 / 896;
  background: #121424;
}
.game-cover-link picture,
.game-cover-link img {
  width: 100%;
  height: 100%;
}
.game-cover-link img {
  object-fit: contain;
  transition: transform 0.55s ease;
}
.main-game-card:hover .game-cover-link img {
  transform: scale(1.055);
}
.game-cover-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7,9,20,0.74), transparent 44%);
  pointer-events: none;
}
.main-game-body {
  padding: 24px;
}
.main-game-body h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -0.05em;
}
.main-game-body p {
  min-height: 68px;
  margin: 12px 0 0;
  color: rgba(255,255,255,0.66);
  line-height: 1.58;
  font-size: 14px;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.store-links.compact {
  margin-top: 0;
}
.store-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.86);
  font-size: 12px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease;
}
.store-link:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.11);
}
.store-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.store-link.icon-only {
  width: 44px;
  height: 44px;
  justify-content: center;
  padding: 0;
}
.store-link.icon-only img {
  width: 24px;
  height: 24px;
}
.store-link[href=""],
.store-link:not([href]),
.store-link.is-hidden {
  display: none;
}

.more-game-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.more-game-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,0.05);
}
.more-icon {
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 18px 36px rgba(0,0,0,0.28);
}
.more-info {
  min-width: 0;
  flex: 1;
}
.more-info h3 {
  margin: 0 0 13px;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.about-panel {
  display: grid;
  grid-template-columns: 1.08fr 0.8fr 0.9fr;
  gap: 34px;
  padding: 42px;
}
.about-panel p {
  max-width: 450px;
  color: rgba(255,255,255,0.66);
  line-height: 1.75;
}
.info-list {
  display: grid;
  align-content: center;
  gap: 16px;
  margin: 0;
  padding: 0 0 0 30px;
  border-left: 1px solid var(--line);
}
.info-list div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
}
.info-list dt {
  color: var(--pink-soft);
  font-weight: 900;
}
.info-list dd {
  margin: 0;
  color: rgba(255,255,255,0.72);
}
.contact-card {
  padding: 28px;
  border: 1px solid rgba(255, 159, 197, 0.15);
  border-radius: 24px;
  background: rgba(255, 159, 197, 0.05);
}
.contact-card h3 {
  margin: 0;
  font-size: 27px;
}
.contact-card p {
  margin: 10px 0 22px;
}
.contact-card a {
  display: block;
  margin-top: 14px;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s ease;
}
.contact-card a:hover {
  color: white;
}

.footer {
  padding: 32px 0 40px;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: rgba(255,255,255,0.52);
  font-size: 14px;
}
.back-top {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 159, 197, 0.52);
  border-radius: 50%;
  color: #ffd2e2;
  font-size: 24px;
}
.copyright {
  margin: 18px 0 0;
  text-align: center;
  color: rgba(255,255,255,0.36);
  font-size: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 {
  transition-delay: 0.12s;
}

@media (max-width: 1080px) {
  .hero-inner {
    display: block;
  }
  .hero-slider {
    width: min(820px, 78vw);
    min-height: 380px;
  }
  .main-game-grid,
  .more-game-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-panel {
    grid-template-columns: 1fr;
  }
  .info-list {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 0 20px;
  }
  .mobile-menu-button {
    display: block;
  }
  .nav-links {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 92px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(7, 9, 20, 0.96);
    box-shadow: var(--shadow);
  }
  body.menu-open .nav-links {
    display: flex;
  }
  .nav-links a {
    padding: 14px 12px;
  }
  .nav-cta {
    text-align: center;
  }
  .container {
    width: min(100% - 28px, 1180px);
  }
  .hero {
    min-height: auto;
    padding-top: 88px;
  }
  .hero-inner {
    min-height: auto;
    gap: 32px;
    padding: 38px 0 72px;
  }
  .hero-copy h1 {
    font-size: clamp(52px, 15vw, 72px);
  }
  .hero-description {
    font-size: 16px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .button {
    width: 100%;
  }
  .hero-slider {
    min-height: 300px;
    border-radius: 28px;
  }
  .hero-slide img:not(.slide-info img) {
    min-height: 300px;
  }
  


/* v7: language switcher */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.055);
}

.lang-button {
  height: 30px;
  min-width: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255,255,255,0.62);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
}

.lang-button:hover,
.lang-button.is-active {
  color: white;
  background: linear-gradient(90deg, var(--pink), #e946d2);
}

.main-game-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.game-cover-link {
  width: 100%;
  flex: 0 0 auto;
}

.game-cover-link picture {
  display: block;
  width: 100%;
  height: 100%;
}

.main-game-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.main-game-body h3,
.more-info h3 {
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.main-game-body p {
  min-height: 0;
}

.store-links {
  margin-top: auto;
  padding-top: 22px;
}

.store-link.icon-only {
  width: 52px;
  height: 52px;
  padding: 0;
  justify-content: center;
  border-radius: 16px;
}

.store-link.icon-only img {
  width: 31px;
  height: 31px;
}

.store-link.icon-only span {
  display: none !important;
}

.store-links.compact {
  padding-top: 0;
}

.more-info {
  min-width: 0;
}

@media (max-width: 1120px) {
  .nav-links {
    gap: 18px;
  }

  .nav-cta {
    padding-inline: 18px;
  }
}

@media (max-width: 760px) {
  .language-switcher {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
  }

  .lang-button {
    flex: 1;
  }

  .game-cover-link img {
    object-fit: contain;
  }

  .store-link.icon-only {
    width: 50px;
    height: 50px;
  }

  .store-link.icon-only img {
    width: 30px;
    height: 30px;
  }
}


/* v8: cleaner section header and exact vertical capsule ratio */
.section-head {
  margin-bottom: 0;
}

.section-head h2 {
  margin-bottom: 0;
}

.row-head {
  align-items: center;
}

.game-cover-link {
  max-width: 100%;
}

.game-cover-link picture,
.game-cover-link img {
  max-width: 100%;
}

.main-game-card {
  min-width: 0;
}

@media (max-width: 760px) {
  .game-cover-link {
    aspect-ratio: 920 / 430;
  }
}


/* v9: larger store icons and responsive layout timing */

/* Main Games store icons: larger and visually aligned to card width */
.main-game-body .store-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 14px;
  width: 100%;
}

.main-game-body .store-link.icon-only {
  width: 100%;
  height: 66px;
  border-radius: 20px;
}

.main-game-body .store-link.icon-only img {
  width: 42px;
  height: 42px;
}

/* Keep top carousel aspect ratio while resizing */
.hero-slider {
  aspect-ratio: 920 / 430;
  min-height: 0;
}

.hero-slide > img {
  min-height: 0;
}

/* Make side preview cards scale cleanly without forcing height */
.hero-slide {
  height: 100%;
}

/*
  When store_capsule_vertical switches to store_capsule_header at 760px,
  the Main Games layout also switches to one card per row.
*/
@media (max-width: 760px) {
  .main-game-grid {
    grid-template-columns: 1fr;
  }

  .main-game-body .store-links {
    grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
    gap: 12px;
  }

  .main-game-body .store-link.icon-only {
    height: 60px;
    border-radius: 18px;
  }

  .main-game-body .store-link.icon-only img {
    width: 38px;
    height: 38px;
  }

  .hero-slider {
    width: min(100%, 620px);
    aspect-ratio: 920 / 430;
    min-height: 0;
  }

  .hero-slide > img {
    min-height: 0;
  }
}

/* Remove earlier two-column tablet layout just before mobile switch for Main Games */
@media (min-width: 761px) and (max-width: 1080px) {
  .main-game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* v10: final mobile ordering/layout refinements */
@media (max-width: 760px) {
  .more-game-list {
    grid-template-columns: 1fr;
  }

  .more-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 20px;
  }

  .more-icon {
    width: 86px;
    height: 86px;
    margin: 0 auto;
  }

  .more-info {
    width: 100%;
  }

  .more-info h3 {
    margin: 2px 0 14px;
  }

  .more-info .store-links.compact {
    display: flex;
    justify-content: center;
  }
}


/* v11: larger desktop store icons and 18+ badge on Steam */
@media (min-width: 761px) {
  .main-game-body .store-link.icon-only {
    height: 99px;
    border-radius: 28px;
  }

  .main-game-body .store-link.icon-only img {
    width: 63px;
    height: 63px;
  }
}

.main-game-body .store-link.steam {
  position: relative;
}

.main-game-body .store-link.steam::after {
  content: "";
  position: absolute;
  top: -10px;
  right: -10px;
  width: 34px;
  height: 34px;
  background-image: url("./assets/1_icon/18_kin.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.45));
  pointer-events: none;
}

@media (min-width: 761px) {
  .main-game-body .store-link.steam::after {
    top: -13px;
    right: -13px;
    width: 48px;
    height: 48px;
  }
}


/* v12: wide desktop-only store icon refinement */
@media (min-width: 1081px) {
  .main-game-card {
    overflow: visible;
  }

  .main-game-body .store-links {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 18px;
  }

  .main-game-body .store-link.icon-only {
    position: relative;
    height: 124px;
    min-height: 124px;
    border-radius: 30px;
  }

  .main-game-body .store-link.icon-only img {
    width: 82px;
    height: 82px;
  }

  .main-game-body .store-link.steam::after {
    top: 6px;
    right: 6px;
    width: 46px;
    height: 46px;
    z-index: 3;
  }
}

@media (min-width: 1320px) {
  .main-game-body .store-link.icon-only {
    height: 138px;
    min-height: 138px;
  }

  .main-game-body .store-link.icon-only img {
    width: 92px;
    height: 92px;
  }

  .main-game-body .store-link.steam::after {
    width: 52px;
    height: 52px;
  }
}


/* v13: force wide desktop Main Games store icon sizing and real 18+ badge */
.main-game-body .store-link.steam::after {
  display: none !important;
}

.main-game-body .store-link.icon-only {
  overflow: visible;
}

.main-game-body .store-link.icon-only .age-badge {
  position: absolute;
  z-index: 5;
  display: block;
  pointer-events: none;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(0,0,0,0.45));
}

@media (min-width: 1081px) {
  .main-game-body .store-links {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
  }

  .main-game-body .store-link.icon-only {
    width: 100% !important;
    height: 132px !important;
    min-height: 132px !important;
    border-radius: 32px !important;
    position: relative !important;
  }

  .main-game-body .store-link.icon-only > img:not(.age-badge) {
    width: 88px !important;
    height: 88px !important;
  }

  .main-game-body .store-link.icon-only .age-badge {
    top: 7px !important;
    right: 7px !important;
    width: 50px !important;
    height: 50px !important;
  }
}

@media (min-width: 1320px) {
  .main-game-body .store-link.icon-only {
    height: 152px !important;
    min-height: 152px !important;
  }

  .main-game-body .store-link.icon-only > img:not(.age-badge) {
    width: 104px !important;
    height: 104px !important;
  }

  .main-game-body .store-link.icon-only .age-badge {
    top: 8px !important;
    right: 8px !important;
    width: 58px !important;
    height: 58px !important;
  }
}

@media (max-width: 1080px) {
  .main-game-body .store-link.icon-only .age-badge {
    top: -10px;
    right: -10px;
    width: 36px;
    height: 36px;
  }
}


/* v14: keep Steam icon centered and overlay 18+ badge */
.main-game-body .store-link.icon-only {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  overflow: visible !important;
}

.main-game-body .store-link.icon-only > img:not(.age-badge) {
  grid-area: 1 / 1 !important;
  display: block !important;
  margin: auto !important;
}

.main-game-body .store-link.icon-only .age-badge {
  position: absolute !important;
  display: block !important;
  margin: 0 !important;
  grid-area: auto !important;
  pointer-events: none !important;
  object-fit: contain !important;
  z-index: 10 !important;
  filter: drop-shadow(0 5px 8px rgba(0,0,0,0.45));
}

/* 1080px 이하에서 잘 나오던 방식과 동일하게: 중앙 아이콘 + 우상단 배지 */
@media (max-width: 1080px) {
  .main-game-body .store-link.icon-only .age-badge {
    top: -10px !important;
    right: -10px !important;
    width: 36px !important;
    height: 36px !important;
  }
}

/* 넓은 데스크탑에서는 같은 구조를 유지하고 크기만 확대 */
@media (min-width: 1081px) {
  .main-game-body .store-link.icon-only {
    height: 132px !important;
    min-height: 132px !important;
  }

  .main-game-body .store-link.icon-only > img:not(.age-badge) {
    width: 88px !important;
    height: 88px !important;
  }

  .main-game-body .store-link.icon-only .age-badge {
    top: -13px !important;
    right: -13px !important;
    width: 48px !important;
    height: 48px !important;
  }
}

@media (min-width: 1320px) {
  .main-game-body .store-link.icon-only {
    height: 152px !important;
    min-height: 152px !important;
  }

  .main-game-body .store-link.icon-only > img:not(.age-badge) {
    width: 104px !important;
    height: 104px !important;
  }

  .main-game-body .store-link.icon-only .age-badge {
    top: -15px !important;
    right: -15px !important;
    width: 56px !important;
    height: 56px !important;
  }
}


/* v15: use the same stretched store-button layout on desktop and mobile */

/* Remove DOM-based badge behavior from previous versions. */
.main-game-body .store-link.icon-only .age-badge {
  display: none !important;
}

/* Store buttons always stretch across the available card width. */
.main-game-body .store-links {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
}

/* Keep every store button as a centered single-icon tile. */
.main-game-body .store-link.icon-only {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 72px !important;
  min-height: 72px !important;
  padding: 0 !important;
  border-radius: 20px !important;
  overflow: visible !important;
}

.main-game-body .store-link.icon-only > img {
  grid-area: 1 / 1 !important;
  display: block !important;
  width: 44px !important;
  height: 44px !important;
  margin: auto !important;
  object-fit: contain !important;
}

/* Steam 18+ mark is an overlay, not a layout item. */
.main-game-body .store-link.steam::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  top: -10px !important;
  right: -10px !important;
  width: 34px !important;
  height: 34px !important;
  z-index: 10 !important;
  background-image: url("./assets/1_icon/18_kin.png") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  filter: drop-shadow(0 5px 8px rgba(0,0,0,0.45));
  pointer-events: none !important;
}

/* Wide desktop: same stretched layout, just slightly larger. */
@media (min-width: 1081px) {
  .main-game-body .store-links {
    grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)) !important;
    gap: 16px !important;
  }

  .main-game-body .store-link.icon-only {
    height: 86px !important;
    min-height: 86px !important;
    border-radius: 24px !important;
  }

  .main-game-body .store-link.icon-only > img {
    width: 54px !important;
    height: 54px !important;
  }

  .main-game-body .store-link.steam::after {
    top: -12px !important;
    right: -12px !important;
    width: 42px !important;
    height: 42px !important;
  }
}

@media (min-width: 1320px) {
  .main-game-body .store-link.icon-only {
    height: 96px !important;
    min-height: 96px !important;
  }

  .main-game-body .store-link.icon-only > img {
    width: 62px !important;
    height: 62px !important;
  }

  .main-game-body .store-link.steam::after {
    width: 46px !important;
    height: 46px !important;
  }
}


/* =========================================================
   v16 FINAL OVERRIDE
   Main Games store buttons are explicitly controlled here.
   This block uses new classes in index.html and a new CSS filename
   to avoid older cached/conflicting rules.
   ========================================================= */

.main-game-body .main-store-links {
  display: grid !important;
  width: 100% !important;
  gap: 14px !important;
  padding-top: 22px !important;
  margin-top: auto !important;
}

.main-game-body .main-store-links.store-count-1 {
  grid-template-columns: minmax(0, 1fr) !important;
}

.main-game-body .main-store-links.store-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.main-game-body .main-store-links.store-count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.main-game-body .main-store-links > .main-store-link {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 74px !important;
  min-height: 74px !important;
  padding: 0 !important;
  border-radius: 20px !important;
  overflow: visible !important;
  flex: none !important;
}

.main-game-body .main-store-links > .main-store-link > img {
  display: block !important;
  width: 46px !important;
  height: 46px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}

/* Only the Steam tile gets the 18+ badge. It is purely overlay. */
.main-game-body .main-store-links > .main-store-link.steam::after {
  content: "" !important;
  position: absolute !important;
  display: block !important;
  top: -10px !important;
  right: -10px !important;
  width: 34px !important;
  height: 34px !important;
  z-index: 20 !important;
  background: url("./assets/1_icon/18_kin.png") center / contain no-repeat !important;
  filter: drop-shadow(0 5px 8px rgba(0,0,0,0.45));
  pointer-events: none !important;
}

/* Wide desktop: same full-width tile layout, bigger only. */
@media (min-width: 1081px) {
  .main-game-body .main-store-links {
    gap: 18px !important;
  }

  .main-game-body .main-store-links > .main-store-link {
    height: 112px !important;
    min-height: 112px !important;
    border-radius: 28px !important;
  }

  .main-game-body .main-store-links > .main-store-link > img {
    width: 74px !important;
    height: 74px !important;
  }

  .main-game-body .main-store-links > .main-store-link.steam::after {
    top: -13px !important;
    right: -13px !important;
    width: 48px !important;
    height: 48px !important;
  }
}

@media (min-width: 1320px) {
  .main-game-body .main-store-links > .main-store-link {
    height: 130px !important;
    min-height: 130px !important;
    border-radius: 32px !important;
  }

  .main-game-body .main-store-links > .main-store-link > img {
    width: 88px !important;
    height: 88px !important;
  }

  .main-game-body .main-store-links > .main-store-link.steam::after {
    width: 56px !important;
    height: 56px !important;
  }
}


/* v17: inline layout now controls Main Games store button stretching.
   This CSS only guarantees the Steam 18+ overlay badge. */
.main-game-body .main-store-link.steam {
  position: relative !important;
  overflow: visible !important;
}

.main-game-body .main-store-link.steam::after {
  content: "" !important;
  position: absolute !important;
  top: -10px !important;
  right: -10px !important;
  width: clamp(34px, 3vw, 56px) !important;
  height: clamp(34px, 3vw, 56px) !important;
  z-index: 50 !important;
  display: block !important;
  background-image: url("./assets/1_icon/18_kin.png") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  pointer-events: none !important;
  filter: drop-shadow(0 5px 8px rgba(0,0,0,0.45));
}


/* v18: cap Main Games store tile height on wide desktop */
.main-game-body .main-store-link {
  max-height: 92px !important;
}

.main-game-body .main-store-link > img {
  max-width: 62px !important;
  max-height: 62px !important;
}

.main-game-body .main-store-link.steam::after {
  width: clamp(30px, 2.2vw, 40px) !important;
  height: clamp(30px, 2.2vw, 40px) !important;
}

@media (min-width: 1320px) {
  .main-game-body .main-store-link {
    max-height: 92px !important;
  }

  .main-game-body .main-store-link > img {
    max-width: 62px !important;
    max-height: 62px !important;
  }
}


/* v19: absolute final store tile override.
   Inline styles in index.html carry !important values.
   This block only neutralizes old conflicting pseudo badges. */
.main-game-body .main-store-link.steam::after,
.main-game-body .store-link.steam::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

.main-game-body .main-store-links {
  display: grid !important;
  width: 100% !important;
}

.main-game-body .main-store-links.store-count-1 {
  grid-template-columns: minmax(0,1fr) !important;
}

.main-game-body .main-store-links.store-count-3 {
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
}

.main-game-body .main-store-link {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  overflow: visible !important;
}


/* v20: remove old duplicate CSS pseudo badge below 1080px.
   The actual .age-badge image in HTML remains as the only 18+ badge. */
@media (max-width: 1080px) {
  .main-game-body .main-store-link.steam::after,
  .main-game-body .main-store-links > .main-store-link.steam::after,
  .main-game-body .store-link.steam::after {
    content: none !important;
    display: none !important;
    background: none !important;
  }
}


/* v21: More Games store buttons should stay compact.
   Main Games uses stretched .main-store-links only.
   More Games .compact buttons keep fixed square size. */
.more-game-list .store-links.compact {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 10px !important;
  width: auto !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.more-game-list .store-links.compact .store-link.icon-only {
  display: grid !important;
  place-items: center !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 !important;
  flex: 0 0 44px !important;
  border-radius: 14px !important;
}

.more-game-list .store-links.compact .store-link.icon-only img {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  object-fit: contain !important;
}

@media (max-width: 760px) {
  .more-game-list .store-links.compact {
    justify-content: center !important;
  }
}


/* v22: More Games cleanup after Main Games inline layout.
   More Games must never use stretched Main Games rules. */
.more-game-list .store-links.compact,
.more-game-list .more-info .store-links.compact {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 10px !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.more-game-list .store-links.compact > .store-link.icon-only,
.more-game-list .more-info .store-links.compact > .store-link.icon-only {
  display: grid !important;
  place-items: center !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 !important;
  flex: 0 0 44px !important;
  border-radius: 14px !important;
  position: relative !important;
  overflow: hidden !important;
}

.more-game-list .store-links.compact > .store-link.icon-only > img,
.more-game-list .more-info .store-links.compact > .store-link.icon-only > img {
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  object-fit: contain !important;
  margin: auto !important;
}

@media (max-width: 760px) {
  .more-game-list .store-links.compact,
  .more-game-list .more-info .store-links.compact {
    justify-content: center !important;
  }
}


/* v23: top hero carousel must never crop banners.
   The banner keeps the original 920×430 ratio and scales down with contain. */
.hero-slider {
  aspect-ratio: 920 / 430 !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: 100% !important;
}

.hero-slide {
  aspect-ratio: 920 / 430 !important;
  height: 100% !important;
}

.hero-slide > img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: rgba(7, 9, 20, 0.72) !important;
}

/* At small widths, keep the card inside the viewport and preserve ratio. */
@media (max-width: 760px) {
  .hero-slider {
    width: calc(100vw - 28px) !important;
    aspect-ratio: 920 / 430 !important;
    min-height: 0 !important;
  }

  .hero-slide {
    aspect-ratio: 920 / 430 !important;
  }

  .hero-slide > img {
    object-fit: contain !important;
    min-height: 0 !important;
  }
}
