/* Leapinity Games 첫 화면. 색·카드·버튼·아래쪽은 Leapinity 대문(leapinity.com)과 같은 모양
   색: 보라 #7c5cff → 하늘 #38bdf8 → 민트 #2dd4a7. 위쪽(첫 화면)·아래쪽은 어두운 밤색, 게임 목록은 밝은 바탕
   움직임은 transform·opacity 만. 움직임 줄이기 설정이면 모두 멈춰요(맨 아래) */
:root {
  --vio: #7c5cff; --sky: #38bdf8; --mint: #2dd4a7;
  --grad: linear-gradient(100deg, var(--vio) 0%, var(--sky) 55%, var(--mint) 100%);
  --night: #0b1030; --night2: #121a45;
  --ink: #161c3d; --soft: #565d7e; --mute: #7d849f;
  --bg: #ffffff; --bg-soft: #f5f6fb; --card: #ffffff; --line: #e4e7f1;
  --chip: #f1f3fa; --chip-ink: #4a5173;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 10px 30px rgba(22, 28, 61, .07);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html, body { margin: 0; }
body {
  min-height: 100vh; background: var(--bg-soft); color: var(--ink);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  word-break: keep-all; overflow-wrap: break-word; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
svg { display: block; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 10px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-block; margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .01em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 첫 화면 (어두운 띠) ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: #fff; padding-bottom: 46px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; }
.b1 { width: 60vmax; height: 60vmax; left: -22vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(124, 92, 255, .55), rgba(124, 92, 255, 0)); animation: drift1 22s ease-in-out infinite alternate; }
.b2 { width: 52vmax; height: 52vmax; right: -22vmax; top: -16vmax; background: radial-gradient(closest-side, rgba(56, 189, 248, .40), rgba(56, 189, 248, 0)); animation: drift2 26s ease-in-out infinite alternate; }
.b3 { width: 46vmax; height: 46vmax; left: 20vmax; bottom: -34vmax; background: radial-gradient(closest-side, rgba(45, 212, 167, .32), rgba(45, 212, 167, 0)); animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(12vmax, 6vmax) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-10vmax, 8vmax) scale(.92); } }
@keyframes drift3 { to { transform: translate(8vmax, -6vmax) scale(1.08); } }
.dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.4px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 0%, transparent 75%); }

/* 맨 위 막대: 로고 + 로그인 */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding-top: env(safe-area-inset-top); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: #fff; text-decoration: none; font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 40px; height: auto; flex: none; overflow: visible; }
.brand-name b { font-weight: 800; }
.brand-name i { font-style: normal; font-weight: 500; opacity: .78; }
.brand-head { transform-box: fill-box; transform-origin: 30% 70%; transition: transform .45s var(--ease); }
.brand:hover .brand-head { transform: translate(3px, -3px); }

.hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 26px; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 15px; border-radius: 99px; font-size: 13px; font-weight: 700; letter-spacing: .04em;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); color: #d9defa; }
.eyebrow-pill span { color: var(--mint); }
.hero h1 { margin: 14px 0 0; font-size: clamp(38px, 7vw, 68px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.hero-tag { margin: 14px auto 0; max-width: 30em; font-size: clamp(16px, 1.9vw, 19px); font-weight: 600; color: #c9cff0; line-height: 1.55; }
.hero .count { margin: 10px 0 0; min-height: 1.4em; font-size: 14px; font-weight: 700; color: var(--mint); }

/* 게임 찾기 */
.search { position: relative; width: min(520px, 100%); margin-top: 22px; }
.search svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: #aeb5da; stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.search input { width: 100%; height: 54px; padding: 0 20px 0 50px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .09); color: #fff;
  font: 600 16px/1 inherit; font-family: inherit; -webkit-appearance: none; appearance: none; transition: border-color .2s, background-color .2s; }
.search input::placeholder { color: #9aa2cc; }
.search input:focus { outline: none; border-color: var(--sky); background: rgba(255, 255, 255, .14); box-shadow: 0 0 0 4px rgba(56, 189, 248, .22); }
.search input::-webkit-search-cancel-button { filter: invert(1) brightness(1.4); cursor: pointer; }
.hero-links { margin: 16px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* 버튼 (대문과 같음) */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 99px; font-size: 15px; font-weight: 700;
  text-decoration: none; transition: transform .35s var(--ease); isolation: isolate; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn-grad { color: #fff; background: var(--grad); }
.btn-grad::after { content: ''; position: absolute; inset: 6px 10px -6px; z-index: -1; border-radius: inherit; background: var(--grad); filter: blur(18px); opacity: .5; transition: opacity .35s; }
.btn-ghost { color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .24); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-3px); }
  .btn:hover svg { transform: translateX(4px); }
  .btn-grad:hover::after { opacity: .85; }
  .btn-ghost:hover { background: rgba(255, 255, 255, .14); }
}
.btn:active { transform: scale(.97); }

/* ---------- 인기 차트: 시상대 (2등 · 1등 · 3등) ---------- */
.chart { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 34px 16px 6px; }
.chart-head { text-align: center; margin-bottom: 16px; display: flex; flex-direction: column; align-items: center; }
.chart-head h2 { margin: 6px 0 0; display: inline-flex; align-items: center; gap: 8px; font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -.03em; }
.chart-head p:last-child { margin: 4px 0 0; color: var(--soft); font-size: 15px; }
.podium { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; }
.podium:has(> :only-child) { grid-template-columns: minmax(0, 240px); justify-content: center; }
.podium:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 240px)); justify-content: center; }
.pod a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px 0; border-radius: 24px 24px 18px 18px; text-decoration: none; color: inherit; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--c) 12%, #fff) 100%); border: 1px solid color-mix(in srgb, var(--m) 50%, #fff);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--m) 22%, transparent); transition: transform .4s var(--ease), box-shadow .4s; }
.pod a:hover, .pod a:focus-visible { transform: translateY(-5px); box-shadow: 0 18px 38px color-mix(in srgb, var(--m) 36%, transparent); }
.pod.r1 { --m: #f5c542; } .pod.r2 { --m: #b8c2d6; } .pod.r3 { --m: #e3a374; }
.pod.r1 a { padding-top: 26px; background: radial-gradient(circle at 50% 0%, #fff7d1 0%, transparent 60%), linear-gradient(180deg, #fffdf3 0%, color-mix(in srgb, var(--c) 14%, #fff) 100%); }
.pod.r1 a::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%); transform: translateX(-100%); animation: shine 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 30%, 100% { transform: translateX(100%); } }
.medal { position: absolute; top: 8px; left: 10px; font-size: 26px; line-height: 1; filter: drop-shadow(0 3px 4px rgba(0,0,0,.12)); }
.pod.r1 .medal { font-size: 32px; animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px) rotate(-6deg); } }
.pod-art { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, #fff 0 55%, color-mix(in srgb, var(--c) 25%, #fff) 56%); box-shadow: 0 0 0 4px color-mix(in srgb, var(--m) 45%, #fff); }
.pod.r1 .pod-art { width: 96px; height: 96px; box-shadow: 0 0 0 5px var(--m), 0 10px 24px rgba(245,197,66,.35); }
.pod-art svg { width: 70%; height: 70%; filter: drop-shadow(0 1px 1px rgba(22,28,61,.35)); }
.pod-name { margin-top: 4px; font-size: 16px; font-weight: 800; letter-spacing: -.02em; text-align: center; line-height: 1.25; }
.pod.r1 .pod-name { font-size: 18px; }
.pod-meta { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; color: var(--mute); font-size: 12.5px; font-weight: 700; }
.pod-basis { white-space: nowrap; }
.chart-rule { margin: 12px 0 0; text-align: center; color: var(--mute); font-size: 12px; }
.mv { padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 800; }
.mv.up { background: #ffe1ea; color: #d6406c; }
.mv.down { background: #e0f2fe; color: #2a79b8; }
.mv.same { background: var(--chip); color: var(--mute); }
.mv.new { background: #dcf8ef; color: #12805f; }
.step { align-self: stretch; margin: 8px -10px 0; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,.15);
  background: linear-gradient(180deg, color-mix(in srgb, var(--m) 85%, #fff), var(--m)); height: 34px; }
.pod.r1 .step { height: 52px; font-size: 28px; }
.pod.r2 .step { height: 40px; }

/* ---------- 장르 바로 가기 (위에 붙어 다님, 좌우로 넘김) ---------- */
.jump { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px max(16px, calc((100% - 1128px) / 2)); margin: 18px 0 4px;
  background: rgba(245, 246, 251, .84); border-bottom: 1px solid transparent; -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
.jump::-webkit-scrollbar { display: none; }
.jump:empty { display: none; }
/* 불러오는 동안 차트·장르 바로 가기 자리를 미리 잡아 둠 (나중에 채워질 때 아래 카드가 밀려 내려가지 않게) */
.jump.pending:empty { display: block; height: 59px; }
.chart.loading { min-height: 384px; }
.chart.loading .podium { height: 244px; border-radius: 22px; background: linear-gradient(90deg, #eef0f7, #e4e7f1, #eef0f7); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.jump a { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 15px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: border-color .2s, color .2s, background-color .2s; }
.jump a:hover, .jump a:focus-visible { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; color: var(--vio); }

/* ---------- 장르 줄 ---------- */
main { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: 0 0 56px; }
.row { margin-top: 26px; scroll-margin-top: 64px; }
.row-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding: 0 16px; margin-bottom: 10px; }
.row-head h2 { margin: 0; font-size: 23px; font-weight: 800; letter-spacing: -.03em; display: flex; align-items: center; gap: 8px; }
.row-head h2::before { content: ""; width: 6px; height: 22px; border-radius: 99px; background: linear-gradient(var(--vio), var(--sky) 60%, var(--mint)); }
.row-head h2 small { font-size: 12px; font-weight: 800; color: var(--vio); background: rgba(124, 92, 255, .1); padding: 2px 9px; border-radius: 99px; }
.row-head p { margin: 0; color: var(--soft); font-size: 14px; }
.arrows { margin-left: auto; display: flex; gap: 6px; align-self: center; }
.arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 800 22px/1 inherit; font-family: inherit; cursor: pointer; box-shadow: var(--shadow); transition: border-color .2s, color .2s; }
.arrow:not(:disabled):hover { border-color: var(--vio); color: var(--vio); }
.arrow:disabled { opacity: .35; cursor: default; }
.row.fits .arrows { visibility: hidden; }
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; padding: 8px 16px 26px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; border-radius: 16px; }
.rail .card { flex: 0 0 270px; scroll-snap-align: start; }
/* 검색 결과는 여러 줄로 펼쳐서 (찾는 동안 인기 차트는 숨김) */
.searching .chart { display: none; }
.row.found .rail { flex-wrap: wrap; overflow: visible; scroll-snap-type: none; }
.row.found .arrows { display: none; }
.new { position: absolute; top: 12px; left: 12px; padding: 3px 9px; border-radius: 99px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; box-shadow: 0 4px 12px rgba(124, 92, 255, .4); }

/* 게임 카드: 대문 카드처럼 둥글고, 올리면 무지개 테두리 + 빛 */
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(var(--line), var(--line)) border-box;
  color: inherit; text-decoration: none; box-shadow: var(--shadow);
  transition: transform .45s var(--ease), box-shadow .45s; -webkit-tap-highlight-color: transparent;
}
a.card:hover, a.card:focus-visible { border-color: transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box;
  transform: translateY(-6px); box-shadow: 0 18px 40px rgba(124, 92, 255, .16), 0 8px 30px rgba(56, 189, 248, .14); }
a.card:focus-visible { outline: none; }
a.card:active { transform: scale(.985); }
.card .art { position: relative; height: 150px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 58%, rgba(255,255,255,.94) 0 27%, transparent 59%), radial-gradient(circle at 18% 18%, rgba(255,255,255,.72) 0 4px, transparent 5px), linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, #fff), color-mix(in srgb, var(--c) 36%, #fff)); background-size: auto, 28px 28px, auto; }
.card .art svg { width: 110px; height: 110px; filter: drop-shadow(0 1px 1.2px rgba(22, 28, 61, .45)) drop-shadow(0 8px 12px color-mix(in srgb, var(--c) 40%, transparent)); transition: transform .4s var(--ease); }
a.card:hover .art svg { transform: scale(1.08) rotate(-4deg); }
.ribbon { position: absolute; top: 14px; right: -34px; transform: rotate(35deg); padding: 4px 40px; background: var(--night); color: #fff; font-size: 12px; font-weight: 800; }
.card .body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.card h3 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.meta span { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.concept { background: color-mix(in srgb, var(--c) 16%, #fff); color: color-mix(in srgb, var(--c) 45%, #161c3d); }
.players { background: var(--chip); color: var(--chip-ink); }
.desc { margin: 0; color: var(--soft); font-size: 14.5px; line-height: 1.6; flex: 1; }
.notice { margin: 0; padding: 8px 10px; border-radius: 12px; background: #fff8e0; border: 1px solid #ffe7a3; color: #8a5f00; font-size: 13px; font-weight: 700; }
.play { align-self: flex-start; margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 15px; color: var(--ink); }
.play::after { content: '→'; color: var(--sky); transition: transform .4s var(--ease); }
a.card:hover .play::after { transform: translateX(5px); }
.card.soon { opacity: .75; }
.card.soon .play { color: var(--mute); }
.card.soon .play::after { content: ''; }
.skeleton { height: 330px; background: linear-gradient(90deg, #fff, #eef0f7, #fff); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.error, .empty { text-align: center; color: var(--soft); padding: 30px 16px; }

/* ---------- 아래쪽 (대문과 같은 모양) ---------- */
.foot { background: #080c26; color: #aab1d6; padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 15px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot a { color: inherit; text-decoration: none; transition: color .2s; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff !important; font-size: 16px; letter-spacing: -.01em; }
.foot-brand .brand-mark { width: 34px; }
.foot-brand span { color: #aab1d6; }
.foot-brand b { color: #fff; font-weight: 800; }
.foot-brand:hover span { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-left: auto; }
.foot-links a:hover { color: #fff; }
.foot-note { width: 100%; margin: 0; color: #8d95c0; font-size: 14px; }
.copy { width: 100%; margin: 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .09); color: #6f77a3; font-size: 14px; }
@media (max-width: 640px) { .foot-links { margin-left: 0; width: 100%; } }

/* ---------- 통합 로그인: 위쪽 칩과 로그인 창 (public/me.js) ---------- */
.me-bar { display: flex; justify-content: flex-end; align-items: center; gap: 8px; min-height: 40px; min-width: 0; }
.me-chip { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 40vw; height: 40px; padding: 0 14px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 14px; }
.me-chip b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-btn { flex: none; min-height: 40px; padding: 8px 16px; border-radius: 99px; border: 1px solid transparent; background: var(--grad); color: #fff; font: 700 14px/1 inherit; font-family: inherit; cursor: pointer; transition: transform .3s var(--ease); }
.me-btn:active { transform: scale(.97); }
.me-btn.ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .24); color: #fff; }
.me-btn.primary { background: var(--grad); color: #fff; border: 0; }
.me-btn:disabled { opacity: .6; cursor: default; }
.me-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(11, 16, 48, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.me-sheet { width: min(380px, 100%); display: flex; flex-direction: column; gap: 10px; padding: 24px 20px; border-radius: 26px; background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(11, 16, 48, .35); }
.me-sheet h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.me-sub, .me-fine { margin: 0; color: var(--soft); font-size: 14px; line-height: 1.45; }
.me-fine { font-size: 12px; color: var(--mute); }
.me-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 99px; background: var(--chip); }
.me-tabs button { min-height: 36px; border: 0; border-radius: 99px; background: transparent; color: var(--chip-ink); font: 700 14px/1 inherit; font-family: inherit; cursor: pointer; }
.me-tabs button[aria-pressed="true"] { background: #fff; color: var(--vio); box-shadow: 0 2px 8px rgba(22, 28, 61, .12); }
.me-sheet input { min-height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-soft); font: 600 16px/1 inherit; font-family: inherit; color: var(--ink); }
.me-sheet input:focus { outline: 2px solid var(--sky); border-color: transparent; }
.me-sheet .me-btn.ghost { background: #fff; border-color: var(--line); color: var(--soft); }
.me-msg { margin: 0; min-height: 1.2em; color: #d6406c; font-size: 13.5px; font-weight: 700; }
.me-row { display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- 휴대폰 ---------- */
@media (max-width: 560px) {
  .brand { font-size: 17px; gap: 8px; }
  .brand-mark { width: 34px; }
  .hero { padding-bottom: 32px; }
  .hero-in { padding-top: 14px; }
  .hero-tag { font-size: 15.5px; }
  .hero h1 { margin-top: 10px; }
  .hero-tag { margin-top: 10px; }
  .search { margin-top: 14px; }
  .search input { height: 50px; }
  .hero-links { margin-top: 12px; }
  .hero-links .btn { height: 40px; font-size: 14px; }
  .btn { height: 42px; padding: 0 18px; font-size: 14.5px; }
  .chart { padding: 26px 12px 4px; }
  .chart-head { margin-bottom: 12px; }
  .chart-head p:last-child { font-size: 13.5px; }
  .chart.loading { min-height: 322px; } .chart.loading .podium { height: 194px; }
  .jump.pending:empty { height: 55px; }
  .podium { gap: 8px; }
  .pod a { padding: 14px 6px 0; border-radius: 18px 18px 14px 14px; }
  .pod.r1 a { padding-top: 20px; }
  .medal { font-size: 20px; top: 6px; left: 7px; }
  .pod.r1 .medal { font-size: 24px; }
  .pod-art { width: 56px; height: 56px; }
  .pod.r1 .pod-art { width: 70px; height: 70px; }
  .pod-name { font-size: 13.5px; }
  .pod.r1 .pod-name { font-size: 15px; }
  .pod-meta { font-size: 11px; gap: 4px; }
  .step { margin: 6px -6px 0; height: 28px; font-size: 18px; }
  .pod.r1 .step { height: 42px; font-size: 22px; }
  .pod.r2 .step { height: 34px; }
  .jump { margin-top: 12px; }
  .jump a { height: 35px; font-size: 13px; padding: 0 12px; }
  .arrows { display: none; }
  .row { margin-top: 18px; }
  .row-head { margin-bottom: 6px; }
  .row-head h2 { font-size: 19px; }
  .row-head p { font-size: 12.5px; width: 100%; }
  .rail { gap: 10px; padding-bottom: 18px; }
  .rail .card { flex-basis: 42vw; max-width: 200px; }
  .row.found .rail .card { flex: 0 0 calc(50% - 5px); max-width: none; }
  .card { border-radius: 18px; }
  .card .art { height: 96px; }
  .card .art svg { width: 70px; height: 70px; }
  .card .body { padding: 10px 11px 12px; gap: 6px; }
  .card h3 { font-size: 16px; }
  .meta span { font-size: 10.5px; padding: 2px 7px; }
  .meta .concept { display: none; }
  .desc { font-size: 12.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .notice { font-size: 11.5px; padding: 6px 8px; }
  .play { font-size: 13px; }
  .ribbon { font-size: 10px; right: -38px; }
  .new { top: 8px; left: 8px; font-size: 10px; padding: 2px 7px; }
  .foot { font-size: 14px; }
}
@media (max-width: 380px) {
  .brand-name i { display: none; }
  .me-chip { max-width: 34vw; }
}

/* ---------- 움직임 줄이기 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .brand-head { animation: leap .8s .4s cubic-bezier(.3, 1.6, .5, 1) backwards; }
}
@keyframes leap {
  0% { opacity: 0; transform: translate(-14px, 14px) scale(.4); }
  55% { opacity: 1; transform: translate(6px, -6px) scale(1.08); }
  100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
