/* =====================================================================
   모란도란 (Morandoran) — 게임 회사 홈페이지
   Aesthetic: Toy-box arcade · 크림 캔버스 + 코랄/그린 · 두꺼운 스티커 카드
   Tokens synced with client-unity AppTheme.cs (brand palette)
   ===================================================================== */

:root {
  /* --- brand surface (AppTheme.Bg*) --- */
  --cream:        #FFF6EB;
  --cream-deep:   #FEEAD2;
  --peach:        #FBD9CE;
  --peach-deep:   #E8B99E;

  /* --- coral (AppTheme.BtnPrimary) --- */
  --coral:        #FF8B7A;
  --coral-deep:   #F05E4B;
  --coral-ink:    #3A1F1A;

  /* --- mascot green --- */
  --green:        #A8D84A;
  --green-deep:   #6FB02B;
  --green-shadow: #4E8A1C;

  /* --- ink (AppTheme.Ink*) --- */
  --ink:          #1A1512;
  --ink-700:      #3F2A24;
  --ink-500:      #8A6F65;
  --ink-line:     #E6D5C3;

  /* --- playful tile accents (AppTheme.Tile*) --- */
  --t-yellow:     #FFE45C;
  --t-mint:       #A0E1A1;
  --t-sky:        #A7D3E0;
  --t-rose:       #F5A8C9;
  --t-lavender:   #D4C3D8;

  /* --- structure --- */
  --outline:      #1A1512;
  --outline-w:    3px;
  --radius:       22px;
  --radius-lg:    34px;
  --shadow-hard:  6px 6px 0 var(--outline);
  --shadow-soft:  0 14px 34px rgba(58, 31, 26, 0.16);

  --font-display: 'Jua', 'Noto Sans KR', sans-serif;
  --font-body:    'Noto Sans KR', sans-serif;

  --maxw:         1200px;
  --ease-pop:     cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  /* subtle dotted texture */
  background-image: radial-gradient(var(--cream-deep) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.12; }

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }

/* eyebrow chip */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 0.95rem; color: var(--coral-deep);
  background: #fff;
  border: var(--outline-w) solid var(--outline);
  border-radius: 999px;
  padding: 6px 16px;
  box-shadow: 3px 3px 0 var(--outline);
  transform: rotate(-2deg);
}
.eyebrow::before { content: '★'; color: var(--t-yellow); -webkit-text-stroke: 1px var(--outline); }

.section-title { font-size: clamp(2rem, 5vw, 3.4rem); margin: 18px 0 10px; }
.section-sub { color: var(--ink-500); max-width: 46ch; font-size: 1.05rem; }

/* ============================ buttons ============================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.15rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: var(--outline-w) solid var(--outline);
  background: var(--coral); color: #fff;
  box-shadow: var(--shadow-hard);
  transition: transform 0.14s var(--ease-pop), box-shadow 0.14s var(--ease-pop), background 0.2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--outline); background: var(--coral-deep); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--outline); }
.btn--ghost { background: #fff; color: var(--ink); }
.btn--ghost:hover { background: var(--t-yellow); }
.btn--green { background: var(--green-deep); }
.btn--green:hover { background: var(--green-shadow); }
.btn--sm { font-size: 1rem; padding: 10px 20px; box-shadow: 4px 4px 0 var(--outline); }

/* ============================ nav ============================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  padding: 16px 0;
}
.nav.scrolled {
  background: rgba(255, 246, 235, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 3px 0 var(--ink-line);
  padding: 10px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.5rem; }
.brand img { width: 44px; height: 44px; border-radius: 12px; border: 2.5px solid var(--outline); box-shadow: 3px 3px 0 var(--outline); }
.nav__links { display: flex; align-items: center; gap: 8px; }
.nav__links a {
  font-family: var(--font-display); font-size: 1.05rem;
  padding: 8px 14px; border-radius: 999px; transition: background 0.15s, color 0.15s;
}
.nav__links a:hover { background: var(--ink); color: var(--cream); }
.nav__toggle { display: none; background: #fff; border: var(--outline-w) solid var(--outline); border-radius: 12px; width: 46px; height: 46px; font-size: 1.4rem; box-shadow: 3px 3px 0 var(--outline); }

/* ============================ hero ============================ */
.hero { padding: 150px 0 90px; position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); margin: 22px 0; }
.hero h1 .pop { color: var(--coral-deep); position: relative; display: inline-block; }
.hero h1 .pop::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 14px; background: var(--t-yellow); z-index: -1; border-radius: 8px; transform: rotate(-1.5deg); }
.hero__lead { font-size: 1.2rem; color: var(--ink-700); max-width: 42ch; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero__stat b { font-family: var(--font-display); font-size: 2.2rem; color: var(--green-deep); display: block; line-height: 1; }
.hero__stat span { font-size: 0.9rem; color: var(--ink-500); }

/* mascot stage */
.hero__mascot { position: relative; display: grid; place-items: center; }
.hero__mascot-blob {
  width: min(420px, 90%); aspect-ratio: 1;
  background: radial-gradient(circle at 50% 40%, var(--peach), var(--coral) 78%);
  border-radius: 46% 54% 52% 48% / 55% 48% 52% 45%;
  border: var(--outline-w) solid var(--outline);
  box-shadow: var(--shadow-hard);
  display: grid; place-items: center;
  animation: blob-morph 9s ease-in-out infinite;
}
.hero__mascot img { width: 74%; filter: drop-shadow(0 12px 10px rgba(26,21,18,0.25)); animation: bob 3.4s ease-in-out infinite; image-rendering: pixelated; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-16px) rotate(1.5deg); } }
@keyframes blob-morph {
  0%,100% { border-radius: 46% 54% 52% 48% / 55% 48% 52% 45%; }
  50% { border-radius: 52% 48% 45% 55% / 48% 55% 45% 52%; }
}
.sticker { position: absolute; font-family: var(--font-display); background: #fff; border: var(--outline-w) solid var(--outline); border-radius: 16px; padding: 8px 14px; box-shadow: 4px 4px 0 var(--outline); font-size: 1rem; }
.sticker--1 { top: 6%; left: -2%; transform: rotate(-8deg); background: var(--t-mint); animation: float-a 5s ease-in-out infinite; }
.sticker--2 { bottom: 10%; right: -4%; transform: rotate(7deg); background: var(--t-sky); animation: float-a 6s ease-in-out infinite reverse; }
.sticker--3 { bottom: 40%; left: -6%; transform: rotate(5deg); background: var(--t-rose); animation: float-a 4.4s ease-in-out infinite 0.5s; }
@keyframes float-a { 0%,100% { transform: translateY(0) rotate(var(--r, -6deg)); } 50% { transform: translateY(-12px) rotate(calc(var(--r, -6deg) * -1)); } }

/* marquee */
.marquee { background: var(--ink); color: var(--cream); border-block: var(--outline-w) solid var(--outline); overflow: hidden; padding: 14px 0; }
.marquee__track { display: inline-flex; gap: 40px; white-space: nowrap; font-family: var(--font-display); font-size: 1.3rem; animation: scroll-x 26s linear infinite; }
.marquee__track span { color: var(--t-yellow); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============================ games ============================ */
.games__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 44px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 26px; }
.game-card {
  background: #fff; border: var(--outline-w) solid var(--outline); border-radius: var(--radius);
  padding: 14px 14px 18px; box-shadow: var(--shadow-hard);
  transition: transform 0.18s var(--ease-pop), box-shadow 0.18s var(--ease-pop);
  display: flex; flex-direction: column;
}
.game-card:nth-child(even) { transform: rotate(-1.2deg); }
.game-card:nth-child(3n) { transform: rotate(1.4deg); }
.game-card:hover { transform: translateY(-8px) rotate(0deg) scale(1.03); box-shadow: 10px 12px 0 var(--outline); z-index: 2; }
.game-card__cover { border-radius: 14px; overflow: hidden; border: 2.5px solid var(--outline); background: var(--cream-deep); aspect-ratio: 272/296; }
.game-card__cover img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.game-card__name { font-family: var(--font-display); font-size: 1.25rem; margin: 12px 2px 2px; }
.game-card__tag { font-size: 0.82rem; color: var(--ink-500); margin: 0 2px; }
.game-card__chips { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.chip { font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 2px solid var(--outline); background: var(--t-mint); }
.chip--multi { background: var(--t-sky); }
.chip--solo { background: var(--t-lavender); }
.chip--new { background: var(--coral); color: #fff; }

/* ============================ about ============================ */
.about { background: var(--green); border-block: var(--outline-w) solid var(--outline); }
.about .section-sub { color: var(--coral-ink); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.value-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.value-card { background: var(--cream); border: var(--outline-w) solid var(--outline); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-hard); }
.value-card .emo { font-size: 2rem; }
.value-card h3 { font-size: 1.3rem; margin: 8px 0 6px; }
.value-card p { font-size: 0.92rem; color: var(--ink-700); }

/* ============================ split: news + release ============================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.panel { background: #fff; border: var(--outline-w) solid var(--outline); border-radius: var(--radius-lg); box-shadow: var(--shadow-hard); overflow: hidden; }
.panel__head { padding: 22px 26px; border-bottom: var(--outline-w) solid var(--outline); display: flex; align-items: center; justify-content: space-between; }
.panel__head h3 { font-size: 1.6rem; }
.panel__head.h-coral { background: var(--coral); color: #fff; }
.panel__head.h-sky { background: var(--t-sky); }
.panel__body { padding: 12px 26px 22px; }

.news-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 2px dashed var(--ink-line); }
.news-item:last-child { border-bottom: none; }
.news-item__date { font-family: var(--font-display); color: var(--coral-deep); min-width: 92px; font-size: 0.92rem; }
.news-item__body h4 { font-size: 1.05rem; font-weight: 700; }
.news-item__body p { font-size: 0.9rem; color: var(--ink-500); }
.news-badge { font-size: 0.7rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 2px solid var(--outline); background: var(--t-yellow); margin-left: 8px; }

/* release list */
.rel-item { padding: 14px 0; border-bottom: 2px dashed var(--ink-line); }
.rel-item:last-child { border-bottom: none; }
.rel-item__top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rel-ver { font-family: var(--font-display); font-size: 1.2rem; background: var(--ink); color: var(--cream); padding: 2px 12px; border-radius: 999px; }
.rel-date { font-size: 0.85rem; color: var(--ink-500); }
.rel-change { display: flex; gap: 8px; font-size: 0.9rem; padding: 4px 0; align-items: baseline; }
.rel-tag { font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; border: 2px solid var(--outline); white-space: nowrap; }
.rel-tag.feature { background: var(--t-mint); }
.rel-tag.improvement { background: var(--t-sky); }
.rel-tag.fix { background: var(--t-rose); }

/* ============================ contact ============================ */
.contact { background: var(--ink); color: var(--cream); border-top: var(--outline-w) solid var(--outline); }
.contact .section-title { color: var(--cream); }
.contact .section-sub { color: #cbb9a8; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact__methods { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.contact-method { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.16); border-radius: 16px; padding: 14px 18px; }
.contact-method .emo { font-size: 1.6rem; }
.contact-method b { font-family: var(--font-display); font-size: 1.05rem; }
.contact-method span { font-size: 0.88rem; color: #cbb9a8; }

.form { background: var(--cream); color: var(--ink); border: var(--outline-w) solid var(--outline); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-hard); }
.field { margin-bottom: 16px; }
.field label { font-family: var(--font-display); font-size: 0.98rem; display: block; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: 1rem;
  border: 2.5px solid var(--outline); border-radius: 12px; padding: 12px 14px;
  background: #fff; color: var(--ink); transition: box-shadow 0.15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: 4px 4px 0 var(--coral); }
.field textarea { resize: vertical; min-height: 110px; }
.form__note { font-size: 0.82rem; color: var(--ink-500); margin-top: 10px; }

/* ============================ footer ============================ */
.footer { background: var(--cream-deep); border-top: var(--outline-w) solid var(--outline); padding: 56px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 34px; }
.footer .brand { margin-bottom: 14px; }
.footer p { color: var(--ink-500); font-size: 0.92rem; max-width: 34ch; }
.footer h4 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 12px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: var(--ink-700); font-size: 0.92rem; }
.footer ul a:hover { color: var(--coral-deep); }
.footer__bottom { border-top: 2px dashed var(--peach-deep); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--ink-500); font-size: 0.85rem; }

/* ============================ page header (sub pages) ============================ */
.page-hero { padding: 150px 0 60px; text-align: center; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.page-hero p { color: var(--ink-500); margin-top: 12px; }
.back-home { display: inline-flex; margin-top: 22px; }

/* ============================ reveal animation ============================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s var(--ease-pop); }
.reveal.in { opacity: 1; transform: none; }

/* ============================ responsive ============================ */
@media (max-width: 900px) {
  .hero__grid, .about__grid, .split, .contact__grid, .footer__grid { grid-template-columns: 1fr; }
  .hero__mascot { order: -1; }
  .value-cards { grid-template-columns: 1fr 1fr; }
  .nav__links { position: fixed; inset: 72px 12px auto 12px; flex-direction: column; align-items: stretch; background: var(--cream); border: var(--outline-w) solid var(--outline); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-hard); display: none; }
  .nav__links.open { display: flex; }
  .nav__links a { text-align: center; }
  .nav__toggle { display: grid; place-items: center; }
}
@media (max-width: 520px) {
  .value-cards { grid-template-columns: 1fr; }
  .hero__stats { gap: 18px; }
  .btn { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
