@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --bg: #0e1124;
  --bg2: #151a33;
  --card: #1a2040;
  --line: #2a3158;
  --ink: #f4f1e8;
  --muted: #a9adc6;
  --gold: #e8b65a;
  --gold2: #f6d58f;
  --terracotta: #d0674c;
  --sage: #9db897;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.65; word-break: keep-all;
}
a { color: var(--gold2); }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 17, 36, 0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font-size: 1.12rem; letter-spacing: 0.02em; white-space: nowrap; }
.brand b span { color: var(--gold); font-weight: 600; }
.nav { display: flex; gap: 22px; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--ink); }

/* Hero (featured slides) */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.slides { position: relative; min-height: 520px; }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility .6s;
  display: flex; align-items: center;
}
.slide.on { opacity: 1; visibility: visible; }
.slide .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; width: 100%; }
.slide.glimmaze { background: radial-gradient(1200px 520px at 75% 40%, #3b3f8f 0%, #1b1f4a 45%, var(--bg) 80%); }
.slide.cumaster { background: radial-gradient(1100px 520px at 75% 45%, #7a4f8e 0%, #3a2c55 45%, var(--bg) 82%); }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: .82rem; font-weight: 700; letter-spacing: .08em; color: var(--gold); text-transform: uppercase; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(232,182,90,.16); color: var(--gold2); letter-spacing: 0; text-transform: none; }
.slide h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.12; margin: 14px 0 6px; letter-spacing: -0.02em; }
.slide h2 small { display: block; font-size: .42em; color: var(--muted); letter-spacing: .14em; font-weight: 600; margin-top: 8px; }
.slide p.copy { font-size: 1.1rem; color: #d9dbea; max-width: 30em; margin: 16px 0 26px; }
.slide .art { position: relative; height: 440px; }
.slide.glimmaze .art img { position: absolute; bottom: 0; height: 88%; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
.slide.glimmaze .art img:nth-child(1) { left: 2%; height: 78%; }
.slide.glimmaze .art img:nth-child(2) { left: 34%; height: 92%; z-index: 2; }
.slide.glimmaze .art img:nth-child(3) { right: 0; height: 80%; }
.slide.cumaster .art { display: flex; align-items: center; justify-content: center; }
.slide.cumaster .art img { width: min(380px, 80%); border-radius: 28%; box-shadow: 0 26px 60px rgba(0,0,0,.45); transform: rotate(-4deg); }

.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn.play { background: var(--gold); color: #231a08; }
.btn.play:hover { background: var(--gold2); }
.btn.ghost { border-color: rgba(244,241,232,.35); color: var(--ink); background: transparent; }
.btn.ghost:hover { border-color: var(--ink); }
.btn.small { padding: 8px 14px; font-size: .85rem; }

.tabs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; }
.tabs .wrap { display: flex; gap: 0; }
.tab {
  flex: 1; max-width: 260px; text-align: left; background: rgba(14,17,36,.55); color: var(--muted);
  border: 0; border-top: 3px solid transparent; padding: 12px 16px; font: inherit; font-size: .88rem; cursor: pointer;
}
.tab b { display: block; color: var(--ink); font-size: .95rem; }
.tab.on { border-top-color: var(--gold); background: rgba(14,17,36,.85); }

/* Sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-head h2 { margin: 0; font-size: 1.7rem; letter-spacing: -0.01em; }
.sec-head p { margin: 4px 0 0; color: var(--muted); }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: var(--bg2); color: var(--muted);
  padding: 6px 14px; border-radius: 999px; font: inherit; font-size: .88rem; cursor: pointer;
}
.chip.on, .chip:hover { color: #231a08; background: var(--gold); border-color: var(--gold); }

/* Game cards */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.game {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s, border-color .2s;
}
.game:hover { transform: translateY(-3px); border-color: #3c4580; }
.game .thumb { position: relative; height: 200px; overflow: hidden; display: flex; align-items: end; justify-content: center; }
.game.glimmaze .thumb { background: radial-gradient(400px 220px at 50% 70%, #4a4fa8, #1b1f4a); }
.game.glimmaze .thumb img { height: 92%; margin: 0 -14px; filter: drop-shadow(0 10px 16px rgba(0,0,0,.4)); }
.game.cumaster .thumb { background: linear-gradient(160deg, #f7e3f1, #dcd3f6); align-items: center; }
.game.cumaster .thumb img { height: 84%; border-radius: 22%; box-shadow: 0 12px 26px rgba(70,40,90,.3); }
.game .status { position: absolute; top: 12px; left: 12px; }
.game .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game h3 { margin: 0; font-size: 1.25rem; }
.game h3 small { color: var(--muted); font-weight: 500; font-size: .8rem; margin-left: 6px; letter-spacing: .06em; }
.game p { margin: 0; color: #c9cbe0; font-size: .95rem; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: .76rem; padding: 2px 9px; border-radius: 6px; background: #252c55; color: #c8cdee; }
.platforms { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .8rem; }
.platforms svg { width: 18px; height: 18px; fill: currentColor; }
.game .btns { margin-top: auto; padding-top: 4px; }

.soon {
  border: 1px dashed var(--line); border-radius: 18px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 28px; color: var(--muted); min-height: 260px;
}
.soon svg { width: 44px; height: 44px; margin-bottom: 10px; opacity: .8; }

/* Game detail */
.detail { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; }
.detail + .detail { margin-top: 64px; }
.detail .pic { border-radius: 22px; overflow: hidden; min-height: 300px; display: flex; align-items: end; justify-content: center; }
.detail.glimmaze .pic { background: radial-gradient(500px 300px at 50% 70%, #4a4fa8, #1b1f4a); }
.detail.glimmaze .pic img { height: 300px; margin: 0 -16px; }
.detail.cumaster .pic { background: linear-gradient(160deg, #f7e3f1, #dcd3f6); align-items: center; padding: 30px; }
.detail.cumaster .pic img { width: 240px; border-radius: 22%; }
.detail h3 { font-size: 1.6rem; margin: 6px 0 10px; }
.detail ul { padding-left: 1.2em; color: #d3d5e8; margin: 0 0 18px; }
.detail li { margin: 4px 0; }
.detail .links { font-size: .88rem; color: var(--muted); margin-top: 14px; }
.detail .links a { color: var(--muted); }

/* News */
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news li { display: flex; gap: 18px; padding: 16px 4px; border-bottom: 1px solid var(--line); align-items: baseline; }
.news time { color: var(--muted); font-size: .88rem; flex: none; width: 92px; font-variant-numeric: tabular-nums; }
.news .kind { flex: none; font-size: .75rem; color: var(--gold); border: 1px solid rgba(232,182,90,.45); padding: 1px 8px; border-radius: 6px; }
.news span.t { color: var(--ink); }

/* About */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.about .values { display: grid; gap: 12px; }
.value { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.value b { color: var(--gold2); }
.value p { margin: 4px 0 0; color: var(--muted); font-size: .93rem; }
.parent {
  margin-top: 22px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  background: #f8f7f2; color: #2a1c16; border-radius: 14px; padding: 14px 18px;
}
.parent img { height: 30px; }
.parent a { color: #c0533a; font-weight: 700; }

/* Support */
.support { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.support a {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px; color: var(--ink); text-decoration: none;
}
.support a:hover { border-color: var(--gold); }
.support b { display: block; margin-bottom: 4px; }
.support span { color: var(--muted); font-size: .92rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: .85rem; background: #0b0d1c; }
.foot-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a { color: var(--ink); text-decoration: none; }
.foot-links a.strong { font-weight: 700; }
.foot-links a:hover { text-decoration: underline; }
.social { display: flex; gap: 12px; }
.social a { color: var(--muted); }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.biz span + span::before { content: "|"; margin: 0 8px; color: #3b4170; }
.copy { margin-top: 8px; }

@media (max-width: 860px) {
  .slides { min-height: 640px; }
  .slide .wrap { grid-template-columns: 1fr; padding-top: 28px; padding-bottom: 80px; }
  .slide .art { height: 250px; order: -1; }
  .slide.cumaster .art img { width: 220px; }
  .slide p.copy { font-size: 1rem; }
  .detail, .about { grid-template-columns: 1fr; }
  .support { grid-template-columns: 1fr; }
  .nav { gap: 14px; font-size: .88rem; }
  .nav .hide-m { display: none; }
  section { padding: 52px 0; }
  .news li { flex-wrap: wrap; gap: 6px 12px; }
  .news time { width: auto; }
}
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } html { scroll-behavior: auto; } }
.game .status { background: rgba(14,17,36,.82); color: var(--gold2); }
.game.snibble .thumb { background: #1e1512; align-items: center; }
.game.snibble .thumb img { width: 100%; height: 100%; object-fit: cover; }
.game.pudrop .thumb { background: radial-gradient(360px 220px at 50% 70%, #ffe1ea, #f6c2d2); }
.game.pudrop .thumb img { height: 90%; filter: drop-shadow(0 10px 14px rgba(150,60,90,.3)); }
.detail.snibble .pic { background: #1e1512; align-items: center; }
.detail.snibble .pic img { width: 100%; }
.detail.pudrop .pic { background: radial-gradient(400px 300px at 50% 70%, #ffe1ea, #f6c2d2); align-items: center; padding: 24px; }
.detail.pudrop .pic img { height: 280px; }
