@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable-dynamic-subset.css");

:root { color-scheme:light; --home-primary:#185548; --home-soft:#edf8f4; --app-bg:#f4f6f9; --app-border:#e4e8ee; color:#121826; background:#edf1f5; font-family:"Pretendard Variable","Pretendard","Apple SD Gothic Neo","Segoe UI",Arial,sans-serif; -webkit-font-smoothing:antialiased; }
:root[data-home-theme="burgundy"] { --home-primary:#7b2d3b; --home-soft:#fbf0f2; }
:root[data-home-theme="charcoal"] { --home-primary:#374151; --home-soft:#f3f4f6; }
:root[data-home-theme="purple"] { --home-primary:#62418a; --home-soft:#f6f1fa; }
:root[data-home-theme="lg_twins"] { --home-primary:#c30452; --home-soft:#fff1f5; }
:root[data-home-theme="doosan_bears"] { --home-primary:#131230; --home-soft:#f3f3fa; }
:root[data-home-theme="hanwha_eagles"] { --home-primary:#c95313; --home-soft:#fff5ed; }
:root[data-home-theme="samsung_lions"] { --home-primary:#074ca1; --home-soft:#eef7fd; }
* { box-sizing:border-box; }
body { margin:0; min-width:0; }
a { color:var(--home-primary); text-underline-offset:3px; }
a:focus-visible { outline:2px solid var(--home-primary); outline-offset:3px; }
.content-shell { width:min(100%,420px); height:100dvh; min-height:0; margin:0 auto; display:flex; flex-direction:column; overflow:hidden; background:#fff; color:#172338; }
/* Match the game's centered desktop canvas; only the content scrolls inside it. */
@media (min-width:431px) {
  html,body { height:100%; min-height:0; overflow:hidden; }
  body { display:grid; place-items:center; padding-block:16px; background:#edf1f5; }
  .content-shell { position:relative; width:420px; height:min(900px,calc(100dvh - 32px)); overscroll-behavior:contain; border-radius:20px; box-shadow:0 0 0 1px #dce2ea,0 18px 50px #1d293917; }
}
.site-header { flex-shrink:0; display:grid; grid-template-columns:44px minmax(0,1fr) auto; align-items:center; gap:10px; min-height:80px; padding:max(9px,env(safe-area-inset-top)) 16px 9px; background:var(--home-primary); color:#fff; }
.site-back { display:grid; place-items:center; width:44px; height:44px; border:1px solid #ffffff2f; border-radius:11px; background:#ffffff10; color:inherit; font-size:20px; text-decoration:none; }
.site-back:hover { background:#ffffff16; }
.site-back:focus-visible { outline-color:#fff; outline-offset:-2px; }
.site-heading { min-width:0; }
.site-heading small { display:block; color:#ffffffc9; font-size:11px; font-weight:600; line-height:1.2; letter-spacing:.06em; }
.site-heading strong { display:block; margin-top:3px; font-size:20px; font-weight:750; letter-spacing:-.045em; line-height:1.15; word-break:keep-all; }
.site-mark { display:grid; place-items:center; width:34px; height:30px; border:1px solid #ffffff2c; border-radius:999px; background:#ffffff0e; color:#eef1ff; }
.site-mark svg { width:16px; height:16px; }
.site-content { flex:1 1 auto; min-height:0; min-width:0; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; padding:0 18px max(24px,env(safe-area-inset-bottom)); }
.content-panel { min-width:0; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.list-intro { margin:0; padding:22px 0; border-bottom:1px solid #e4e8ed; color:#758194; font-size:13px; line-height:1.7; word-break:keep-all; }
.story-intro { margin:18px 0 22px; padding:16px 15px; border-left:3px solid var(--home-primary); border-radius:0 8px 8px 0; background:var(--home-soft); word-break:keep-all; }
.story-intro strong { display:block; margin-bottom:7px; color:var(--home-primary); font-size:16px; font-weight:750; line-height:1.5; letter-spacing:-.35px; }
.story-intro p { margin:0; color:#53645f; font-size:13px; line-height:1.75; }
.post-empty { padding:64px 0; text-align:center; }
.post-empty>span { display:grid; place-items:center; width:52px; height:52px; margin:0 auto 16px; border-radius:50%; background:var(--home-soft); color:var(--home-primary); }
.post-empty svg { width:24px; height:24px; }
.post-empty p { margin:0; color:#758194; font-size:14px; }
h1 { margin:0 0 12px; font-size:22px; font-weight:850; line-height:1.4; letter-spacing:-.04em; word-break:keep-all; }
h2 { margin:28px 0 12px; font-size:18px; font-weight:800; line-height:1.5; letter-spacing:-.025em; }
h3 { margin:24px 0 10px; font-size:16px; line-height:1.5; }
p,li { overflow-wrap:anywhere; font-size:15px; line-height:1.75; }
p { margin:0 0 16px; }
article { padding-top:26px; }
article>header { margin-bottom:22px; padding-bottom:18px; border-bottom:1px solid var(--app-border); }
article>header>a { display:inline-flex; align-items:center; min-height:32px; margin-bottom:8px; font-size:11px; font-weight:800; text-decoration:none; }
article>header p { color:#667085; font-size:13px; }
time { color:#98a2b3; font-size:11px; font-weight:600; }
img { display:block; max-width:100%; height:auto; margin:18px auto; border-radius:10px; }
pre { overflow:auto; padding:14px; border-radius:10px; background:var(--app-bg); font-size:12px; }
blockquote { margin:20px 0; padding:12px 14px; border-left:3px solid var(--home-primary); border-radius:0 8px 8px 0; background:var(--home-soft); }
blockquote p:last-child { margin-bottom:0; }
.post-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 12px; margin:0; padding:0; list-style:none; }
.post-list li { min-width:0; overflow:hidden; border:1px solid #dee2e6; border-radius:6px; background:#fff; }
.post-list h2 { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; min-width:0; min-height:3em; margin:0 0 10px; overflow:hidden; color:#212529; font-size:15px; font-weight:650; line-height:1.5; word-break:keep-all; overflow-wrap:anywhere; }
.post-list a { display:flex; flex-direction:column; height:100%; color:inherit; text-decoration:none; }
.post-list a:focus-visible { outline:2px solid var(--home-primary); outline-offset:-3px; border-radius:6px; }
.post-list a:active { background:var(--home-soft); }
.post-list p { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; min-width:0; margin:0; overflow:hidden; color:#606870; font-size:13px; line-height:1.65; word-break:keep-all; overflow-wrap:anywhere; }
.post-card-image { flex:none; aspect-ratio:4/3; overflow:hidden; border-bottom:1px solid #dee2e6; background:#f1f3f5; }
.post-card-image img { display:block; width:100%; height:100%; margin:0; border-radius:0; object-fit:cover; }
.post-card-placeholder { display:flex; align-items:center; justify-content:center; width:100%; height:100%; color:var(--home-primary); background:linear-gradient(135deg,var(--home-soft),#edf1f4); }
.post-card-placeholder svg { width:42px; height:42px; opacity:.45; }
.post-card-copy { flex:1; padding:14px 12px 16px; }
.pagination { display:flex; justify-content:space-between; gap:12px; margin-top:18px; }
.pagination:empty { display:none; }
.pagination a,.site-return { min-height:44px; display:inline-flex; align-items:center; justify-content:center; padding:8px 18px; border:1px solid color-mix(in srgb,var(--home-primary) 48%,#fff); border-radius:999px; background:#fff; color:var(--home-primary); font-size:13px; font-weight:800; text-decoration:none; }
.site-return { margin-top:24px; }
footer { padding-top:16px; }
footer nav { display:flex; flex-wrap:wrap; justify-content:center; gap:0 12px; margin-top:10px; }
footer nav a { display:inline-flex; align-items:center; min-height:44px; color:#667085; font-size:10px; font-weight:650; text-decoration:none; }
table { display:block; max-width:100%; overflow:auto; border-collapse:collapse; font-size:13px; }
td,th { border:1px solid var(--app-border); padding:8px; }
