:root { --ink: #22212e; --muted: #5a587a; --bg: #eceef5; --card: #fff; --purple: #5a1ea8; --yellow: #ffd23f; --red: #ff4559; --orange: #ff8a1c; --head: 'Black Han Sans', 'Jua', sans-serif; --font: 'Jua', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.6; }
.wrap { width: min(880px, 100%); margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
a { color: #1747b0; } .muted { color: var(--muted); }
em { font-style: normal; background: #fff3b0; padding: 0 5px; border-radius: 4px; }

/* 맨 위 */
.hero { position: relative; overflow: hidden; color: #fff; padding: 56px 0 44px; text-align: center; background: linear-gradient(135deg, var(--red), var(--orange)); }
.hero::before { content: ""; position: absolute; inset: -50%; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0 26px, transparent 26px 70px); }
.blobs { position: absolute; inset: 0; pointer-events: none; }
.blobs i { position: absolute; bottom: -90px; width: 80px; height: 74px; border-radius: 50% 50% 46% 46%; background: rgba(255, 255, 255, 0.18); animation: rise 11s linear infinite; }
.blobs i:nth-child(1) { left: 8%; animation-delay: 0s; } .blobs i:nth-child(2) { left: 27%; width: 56px; animation-delay: -4s; } .blobs i:nth-child(3) { left: 52%; width: 96px; animation-delay: -7s; } .blobs i:nth-child(4) { left: 74%; width: 64px; animation-delay: -2s; } .blobs i:nth-child(5) { left: 90%; width: 50px; animation-delay: -9s; }
@keyframes rise { to { transform: translateY(-640px) rotate(25deg); } }
.hero .wrap { position: relative; }
.logo { display: flex; justify-content: center; gap: 4px; margin: 0; font-family: var(--head); font-weight: 400; font-size: clamp(64px, 16vw, 120px); line-height: 1.05; }
.logo span { display: inline-block; -webkit-text-stroke: 8px #5a1ea8; paint-order: stroke fill; text-shadow: 0 7px 0 #2a0f5e, 0 14px 22px #0008; animation: bounce 1.8s ease-in-out infinite; }
.logo span:nth-child(1) { color: #fff; } .logo span:nth-child(2) { color: #ffe36a; animation-delay: .12s; } .logo span:nth-child(3) { color: #6ee28d; animation-delay: .24s; } .logo span:nth-child(4) { color: #7fb6ff; animation-delay: .36s; }
@keyframes bounce { 50% { transform: translateY(-12px); } }
.tag { display: inline-block; margin: 14px auto 18px; max-width: 680px; font-size: 20px; background: rgba(30, 12, 60, 0.62); border-radius: 12px; padding: 6px 16px; }
.mascots { display: flex; justify-content: center; gap: 6px; margin-bottom: 26px; flex-wrap: wrap; }
.mascots i { width: clamp(38px, 8vw, 60px); aspect-ratio: 1; background: url(img/chars_icon.webp) calc(var(--n) * 14.2857%) 0 / 800% 100% no-repeat; animation: jump 1.5s ease-in-out infinite; animation-delay: calc(var(--n) * .1s); filter: drop-shadow(0 4px 0 #0004); }
.mascots i:nth-child(1) { --n: 0; }.mascots i:nth-child(2) { --n: 1; }.mascots i:nth-child(3) { --n: 2; }.mascots i:nth-child(4) { --n: 3; }.mascots i:nth-child(5) { --n: 4; }.mascots i:nth-child(6) { --n: 5; }.mascots i:nth-child(7) { --n: 6; }.mascots i:nth-child(8) { --n: 7; }
@keyframes jump { 50% { transform: translateY(-10px); } }

/* 다운로드 버튼 */
.btn { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: min(420px, 100%); padding: 16px 34px 14px; border-radius: 18px; background: var(--yellow); color: #4a1b8f; text-decoration: none; box-shadow: 0 7px 0 #b88a00, 0 14px 24px rgba(0, 0, 0, 0.3); transition: transform .12s, box-shadow .12s; }
.btn:hover, .btn:focus-visible { transform: translateY(2px); box-shadow: 0 5px 0 #b88a00, 0 10px 18px rgba(0, 0, 0, 0.3); outline: 3px solid #fff; outline-offset: 3px; }
.btn:active { transform: translateY(6px); box-shadow: 0 1px 0 #b88a00; }
.btn .big { font-family: var(--head); font-size: 30px; line-height: 1.2; } .btn .sub { font-size: 17px; opacity: .85; }
.meta { display: table; margin: 16px auto 0; background: rgba(30, 12, 60, 0.62); border-radius: 10px; padding: 3px 14px; font-size: 16px; }
.warn { margin: 12px auto 0; max-width: 480px; background: #fff; color: #7a1d1d; border-radius: 10px; padding: 10px 14px; font-size: 16px; }
.link { font: inherit; background: none; border: 0; color: #1747b0; text-decoration: underline; cursor: pointer; padding: 0; }

/* 카드 */
main { padding: 26px 0 8px; }
.card { background: var(--card); border-radius: 14px; padding: 20px 24px; margin-bottom: 18px; box-shadow: 0 4px 0 #d3d5e2; }
h2 { margin: 0 0 8px; font-family: var(--head); font-weight: 400; font-size: 26px; color: var(--purple); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge { font-family: var(--font); font-size: 15px; background: #ece8ff; color: #3d1b78; border-radius: 99px; padding: 1px 12px; }
.notes { margin: 6px 0 0; padding-left: 22px; } .notes li { margin: 4px 0; }
.steps { list-style: none; counter-reset: s; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; align-items: center; background: #f6f6fa; border-radius: 10px; padding: 10px 14px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--head); font-size: 24px; display: grid; place-items: center; }
.steps b { font-family: var(--head); font-weight: 400; font-size: 20px; } .steps span { color: #3a3850; }
details { border-top: 2px solid #eceef5; padding: 8px 0; } details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-family: var(--head); font-size: 19px; } summary:focus-visible { outline: 3px solid #1747b0; outline-offset: 3px; border-radius: 4px; }
details p { margin: 6px 0 4px; color: #3a3850; }
pre { background: #1e174e; color: #fff; border-radius: 8px; padding: 12px 16px; overflow-x: auto; margin: 8px 0; font-size: 16px; }
.hash code { word-break: break-all; background: #f1eefb; padding: 2px 8px; border-radius: 6px; font-size: 15px; }
.olds { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 6px; }
.olds li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: #f6f6fa; border-radius: 8px; padding: 6px 12px; }
.foot { padding: 22px 0 40px; text-align: center; } .foot p { margin: 4px 0; }
@media (max-width: 560px) { body { font-size: 17px; } .card { padding: 16px; } .btn .big { font-size: 25px; } .btn { padding: 14px 20px 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
