@font-face {
  /* asset-revision: 2 */
  font-family: "Pretendard Fallback";
  src: local("Apple SD Gothic Neo"), local("Malgun Gothic"), local("system-ui");
  size-adjust: 100%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark;
  --bg: #0a0d14;
  --bg-deep: #07080d;
  --panel: #11151f;
  --line: #2a3142;
  --text: #f5f7fa;
  --muted: #9aa4b8;
  --dim: #5b6478;
  --orange: #ff8c1a;
  --gold: #ffd23f;
  --blue: #3b82f6;
  --pink: #ff5ca8;
  --green: #7bd3b5;
  --cyan: #60d7f2;
  --amber: #ffb020;
  --violet: #a78bfa;
}

* { box-sizing: border-box; }

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

html.hanana-fans-header-mounted body {
  padding-top: var(--hanana-fans-header-height, 44px);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", "Pretendard", "Pretendard Fallback", system-ui, sans-serif;
  font-feature-settings: "tnum";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 140, 26, 0.08), transparent 32%),
    linear-gradient(240deg, rgba(59, 130, 246, 0.08), transparent 36%),
    var(--bg);
}

a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--gold); color: var(--bg-deep); }

.shell {
  width: min(1680px, calc(100% - 48px));
  margin: 0 auto;
}

.page-head {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(110deg, rgba(7, 8, 13, 0.98), rgba(7, 8, 13, 0.78)),
    linear-gradient(145deg, transparent 0 68%, rgba(255, 140, 26, 0.16) 68% 69%, transparent 69%);
}

.page-head__grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.62;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, black, transparent 92%);
}

.page-head__watermark {
  position: absolute;
  right: -0.04em;
  bottom: -0.15em;
  z-index: -1;
  color: transparent;
  font-family: "Chakra Petch", system-ui, sans-serif;
  font-size: clamp(112px, 17vw, 240px);
  font-weight: 700;
  line-height: 0.8;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.055);
}

.page-head__inner {
  min-height: 320px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding: 74px 0 58px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-family: "Chakra Petch", "Pretendard", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 1;
}

.page-head__lead {
  margin-bottom: 0;
  color: rgba(245, 247, 250, 0.84);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  line-height: 1.6;
}

.new-window-note {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.new-window-note svg,
.external-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section { padding: 78px 0 94px; }

.section__head {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  align-items: end;
  gap: 30px;
  margin-bottom: 28px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.section__head > p {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.62;
}

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

.gallery-status {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
}

.gallery-status--error { color: #ff9b9b; }

.game-card {
  --accent: var(--orange);
  --accent-soft: rgba(255, 140, 26, 0.5);
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.055), transparent 42%),
    linear-gradient(180deg, rgba(26, 32, 48, 0.94), rgba(9, 12, 18, 0.98));
  text-decoration: none;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.game-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent-soft);
  opacity: 0.82;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  outline: none;
}

.game-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0;
  background: #080b12;
}

.game-card:not(.game-card--featured) .game-card__media {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.game-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 180ms ease;
}

.game-card__media--contain {
  background:
    radial-gradient(circle at center, color-mix(in srgb, var(--accent) 12%, #080b12), #080b12 72%);
}

.game-card__media--contain img {
  object-fit: contain;
  object-position: center;
}

.game-card:hover .game-card__media img,
.game-card:focus-visible .game-card__media img {
  transform: scale(1.025);
  filter: saturate(1.05) brightness(1.03);
}

.game-card__body {
  display: flex;
  min-height: 154px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px 22px;
}

.game-card__domain {
  display: block;
  margin-bottom: 11px;
  color: var(--accent);
  font-family: "Chakra Petch", "Pretendard", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.game-card h3 {
  margin-bottom: 9px;
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.18;
  word-break: keep-all;
}

.game-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
  word-break: keep-all;
}

.external-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  align-self: center;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 7px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.game-card--orange { --accent: var(--orange); --accent-soft: rgba(255, 140, 26, 0.55); }
.game-card--blue { --accent: var(--blue); --accent-soft: rgba(59, 130, 246, 0.55); }
.game-card--gold { --accent: var(--gold); --accent-soft: rgba(255, 210, 63, 0.52); }
.game-card--cyan { --accent: var(--cyan); --accent-soft: rgba(96, 215, 242, 0.52); }
.game-card--green { --accent: var(--green); --accent-soft: rgba(123, 211, 181, 0.52); }
.game-card--violet { --accent: var(--violet); --accent-soft: rgba(167, 139, 250, 0.52); }
.game-card--pink { --accent: var(--pink); --accent-soft: rgba(255, 92, 168, 0.52); }
.game-card--amber { --accent: var(--amber); --accent-soft: rgba(255, 176, 32, 0.52); }
.game-card--rose { --accent: #f28b9d; --accent-soft: rgba(242, 139, 157, 0.52); }
.game-card--steam { --accent: #66c0f4; --accent-soft: rgba(102, 192, 244, 0.52); }
.game-card--lime { --accent: #a3e635; --accent-soft: rgba(163, 230, 53, 0.52); }
.game-card--watermelon { --accent: #69d38b; --accent-soft: rgba(105, 211, 139, 0.52); }
.game-card--tetrio { --accent: #8fb8ff; --accent-soft: rgba(143, 184, 255, 0.52); }
.game-card--jstris { --accent: #d8d8d8; --accent-soft: rgba(216, 216, 216, 0.42); }

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 8, 13, 0.62);
  padding: 28px 0 34px;
  color: var(--dim);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
}

.footer__inner p { margin: 0; }

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: "Chakra Petch", "Pretendard", system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.footer__brand img { border-radius: 6px; }

@media (min-width: 1600px) {
  .game-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1199px) {
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .page-head__inner {
    min-height: 300px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-end;
    gap: 24px;
  }

}

@media (max-width: 680px) {
  .shell { width: min(1120px, calc(100% - 28px)); }
  .page-head { min-height: 286px; }
  .page-head__inner { min-height: 286px; padding: 56px 0 42px; }
  .page-head__watermark { display: none; }
  .section { padding: 58px 0 72px; }
  .section__head { grid-template-columns: 1fr; gap: 14px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .game-card__body { min-height: 142px; padding: 15px 15px 19px; }
  .game-card h3 { font-size: 22px; }
  .game-card p { font-size: 13px; overflow-wrap: anywhere; }
  .footer__inner { align-items: flex-start; flex-direction: column; }
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
