/* MakeGame Arcade — 00s era homepage
   Card thumbs replicate each game's title screen using pure CSS+text. */

:root {
  --c-bg-top: #b9e0ff;
  --c-bg-bot: #e7f5ff;
  --c-ink: #1b2a4e;
  --c-ink-soft: #4a5a7a;
  --c-line: #4a76b8;
  --c-card: #ffffff;
  --c-card-line: #9bb6d8;
  --c-accent: #ff7a18;
  --c-accent-2: #ffb800;
  --c-blue: #2a7fd1;
  --c-blue-d: #1f5fa3;
  --shadow-card: 0 4px 0 rgba(31, 95, 163, 0.18),
    0 10px 24px rgba(31, 95, 163, 0.18);
  --font-ui: Verdana, Geneva, "Trebuchet MS", "Apple SD Gothic Neo",
    "Malgun Gothic", sans-serif;
  --font-disp: "Trebuchet MS", Verdana, Geneva, sans-serif;
  --font-pixel: "VT323", "Courier New", ui-monospace, monospace;
  --font-arcade: "Bungee", Impact, "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--c-ink);
  background: linear-gradient(
      180deg,
      var(--c-bg-top) 0%,
      var(--c-bg-bot) 60%,
      #ffffff 100%
    )
    fixed;
  line-height: 1.55;
  font-size: 14px;
}

.bg-stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(
      rgba(255, 255, 255, 0.7) 1px,
      transparent 1.5px
    ),
    radial-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1.5px);
  background-size: 60px 60px, 90px 90px;
  background-position: 0 0, 30px 45px;
  opacity: 0.7;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ===== Header ===== */
.site-header {
  background: linear-gradient(180deg, #2a7fd1 0%, #1f5fa3 100%);
  border-bottom: 3px solid #0d3a72;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 2px 0 rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-disp);
  font-weight: bold;
  font-size: 20px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
  letter-spacing: 0.5px;
}

.brand-mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffd14d 0%, #ff7a18 100%);
  color: #5a2a00;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 0 rgba(0, 0, 0, 0.3);
  font-size: 14px;
}

.brand-tld {
  color: #ffd14d;
  font-style: italic;
  font-weight: normal;
}

.topnav {
  display: flex;
  gap: 4px;
}

.topnav-link {
  display: inline-block;
  padding: 6px 14px;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  border-radius: 6px 6px 0 0;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  border: 1px solid transparent;
  border-bottom: none;
}

.topnav-link:hover {
  background: rgba(255, 255, 255, 0.18);
}

.topnav-link.active {
  background: linear-gradient(180deg, #e7f5ff 0%, #b9e0ff 100%);
  color: var(--c-blue-d);
  text-shadow: none;
  border-color: #0d3a72;
  position: relative;
  top: 2px;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0) 100%
    ),
    repeating-linear-gradient(
      135deg,
      rgba(42, 127, 209, 0.06) 0 12px,
      rgba(42, 127, 209, 0) 12px 24px
    );
  border-bottom: 1px dashed #9bb6d8;
  padding: 36px 0 28px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  color: #b34a00;
  background: linear-gradient(180deg, #fff3c4 0%, #ffd14d 100%);
  padding: 3px 12px;
  border: 1px solid #d18b00;
  border-radius: 999px;
  letter-spacing: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.hero-title {
  margin: 0 0 8px;
  font-family: var(--font-disp);
  font-size: 36px;
  letter-spacing: -0.5px;
  color: var(--c-blue-d);
  text-shadow: 0 1px 0 #fff, 0 2px 0 rgba(31, 95, 163, 0.18);
}

.hero-sub {
  margin: 0 auto;
  max-width: 540px;
  color: var(--c-ink-soft);
  font-size: 14px;
}

/* ===== Sections ===== */
.section {
  margin: 32px 0 40px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--c-blue);
}

.section-title {
  margin: 0;
  font-family: var(--font-disp);
  font-size: 22px;
  color: var(--c-blue-d);
}

.section-meta {
  font-size: 12px;
  color: var(--c-ink-soft);
}

/* ===== Card grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.game-card {
  background: var(--c-card);
  border: 1px solid var(--c-card-line);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 0 rgba(31, 95, 163, 0.22),
    0 14px 28px rgba(31, 95, 163, 0.22);
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.card-link-disabled {
  cursor: not-allowed;
}

/* ===== Card thumbnail base ===== */
.card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--c-card-line);
  overflow: hidden;
  font-family: var(--font-pixel);
  letter-spacing: 0.06em;
}

/* ----- Ghost Dance thumb ----- */
.thumb-ghost {
  background: #0a0a0a;
  color: #f5e8c8;
  gap: 0;
  padding: 14px 0;
}

.ghost-scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0) 0,
      rgba(0, 0, 0, 0) 2px,
      rgba(0, 0, 0, 0.35) 3px,
      rgba(0, 0, 0, 0.35) 3px
    ),
    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0) 55%,
      rgba(0, 0, 0, 0.55) 100%
    );
}

.ghost-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.95;
  font-family: var(--font-pixel);
  font-size: clamp(34px, 7vw, 56px);
  font-weight: 400;
  text-shadow: 0 0 0 currentColor;
  z-index: 1;
}

.ghost-top {
  color: #f5e8c8;
  text-shadow: 2px 2px 0 #b8a87a, 4px 4px 0 rgba(0, 0, 0, 0.4);
}

.ghost-bot {
  color: #ff6a3d;
  text-shadow: 2px 2px 0 #b34a1f, 4px 4px 0 rgba(0, 0, 0, 0.4);
}

.ghost-foot {
  margin-top: 8px;
  color: #ff6a3d;
  font-size: 14px;
  letter-spacing: 0.3em;
  z-index: 1;
  animation: blink 1.2s steps(2, end) infinite;
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

/* ----- Grab & Dodge thumb ----- */
.thumb-grab {
  background: linear-gradient(180deg, #0e1530 0%, #1a2353 100%);
  color: #ffd23b;
  padding: 10px 12px;
  gap: 6px;
}

.grab-marquee {
  font-family: var(--font-arcade);
  font-size: 10px;
  color: #ffd23b;
  letter-spacing: 0.2em;
  text-shadow: 0 0 4px rgba(255, 210, 59, 0.5);
}

.grab-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.9;
  font-family: var(--font-arcade);
  font-style: italic;
  font-size: clamp(28px, 6vw, 44px);
  color: #ffd23b;
  /* 빨강 그림자로 입체감 */
  text-shadow: 1px 1px 0 #c43c3c, 2px 2px 0 #c43c3c, 3px 3px 0 #c43c3c,
    4px 4px 0 #7a1f1f, 5px 5px 0 #7a1f1f, 6px 6px 8px rgba(0, 0, 0, 0.5);
}

.grab-amp {
  color: #ff6aa1;
  font-size: 0.55em;
  margin: -4px 0;
  text-shadow: 1px 1px 0 #7a1f1f, 2px 2px 0 #7a1f1f;
}

.grab-foot {
  margin-top: 4px;
  font-family: var(--font-arcade);
  font-size: 11px;
  color: #ff6aa1;
  letter-spacing: 0.25em;
  animation: blink 1.2s steps(2, end) infinite;
}

/* ----- Coming Soon thumb ----- */
.thumb-soon {
  background: #1b2a4e;
}

.soon-stripes {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    #ffd14d 0 18px,
    #1b2a4e 18px 36px
  );
  opacity: 0.85;
}

.soon-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-arcade);
  font-size: clamp(20px, 4vw, 28px);
  text-align: center;
  color: #fff;
  background: rgba(27, 42, 78, 0.85);
  padding: 8px 16px;
  border: 2px solid #fff;
  letter-spacing: 0.1em;
  line-height: 1.05;
}

.card-soon {
  opacity: 0.75;
}

/* ===== Card body ===== */
.card-body {
  padding: 14px 16px 16px;
}

.card-title {
  margin: 0 0 6px;
  font-family: var(--font-disp);
  font-size: 18px;
  color: var(--c-blue-d);
}

.card-desc {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--c-ink-soft);
  min-height: 36px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.badge-rhythm {
  background: linear-gradient(180deg, #ffe1f0 0%, #ffb0d1 100%);
  color: #8a1f54;
}

.badge-action {
  background: linear-gradient(180deg, #ffe9c4 0%, #ffba6e 100%);
  color: #7a3a00;
}

.badge-1p {
  background: linear-gradient(180deg, #d8efff 0%, #9ad1ff 100%);
  color: #1f5fa3;
}

.badge-soon {
  background: linear-gradient(180deg, #eee 0%, #ccc 100%);
  color: #555;
}

.card-play {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 8px 12px;
  font-family: var(--font-disp);
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: #fff;
  background: linear-gradient(180deg, #4aa3e0 0%, #2a7fd1 50%, #1f5fa3 100%);
  border: 1px solid #0d3a72;
  border-radius: 6px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 2px 0 rgba(13, 58, 114, 0.4);
}

.card-play-disabled {
  background: linear-gradient(180deg, #bbb 0%, #888 100%);
  border-color: #666;
  cursor: not-allowed;
}

/* ===== About ===== */
.about-card {
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
  border: 1px solid var(--c-card-line);
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: var(--shadow-card);
}

.about-card .section-title {
  margin-bottom: 8px;
  border: none;
  padding: 0;
}

.about-card p {
  margin: 0 0 10px;
  color: var(--c-ink-soft);
}

.about-list {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--c-ink);
}

.about-list li {
  margin: 4px 0;
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 40px;
  padding: 18px 0 28px;
  background: linear-gradient(180deg, #d6e8fa 0%, #b9d4ee 100%);
  border-top: 1px solid #9bb6d8;
  font-size: 12px;
  color: var(--c-ink-soft);
  text-align: center;
}

.site-footer a {
  color: var(--c-blue-d);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .hero-title {
    font-size: 26px;
  }
  .header-row {
    height: auto;
    padding: 8px 0;
    flex-direction: column;
    gap: 6px;
  }
  .topnav-link.active {
    top: 0;
  }
}
