/* TINY HEROES — marketing & legal pages. Same tokens as the game. */
@font-face { font-family: 'Fredoka'; font-weight: 700; font-display: swap; src: url('/fonts/fredoka-700.woff2') format('woff2'); }
:root { --bg: #0d0b1e; --panel: #1d1940; --line: rgba(255,255,255,.1); --text: #fff6e8; --muted: #b8b0d6; --amber: #ffb547; --amber-2: #ff8a3d; --teal: #3ee6c8; color-scheme: dark; }
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--text); font: 17px/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', sans-serif; }
a { color: var(--teal); }
img { max-width: 100%; height: auto; display: block; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 9; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.small { font-size: .85rem; color: var(--muted); }
.logo { margin: 0; font-family: 'Fredoka', ui-rounded, system-ui, sans-serif; line-height: .9; display: grid; justify-items: center; }
.logo span { color: var(--teal); letter-spacing: .3em; margin-right: -.3em; font-size: clamp(1.6rem, 6vw, 2.6rem); font-weight: 700; }
.logo b { color: var(--amber); font-size: clamp(3rem, 13vw, 5.6rem); text-shadow: 0 5px 0 #3b1a6b, 0 12px 30px rgba(0,0,0,.5); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 28px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-weight: 700; text-decoration: none; }
.btn.primary { background: linear-gradient(180deg, #ffc566, var(--amber-2)); color: #3a1d05; border: 0; box-shadow: 0 6px 0 #b9541c; font-size: 1.15rem; }
.btn:hover { filter: brightness(1.06); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 24px 0 8px; }

.hero { position: relative; min-height: 88vh; display: grid; align-items: end; overflow: hidden; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,11,30,0) 30%, rgba(13,11,30,.75) 70%, var(--bg)); }
.hero-body { position: relative; z-index: 1; text-align: center; padding: 0 16px 48px; max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: clamp(1.4rem, 4.2vw, 2.2rem); margin: 18px 0 6px; }
.tag { color: var(--muted); margin: 0; font-size: 1.1rem; }

main { max-width: 1060px; margin: 0 auto; padding: 0 16px; }
section { padding: 48px 0 12px; }
h2 { font-family: 'Fredoka', ui-rounded, system-ui, sans-serif; font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0 0 20px; text-align: center; }
.features ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.features li { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.features h3 { margin: 8px 0 4px; font-size: 1.1rem; }
.features p { margin: 0; color: var(--muted); }
.dot { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--c, var(--amber)); box-shadow: 0 0 14px var(--c, var(--amber)); }
.c-builder { --c: #ff8a3d; } .c-digger { --c: #3d8bff; } .c-driller { --c: #22c3b5; } .c-climber { --c: #5bcb5b; }
.c-glider { --c: #a46bff; } .c-shield { --c: #ffd23f; } .c-beacon { --c: #ff4d5e; } .c-hacker { --c: #7b5cff; }
.wide { border-radius: 24px; margin: 0 auto 20px; }
.skills dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 0; }
.skills dl div { border-left: 4px solid var(--c); background: var(--panel); border-radius: 12px; padding: 10px 14px; }
.skills dt { font-weight: 800; color: var(--c); }
.skills dd { margin: 0; color: var(--muted); font-size: .95rem; }
.how ol { max-width: 680px; margin: 0 auto; padding-left: 1.4em; display: grid; gap: 8px; }
.story-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.story figure { margin: 0; background: var(--panel); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.story figcaption { padding: 14px 16px 18px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; max-width: 760px; margin-inline: auto; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 10px 0 0; color: var(--muted); }
.foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 16px 40px; text-align: center; }
.langs { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin-bottom: 12px; }
.langs a { text-decoration: none; color: var(--muted); }
.langs a[aria-current] { color: var(--amber); font-weight: 700; }

.chooser main { text-align: center; padding-top: 0; }
.small-hero { width: 100%; max-height: 46vh; object-fit: cover; border-radius: 0 0 28px 28px; margin-bottom: -40px; }
.chooser h1 { font-size: 1.3rem; color: var(--muted); font-weight: 500; }
.hint { font-size: 1.1rem; }
.lang-grid { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 28px 0; }
.lang-grid a { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--text); text-align: left; }
.lang-grid span { color: var(--muted); font-size: .88rem; }

.doc-head { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.home { display: inline-flex; gap: 10px; align-items: center; font-weight: 800; text-decoration: none; color: var(--text); }
.doc-body { max-width: 760px; padding-top: 24px; }
.doc-body h1 { font-family: 'Fredoka', ui-rounded, system-ui, sans-serif; }
.doc-body h2 { text-align: left; font-size: 1.2rem; margin: 26px 0 6px; }
.doc-body section p { margin: 0; color: #e7def7; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

:lang(ko) { word-break: keep-all; }

.arcade-list { max-width: 1100px; padding-top: 20px; }
.arcade-list h1 { font-family: 'Fredoka', ui-rounded, system-ui, sans-serif; text-align: center; margin: 8px 0; }
.arcade-list .tag { text-align: center; }
.games { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.games a { display: grid; gap: 6px; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; padding-bottom: 14px; height: 100%; }
.games a:hover { border-color: rgba(255,181,71,.5); }
.games img.cover { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; height: auto; background: radial-gradient(circle at 50% 40%, #3b2f8a, #1d1940); }
.games img.cover.sprite { object-fit: contain; padding: 18px; }
.games b { padding: 0 14px; font-size: 1.05rem; }
.games span { padding: 0 14px; color: var(--muted); font-size: .9rem; }
