:root {
  --fb-bg: #f0f2f5;
  --fb-blue: #1877f2;
  --fb-blue-hover: #166fe5;
  --fb-green: #42b72a;
  --fb-green-hover: #36a420;
  --purple: #6a1b9a;
  --text: #1c1e21;
  --text-soft: #65676b;
  --card: #fff;
  --shadow: 0 2px 4px rgba(0,0,0,.1), 0 8px 16px rgba(0,0,0,.1);
  --line: #dadde1;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--fb-bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar .brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.topbar .brand-link img { height: 40px; width: auto; display: block; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.topbar a.link {
  color: var(--fb-blue);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}
.topbar a.link:hover { text-decoration: underline; }
.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 18px 32px;
  flex: 1;
}
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 28px 48px;
  margin-bottom: 28px;
}
.brand-block { flex: 1 1 320px; max-width: 560px; }
.logo-img { max-width: 280px; height: auto; margin-bottom: 12px; }
.tagline {
  font-size: clamp(1.02rem, 2.2vw, 1.35rem);
  line-height: 1.42;
  font-weight: 500;
  margin-bottom: 12px;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  background: #e7f3ff;
  color: var(--fb-blue);
  border: 1px solid #bcd7ff;
}
.pill.wc { background: #fff8e1; color: #b8860b; border-color: #ffe082; }
.pill.gmc { background: #f3e5f5; color: var(--purple); border-color: #e1bee7; }
.card {
  flex: 0 1 400px;
  background: var(--card);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px 18px 20px;
}
.card h3 { font-size: 1.05rem; margin-bottom: 10px; text-align: center; }
.card p.hi { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 12px; line-height: 1.45; text-align: center; }
.btn {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  margin-bottom: 8px;
  text-align: center;
  transition: background .15s, filter .15s;
}
.btn-primary { background: var(--fb-blue); color: #fff; }
.btn-primary:hover { background: var(--fb-blue-hover); }
.btn-secondary { background: var(--fb-green); color: #fff; }
.btn-secondary:hover { background: var(--fb-green-hover); }
.btn-ghost { background: #e4e6eb; color: var(--text); font-weight: 600; }
.btn-ghost:hover { filter: brightness(0.97); }
.btn-dl { background: #1c1e21; color: #fff; font-size: 0.92rem; }
.btn-dl:hover { background: #333; }
.btn-dl.disabled { opacity: 0.45; pointer-events: none; }
.hr { display: flex; align-items: center; gap: 10px; margin: 10px 0; color: var(--text-soft); font-size: 0.8rem; }
.hr::before, .hr::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dl-grid .btn { margin: 0; font-size: 0.85rem; padding: 10px 8px; }
section.panel {
  background: var(--card);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px 18px 24px;
  margin-bottom: 22px;
}
section.panel h2 { font-size: 1.28rem; text-align: center; margin-bottom: 6px; }
section.panel .sub {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}
.spotlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.spot-card {
  border: 2px solid var(--fb-blue);
  border-radius: 10px;
  padding: 16px 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}
.spot-card.cafe { border-color: var(--purple); background: linear-gradient(180deg, #faf5ff 0%, #fff 100%); }
.spot-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.spot-card p { font-size: 0.88rem; color: var(--text-soft); line-height: 1.4; margin-bottom: 10px; }
.spot-card a { font-size: 0.88rem; font-weight: 700; color: var(--fb-blue); }
.flyer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.flyer-group h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin: 14px 0 8px;
  grid-column: 1 / -1;
}
.flyer-group:first-child h4 { margin-top: 0; }
a.flyer-link {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8f9fb;
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  transition: box-shadow .15s, border-color .15s;
}
a.flyer-link:hover {
  border-color: var(--fb-blue);
  box-shadow: 0 2px 8px rgba(24,119,242,.15);
}
a.flyer-link span { display: block; font-size: 0.75rem; color: var(--text-soft); font-weight: 500; margin-top: 4px; }
.level-list { list-style: none; max-width: 720px; margin: 0 auto; }
.level-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px 16px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.level-list li:last-child { border-bottom: none; }
.badge-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--fb-blue); color: #fff;
  font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.gdm-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.gdm-chips span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: #e7f3ff;
  color: #0a5fdb;
  border: 1px solid #bcd7ff;
}
.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
a.mod-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; min-height: 88px; padding: 10px 6px;
  border-radius: 8px; background: #f8f9fb; border: 1px solid #e4e6eb;
  text-decoration: none; color: var(--text); font-size: 0.78rem; font-weight: 600;
}
a.mod-item:hover { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
a.mod-item .ic { font-size: 1.35rem; margin-bottom: 6px; }
.lang-section {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 20px 16px 24px;
}
.lang-section h2 {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.lang-section .sub {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 14px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 8px;
  max-width: 1080px;
  margin: 0 auto;
}
.lang-grid button {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 6px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
  line-height: 1.3;
  word-break: break-word;
}
.lang-grid button .lang-short {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .lang-grid {
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 6px;
  }
  .lang-grid button {
    font-size: 0.7rem;
    padding: 7px 4px;
  }
}
.lang-grid button:hover { border-color: var(--fb-blue); background: #e7f3ff; }
.lang-grid button.active {
  background: var(--fb-blue);
  color: #fff;
  border-color: var(--fb-blue);
}
.lang-status {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 12px;
  min-height: 1.2em;
}
footer {
  padding: 20px 18px 26px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-soft);
  line-height: 1.5;
  border-top: 1px solid var(--line);
  background: #e8eaef;
}
footer a { color: var(--text-soft); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.cta-row .btn { width: auto; min-width: 180px; }
.note { font-size: 0.78rem; color: var(--text-soft); text-align: center; margin-top: 14px; line-height: 1.45; }
@media (max-width: 520px) {
  .dl-grid { grid-template-columns: 1fr; }
}
