/* ============================================================
   YAVAWE 공식 홈페이지 (yavawe.com) — 2026-08-07
   ⚠️ 게임 화면(720×1280)과 달리 **PC·모바일 반응형** 이다.
   ⚠️ 색·둥근 모서리는 게임 안 파스텔 톤과 맞췄다.
   ============================================================ */

/* 🔤 웹폰트 — tools/fetch_webfonts.py 가 만든다(우리 서버에 두므로 방문자 정보가 안 나감).
   ⚠️ 여기 한 줄이라 generated 페이지(privacy.html)도 자동으로 따라온다. */
@import url("/fonts.css");

:root {
  --bg: #f4f5f8;
  --card: #ffffff;
  --line: #e6e8ee;
  --ink: #1b2430;
  --ink-soft: #5d6a7a;
  --ink-faint: #97a2b0;
  --pink: #ff7aa8;
  --blue: #4aa8ff;
  --yellow: #ffc44d;
  --green: #43d9a3;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(20, 32, 50, .06);
}

* { box-sizing: border-box; }

/* 🔤 글씨체 — 게임과 같은 방식으로 **영문·숫자와 한글을 나눠 쓴다**.
   ⚠️ Cherry Bomb One 에는 **한글이 없다**(구글 폰트 공식 subsets 에 korean 없음 · 실측 확인).
      그래서 앞에 두면 영문·숫자만 가져가고 한글은 자동으로 다음 폰트(Jua)가 그린다.
      게임의 Coiny + Jua 조합과 똑같은 구조라 앱과 톤이 맞는다. */
:root {
  --font-brand: "Cherry Bomb One", "Jua", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  /* 약관·방침 본문용 — 긴 글은 기기에 있는 읽기용 글씨체가 가장 편하다(내려받을 것도 없다) */
  --font-read: "Apple SD Gothic Neo", "Malgun Gothic", "Pretendard", system-ui, sans-serif;
}

/* 🇨🇳 중국어일 때는 **한자를 우리 폰트로 그리지 않는다**.
   🚨 Cherry Bomb One 은 일본어 폰트라 한자를 일부만 갖고 있어서, 그대로 두면
      한 문장 안에서 **일부 글자만 다른 글씨체**로 나온다(실측: 간체 392자 중 141자).
      같은 한자라도 일본어 자형은 중국어와 모양이 달라 어색하기도 하다.
   → 라틴만 담은 별칭(`YAVAWE Latin`)을 쓰고 한자는 기기 중국어 폰트에 맡긴다. */
html[lang="zh-Hans"] {
  --font-brand: "YAVAWE Latin", "PingFang SC", "Hiragino Sans GB",
                "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-read: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
html[lang="zh-Hant"] {
  --font-brand: "YAVAWE Latin", "PingFang TC", "Microsoft JhengHei",
                "Noto Sans CJK TC", sans-serif;
  --font-read: "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", sans-serif;
}
/* 🇯🇵 일본어는 반대다 — Cherry Bomb One 이 **원래 일본어 폰트**라 자형이 정확하다. */

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-brand);
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ── 헤더 ────────────────────────────────────────────── */
.top {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 22px 0 0;
}
.top-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
/* ⚠️ 세로 flex 안의 자식은 기본 min-width:auto 라 내용보다 안 줄어든다.
   그대로 두면 좁은 폰에서 내비게이션이 화면을 넘겨 **가로 스크롤**이 생긴다. */
.top-inner > * { max-width: 100%; min-width: 0; }

/* 🌐 언어 고르기 — 맨 위 오른쪽 */
.lang-bar { width: 100%; display: flex; justify-content: flex-end; margin-top: -8px; }
.lang-bar select {
  font-family: inherit; font-size: 13px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 10px; background: #fff; cursor: pointer;
}
.lang-bar select:hover { border-color: var(--pink); }

/* 🎲 로고 — 기본은 2D, .glb 가 있으면 3D 로 바뀐다
   🚨 모델이 없을 때 <model-viewer> 를 그대로 두면 **빈 상자**가 된다(실측).
      그래서 기본은 숨기고, 3D 가 실제로 그려진 뒤에만 `.is3d` 로 바꾼다.
   ⚠️ 첨부 코드의 인라인 style= 은 CSP 가 막으므로 전부 여기로 옮겼다. */
.logo { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.logo:hover { text-decoration: none; }

.logo3d, .logo-word { display: none; }
.logo-2d { display: block; width: 300px; height: auto; }

.logo.is3d .logo-2d { display: none; }
.logo.is3d .logo3d {
  display: block; width: 180px; height: 180px;
  background: transparent; --poster-color: transparent;
}
.logo.is3d .logo-word { display: block; width: 260px; height: auto; }

/* 3D 를 안 쓰는 페이지(약관 등) */
.logo-full { display: block; width: 300px; height: auto; }
.logo-full.small { width: 176px; }

@media (max-width: 700px) {
  .logo-2d, .logo-full { width: 220px; }
  .logo.is3d .logo3d { width: 132px; height: 132px; }
  .logo.is3d .logo-word { width: 200px; }
}

/* ♿ 움직임이 불편한 이용자는 회전을 멈춘다 (접근성 표준) */
@media (prefers-reduced-motion: reduce) {
  .logo.is3d .logo3d { --auto-rotate-delay: 999999ms; }
}

.search {
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--pink);
  border-radius: 999px;
  padding: 10px 18px;
  background: #fff;
}
.search input {
  flex: 1; border: 0; outline: 0; font-size: 15px; background: transparent; color: var(--ink);
}
.search input::placeholder { color: var(--ink-faint); }
.search button {
  border: 0; background: transparent; cursor: pointer; font-size: 18px; color: var(--pink);
  line-height: 1; padding: 0 2px;
}

/* ── 내비게이션 ──────────────────────────────────────── */
.nav { margin-top: 18px; border-top: 1px solid var(--line); width: 100%; }
.nav ul {
  display: flex; gap: 6px; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scrollbar-width: none; min-width: 0;
}
.nav ul::-webkit-scrollbar { display: none; }
.nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 14px 16px; font-weight: 700; font-size: 15px; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nav a:hover { color: var(--pink); border-bottom-color: var(--pink); text-decoration: none; }

/* ── 본문 레이아웃 ───────────────────────────────────── */
.main { display: grid; grid-template-columns: 1fr 340px; gap: 20px; padding: 22px 0 40px; }
@media (max-width: 900px) { .main { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px;
  margin-bottom: 18px;
}
.card h2 {
  margin: 0 0 14px; font-size: 17px; display: flex; align-items: center; gap: 8px;
}
.card h2 .more { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--ink-faint); }
.card .lead { color: var(--ink-soft); font-size: 14px; }
.card .lead:first-of-type { margin-top: 0; }
.card .fine { font-size: 12px; color: var(--ink-faint); margin: 12px 0 0; }
/* ⚠️ 인라인 style 대신 클래스 — CSP 를 'unsafe-inline' 없이 걸기 위함 */
.card .lead.flush { margin: 0; }
.card .lead.tight { margin: 0 0 12px; }

/* 바로가기 아이콘 */
.quick { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; text-align: center; }
@media (max-width: 700px) { .quick { grid-template-columns: repeat(5, 1fr); } }
.quick a { display: block; padding: 10px 2px; border-radius: 10px; font-size: 12px; color: var(--ink-soft); }
.quick a:hover { background: #f7f8fb; text-decoration: none; color: var(--pink); }
.quick .ico { display: block; font-size: 22px; margin-bottom: 4px; }

/* 소식 목록 */
.news { list-style: none; margin: 0; padding: 0; }
.news li { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.news li:last-child { border-bottom: 0; }
.news .tag {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; margin-right: 8px; color: #fff; background: var(--blue);
}
.news .tag.event { background: var(--pink); }
.news .tag.update { background: var(--green); }
.news .date { float: right; color: var(--ink-faint); font-size: 12px; }

/* 미니게임 소개 */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .games { grid-template-columns: repeat(2, 1fr); } }
.game {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center;
  background: #fbfcfe;
}
.game .emo { font-size: 30px; display: block; margin-bottom: 6px; }
.game b { display: block; font-size: 14px; }
.game span { font-size: 12px; color: var(--ink-soft); }

/* 사이드바 */
.side .btn {
  display: block; width: 100%; text-align: center; padding: 13px;
  border-radius: 10px; font-weight: 800; font-size: 15px; margin-bottom: 9px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
}
.side .btn:hover { text-decoration: none; filter: brightness(.97); }
.btn-primary { background: linear-gradient(90deg, #ff9bb9, #ffb98a); color: #fff; border: 0; }
.btn-google { color: #35414f; }
.btn-kakao { background: #fee500; border: 0; color: #3a2c00; }

.side .links { display: flex; justify-content: center; gap: 10px; font-size: 12px; color: var(--ink-faint); }

.promo { border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.promo h3 { margin: 0 0 6px; font-size: 16px; }
.promo p { margin: 0 0 12px; font-size: 13px; color: var(--ink-soft); }
.promo.cream { background: #f7f1e8; border: 1px solid #eadfd0; }
.promo.mint { background: #dcf7ea; border: 1px solid #bfeeda; }
.promo .go {
  display: inline-block; background: #232b36; color: #fff; padding: 8px 16px;
  border-radius: 999px; font-size: 13px; font-weight: 700;
}
.promo .go:hover { text-decoration: none; }

/* 검색을 눌렀을 때 뜨는 "준비 중" — 한 번 깜빡여 눈에 띄게 */
.soon.blink { animation: soonPop .5s ease; }
@keyframes soonPop { 0% { transform: scale(.7); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }

/* 준비 중 표시 */
.soon {
  display: inline-block; font-size: 11px; font-weight: 700; color: #8a6a00;
  background: #fff3cd; border: 1px solid #ffe08a; border-radius: 999px;
  padding: 1px 8px; margin-left: 6px; vertical-align: middle;
}

/* ── 푸터 ────────────────────────────────────────────── */
footer {
  background: var(--card); border-top: 1px solid var(--line);
  padding: 26px 0; text-align: center; font-size: 13px; color: var(--ink-soft);
}
footer nav { margin-bottom: 10px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
footer nav a { font-weight: 600; }
footer .copy { color: var(--ink-faint); font-size: 12px; }
footer .biz { color: var(--ink-faint); font-size: 12px; margin-top: 6px; }

/* ── 문서 페이지(약관·방침) ──────────────────────────── */
.doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; margin: 22px 0 40px; box-shadow: var(--shadow); }
.doc { overflow-wrap: anywhere; }   /* 긴 메일주소·URL 이 좁은 폰에서 화면을 밀지 않게 */
/* ⚠️ 약관·방침은 **읽는 문서**다. 제목은 브랜드 글씨체를 쓰되 본문·표는 읽기 좋은 쪽으로 둔다
   (Cherry Bomb One 은 장식용이라 긴 문장·숫자에 쓰면 눈이 피로하다). */
.doc p, .doc li, .doc td, .doc th { font-family: var(--font-read); }
.doc code { font-family: "Consolas", "D2Coding", ui-monospace, monospace; }
.doc h1 { font-size: 24px; margin-top: 0; }
@media (max-width: 700px) { .doc { padding: 20px 16px; } }
.doc h2 { font-size: 18px; margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 15px; margin-top: 18px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.doc th { background: #f7f8fb; }
.doc code { background: #f2f4f8; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.doc .fill {
  background: #fff3cd; border: 1px dashed #e0a800; border-radius: 4px;
  padding: 1px 6px; font-weight: 700; color: #7a5c00;
}
.doc .notice {
  background: #eef6ff; border: 1px solid #cfe4ff; border-radius: 10px;
  padding: 14px 16px; font-size: 14px; margin-bottom: 22px;
}

/* ── 404 ─────────────────────────────────────────────── */
.notfound { text-align: center; padding: 54px 24px; }
.notfound .nf-emo { font-size: 62px; line-height: 1; margin-bottom: 10px; }
.notfound h1 { border: 0; }
.notfound p { color: var(--ink-soft); font-family: var(--font-read); }
.notfound .nf-btn { display: inline-block; width: auto; padding: 12px 26px; }
.notfound .nf-links { font-size: 13px; color: var(--ink-faint); }

/* 👤 내 게임 계정 카드 */
.acc-name { font-size: 18px; margin-bottom: 10px; }
.acc-stats { margin-bottom: 10px; }
.acc-row {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 14px; padding: 6px 0; border-bottom: 1px dashed var(--line);
}
.acc-row:last-child { border-bottom: 0; }
.acc-row span { color: var(--ink-soft); }
.acc-mail { font-size: 12px; color: var(--ink-faint); margin-bottom: 10px; word-break: break-all; }
.side .fine { font-size: 12px; color: var(--ink-faint); margin: 8px 0 0; }
.acc-err { color: #c0392b; }

/* ============================================================
   YAVAWE COMMUNITY HOME — 2026-08-09
   동네 모임·길드·토너먼트·게임 피드를 중심으로 재구성한 홈 전용 스타일.
   약관/고객센터 페이지는 위의 기존 문서 스타일을 그대로 사용한다.
   ============================================================ */

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.community-home {
  --c-navy: #102a3d;
  --c-navy-2: #173c52;
  --c-teal: #43c9bd;
  --c-teal-deep: #159d96;
  --c-coral: #ff7f7c;
  --c-pink: #f7a6bd;
  --c-lavender: #9181e8;
  --c-gold: #efbd57;
  --c-cream: #fffaf2;
  --c-paper: #ffffff;
  --c-mist: #f3f8f7;
  --c-line: #dce9e6;
  --c-soft: #607684;
  margin: 0;
  background: var(--c-cream);
  color: var(--c-navy);
  font-family: var(--font-brand);
  line-height: 1.55;
  overflow-x: hidden;
}

.community-home button,
.community-home input { font: inherit; }
.community-home button { color: inherit; }
.community-home svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.community-home a:hover { text-decoration: none; }
.section-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 242, .9);
  border-bottom: 1px solid rgba(16, 42, 61, .08);
  box-shadow: 0 10px 30px rgba(16, 42, 61, .05);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.site-header__inner {
  width: min(1240px, calc(100% - 32px)); height: 76px; margin: 0 auto;
  display: grid; grid-template-columns: auto minmax(260px, 380px) 1fr auto;
  align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.brand__mark { width: 42px; height: 42px; object-fit: contain; }
.brand__word { width: 122px; height: auto; object-fit: contain; }
.community-search {
  height: 44px; display: flex; align-items: center; gap: 10px;
  padding: 0 12px 0 15px; border: 1px solid var(--c-line); border-radius: 14px;
  background: rgba(255,255,255,.84); transition: .2s ease;
}
.community-search:focus-within { border-color: var(--c-teal); box-shadow: 0 0 0 4px rgba(67,201,189,.12); }
.community-search svg { width: 19px; color: #78909c; }
.community-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--c-navy); font-family: var(--font-read); font-size: 14px; }
.community-search input::placeholder { color: #94a6ad; }
.community-search kbd { padding: 2px 7px; border: 1px solid #dae5e3; border-radius: 6px; background: #f5f8f7; color: #8ca0a8; font: 11px var(--font-read); white-space: nowrap; }
.desktop-nav { display: flex; justify-content: center; align-items: center; gap: 4px; }
.desktop-nav a { position: relative; padding: 27px 10px 24px; font-size: 14px; color: #556b78; white-space: nowrap; }
.desktop-nav a::after { content: ""; position: absolute; left: 50%; bottom: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--c-coral); opacity: 0; transform: translate(-50%, 5px); transition: .2s ease; }
.desktop-nav a:hover, .desktop-nav a.is-active { color: var(--c-navy); }
.desktop-nav a.is-active::after { opacity: 1; transform: translate(-50%, 0); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.community-home .lang-bar { width: auto; margin: 0; }
.community-home .lang-bar select { height: 38px; padding: 0 10px; border: 1px solid var(--c-line); background: rgba(255,255,255,.8); color: var(--c-navy); }
.icon-button, .mobile-menu-button {
  position: relative; width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--c-line); border-radius: 13px; background: rgba(255,255,255,.84); cursor: pointer;
}
.icon-button svg, .mobile-menu-button svg { width: 19px; }
.notice-dot { position: absolute; right: 7px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--c-coral); border: 2px solid #fff; }
.mobile-menu-button { display: none; }
.primary-button, .secondary-button, .location-button, .text-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 20px; border-radius: 15px; border: 0; cursor: pointer;
  font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.primary-button { background: var(--c-navy); color: white !important; box-shadow: 0 12px 22px rgba(16,42,61,.17); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 16px 28px rgba(16,42,61,.22); }
.primary-button svg { width: 18px; }
.primary-button--small { min-height: 42px; padding: 0 15px; border-radius: 13px; font-size: 13px; }
.primary-button--small svg { width: 17px; }
.secondary-button { border: 1px solid var(--c-line); background: rgba(255,255,255,.8); color: var(--c-navy); }
.secondary-button:hover { border-color: var(--c-teal); background: #fff; transform: translateY(-2px); }

/* hero */
.hero-shell { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, #fffaf2 0%, #f5fbf9 100%); border-bottom: 1px solid #e5efec; }
.hero-shell::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .27; background-image: linear-gradient(rgba(16,42,61,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(16,42,61,.035) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, black, transparent 92%); }
.hero { width: min(1180px, calc(100% - 40px)); min-height: 580px; margin: 0 auto; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 70px; padding: 74px 0 82px; }
.hero__copy { position: relative; z-index: 2; }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--c-teal-deep); font-size: 12px; letter-spacing: .09em; font-weight: 800; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-coral); box-shadow: 0 0 0 5px rgba(255,127,124,.13); }
.hero h1 { margin: 18px 0 18px; color: var(--c-navy); font-size: clamp(44px, 5.1vw, 68px); line-height: 1.12; letter-spacing: -.035em; }
.hero h1 em { color: var(--c-coral); font-style: normal; position: relative; }
.hero h1 em::after { content: ""; position: absolute; height: 7px; border-radius: 999px; left: 2%; right: 2%; bottom: -4px; background: rgba(255,127,124,.18); transform: rotate(-1deg); }
.hero__copy > p { margin: 0; color: var(--c-soft); font-family: var(--font-read); font-size: 18px; line-height: 1.72; }
.hero__actions { display: flex; gap: 12px; margin-top: 30px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 30px; color: #71858e; font: 12px var(--font-read); }
.hero__proof span { display: inline-flex; align-items: center; gap: 6px; }
.hero__proof svg { width: 16px; height: 16px; color: var(--c-teal-deep); }
.hero__visual { position: relative; min-height: 430px; display: grid; place-items: center; }
.hero-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(4px); opacity: .7; }
.hero-glow--one { width: 420px; height: 420px; right: 4%; top: 12%; background: radial-gradient(circle, rgba(67,201,189,.23), transparent 67%); }
.hero-glow--two { width: 280px; height: 280px; left: 2%; bottom: -80px; background: radial-gradient(circle, rgba(247,166,189,.19), transparent 70%); }
.orbit { position: absolute; border: 1px dashed rgba(67,201,189,.25); border-radius: 50%; }
.orbit--one { width: 420px; height: 420px; animation: rotateOrbit 22s linear infinite; }
.orbit--two { width: 330px; height: 330px; animation: rotateOrbit 15s linear reverse infinite; }
@keyframes rotateOrbit { to { transform: rotate(360deg); } }
.nearby-card { position: relative; z-index: 2; width: min(100%, 430px); padding: 23px; border: 1px solid rgba(255,255,255,.9); border-radius: 27px; background: rgba(255,255,255,.88); box-shadow: 0 28px 70px rgba(34,89,102,.16), inset 0 0 0 1px rgba(67,201,189,.12); backdrop-filter: blur(15px); transform: rotate(1.5deg); }
.nearby-card__head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 17px; }
.nearby-card__head div span { display: block; color: #84979f; font-size: 12px; }
.nearby-card__head div strong { display: block; margin-top: 2px; font-size: 20px; }
.distance-pill { padding: 6px 10px; border-radius: 999px; background: #e8faf6; color: var(--c-teal-deep); font-size: 11px; }
.mini-meetup { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 13px; margin-top: 10px; border-radius: 17px; background: #f7f9f9; }
.mini-meetup__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: white; }
.mini-meetup--coral .mini-meetup__icon { background: linear-gradient(145deg, #ff968d, #ff6f78); }
.mini-meetup--mint .mini-meetup__icon { background: linear-gradient(145deg, #5dd8c8, #2ab3aa); }
.mini-meetup strong, .mini-meetup span { display: block; }
.mini-meetup strong { font-size: 13px; }
.mini-meetup div > span { margin-top: 3px; color: #7f939b; font: 11px var(--font-read); }
.avatar-stack { display: flex; padding-left: 8px; }
.avatar-stack i { width: 27px; height: 27px; margin-left: -8px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #ffe7de; color: #a6564d; font-style: normal; font-size: 10px; }
.avatar-stack i:nth-child(2) { background: #e4f5ed; color: #31776e; }
.avatar-stack i:nth-child(3) { background: #e8e4fa; color: #6554aa; }
.join-chip { padding: 6px 8px; border-radius: 8px; background: #ddf6f1; color: var(--c-teal-deep); font-size: 9px; letter-spacing: .08em; }
.nearby-card__more { display: flex; align-items: center; justify-content: center; gap: 7px; padding-top: 17px; margin-top: 13px; border-top: 1px dashed var(--c-line); color: var(--c-navy); font-size: 12px; }
.nearby-card__more svg { width: 15px; }
.floating-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.85); border-radius: 15px; background: rgba(255,255,255,.92); box-shadow: 0 14px 36px rgba(34,89,102,.13); font-size: 11px; }
.floating-chip svg { width: 20px; color: var(--c-coral); }
.floating-chip span, .floating-chip b { display: block; }
.floating-chip span { color: #7a8c94; }
.floating-chip b { color: var(--c-navy); }
.floating-chip--guild { top: 8px; left: -16px; transform: rotate(-4deg); }
.floating-chip--safe { right: -20px; bottom: 20px; transform: rotate(3deg); }
.floating-chip--safe svg { color: var(--c-teal-deep); }

/* feed */
.community-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; padding-top: 76px; padding-bottom: 80px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading h2 { margin: 5px 0 0; font-size: 31px; line-height: 1.2; letter-spacing: -.02em; }
.section-heading p { margin: 8px 0 0; color: var(--c-soft); font: 14px var(--font-read); }
.location-button { min-height: 42px; padding: 0 13px; border: 1px solid var(--c-line); background: #fff; font-size: 12px; }
.location-button svg { width: 17px; color: var(--c-coral); }
.location-button .chevron { width: 14px; margin-left: 4px; transform: rotate(90deg); color: #87999f; }
.feed-tabs { display: flex; gap: 8px; margin-bottom: 15px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
.feed-tabs::-webkit-scrollbar { display: none; }
.feed-tabs button { flex: none; padding: 9px 14px; border: 1px solid var(--c-line); border-radius: 999px; background: #fff; color: #73868f; cursor: pointer; font-size: 12px; }
.feed-tabs button:hover, .feed-tabs button.is-active { border-color: var(--c-navy); background: var(--c-navy); color: #fff; }
.compose-prompt { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 14px; margin-bottom: 14px; border: 1px solid var(--c-line); border-radius: 17px; background: #fff; color: #82949b; cursor: pointer; text-align: left; }
.compose-avatar { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #60d6c7, #81e3d8); color: white; }
.compose-icon { width: 31px; height: 31px; margin-left: auto; display: grid; place-items: center; border-radius: 10px; background: #f0f8f6; color: var(--c-teal-deep); }
.compose-icon svg { width: 17px; }
.feed-card { margin-bottom: 14px; overflow: hidden; border: 1px solid var(--c-line); border-radius: 20px; background: #fff; box-shadow: 0 6px 22px rgba(25,64,78,.045); transition: transform .2s ease, box-shadow .2s ease; }
.feed-card:hover { transform: translateY(-2px); box-shadow: 0 13px 32px rgba(25,64,78,.09); }
.feed-card[hidden] { display: none; }
.feed-card__top, .feed-card__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 19px; }
.feed-card__top { padding-bottom: 10px; }
.feed-card__bottom { border-top: 1px solid #edf2f1; padding-block: 12px; }
.user-line { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; color: #fff; font-size: 12px; }
.avatar-coral { background: linear-gradient(145deg, #ff9e91, #f27178); }
.avatar-navy { background: linear-gradient(145deg, #294f68, #102a3d); }
.avatar-lavender { background: linear-gradient(145deg, #aea1f1, #8170dc); }
.avatar-mint { background: linear-gradient(145deg, #66d8c9, #28aaa2); }
.user-line strong, .user-line span { display: block; }
.user-line strong { font-size: 13px; }
.user-line span { margin-top: 1px; color: #8a9ca3; font: 11px var(--font-read); }
.category-badge { padding: 5px 9px; border-radius: 999px; font-size: 10px; }
.category-badge--coral { background: #fff0ed; color: #d75e5c; }
.category-badge--gold { background: #fff6dc; color: #987021; }
.category-badge--lavender { background: #f0edff; color: #6a5abb; }
.category-badge--mint { background: #e9faf6; color: #168f88; }
.feed-card__body { padding: 4px 19px 17px; }
.feed-card__body h3 { margin: 0; font-size: 19px; line-height: 1.35; }
.feed-card__body p { margin: 8px 0 0; color: #657983; font: 14px/1.65 var(--font-read); }
.meetup-detail { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 15px; color: #60757f; font: 12px var(--font-read); }
.meetup-detail span { display: inline-flex; align-items: center; gap: 6px; }
.meetup-detail svg { width: 15px; color: var(--c-teal-deep); }
.engagement { display: flex; gap: 5px; }
.engagement button { min-width: 35px; height: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 10px; background: transparent; color: #84969e; cursor: pointer; font: 11px var(--font-read); }
.engagement button:hover { background: #f1f7f6; color: var(--c-coral); }
.engagement svg { width: 17px; }
.join-button { min-width: 88px; height: 34px; padding: 0 13px; border: 0; border-radius: 11px; background: #fff0ed; color: #d65d5a; cursor: pointer; font-size: 11px; }
.join-button--gold { background: #fff5d9; color: #8d6722; }
.join-button--mint { background: #e7f9f5; color: #128b83; }
.text-button { min-height: 34px; padding: 0; background: transparent; color: var(--c-teal-deep); font-size: 11px; }
.text-button svg { width: 15px; }
.tournament-cover { position: relative; min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(135deg, #123247, #1d6270); color: white; }
.tournament-cover__pattern { position: absolute; inset: -20%; background: repeating-radial-gradient(circle at center, transparent 0 20px, rgba(255,255,255,.045) 21px 22px); }
.tournament-cover::before, .tournament-cover::after { content: ""; position: absolute; width: 160px; height: 160px; border: 1px solid rgba(255,255,255,.13); transform: rotate(45deg); }
.tournament-cover::before { left: -80px; }
.tournament-cover::after { right: -80px; }
.tournament-cover span, .tournament-cover strong, .tournament-cover small { position: relative; z-index: 2; }
.tournament-cover span { color: #8edbd3; font-size: 11px; letter-spacing: .28em; }
.tournament-cover strong { margin: -3px 0; color: #fff1ca; font-size: 50px; letter-spacing: .05em; line-height: 1.15; }
.tournament-cover small { font: 9px var(--font-read); letter-spacing: .13em; opacity: .75; }
.story-body { display: grid; grid-template-columns: 1fr 150px; align-items: center; gap: 20px; }
.story-stats { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 14px; padding: 7px 10px; border-radius: 10px; background: #f3f0ff; color: #6b5db8; font-size: 11px; }
.story-stats strong { font-size: 16px; }
.catch-art { height: 115px; display: grid; place-items: center; position: relative; overflow: hidden; border-radius: 17px; background: linear-gradient(150deg, #62d3cb, #278eaf); color: white; }
.catch-art svg { position: absolute; width: 105px; height: 105px; opacity: .33; transform: rotate(-8deg); }
.catch-art span { position: relative; z-index: 1; font-size: 13px; line-height: 1.2; text-align: center; letter-spacing: .12em; }
.empty-search { padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 7px; border: 1px dashed var(--c-line); border-radius: 20px; background: #fff; color: #8ba0a7; }
.empty-search[hidden] { display: none; }
.empty-search svg { width: 35px; height: 35px; margin-bottom: 4px; }
.empty-search strong { color: var(--c-navy); }
.empty-search span { font: 13px var(--font-read); }

/* sidebar */
.community-sidebar { padding-top: 79px; }
.sidebar-card { padding: 20px; margin-bottom: 14px; border: 1px solid var(--c-line); border-radius: 20px; background: #fff; box-shadow: 0 6px 22px rgba(25,64,78,.04); }
.sidebar-card__title { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 15px; }
.sidebar-card__title span { display: block; color: var(--c-teal-deep); font-size: 9px; letter-spacing: .16em; }
.sidebar-card__title h3 { margin: 3px 0 0; font-size: 17px; }
.sidebar-card__title > svg { width: 32px; height: 32px; color: var(--c-coral); }
.sidebar-card__title > a { color: #87999f; font-size: 11px; }
.account-card { background: linear-gradient(145deg, #15364b, #0e2738); border-color: transparent; color: #fff; }
.account-card .sidebar-card__title span { color: #74d8cf; }
.account-card .sidebar-card__title > svg { color: #ffd087; }
.account-card p { margin: 0 0 14px; color: #bed0d8; font: 12px/1.6 var(--font-read); }
.account-login { width: 100%; height: 40px; border: 0; border-radius: 12px; background: #fff; color: var(--c-navy); cursor: pointer; font-weight: 700; }
.account-login--light { margin-top: 10px; background: rgba(255,255,255,.13); color: #fff; }
.account-login + .account-login { margin-top: 8px; }
.account-login:disabled { cursor: wait; opacity: .62; }
.account-note { margin-top: 10px !important; margin-bottom: 0 !important; color: #809ba8 !important; font-size: 10px !important; }
.account-card .acc-name { color: #fff; }
.account-card .acc-row { border-color: rgba(255,255,255,.1); }
.account-card .acc-row span, .account-card .acc-mail { color: #9eb5bf; }

/* sidebar ad card */
.sidebar-ad-card { background: #ffffff; }
.sidebar-ad-card .sidebar-card__title { margin-bottom: 12px; }
.sidebar-ad-card .sidebar-card__title span { color: #7997a3; }
.sidebar-ad-card .sidebar-card__title h3 { color: var(--c-navy); }
.ad-badge { display: inline-flex; align-items: center; justify-content: center; padding: 2px 7px; border-radius: 6px; background: #edf4f6; color: #6d8894; font: 700 9px/1.3 var(--font-read); letter-spacing: .06em; }
.ad-unit-box { position: relative; min-height: 120px; max-width: 100%; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: #f7fafb; overflow: hidden; }
.ad-unit-box ins.adsbygoogle { display: block; width: 100%; min-height: 100px; }

/* 통합 계정 로그인/연동 */
.account-auth-modal[hidden] { display: none; }
.account-auth-modal { position: fixed; inset: 0; z-index: 1600; display: grid; place-items: center; padding: 18px; }
.account-auth-modal__backdrop { position: absolute; inset: 0; border: 0; background: rgba(5, 22, 34, .66); backdrop-filter: blur(8px); cursor: pointer; }
.account-auth-modal__panel { position: relative; width: min(520px, 100%); max-height: min(760px, calc(100vh - 36px)); overflow: auto; border: 1px solid rgba(77, 197, 219, .45); border-radius: 26px; padding: 28px; background: linear-gradient(155deg, rgba(255,255,255,.98), rgba(239,249,252,.98)); box-shadow: 0 28px 80px rgba(4, 31, 48, .3); color: var(--c-navy); }
.account-auth-modal__close { position: absolute; top: 15px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #e8f5f7; color: var(--c-navy); font-size: 24px; cursor: pointer; }
.account-auth-modal__panel h2 { margin: 0 42px 6px 0; font-size: 28px; }
.account-auth-modal__lead { margin: 0 0 20px; color: var(--ink-soft); font: 14px/1.6 var(--font-read); }
.account-auth-provider-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.account-auth-provider { min-height: 48px; display: flex; align-items: center; justify-content: flex-start; gap: 11px; padding: 0 15px; border: 1px solid #cddfe5; border-radius: 14px; background: #fff; color: var(--c-navy); font-weight: 800; text-align: left; cursor: pointer; }
.account-auth-provider__logo { width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; }
.account-auth-provider span { min-width: 0; flex: 1; line-height: 1.25; }
.account-auth-provider:hover { border-color: #4bc5d9; transform: translateY(-1px); }
.account-auth-provider.is-linked { border-color: #7ac9a4; background: #edf9f2; color: #287653; cursor: default; }
.account-auth-provider:disabled { opacity: .72; background: #f7fafb; color: #718893; cursor: not-allowed; transform: none; }
.account-auth-provider:disabled .account-auth-provider__logo { opacity: .82; }
.account-auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #7a929d; font-size: 12px; }
.account-auth-divider::before, .account-auth-divider::after { content: ""; flex: 1; height: 1px; background: #d9e7eb; }
.account-auth-fields { display: grid; gap: 10px; }
.account-auth-fields label { display: grid; gap: 6px; color: #415d6a; font: 700 13px/1.4 var(--font-read); }
.account-auth-fields input { width: 100%; min-height: 46px; border: 1px solid #cbdde3; border-radius: 13px; padding: 0 14px; background: #fff; color: var(--c-navy); font: 16px var(--font-read); box-sizing: border-box; }
.account-auth-fields input:focus { outline: 3px solid rgba(65, 192, 216, .18); border-color: #41c0d8; }
.account-auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.account-auth-actions button { min-height: 46px; border: 0; border-radius: 13px; background: #173b51; color: #fff; font-weight: 800; cursor: pointer; }
.account-auth-actions button:last-child { background: #47bfd3; }
.account-auth-reset { display: block; margin: 10px auto 0; border: 0; background: transparent; color: #397d92; text-decoration: underline; cursor: pointer; }
.account-auth-info { margin: 18px 0 0; padding: 13px 14px; border-radius: 14px; background: #eef5f7; color: #526d79; font: 12px/1.6 var(--font-read); }
.account-auth-status { min-height: 20px; margin: 14px 0 0; color: #287653; font: 700 13px/1.5 var(--font-read); }
.account-auth-status.is-error { color: #bd3e47; }
body.account-auth-open { overflow: hidden; }

@media (max-width: 560px) {
  .account-auth-modal__panel { padding: 24px 18px; border-radius: 22px; }
  .account-auth-provider-grid, .account-auth-actions { grid-template-columns: 1fr; }
}
.schedule-list, .trend-list { list-style: none; margin: 0; padding: 0; }
.schedule-list li { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 11px; padding: 11px 0; border-top: 1px solid #edf2f1; }
.schedule-list time { height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; background: #f2f8f6; }
.schedule-list time b { font-size: 16px; line-height: 1; }
.schedule-list time small { margin-top: 3px; color: var(--c-teal-deep); font-size: 8px; letter-spacing: .08em; }
.schedule-list div strong, .schedule-list div span { display: block; }
.schedule-list div strong { font-size: 12px; }
.schedule-list div span { color: #8a9ca3; font: 10px var(--font-read); }
.schedule-status { color: var(--c-coral); font-style: normal; font-size: 8px; }
.trend-list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid #edf2f1; }
.trend-list > li > b { color: #c7d4d4; font-size: 14px; }
.trend-list a strong, .trend-list a span { display: block; }
.trend-list a strong { font-size: 12px; }
.trend-list a span { margin-top: 3px; color: #8ca0a7; font: 10px var(--font-read); }

/* guild / tournament / game */
.guild-section { padding-bottom: 90px; }
.section-heading--center { align-items: end; }
.guild-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guild-card { position: relative; min-height: 250px; padding: 23px; overflow: hidden; border-radius: 23px; color: #fff; }
.guild-card::after { content: ""; position: absolute; width: 170px; height: 170px; right: -60px; bottom: -80px; border: 22px solid rgba(255,255,255,.07); border-radius: 50%; }
.guild-card--navy { background: linear-gradient(145deg, #173d54, #10283a); }
.guild-card--coral { background: linear-gradient(145deg, #ee8d88, #d96d74); }
.guild-card--mint { background: linear-gradient(145deg, #38bdb3, #187f86); }
.guild-emblem { width: 55px; height: 55px; display: grid; place-items: center; margin-bottom: 25px; border: 1px solid rgba(255,255,255,.4); border-radius: 18px; background: rgba(255,255,255,.12); font-size: 22px; }
.guild-tag { font: 10px var(--font-read); opacity: .72; }
.guild-card h3 { margin: 5px 0 2px; font-size: 23px; }
.guild-card p { margin: 0; font: 12px var(--font-read); opacity: .8; }
.guild-card > div:last-child { position: absolute; left: 23px; right: 23px; bottom: 20px; display: flex; justify-content: space-between; font: 10px var(--font-read); opacity: .8; }
.ranked-section { margin-bottom: 70px; padding: 48px; overflow: hidden; border: 1px solid rgba(113,205,199,.42); border-radius: 32px; background: radial-gradient(circle at 50% 0, rgba(201,248,244,.82), transparent 42%), linear-gradient(145deg, #fffdfb, #eef9f8 55%, #eef2ff); box-shadow: 0 24px 70px rgba(22,79,94,.12); }
.ranked-section__heading { max-width: 760px; margin: 0 auto; text-align: center; }
.ranked-section__heading h2 { margin: 9px 0 14px; color: var(--c-navy); font-size: 36px; line-height: 1.22; }
.ranked-section__heading p { margin: 0; color: var(--c-soft); font: 15px/1.7 var(--font-read); }
.ranked-rules { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 24px 0 30px; }
.ranked-rules span { padding: 10px 15px; border: 1px solid rgba(68,172,171,.28); border-radius: 999px; background: rgba(255,255,255,.76); color: #5f7a87; font: 12px var(--font-read); box-shadow: inset 0 1px rgba(255,255,255,.9); }
.ranked-rules b { margin-right: 5px; color: var(--c-teal-deep); }
.ranked-cup-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.ranked-cup-card { position: relative; min-width: 0; padding: 14px 10px 13px; overflow: hidden; border: 1px solid rgba(97,137,157,.18); border-radius: 22px; background: rgba(255,255,255,.84); box-shadow: 0 12px 28px rgba(24,65,83,.08); text-align: center; transition: transform .22s ease, box-shadow .22s ease; }
.ranked-cup-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #f4a8c5, #b8a7e9, #86d8e8); opacity: .78; }
.ranked-cup-card:hover { transform: translateY(-5px); box-shadow: 0 18px 34px rgba(24,65,83,.15); }
.ranked-cup-card img { width: min(100%, 142px); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(18,39,51,.16)); }
.ranked-cup-card strong, .ranked-cup-card span { display: block; overflow: hidden; text-overflow: ellipsis; }
.ranked-cup-card strong { margin-top: 2px; color: var(--c-navy); font-size: 12px; letter-spacing: .08em; }
/* 🚨 색이 배경과 비슷해 잘 안 보였다(대비 3.2) — 5.16 으로 올리고 글씨도 키웠다 */
.ranked-cup-card span { margin-top: 3px; color: #55707e; font: 12px var(--font-read); }
.ranked-section__note { margin: 22px 0 0; color: #78909a; text-align: center; font: 11px/1.5 var(--font-read); }

.local-cup { min-height: 310px; display: grid; grid-template-columns: 260px 1fr auto; align-items: center; gap: 35px; margin-bottom: 90px; padding: 42px 50px; overflow: hidden; border-radius: 30px; background: linear-gradient(135deg, #173d52, #0f283b); color: white; }
.local-cup__art { position: relative; height: 210px; display: grid; place-items: center; }
.local-cup__art > svg { position: relative; z-index: 2; width: 92px; height: 92px; color: #f4c86f; stroke-width: 1.3; }
.cup-ring { position: absolute; border: 1px solid rgba(111,224,213,.25); border-radius: 50%; }
.cup-ring--one { width: 170px; height: 170px; }
.cup-ring--two { width: 225px; height: 225px; border-style: dashed; animation: rotateOrbit 20s linear infinite; }
.local-cup__copy > span { color: #70d8cf; font-size: 10px; letter-spacing: .18em; }
.local-cup__copy h2 { margin: 7px 0 11px; font-size: 34px; line-height: 1.25; }
.local-cup__copy p { max-width: 540px; margin: 0; color: #b7cad2; font: 14px/1.65 var(--font-read); }
.primary-button--cream { background: #fff2ca; color: #19374a !important; box-shadow: none; white-space: nowrap; }
.game-intro { display: grid; grid-template-columns: .85fr 1.15fr; gap: 65px; align-items: center; padding: 10px 0 100px; }
.game-intro__copy h2 { margin: 9px 0 17px; font-size: 36px; line-height: 1.25; }
.game-intro__copy p { max-width: 490px; margin: 0 0 25px; color: var(--c-soft); font: 15px/1.75 var(--font-read); }
.game-intro__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* game story collection */
.game-library { margin-bottom: 90px; padding: 55px; overflow: hidden; border: 1px solid rgba(103,190,194,.3); border-radius: 34px; background: radial-gradient(circle at 100% 0, rgba(147,226,229,.25), transparent 35%), linear-gradient(145deg,#fffdfb,#f4fbfa 58%,#f1f4ff); box-shadow: 0 26px 75px rgba(24,73,91,.11); }
.game-library__heading { max-width: 760px; margin: 0 auto; text-align: center; }
.game-library__heading h2 { margin: 9px 0 15px; color: var(--c-navy); font-size: clamp(32px,4vw,45px); line-height: 1.2; }
.game-library__heading p { margin: 0; color: var(--c-soft); font: 14px/1.75 var(--font-read); }
.game-library__tabs { display: flex; justify-content: center; gap: 8px; margin: 30px 0 24px; padding: 7px; border: 1px solid rgba(84,157,165,.22); border-radius: 18px; background: rgba(255,255,255,.72); }
.game-library__tabs button { flex: 1; min-width: 0; height: 45px; padding: 0 12px; border: 0; border-radius: 13px; background: transparent; color: #6c828e; font: 800 12px var(--font-read); cursor: pointer; transition: .2s ease; }
.game-library__tabs button:hover { color: var(--c-navy); background: rgba(220,245,243,.7); }
.game-library__tabs button.is-active { color: #fff; background: linear-gradient(135deg,#173d52,#42aeb0); box-shadow: 0 9px 20px rgba(28,111,120,.22); }
.game-library__panel[hidden] { display: none; }
.game-library__panel { min-height: 330px; animation: libraryPanelIn .32s ease both; }
@keyframes libraryPanelIn { from { opacity: 0; transform: translateY(8px); } }
.collection-feature { min-height: 330px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 35px; align-items: center; padding: 30px 42px; overflow: hidden; border: 1px solid rgba(112,171,177,.18); border-radius: 27px; background: rgba(255,255,255,.73); }
.collection-feature--ranked { background: radial-gradient(circle at 70% 30%,rgba(244,207,101,.16),transparent 40%),rgba(255,255,255,.73); }
.collection-feature__copy small { color: var(--c-coral); font: 900 10px var(--font-read); letter-spacing: .14em; }
.collection-feature__copy h3 { margin: 9px 0 12px; color: var(--c-navy); font-size: 30px; line-height: 1.25; }
.collection-feature__copy p { margin: 0 0 20px; color: #71848d; font: 13px/1.7 var(--font-read); }
.collection-link { display: inline-flex; align-items: center; gap: 7px; color: var(--c-teal-deep); font: 850 12px var(--font-read); }
.collection-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.crew-preview { height: 270px; display: flex; align-items: end; justify-content: center; }
.crew-preview img { width: 25%; max-height: 260px; object-fit: contain; filter: drop-shadow(0 15px 12px rgba(30,73,93,.17)); transition: transform .22s ease; }
.crew-preview img:nth-child(2), .crew-preview img:nth-child(3) { width: 30%; margin-inline: -5%; }
.crew-preview img:hover { z-index: 2; transform: translateY(-8px) scale(1.04); }
.rank-preview { display: flex; align-items: center; justify-content: center; }
.rank-preview img { width: 21%; margin-inline: -2%; object-fit: contain; filter: drop-shadow(0 13px 13px rgba(45,42,58,.2)); }
.rank-preview img:nth-child(3) { z-index: 2; width: 29%; }
.collection-grid { display: grid; gap: 12px; }
.collection-grid--eight { grid-template-columns: repeat(4,minmax(0,1fr)); }
.collection-grid article { position: relative; min-width: 0; padding: 13px; overflow: hidden; border: 1px solid rgba(104,155,169,.19); border-radius: 20px; background: rgba(255,255,255,.78); box-shadow: 0 10px 24px rgba(24,73,91,.06); text-align: center; }
.collection-grid article::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg,#f4a5c0,#7ed4d5,#bcb4ed); opacity: .8; }
.collection-grid img { width: 100%; height: 125px; object-fit: contain; transition: transform .22s ease; }
.collection-grid article:hover img { transform: translateY(-4px) scale(1.04); }
.collection-grid strong, .collection-grid span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.collection-grid strong { margin-top: 6px; color: var(--c-navy); font: 800 12px var(--font-read); }
.collection-grid span { margin-top: 4px; color: #91a0a7; font: 9px var(--font-read); letter-spacing: .08em; }
.collection-grid--ships img { height: 172px; border-radius: 13px; object-fit: cover; object-position: center 43%; }
.collection-grid--items img { height: 135px; }
.dice-material-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.dice-material-grid article { padding: 22px; border: 1px solid rgba(104,155,169,.2); border-radius: 24px; background: rgba(255,255,255,.8); text-align: center; }
.dice-material-grid article > div { height: 190px; display: grid; place-items: center; border-radius: 18px; background: radial-gradient(circle,#fff 15%,#e7f5f4 55%,transparent 70%); }
.dice-material-grid img { width: 170px; height: 170px; object-fit: contain; filter: drop-shadow(0 17px 14px rgba(29,58,71,.17)); transition: transform .25s ease; }
.dice-material-grid article:hover img { transform: translateY(-7px) rotate(-3deg); }
.dice-material-grid small { display: block; margin-top: 10px; color: var(--c-coral); font: 900 9px var(--font-read); letter-spacing: .15em; }
.dice-material-grid strong { display: block; margin-top: 4px; color: var(--c-navy); font-size: 17px; }
.dice-material-grid p { margin: 7px 0 0; color: #82949c; font: 11px/1.55 var(--font-read); }
.game-library__actions { display: flex; align-items: center; justify-content: center; gap: 11px; margin-top: 24px; }
.secondary-button--crew { border-color: rgba(79, 209, 197, .7); color: #0d766d; }
.game-mode-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.game-mode-grid span { min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; border: 1px solid var(--c-line); border-radius: 22px; background: white; }
.game-mode-grid svg { width: 35px; height: 35px; margin-bottom: auto; color: var(--c-teal-deep); }
.game-mode-grid span:nth-child(2) svg { color: #478fb5; }
.game-mode-grid span:nth-child(3) svg { color: var(--c-coral); }
.game-mode-grid span:nth-child(4) svg { color: var(--c-gold); }
.game-mode-grid b { font-size: 17px; }
.game-mode-grid small { margin-top: 2px; color: #83969e; font: 11px var(--font-read); }

/* footer */
.site-footer { padding: 55px 0 0; border-top: 1px solid #e2ebe8; background: #f1f7f5; color: var(--c-navy); text-align: left; }
.site-footer__inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: flex; justify-content: space-between; gap: 50px; }
.footer-brand img { width: 150px; height: auto; }
.footer-brand p { margin: 10px 0; color: #7b8e96; font: 12px var(--font-read); }
.site-footer nav { display: grid; grid-template-columns: repeat(3, minmax(110px, 1fr)); gap: 50px; margin: 0; }
.site-footer nav div { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav strong { margin-bottom: 4px; font-size: 12px; }
.site-footer nav a { color: #758992; font: 11px var(--font-read); }
.site-footer__bottom { width: min(1180px, calc(100% - 40px)); margin: 42px auto 0; padding: 19px 0 27px; display: flex; justify-content: space-between; border-top: 1px solid #dce7e4; color: #8a9ba2; font: 10px var(--font-read); }

/* modal / toast / mobile nav */
.compose-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.compose-modal[hidden] { display: none; }
.compose-modal__backdrop { position: absolute; inset: 0; border: 0; background: rgba(8,26,38,.48); backdrop-filter: blur(4px); }
.compose-modal__panel { position: relative; width: min(100%, 520px); padding: 32px; border: 1px solid rgba(255,255,255,.7); border-radius: 27px; background: #fffdf8; box-shadow: 0 30px 100px rgba(5,24,37,.3); }
.compose-modal__panel h2 { margin: 7px 0 7px; font-size: 27px; }
.compose-modal__panel > p { margin: 0; color: var(--c-soft); font: 13px/1.6 var(--font-read); }
.modal-close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--c-line); border-radius: 12px; background: #fff; cursor: pointer; }
.modal-close svg { width: 18px; }
.compose-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.compose-options button { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--c-line); border-radius: 16px; background: #fff; cursor: pointer; text-align: left; }
.compose-options button:hover { border-color: var(--c-teal); background: #f3fbf9; }
.compose-options svg { flex: none; width: 27px; height: 27px; color: var(--c-teal-deep); }
.compose-options b, .compose-options small { display: block; }
.compose-options b { font-size: 12px; }
.compose-options small { margin-top: 2px; color: #8a9ca3; font: 9px var(--font-read); }
.community-toast { position: fixed; left: 50%; bottom: 28px; z-index: 140; max-width: min(90vw, 440px); padding: 12px 18px; border-radius: 14px; background: #102a3d; color: white; box-shadow: 0 12px 35px rgba(16,42,61,.25); font: 12px var(--font-read); opacity: 0; pointer-events: none; transform: translate(-50%, 18px); transition: .25s ease; }
.community-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.mobile-bottom-nav { display: none; }

@media (max-width: 1320px) {
  .site-header__inner { grid-template-columns: auto minmax(220px, 1fr) auto; }
  .desktop-nav { display: none; }
  .mobile-menu-button { display: grid; }
  .hero { gap: 35px; }
  .community-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .local-cup { grid-template-columns: 210px 1fr; }
  .local-cup > .primary-button { grid-column: 2; justify-self: start; margin-top: -20px; }
}

@media (max-width: 860px) {
  .site-header__inner { height: 68px; grid-template-columns: auto 1fr auto; gap: 12px; }
  .brand__word { display: none; }
  .community-search { max-width: none; }
  .header-actions .icon-button, .header-actions .primary-button { display: none; }
  .header-actions .lang-bar { display: flex; }
  .community-home .lang-bar select { width: 86px; height: 36px; padding: 0 7px; font-size: 11px; }
  .hero { grid-template-columns: 1fr; padding-top: 55px; text-align: center; }
  .hero__copy > p { font-size: 16px; }
  .hero__actions, .hero__proof { justify-content: center; }
  .hero__visual { min-height: 400px; }
  .floating-chip--guild { left: 3%; }
  .floating-chip--safe { right: 3%; }
  .community-layout { grid-template-columns: 1fr; }
  .community-sidebar { padding-top: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .community-sidebar .sidebar-card { margin: 0; }
  .account-card { grid-column: 1 / -1; }
  .guild-grid { grid-template-columns: 1fr; }
  .guild-card { min-height: 220px; }
  .ranked-section { padding: 38px 28px; }
  .ranked-cup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .local-cup { grid-template-columns: 1fr; text-align: center; padding: 35px 30px; }
  .local-cup__art { height: 190px; }
  .local-cup > .primary-button { grid-column: 1; justify-self: center; margin-top: 0; }
  .game-intro { grid-template-columns: 1fr; }
  .game-library { padding: 38px 25px; }
  .collection-feature { grid-template-columns: 1fr; padding: 28px; text-align: center; }
  .collection-feature__copy p { max-width: 520px; margin-inline: auto; }
  .collection-grid--eight { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 620px) {
  html,
  body.community-home { width: 100%; max-width: 100%; overflow-x: clip; }
  .community-home { padding-bottom: 72px; }
  .community-home main,
  .community-home section,
  .community-home header,
  .community-home footer,
  .community-home div { min-width: 0; }
  .section-shell, .hero { width: calc(100% - 28px); max-width: 1180px; }
  .site-header__inner {
    position: relative; width: calc(100% - 20px); max-width: 100%;
    grid-template-columns: 38px minmax(0, 1fr); gap: 7px;
    padding-right: 85px; box-sizing: border-box;
  }
  .brand__mark { width: 38px; height: 38px; }
  .community-search { width: 100%; min-width: 0; height: 40px; border-radius: 12px; padding-inline: 10px; }
  .community-search input { font-size: 12px; }
  .community-search kbd { display: none; }
  .header-actions { position: absolute; right: 0; top: 50%; width: 78px; min-width: 0; justify-content: flex-end; transform: translateY(-50%); }
  .community-home .lang-bar,
  .community-home .lang-bar select { width: 78px; max-width: 78px; }
  .mobile-menu-button { width: 40px; height: 40px; }
  .hero { min-height: auto; padding: 46px 0 58px; gap: 28px; }
  .hero__copy,
  .hero__visual,
  .nearby-card,
  .community-layout,
  .feed-column,
  .community-sidebar { width: 100%; max-width: 100%; min-width: 0; }
  .hero h1 { margin-top: 14px; font-size: clamp(34px, 10.6vw, 44px); line-height: 1.16; letter-spacing: -.045em; overflow-wrap: anywhere; }
  .hero h1 br { display: none; }
  .hero__copy > p br { display: none; }
  .hero__actions { flex-direction: column; }
  .hero__proof { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 8px; }
  .hero__visual { min-height: 360px; }
  .nearby-card { padding: 17px; border-radius: 22px; transform: none; }
  .nearby-card__head div strong { font-size: 17px; }
  .mini-meetup { grid-template-columns: 42px minmax(0, 1fr) auto; padding: 10px; }
  .mini-meetup__icon { width: 40px; height: 40px; }
  .mini-meetup strong { font-size: 11px; }
  .avatar-stack { display: none; }
  .floating-chip { display: none; }
  .orbit--one { width: 360px; height: 360px; }
  .orbit--two { width: 290px; height: 290px; }
  .community-layout { padding-top: 54px; padding-bottom: 65px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .section-heading h2 { font-size: 26px; }
  .feed-card__top, .feed-card__bottom { padding-inline: 14px; }
  .feed-card__body { padding-inline: 14px; }
  .feed-card__body h3 { font-size: 17px; }
  .meetup-detail { display: grid; grid-template-columns: 1fr; gap: 7px; }
  .story-body { grid-template-columns: 1fr; }
  .catch-art { height: 100px; }
  .tournament-cover { min-height: 135px; }
  .tournament-cover strong { font-size: 40px; }
  .community-sidebar { grid-template-columns: 1fr; }
  .account-card { grid-column: auto; }
  .section-heading--center { align-items: flex-start; }
  .section-heading--center .text-button { display: none; }
  .ranked-section { width: calc(100% - 28px); padding: 30px 16px; border-radius: 25px; }
  .ranked-section__heading h2 { font-size: 28px; }
  .ranked-section__heading p { font-size: 13px; }
  .ranked-cup-grid { gap: 9px; }
  .ranked-cup-card { padding: 9px 6px 10px; border-radius: 17px; }
  .ranked-cup-card img { width: min(100%, 122px); }
  .local-cup__copy h2, .game-intro__copy h2 { font-size: 29px; }
  .game-library { width: calc(100% - 28px); padding: 29px 14px; border-radius: 25px; }
  .game-library__heading h2 { font-size: 29px; }
  .game-library__tabs { justify-content: flex-start; overflow-x: auto; margin: 23px 0 18px; padding: 6px; }
  .game-library__tabs button { flex: 0 0 auto; min-width: 82px; }
  .game-library__panel { min-height: 0; }
  .collection-feature { min-height: 0; gap: 18px; padding: 22px 16px; }
  .collection-feature__copy h3 { font-size: 24px; }
  .crew-preview { height: 190px; }
  .crew-preview img { max-height: 185px; }
  .rank-preview img { width: 24%; }
  .rank-preview img:nth-child(3) { width: 31%; }
  .collection-grid { gap: 8px; }
  .collection-grid article { padding: 9px; border-radius: 16px; }
  .collection-grid img, .collection-grid--items img { height: 102px; }
  .collection-grid--ships img { height: 140px; }
  .dice-material-grid { grid-template-columns: 1fr; gap: 9px; }
  .dice-material-grid article { display: grid; grid-template-columns: 110px 1fr; grid-template-rows: auto auto auto; align-items: center; padding: 12px; text-align: left; }
  .dice-material-grid article > div { grid-row: 1/4; width: 100px; height: 100px; }
  .dice-material-grid img { width: 92px; height: 92px; }
  .dice-material-grid small { margin: 0; }
  .dice-material-grid strong { margin: 0; }
  .dice-material-grid p { margin: 2px 0 0; }
  .game-library__actions { flex-direction: column; }
  .game-library__actions > * { width: 100%; }
  .game-mode-grid span { min-height: 125px; padding: 16px; }
  .site-footer__inner { flex-direction: column; }
  .site-footer nav { gap: 20px; }
  .site-footer__bottom { flex-direction: column; gap: 7px; }
  .compose-options { grid-template-columns: 1fr; }
  .mobile-bottom-nav { position: fixed; left: 10px; right: 10px; bottom: 9px; z-index: 70; height: 62px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 5px 7px; border: 1px solid rgba(255,255,255,.72); border-radius: 20px; background: rgba(255,255,255,.9); box-shadow: 0 12px 35px rgba(16,42,61,.18); backdrop-filter: blur(16px); }
  .mobile-bottom-nav a, .mobile-bottom-nav button { height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: transparent; color: #85979e; font-size: 9px; cursor: pointer; }
  .mobile-bottom-nav svg { width: 19px; height: 19px; }
  .mobile-bottom-nav a.is-active { color: var(--c-teal-deep); }
  .mobile-bottom-nav button { width: 48px; height: 48px; justify-self: center; margin-top: -23px; border-radius: 16px; background: var(--c-navy); color: white; box-shadow: 0 10px 20px rgba(16,42,61,.22); }
  .mobile-bottom-nav button span { display: none; }
  .mobile-bottom-nav button svg { width: 22px; height: 22px; }
  .community-toast { bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .community-home *, .community-home *::before, .community-home *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

@media (max-width: 1320px) {
  .desktop-nav.is-mobile-open {
    position: fixed;
    top: 78px;
    right: 20px;
    z-index: 95;
    display: grid;
    width: min(300px, calc(100vw - 40px));
    padding: 12px;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 22px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 48px rgba(16,42,61,.2);
    backdrop-filter: blur(18px);
  }
  .desktop-nav.is-mobile-open a { padding: 12px 14px; border-radius: 14px; }
  .desktop-nav.is-mobile-open a:hover { background: #effaf7; }
}

@media (max-width: 680px) {
  .desktop-nav.is-mobile-open { top: 70px; right: 10px; width: calc(100vw - 20px); }
}

/* Homepage crew preview: make the attack-pose art visible before opening the full collection. */
.crew-showcase { padding: 34px 0 96px; }
.crew-showcase__heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.crew-showcase__heading h2 { margin: 8px 0 10px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.04em; }
.crew-showcase__heading p { margin: 0; color: var(--c-soft); font: 15px/1.6 var(--font-read); }
.crew-showcase__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.crew-showcase-card { position: relative; min-height: 260px; overflow: hidden; isolation: isolate; border: 1px solid rgba(255,255,255,.75); border-radius: 24px; background: linear-gradient(155deg, rgba(255,255,255,.96), rgba(238,249,248,.85)); box-shadow: 0 14px 30px rgba(16,42,61,.1), inset 0 1px 0 rgba(255,255,255,.9); transition: transform .25s ease, box-shadow .25s ease; }
.crew-showcase-card::after { position: absolute; right: -25px; bottom: -36px; z-index: -1; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.48); content: ""; filter: blur(2px); }
.crew-showcase-card:hover, .crew-showcase-card:focus-visible { transform: translateY(-4px); box-shadow: 0 20px 38px rgba(16,42,61,.16), inset 0 1px 0 rgba(255,255,255,.95); }
.crew-showcase-card img { display: block; width: 100%; height: 224px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 11px 12px rgba(16,42,61,.2)); transition: transform .35s ease; }
.crew-showcase-card:hover img, .crew-showcase-card:focus-visible img { transform: scale(1.06) translateY(-3px); }
.crew-showcase-card span, .crew-showcase-card small { position: absolute; left: 16px; z-index: 2; }
.crew-showcase-card span { bottom: 29px; color: #fff; font: 800 16px/1 var(--font-display); letter-spacing: .08em; text-shadow: 0 2px 8px rgba(16,42,61,.32); }
.crew-showcase-card small { bottom: 11px; color: rgba(16,42,61,.68); font: 12px/1 var(--font-read); }
.crew-showcase-card--coral { background: linear-gradient(155deg, #fff5f3, #ffdeda); }
.crew-showcase-card--mint { background: linear-gradient(155deg, #f1fffb, #d7f6ed); }
.crew-showcase-card--sun { background: linear-gradient(155deg, #fffaf0, #ffedc2); }
.crew-showcase-card--sky { background: linear-gradient(155deg, #f3f9ff, #dcecff); }
.crew-showcase-card--violet { background: linear-gradient(155deg, #faf3ff, #eadcff); }
@media (max-width: 900px) {
  .crew-showcase__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .crew-showcase { padding: 24px 0 68px; }
  .crew-showcase__heading { display: block; }
  .crew-showcase__heading .text-button { display: inline-flex; margin-top: 14px; }
  .crew-showcase__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .crew-showcase-card { min-height: 214px; border-radius: 20px; }
  .crew-showcase-card img { height: 180px; }
  .crew-showcase-card span { left: 12px; bottom: 26px; font-size: 13px; }
  .crew-showcase-card small { left: 12px; bottom: 10px; font-size: 10px; }
}

/* Official gacha-rate disclosure teaser */
.gacha-rate-preview { margin-bottom: 96px; display: grid; grid-template-columns: .72fr 1.28fr; gap: 34px; align-items: stretch; }
.gacha-rate-preview__copy { display: flex; flex-direction: column; justify-content: center; padding: 42px; border-radius: 30px; color: #fff; background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.2), transparent 28%), linear-gradient(145deg,#0d416b,#168eb9); box-shadow: 0 20px 50px rgba(17,91,129,.18); }
.gacha-rate-preview__copy .section-kicker { color: #83e8ff; }
.gacha-rate-preview__copy h2 { margin: 9px 0 14px; font-size: clamp(32px,4vw,49px); line-height: 1.08; letter-spacing: -.045em; }
.gacha-rate-preview__copy p { margin: 0 0 24px; color: #d9f4ff; font: 15px/1.7 var(--font-read); }
.gacha-rate-preview__copy .collection-link { color: #fff; }
.gacha-rate-preview__cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 22px; border: 1px solid rgba(104,174,199,.25); border-radius: 30px; background: rgba(255,255,255,.86); box-shadow: 0 20px 50px rgba(16,42,61,.1); }
.gacha-rate-preview__cards article { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 20px 12px 16px; border: 1px solid #dcecf3; border-radius: 22px; background: linear-gradient(180deg,#fff,#f4fbfd); text-align: center; }
.gacha-rate-preview__cards article.is-gold { border-color: #f0d68e; background: linear-gradient(180deg,#fffdf7,#fff7df); }
.gacha-rate-preview__cards img { width: min(120px,100%); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 13px 10px rgba(24,58,76,.16)); }
.gacha-rate-preview__cards small { display: block; color: #6e8a9b; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.gacha-rate-preview__cards strong { display: block; margin: 2px 0 10px; color: #153e5a; font-size: 17px; }
.gacha-rate-preview__cards dl { margin: 0; display: grid; gap: 5px; }
.gacha-rate-preview__cards dl div { display: flex; justify-content: space-between; gap: 12px; color: #607b8b; font-size: 11px; font-weight: 700; }
.gacha-rate-preview__cards dt,.gacha-rate-preview__cards dd { margin: 0; }
.gacha-rate-preview__cards dd { color: #117cab; font-weight: 900; }
.gacha-rate-preview__cards>p { grid-column: 1/-1; margin: 2px 5px 0; color: #688090; font: 11px/1.55 var(--font-read); text-align: center; }
@media (max-width: 900px) { .gacha-rate-preview { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .gacha-rate-preview { margin-bottom: 70px; gap: 14px; }.gacha-rate-preview__copy { padding: 30px 24px; border-radius: 24px; }.gacha-rate-preview__cards { padding: 10px; gap: 7px; border-radius: 24px; }.gacha-rate-preview__cards article { padding: 12px 5px 11px; border-radius: 17px; }.gacha-rate-preview__cards img { width: 78px; }.gacha-rate-preview__cards strong { font-size: 12px; }.gacha-rate-preview__cards dl div { display: grid; gap: 0; font-size: 9px; } }

/* ── 스마트 이메일 연동 모달 (mail-helper) ── */
.sp-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000; padding: 16px; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.sp-modal-overlay.open { opacity: 1; pointer-events: auto; }
.sp-modal-card.mail-helper-card {
  background: #ffffff; border-radius: 18px; padding: 26px;
  max-width: 480px; width: 100%; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  position: relative; transform: scale(0.95); transition: transform 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", sans-serif;
  color: #1e293b; box-sizing: border-box;
}
.sp-modal-overlay.open .sp-modal-card.mail-helper-card { transform: scale(1); }
.sp-modal-close {
  position: absolute; top: 18px; right: 18px; background: #f1f5f9; border: none;
  width: 32px; height: 32px; border-radius: 50%; font-size: 18px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; color: #64748b;
}
.sp-modal-close:hover { background: #e2e8f0; color: #0f172a; }
.mail-helper-card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; color: #0f172a; display: flex; align-items: center; gap: 8px; }
.mail-helper-card p { margin: 0 0 16px; font-size: 14px; color: #64748b; line-height: 1.55; }
.mail-copy-box {
  display: flex; align-items: center; justify-content: space-between;
  background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 12px;
  padding: 12px 16px; margin-bottom: 16px;
}
.mail-copy-address { font-size: 15px; font-weight: 800; color: #0f172a; }
.btn-copy {
  background: #ffffff; border: 1px solid #cbd5e1; border-radius: 8px;
  padding: 6px 14px; font-size: 12px; font-weight: 700; cursor: pointer;
  color: #1e293b; transition: all 0.15s;
}
.btn-copy:hover { background: #ff5f7e; color: #ffffff; border-color: #ff5f7e; }
.webmail-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.btn-webmail {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 13px; font-weight: 700;
  border: 1.5px solid #e2e8f0; transition: all 0.15s; text-align: center;
}
.btn-webmail.gmail { color: #dc2626; border-color: #fecaca; background: #fff5f5; }
.btn-webmail.gmail:hover { background: #fee2e2; border-color: #f87171; }
.btn-webmail.naver { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; }
.btn-webmail.naver:hover { background: #dcfce7; border-color: #4ade80; }
.support-toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.92); color: #ffffff;
  padding: 12px 24px; border-radius: 999px; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 20000; opacity: 0; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.support-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* Writing entry stays horizontal inside the header slot. */
.header-actions [data-open-compose]{flex-direction:row;flex-wrap:nowrap;white-space:nowrap;min-width:96px;align-items:center;justify-content:center;gap:7px}
.header-actions [data-open-compose] svg{flex:none;width:17px;height:17px}
.account-card button.account-login{color:#15364b!important;font:700 14px/1.3 var(--font-read);padding:8px 12px;height:auto;min-height:40px;white-space:normal}
.account-card button.account-login--light{color:#fff!important}
.compose-modal__panel{max-height:90dvh;overflow-y:auto}
#communityPostForm{margin-top:20px}#communityPostForm[hidden]{display:none}#communityPostForm label{display:grid;gap:5px;margin:12px 0;color:#15364b;font:600 14px system-ui}
#communityPostForm input,#communityPostForm textarea{box-sizing:border-box;width:100%;padding:12px;border:1px solid #aac9cd;border-radius:10px;font:16px system-ui;background:white;color:#15364b}
.community-live-post{padding:18px;margin-bottom:12px;border:1px solid #d2e2e4;border-radius:16px;background:white;overflow-wrap:anywhere}.community-live-post p{font:14px/1.6 system-ui}


/* Rules panel in game library */
.rules-feature {
  padding: 12px 0;
}
.rules-feature__top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid rgba(84,157,165,.2);
}
.rules-feature__heading h3 {
  margin: 4px 0 0; color: var(--c-navy); font-size: 24px; font-weight: 900;
}
.rules-feature__heading small {
  color: #3aa6ab; font-weight: 800; font-size: 11px; letter-spacing: .06em;
}
.rules-feature__heading p {
  margin: 6px 0 0; color: var(--c-soft); font-size: 13px;
}
.rules-library-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 18px;
}
.rules-library-card {
  padding: 22px; border-radius: 22px; border: 1px solid rgba(103,190,194,.28);
  background: rgba(255,255,255,.9); box-shadow: 0 12px 32px rgba(24,73,91,.06);
  display: flex; flex-direction: column; gap: 10px;
}
.rules-library-card__top {
  display: flex; align-items: center; justify-content: space-between;
}
.rules-library-card__badge {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #173d52, #42aeb0); color: #fff;
  font-weight: 900; font-size: 14px;
}
.rules-library-card__tag {
  font-size: 11px; font-weight: 800; color: #439ca1; letter-spacing: .04em;
}
.rules-library-card h4 {
  margin: 0; color: #123447; font-size: 17px; font-weight: 900;
}
.rules-library-card__desc {
  margin: 0; color: #405c6a; font-size: 13px; line-height: 1.7; font-weight: 500;
}

.community-write-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:12px 0}.community-write-actions span{font:13px/1.5 var(--font-read);color:#557080}.community-live-post[hidden]{display:none!important}
/* Account card: airy pastel blue with readable controls in every auth state. */
.community-home .account-card {
  background: radial-gradient(ellipse at 8% 0%, #ffffffd9, transparent 65%), linear-gradient(145deg, #eff9ff 0%, #daedff 58%, #d4e3fa 100%);
  border: 1px solid #c7ddf0;
  color: #244663;
  box-shadow: 0 14px 36px rgba(73, 119, 162, .12), inset 0 1px 0 #fff;
}
.account-card .sidebar-card__title h3, .account-card .acc-name { color: #244663; }
.account-card .sidebar-card__title span { color: #486e98; }
.account-card .sidebar-card__title > svg { color: #638aba; }
.account-card p, .account-card .acc-row span, .account-card .acc-mail { color: #496680; }
.account-card .account-note { color: #496680 !important; }
.account-card .acc-row { border-color: #b9d1e6; }
.account-card button.account-login {
  background: linear-gradient(180deg, #fff, #f4f9ff);
  border: 1px solid #bed5ea;
  color: #284e72 !important;
  box-shadow: 0 3px 8px #557fa00a;
}
.account-card button.account-login--light { background: #c7dcf3; color: #284e72 !important; }
.account-card button.account-login:hover:not(:disabled) { background: #edf5ff; border-color: #82a9cf; }
.account-card button.account-login:focus-visible { outline: 3px solid #537fae; outline-offset: 3px; }
.account-card p.acc-err { color: #a52c43; }
