/* Hello Slime 홈페이지 — 게임 로고의 크림·초코·딸기 젤리 톤 */
:root {
  --cream: #fff7f0;
  --cream-2: #ffeee4;
  --card: #ffffff;
  --ink: #4a2a1e;        /* 로고 테두리 초코 */
  --ink-2: #7a5546;
  --ink-3: #a3887c;
  --pink: #ff5f93;       /* 로고 딸기 젤리 */
  --pink-deep: #e2477a;
  --pink-soft: #ffd6e3;
  --mint: #63cdb4;
  --rule: #f0dcd2;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(122, 64, 44, 0.12);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; overflow-x: clip; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-deep); text-underline-offset: 0.2em; }
a:hover { color: var(--pink); }
a:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }

/* 상단 바 */
.top { padding: calc(14px + env(safe-area-inset-top)) 0 14px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.nav a:hover { background: var(--cream-2); color: var(--ink); }

/* 히어로 */
.hero { padding: clamp(24px, 6vw, 72px) 0 clamp(40px, 7vw, 88px);
  background: radial-gradient(1200px 500px at 50% -10%, #ffe3ec 0%, transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: clamp(24px, 5vw, 64px); }
.hero h1 { margin: 0; }
.hero h1 img { width: min(520px, 100%); height: auto; }
.lede { font-size: clamp(19px, 1.2rem + 0.6vw, 24px); font-weight: 700; line-height: 1.5; margin: 22px 0 10px; letter-spacing: -0.02em; }
.sub { color: var(--ink-2); margin: 0 0 24px; max-width: 34em; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
  padding: 10px 18px; border-radius: 999px; }
.pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(255, 95, 147, 0.25); }
.hero-art { justify-self: center; width: min(360px, 80vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  box-shadow: 0 24px 60px rgba(122, 64, 44, 0.25), 0 0 0 8px #fff; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

/* 특징 */
.section { padding: clamp(40px, 7vw, 80px) 0; }
.section h2 { font-size: clamp(24px, 1.3rem + 1.2vw, 34px); letter-spacing: -0.03em; line-height: 1.3; margin: 0 0 8px; }
.section .kicker { color: var(--pink-deep); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 6px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.card { background: var(--card); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); }
.card .em { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; margin-bottom: 12px; background: var(--pink-soft); }
.card:nth-child(2) .em { background: #d8f4ec; }
.card:nth-child(3) .em { background: #fff0c9; }
.card h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* 스크린샷 */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.shot { margin: 0; border-radius: 26px; overflow: hidden; background: #000; box-shadow: var(--shadow); border: 6px solid #fff; aspect-ratio: 9 / 16; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { position: absolute; left: -9999px; }

/* 하단 */
.foot { margin-top: clamp(32px, 6vw, 64px); padding: 28px 0 calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 14px; }
.foot p { margin: 4px 0; }
.foot .links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; }
.foot .links a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.foot .links a:hover { color: var(--pink-deep); }

/* 문서(개인정보·약관·지원) */
.doc { max-width: 780px; margin: 0 auto; padding: 8px var(--gutter) 0; }
.doc h1 { font-size: clamp(28px, 1.4rem + 1.6vw, 38px); letter-spacing: -0.03em; line-height: 1.25; margin: 18px 0 6px; }
.doc .meta { color: var(--ink-3); font-size: 14px; margin: 0 0 22px; }
.doc h2 { font-size: 19px; margin: 34px 0 10px; letter-spacing: -0.02em; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc b { color: var(--ink); }
.lead { background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); margin: 18px 0 8px; }
.lead p { margin: 0; }
.table-scroll { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 15px; background: #fff; border-radius: 14px; overflow: hidden; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); }
.doc th { color: var(--ink); font-weight: 700; background: var(--cream-2); }
.mail { display: inline-flex; align-items: center; gap: 8px; background: var(--pink); color: #fff !important; text-decoration: none; font-weight: 800;
  padding: 12px 20px; border-radius: 999px; box-shadow: 0 6px 0 var(--pink-deep); }
.mail:hover { background: var(--pink-deep); }
details { background: #fff; border-radius: 16px; padding: 14px 18px; margin: 10px 0; box-shadow: 0 4px 14px rgba(122, 64, 44, 0.08); }
summary { cursor: pointer; font-weight: 700; color: var(--ink); }
details p { margin: 10px 0 2px; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero h1 img { margin: 0 auto; }
  .sub { margin-left: auto; margin-right: auto; }
  .hero-art { order: -1; width: min(240px, 60vw); }
  .cards { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(4, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .shot { scroll-snap-align: start; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-art { animation: bob 4.5s ease-in-out infinite; }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
}

.lost { text-align: center; padding-top: 12vh; }

/* ───────── 2026-10-08 2차: 볼거리 섹션 ───────── */
.hero.v2 { padding-bottom: clamp(28px, 5vw, 56px); }
.phone { position: relative; justify-self: center; width: min(330px, 74vw); aspect-ratio: 9 / 16; border-radius: 40px; padding: 10px;
  background: #fff; box-shadow: 0 30px 70px rgba(122, 64, 44, 0.28); }
.phone .key { width: 100%; height: 100%; object-fit: cover; border-radius: 31px; }
.sticker { position: absolute; width: 64px; height: 64px; filter: drop-shadow(0 6px 10px rgba(122, 64, 44, 0.25)); }
.sticker.s1 { top: 6%; left: -16%; }
.sticker.s2 { top: 30%; right: -18%; width: 72px; height: 72px; }
.sticker.s3 { bottom: 22%; left: -20%; width: 70px; height: 70px; }
.sticker.s4 { bottom: 4%; right: -12%; }
.sticker.s5 { top: -4%; right: 6%; width: 56px; height: 56px; }

.stats { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin: 0 auto; }
.stat { background: #fff; border-radius: 18px; padding: 14px 8px; text-align: center; box-shadow: 0 6px 18px rgba(122, 64, 44, 0.08); }
.stat b { display: block; font-size: clamp(22px, 1rem + 1.4vw, 32px); color: var(--pink-deep); letter-spacing: -0.03em; line-height: 1.15; }
.stat span { font-size: 13px; color: var(--ink-2); font-weight: 600; }

.lead-p { color: var(--ink-2); margin: 6px 0 0; max-width: 40em; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 19vw, 200px); gap: 14px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 22px var(--gutter) 14px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: thin; }
.rail::-webkit-scrollbar { height: 8px; } .rail::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 8px; }
.world { margin: 0; scroll-snap-align: start; }
.world img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); border: 4px solid #fff; }
.world figcaption { font-size: 14px; font-weight: 700; margin-top: 8px; line-height: 1.35; }
.world figcaption small { display: block; color: var(--ink-3); font-weight: 600; font-size: 12px; }

.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 12px; margin-top: 24px; }
.chip { background: #fff; border-radius: 18px; padding: 14px 8px 12px; text-align: center; box-shadow: 0 4px 14px rgba(122, 64, 44, 0.07); }
.chip img { width: 58px; height: 58px; margin: 0 auto 6px; object-fit: contain; }
.chip span { font-size: 13.5px; font-weight: 700; line-height: 1.3; display: block; }

.band { background: linear-gradient(180deg, #fff0f5 0%, #ffe6ee 100%); }
.bosses { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 26px; }
.boss { margin: 0; text-align: center; background: rgba(255, 255, 255, 0.7); border-radius: 22px; padding: 14px 8px; }
.boss img { width: 100%; max-width: 130px; aspect-ratio: 1; object-fit: contain; margin: 0 auto; }
.boss figcaption { font-weight: 800; margin-top: 4px; font-size: 15px; }
.boss figcaption small { display: block; color: var(--ink-3); font-weight: 600; font-size: 12px; }
.boss.mystery { background: var(--ink); }
.boss.mystery figcaption { color: #fff; }
.boss.mystery figcaption small { color: #e8cfc4; }

.friends { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.friends img { width: clamp(72px, 9vw, 104px); aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 50%; padding: 8px;
  box-shadow: 0 4px 14px rgba(122, 64, 44, 0.08); }

.skins { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin-top: 24px; }
.skins img { width: clamp(70px, 8.5vw, 100px); aspect-ratio: 1; object-fit: contain; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.panel { background: #fff; border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); }
.panel h3 { margin: 0 0 4px; font-size: 21px; letter-spacing: -0.02em; }
.panel p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.items { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 18px; }
.items img { width: 100%; aspect-ratio: 1; object-fit: contain; }

.cta { text-align: center; }
.cta img { width: min(220px, 60%); margin: 0 auto 10px; }

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .bosses { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; }
  .phone { width: min(250px, 62vw); }
  .sticker { width: 48px; height: 48px; }
  .sticker.s2, .sticker.s3 { width: 54px; height: 54px; }
  .sticker.s1 { left: -14%; } .sticker.s3 { left: -16%; } .sticker.s2 { right: -16%; } .sticker.s4 { right: -10%; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .stat { padding: 10px 4px; } .stat span { font-size: 11.5px; }
  .icon-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .chip span { font-size: 12.5px; }
}
@media (prefers-reduced-motion: no-preference) {
  .sticker { animation: bob 3.8s ease-in-out infinite; }
  .sticker.s2 { animation-delay: -1.2s; } .sticker.s3 { animation-delay: -2.1s; } .sticker.s4 { animation-delay: -0.6s; } .sticker.s5 { animation-delay: -2.8s; }
}

.section.tight { padding-top: 0; }
.lead-p.center { margin: 6px auto 18px; }
