
:root{
  --bg:#f7f7f4; --text:#111; --muted:#777; --line:#deded8; --panel:#fff; --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--bg);color:var(--text);
  font-family:Inter,Pretendard,"Noto Sans KR",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.65;letter-spacing:-.02em;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button,input,textarea{font:inherit}
.wrap{width:min(calc(100% - 48px),var(--max));margin:0 auto}
header{
  position:sticky;top:0;z-index:20;background:rgba(247,247,244,.94);
  backdrop-filter:blur(12px);border-bottom:1px solid rgba(222,222,216,.65);
}
.nav{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{font-size:22px;font-weight:700;letter-spacing:-.045em;white-space:nowrap}
.menu{display:flex;align-items:center;gap:26px;white-space:nowrap}
.menu a{position:relative;padding:8px 0;font-size:13px;font-weight:800;letter-spacing:.06em}
.menu a.active:after{content:"";position:absolute;left:0;right:0;bottom:2px;height:1px;background:#111}
.menu a:hover,.text-link:hover{opacity:.55}
footer{border-top:1px solid var(--line);padding:24px 0 34px;color:var(--muted);font-size:12px}
.hero{padding:76px 0 74px;border-bottom:1px solid var(--line)}
.eyebrow{font-size:12px;font-weight:800;letter-spacing:.12em;color:var(--muted);margin-bottom:16px}
.hero h1{margin:0;max-width:820px;font-size:clamp(40px,5.8vw,68px);line-height:1.24;letter-spacing:-.045em;font-weight:600}
.hero p{margin:28px 0 0;max-width:700px;font-size:17px;line-height:1.9;color:#555550}
.hero p strong{font-weight:650;color:#222}
.games{padding:0}
.game{
  min-height:720px;display:grid;grid-template-columns:minmax(280px,.88fr) minmax(360px,1.12fr);
  gap:clamp(56px,8vw,110px);align-items:center;padding:82px 0;border-bottom:1px solid var(--line);
}
.poster{width:min(100%,440px);justify-self:center}
.poster img{width:100%;height:auto;aspect-ratio:3/4.35;object-fit:cover}
.poster-placeholder{
  width:100%;aspect-ratio:3/4.35;background:#e8e8e2;display:grid;place-items:center;
  color:#888;font-size:12px;font-weight:800;letter-spacing:.08em;
}
.copy{max-width:560px}
.index{font-size:12px;color:var(--muted);font-weight:800;letter-spacing:.12em;margin-bottom:20px}
h2{font-size:clamp(44px,5.5vw,74px);line-height:1.1;letter-spacing:-.065em;margin:0 0 14px}
.meta{font-size:14px;color:var(--muted);font-weight:700;margin-bottom:28px}
.desc{font-size:18px;line-height:1.82;color:#3d3d39;margin:0 0 30px;white-space:normal;word-break:keep-all;overflow-wrap:normal}
.actions{display:flex;flex-wrap:wrap;gap:18px 26px}
.text-link{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:850;letter-spacing:.03em;border-bottom:1px solid #222;padding:0 0 4px}
.page-head{padding:72px 0 54px;border-bottom:1px solid var(--line)}
.page-head h1{margin:0;font-size:clamp(42px,6vw,68px);letter-spacing:-.06em;line-height:1.08}
.page-head p{max-width:680px;margin:20px 0 0;color:#555;font-size:16px}
.note-list{padding:20px 0 90px}
.note-row{display:grid;grid-template-columns:120px 1fr auto;gap:20px;align-items:center;padding:25px 0;border-bottom:1px solid var(--line)}
.note-date{font-size:12px;color:var(--muted);font-weight:700}
.note-title{font-size:19px;font-weight:750;letter-spacing:-.035em}
.note-excerpt{font-size:14px;color:var(--muted);margin-top:5px}
.note-detail{padding:65px 0 100px;max-width:820px}
.note-detail .date{font-size:12px;color:var(--muted);font-weight:700;margin-bottom:18px}
.note-detail h1{font-size:clamp(38px,6vw,66px);line-height:1.12;letter-spacing:-.06em;margin:0 0 34px}
.note-cover{margin:0 0 42px}
.note-cover img{width:100%;max-height:620px;object-fit:cover}
.note-body{font-size:18px;line-height:2;white-space:pre-wrap;color:#333}
.about-layout{padding:72px 0 100px;display:grid;grid-template-columns:.7fr 1.3fr;gap:70px}
.about-layout h1{font-size:clamp(42px,6vw,68px);letter-spacing:-.06em;margin:0}
.about-copy{font-size:22px;line-height:1.8;white-space:pre-wrap;max-width:720px}
.game-detail{padding:76px 0 100px;display:grid;grid-template-columns:minmax(280px,.9fr) minmax(360px,1.1fr);gap:clamp(55px,8vw,110px);align-items:start}
.game-detail .poster{position:sticky;top:110px}
.game-detail h1{font-size:clamp(50px,7vw,88px);line-height:.98;letter-spacing:-.075em;margin:0 0 18px}
.game-detail .desc{font-size:19px}
.empty{padding:50px 0;color:var(--muted)}
@media(max-width:760px){
  .wrap{width:min(calc(100% - 32px),var(--max))}
  .nav{min-height:66px;gap:14px}.brand{font-size:19px}.menu{gap:14px}.menu a{font-size:11px;letter-spacing:.035em}
  .hero{padding:52px 0 54px}.hero h1{font-size:32px;line-height:1.38;max-width:380px}.hero p{font-size:15px;line-height:1.9;margin-top:22px}
  .game{min-height:0;grid-template-columns:1fr;gap:34px;padding:56px 0 64px}.poster{width:min(88vw,390px)}
  h2{font-size:42px;line-height:1.16;margin-bottom:12px}.desc{font-size:16px;line-height:1.9;margin-bottom:24px}.meta{margin-bottom:22px}
  .page-head{padding:48px 0 38px}.note-row{grid-template-columns:1fr auto;gap:8px 15px}.note-date{grid-column:1/-1}
  .about-layout{grid-template-columns:1fr;gap:28px;padding:52px 0 70px}.about-copy{font-size:18px}
  .game-detail{grid-template-columns:1fr;gap:38px;padding:52px 0 72px}.game-detail .poster{position:static}.game-detail h1{font-size:50px}
  .note-detail{padding:48px 0 75px}.note-body{font-size:16px;line-height:1.95}
}
@media(max-width:360px){.brand{font-size:18px}.menu{gap:10px}.menu a{font-size:10px}}

.note-body h2{font-size:30px;line-height:1.35;letter-spacing:-.045em;margin:44px 0 18px}
.note-body h3{font-size:23px;line-height:1.4;letter-spacing:-.035em;margin:36px 0 14px}
.note-body p{margin:0 0 22px}
.note-body ul,.note-body ol{margin:0 0 24px;padding-left:1.5em}
.note-body li{margin:7px 0}
.note-body blockquote{margin:30px 0;padding:2px 0 2px 20px;border-left:3px solid var(--text);color:#5a5a55}
.note-body a{text-decoration:underline;text-underline-offset:3px}
.note-body strong,.note-body b{font-weight:800}
@media(max-width:760px){
  .note-body h2{font-size:25px;margin-top:36px}
  .note-body h3{font-size:20px;margin-top:30px}
}

.firebase-managed{visibility:hidden}
.firebase-managed.firebase-ready{visibility:visible}


/* v7.1 — Korean mobile wrapping */
.hero h1,
.page-head h1,
.game h2,
.game-detail h1,
.note-detail h1{
  word-break:keep-all;
  overflow-wrap:break-word;
  text-wrap:balance;
}

.hero p,
.page-head p,
.desc,
.about-copy,
.note-title,
.note-excerpt,
.note-body{
  word-break:keep-all;
  overflow-wrap:break-word;
  text-wrap:pretty;
}

.meta{
  word-break:keep-all;
  overflow-wrap:break-word;
  text-wrap:balance;
}

@media(max-width:760px){
  /* 데스크톱에서 넣은 강제 줄바꿈은 모바일에서는 자연 줄바꿈에 맡김 */
  #heroTitle br,
  #notesTitle br{
    display:none;
  }

  #heroTitle,
  #notesTitle{
    max-width:100%;
    text-wrap:balance;
  }

  .hero h1{
    font-size:31px;
    line-height:1.34;
    letter-spacing:-.04em;
  }

  .page-head h1{
    font-size:36px;
    line-height:1.16;
    letter-spacing:-.05em;
  }

  .hero p,
  .page-head p{
    max-width:100%;
  }

  .desc{
    line-height:1.82;
  }

  .meta{
    line-height:1.55;
  }
}


/* v7.2 — game description wrapping */
.desc p{
  margin:0 0 14px;
  word-break:keep-all;
  overflow-wrap:normal;
  line-break:auto;
}
.desc p:last-child{margin-bottom:0}

@media(max-width:760px){
  .desc{
    font-size:16px;
    line-height:1.72;
    letter-spacing:-.018em;
    word-break:keep-all;
    overflow-wrap:normal;
  }
  .desc p{margin-bottom:12px}
}
