/* =====================================================================
   MINA WORLD App — Design System
   아이보리 #FAF7F2 · 화이트 #FFFFFF · 딥네이비 #070D1E · 포인트 옐로우 #F5B82E
   ===================================================================== */

:root {
  --ivory: #FAF7F2;
  --white: #FFFFFF;
  --navy: #070D1E;
  --navy-2: #101A36;
  --navy-3: #1B2748;
  --gold: #C9A96E;
  --gold-dark: #A8874A;
  --gold-soft: #F7F1E5;
  --yellow: #F5B82E;
  --yellow-dark: #E5A419;
  --yellow-soft: #FFF6DC;
  --line: #ECE6DA;
  --line-strong: #DED5C4;
  --box: #F3EFE6;
  --muted: #4A5568;
  --muted-2: #8A93A6;
  --green: #1F7A5A;
  --green-soft: #E8F4EE;
  --red: #B4453F;
  --red-soft: #FBEBEA;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(7, 13, 30, 0.04), 0 4px 14px rgba(7, 13, 30, 0.04);
  --shadow-md: 0 10px 30px rgba(7, 13, 30, 0.09);
  --shadow-lg: 0 24px 60px rgba(7, 13, 30, 0.16);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ivory);
  color: var(--navy);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--box); padding: 1px 5px; border-radius: 6px; }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.ellipsis { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ok-text { color: var(--green); font-weight: 600; }
.err-text { color: var(--red); font-weight: 600; }

/* ---------------------------------------------------------------- shell */
.app {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
  background: var(--ivory);
}

@media (min-width: 900px) {
  body:not(.admin-mode) {
    background:
      radial-gradient(circle at 50% -10%, #FFFDF8 0%, #EFE9DE 45%, #E7E0D4 100%);
    min-height: 100vh;
  }
  body:not(.admin-mode) .app {
    box-shadow: 0 30px 90px rgba(7, 13, 30, 0.16);
    border-left: 1px solid rgba(255, 255, 255, 0.7);
    border-right: 1px solid rgba(7, 13, 30, 0.05);
  }
}

/* --------------------------------------------------------------- header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(250, 247, 242, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.app-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(7, 13, 30, 0.04);
}

.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand-logo { height: 26px; width: auto; object-fit: contain; }
.brand-word {
  display: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--navy);
}
.brand-word.is-visible { display: inline; }

.header-actions { display: flex; align-items: center; gap: 6px; }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.icon-btn:hover { background: rgba(7, 13, 30, 0.05); }
.icon-btn:active { transform: scale(0.94); }

.dot-badge {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 2px var(--ivory);
}

.avatar-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.avatar-chip.is-member {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.avatar-chip:active { transform: scale(0.94); }

/* ----------------------------------------------------------- mode banner */
.mode-banner { display: none; }
.mode-banner.is-local { display: block; }
.mode-banner-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 18px;
  border: 0;
  border-bottom: 1px solid #F1E2BC;
  background: linear-gradient(90deg, #FFF7E0, #FFFBF0);
  color: #7A5B12;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.mode-banner-inner .mode-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--yellow-dark);
  flex: 0 0 auto;
  animation: pulseDot 2.4s infinite;
}
.mode-banner-inner .mode-more {
  margin-left: auto;
  font-weight: 700;
  text-decoration: underline;
  flex: 0 0 auto;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ----------------------------------------------------------------- view */
.view { display: block; }
.page { padding-bottom: 26px; }
.page-narrow { max-width: 430px; margin: 0 auto; }
.usage-section .empty { background: rgba(255, 255, 255, 0.7); }
.view-enter { animation: viewIn 0.34s var(--ease); }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.route-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}

.section { padding: 0 18px; margin-top: 26px; }
.section:first-of-type { margin-top: 18px; }

.page-head { padding: 22px 20px 4px; }
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.page-title {
  margin-top: 10px;
  font-size: 27px;
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--navy);
}
.page-desc { margin-top: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.section-title { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.section-action { flex: 0 0 auto; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  padding: 18px 18px 24px;
  background:
    radial-gradient(circle at 88% 4%, rgba(245, 184, 46, 0.28) 0%, rgba(245, 184, 46, 0) 46%),
    linear-gradient(158deg, #0B142A 0%, #070D1E 58%, #101A36 100%);
  color: var(--white);
  border-radius: 0 0 28px 28px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -70% -20%;
  height: 180px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
}
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.24em; color: rgba(255, 255, 255, 0.6); }
.hero-date { font-size: 11.5px; color: rgba(255, 255, 255, 0.55); }
.hero-welcome {
  margin-top: 20px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--yellow);
  text-transform: uppercase;
}
.hero-title {
  margin-top: 6px;
  font-size: 25px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.035em;
}

/* -------------------------------------------------------------- checkin */
.checkin-card {
  margin-top: 18px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  color: var(--navy);
  position: relative;
  z-index: 1;
}
.checkin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.checkin-head strong { font-size: 14px; font-weight: 800; letter-spacing: -0.02em; }
.checkin-guest { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; line-height: 1.55; }

.checkin-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.checkin-label { flex: 0 0 52px; font-size: 12.5px; }
.checkin-label strong { font-weight: 700; }
.checkin-scale { display: flex; align-items: center; gap: 8px; flex: 1; }
.scale-edge { font-size: 10px; color: var(--muted-2); flex: 0 0 auto; }
.score-dots { display: flex; gap: 5px; flex: 1; justify-content: space-between; }
.score-dot {
  flex: 1;
  height: 30px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #FCFBF8;
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.score-dot.is-on {
  background: var(--yellow-soft);
  border-color: #F2D590;
  color: #7A5B12;
}
.score-dot.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(7, 13, 30, 0.18);
}

.checkin-memo {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #FCFBF8;
  font-family: inherit;
  font-size: 12.5px;
  resize: none;
  color: var(--navy);
}
.checkin-memo:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(245, 184, 46, 0.18); }

.checkin-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.mini-week { display: flex; gap: 7px; align-items: flex-end; }
.mini-day { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.mini-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line-strong);
  transition: background 0.2s var(--ease);
}
.mini-day.is-on .mini-dot { background: var(--yellow); }
.mini-num { font-size: 9px; color: var(--muted-2); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.pill-navy { background: var(--navy); color: var(--white); }
.pill-soft { background: var(--box); color: var(--muted); }
.pill-ok { background: var(--green-soft); color: var(--green); }

/* --------------------------------------------------------------- slogan */
.slogan-card {
  padding: 20px 18px;
  background: var(--yellow-soft);
  border: 1px solid #F3E4BB;
  border-radius: var(--radius-lg);
}
.section.slogan-card { padding: 20px 18px; }
.slogan-quote {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.03em;
  color: #4A3706;
}
.mina-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.mina-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.66);
  border-radius: 12px;
}
.mina-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
}
.mina-item strong { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.02em; }
.mina-item span:not(.mina-letter) { display: block; font-size: 10.5px; color: #6C5A26; }

/* ------------------------------------------------------------ next card */
.next-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease);
}
.next-card:active { transform: scale(0.99); }
.next-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 14px;
  background: var(--yellow-soft); color: var(--yellow-dark);
  flex: 0 0 auto;
}
.next-body { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.next-body strong { font-size: 13.5px; font-weight: 700; }
.menu-arrow { color: var(--muted-2); flex: 0 0 auto; }

/* ------------------------------------------------------------ menu grid */
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menu-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 118px;
  padding: 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  overflow: hidden;
}
.menu-card:active { transform: scale(0.975); }
.menu-card.tone-navy {
  background: linear-gradient(150deg, #0B142A, #070D1E 70%);
  border-color: var(--navy);
  color: var(--white);
}
.menu-card.tone-yellow {
  background: linear-gradient(150deg, #FFD264, var(--yellow));
  border-color: var(--yellow);
  color: #241A02;
}
.menu-card.tone-ivory { background: var(--white); }
.menu-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--yellow-soft); color: var(--navy);
  flex: 0 0 auto;
}
.tone-navy .menu-ico { background: rgba(255, 255, 255, 0.12); color: var(--yellow); }
.tone-yellow .menu-ico { background: rgba(255, 255, 255, 0.55); color: #241A02; }
.menu-text { display: flex; flex-direction: column; gap: 3px; padding-right: 14px; }
.menu-text strong { font-size: 12.5px; font-weight: 800; letter-spacing: 0.02em; }
.menu-text span { font-size: 11px; line-height: 1.45; color: var(--muted); }
.tone-navy .menu-text span { color: rgba(255, 255, 255, 0.66); }
.tone-yellow .menu-text span { color: rgba(36, 26, 2, 0.68); }
.menu-card .menu-arrow { position: absolute; right: 12px; bottom: 12px; opacity: 0.5; }
.tone-navy .menu-arrow { color: var(--yellow); opacity: 0.85; }

/* --------------------------------------------------------- notice + admin */
.notice-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.notice-tag {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
}
.notice-body { flex: 1; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.admin-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, #0B142A, #070D1E);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.admin-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px; border-radius: 999px;
  background: rgba(245, 184, 46, 0.16);
  color: var(--yellow);
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em;
  flex: 0 0 auto;
}
.admin-banner > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-banner strong { font-size: 13px; font-weight: 800; }
.admin-banner span span { font-size: 11px; color: rgba(255, 255, 255, 0.62); }

/* --------------------------------------------------------------- footer */
.app-footer {
  margin-top: 34px;
  padding: 22px 20px 8px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-brand { font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em; color: var(--navy); }
.footer-note { margin-top: 8px; font-size: 10.5px; line-height: 1.6; color: var(--muted-2); }
.footer-links {
  margin-top: 10px;
  display: flex; justify-content: center; gap: 8px;
  font-size: 10.5px; color: var(--muted-2);
}
.footer-links a { text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------------------------------------- tab bar */
#tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  width: 100%;
  max-width: 430px;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
}
.tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 1px 2px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 12px;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
  position: relative;
  text-align: center;
  overflow: hidden;
}
.tab:active { transform: scale(0.93); }
.tab-ico { display: inline-flex; transition: transform 0.2s var(--ease); }
.tab-label {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: 10px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tab.is-active { color: var(--navy); font-weight: 800; }
.tab.is-active .tab-ico { transform: translateY(-1px); }
.tab.is-active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--yellow);
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease), opacity 0.18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.975); }
.btn:disabled { opacity: 0.65; cursor: default; transform: none; }
.btn-primary { background: var(--navy); color: var(--white); box-shadow: 0 8px 20px rgba(7, 13, 30, 0.16); }
.btn-primary:hover { background: var(--navy-2); }
.btn-accent { background: var(--yellow); color: #241A02; box-shadow: 0 8px 18px rgba(245, 184, 46, 0.28); }
.btn-accent:hover { background: var(--yellow-dark); }
.btn-ghost { background: var(--white); border-color: var(--line-strong); color: var(--navy); }
.btn-ghost:hover { background: #FBF9F4; }
.btn-danger { background: var(--red); color: var(--white); }
.btn-kakao { background: #FEE500; color: #3A1D1D; border-color: #F6DC00; }
.btn-kakao:hover { background: #F5DA00; }
.btn-block { display: flex; width: 100%; }
.btn-grow { flex: 1; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 12.5px; border-radius: 12px; }
.btn-xs { min-height: 30px; padding: 0 10px; font-size: 11.5px; border-radius: 9px; font-weight: 600; }
.btn-quiet-danger { color: var(--red); border-color: #F0D9D7; }
.btn-quiet-danger:hover { background: var(--red-soft); }
.amount-strike { color: var(--muted-2); font-weight: 500; text-decoration: line-through; font-size: 12px; }

/* ---------------------------------------------------------------- chips */
.chip-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 18px 10px;
  margin: 0 -18px;
  scrollbar-width: none;
}
.chip-scroll::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
  font-family: inherit;
}
.chip.is-on { background: var(--navy); border-color: var(--navy); color: var(--white); box-shadow: 0 6px 14px rgba(7, 13, 30, 0.16); }
.chip:active { transform: scale(0.97); }
.filter-wrap { margin-bottom: 14px; }

/* -------------------------------------------------------------- badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.4;
}
.badge-neutral { background: var(--box); color: var(--muted); }
.badge-yellow { background: var(--yellow-soft); color: #7A5B12; }
.badge-navy { background: rgba(7, 13, 30, 0.08); color: var(--navy); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-red { background: var(--red-soft); color: var(--red); }

/* ---------------------------------------------------------------- cards */
.card {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.product-list { display: flex; flex-direction: column; gap: 14px; }
.product-card {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.product-card.is-featured {
  border-color: rgba(7, 13, 30, 0.9);
  box-shadow: 0 14px 34px rgba(7, 13, 30, 0.12);
}
.product-card.is-featured::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 90px; height: 90px;
  background: radial-gradient(circle at 100% 0%, rgba(245, 184, 46, 0.28), transparent 70%);
}
.product-head h3 { margin-top: 8px; font-size: 16.5px; font-weight: 800; letter-spacing: -0.03em; }
.product-sub { margin-top: 4px; font-size: 12px; color: var(--muted); }
.tick-list { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.tick-list li { display: flex; gap: 7px; align-items: flex-start; font-size: 12.5px; color: var(--muted); }
.tick-list li .ico { color: var(--yellow-dark); margin-top: 2px; flex: 0 0 auto; }
.product-meta {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  color: var(--muted);
}
.product-meta span { display: inline-flex; align-items: center; gap: 5px; }
.product-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 14px; }
.price { display: flex; flex-direction: column; }
.price strong { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.price span { font-size: 10.5px; color: var(--muted-2); }

/* ------------------------------------------------------------- packages */
.package-grid { display: flex; flex-direction: column; gap: 12px; }
.package-card {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.package-card.is-single { background: #FCFBF8; }
.package-top h3 { margin-top: 8px; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.package-price {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 10px;
  margin-top: 12px; padding: 11px 12px; border-radius: 12px; background: var(--yellow-soft);
}
.package-price strong { font-size: 14px; font-weight: 800; line-height: 1.4; color: #5A4408; word-break: keep-all; }
.package-price span { font-size: 10.5px; color: #8A6C1B; }
.package-desc { margin-top: 10px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.package-card .btn { margin-top: 12px; }

.usage-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(152deg, #0B142A, #070D1E);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.usage-card + .usage-card { margin-top: 10px; }
.usage-card .list-top strong { color: var(--white); font-size: 13.5px; }
.usage-card .badge { background: rgba(255, 255, 255, 0.14); color: var(--yellow); }
.usage-figures { display: flex; align-items: baseline; gap: 5px; margin-top: 12px; }
.usage-figures strong { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.usage-figures span { font-size: 11.5px; color: rgba(255, 255, 255, 0.6); }
.progress {
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--yellow), #FFD264); }
.usage-meta { display: flex; justify-content: space-between; margin-top: 9px; font-size: 10.5px; color: rgba(255, 255, 255, 0.55); }
.usage-card .btn { margin-top: 12px; }

/* --------------------------------------------------------------- charts */
.chart-card {
  padding: 14px 14px 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.chart-wrap { position: relative; height: 220px; }
.chart-caption { margin-top: 8px; font-size: 10.5px; color: var(--muted-2); text-align: center; }

.session-list { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.session-row {
  display: flex;
  gap: 12px;
  padding: 13px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.session-no {
  flex: 0 0 34px;
  height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px;
  background: var(--navy);
  color: var(--yellow);
  font-size: 12.5px;
  font-weight: 800;
}
.session-body { flex: 1; min-width: 0; }
.session-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.session-head strong { font-size: 12.5px; font-weight: 700; }
.metric-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.metric-chip {
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--box);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
}
.session-note { margin-top: 7px; font-size: 11px; color: var(--muted); }
.session-memo {
  display: flex;
  gap: 6px;
  margin-top: 7px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--yellow-soft);
  font-size: 11px;
  color: #6B5312;
  line-height: 1.5;
}
.session-memo .ico { flex: 0 0 auto; margin-top: 2px; }

/* -------------------------------------------------------------- summary */
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.summary-tile {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.tile-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 10px;
  background: var(--yellow-soft); color: var(--yellow-dark);
  margin-bottom: 4px;
}
.tile-label { font-size: 10.5px; color: var(--muted-2); font-weight: 600; }
.tile-value { font-size: 16px; font-weight: 800; letter-spacing: -0.03em; }
.tile-sub { font-size: 10px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.result-preview { margin-bottom: 12px; }
.result-preview .list-card { margin-bottom: 0; }
.recheck-text { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; }

.goal-card { margin-top: 0; padding: 16px; }
.goal-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.goal-head strong { font-size: 14px; font-weight: 800; }
.goal-card textarea, .goal-card input {
  width: 100%;
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #FCFBF8;
  font-family: inherit;
  font-size: 12.5px;
  resize: vertical;
  color: var(--navy);
}
.goal-card textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(245, 184, 46, 0.16); }
.goal-card .btn { margin-top: 12px; }

/* -------------------------------------------------------------- results */
.result-card, .list-card, .student-card, .cohort-card {
  padding: 15px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
}
.result-card:last-child, .list-card:last-child, .student-card:last-child, .cohort-card:last-child { margin-bottom: 0; }
.list-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.list-top strong { font-size: 13.5px; font-weight: 800; letter-spacing: -0.02em; }
.list-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.list-meta span { display: inline-flex; align-items: center; gap: 5px; }
.list-note { margin-top: 8px; font-size: 11.5px; line-height: 1.6; color: var(--muted); white-space: pre-line; }
.list-actions { display: flex; align-items: center; gap: 6px; margin-top: 11px; flex-wrap: wrap; }
.action-spacer { flex: 1; }
.list-discount { color: var(--green); font-weight: 600; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.metric {
  padding: 9px 6px;
  border-radius: 12px;
  background: var(--box);
  text-align: center;
}
.metric span { display: block; font-size: 9.5px; color: var(--muted-2); }
.metric strong { display: block; font-size: 14px; font-weight: 800; }
.recheck-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
  padding: 9px 11px;
  border-radius: 11px;
  background: var(--box);
  font-size: 11px;
  color: var(--muted);
}
.recheck-row.is-soon { background: var(--yellow-soft); color: #6B5312; }

/* -------------------------------------------------------------- wellness */
.wellness-row {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}
.wellness-date { flex: 0 0 62px; font-size: 11.5px; font-weight: 700; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.wellness-date .wellness-clock { font-style: normal; font-size: 10px; font-weight: 600; color: var(--muted-2); }
.wellness-body { flex: 1; min-width: 0; }
.wellness-body .metric-chips { margin-top: 0; }
.wellness-body .list-note { margin-top: 6px; }
.wellness-row .wellness-del {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-left: auto;
  padding: 4px 8px;
  font-size: 10.5px;
  color: var(--muted-2);
  background: transparent;
  border-color: transparent;
}
.wellness-row .wellness-del:hover,
.wellness-row .wellness-del:active { color: var(--danger, #B4483C); border-color: var(--line); background: var(--ivory); }

/* ------------------------------------------------- PDF 자동 입력 상태 박스 */
.pdf-status {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm, 10px);
  border: 1px solid var(--line);
  background: var(--ivory);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink);
}
.pdf-status small { display: block; margin-top: 3px; color: var(--muted-2); font-size: 10.5px; }
.pdf-status.is-info { border-color: var(--line); background: var(--ivory); }
.pdf-status.is-success { border-color: rgba(58, 122, 90, 0.35); background: rgba(58, 122, 90, 0.08); }
.pdf-status.is-warn { border-color: rgba(176, 126, 40, 0.35); background: rgba(176, 126, 40, 0.09); }
.pdf-status .spinner-sm { border-color: rgba(7, 13, 30, 0.2); border-top-color: var(--navy, #070D1E); display: inline-block; vertical-align: -2px; margin-right: 6px; }

/* ------------------------------------------------------------- programs */
.program-grid { display: flex; flex-direction: column; gap: 10px; }
.program-card {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.program-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.program-card h3 { margin-top: 9px; font-size: 15px; font-weight: 800; letter-spacing: -0.03em; }
.program-sub { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.program-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; font-size: 11px; color: var(--muted-2); }
.program-meta span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; word-break: keep-all; }
.program-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.program-link .ico { color: var(--yellow-dark); }

.detail-hero { margin-bottom: 16px; }
.detail-hero h2 { margin-top: 8px; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.detail-hero p { margin-top: 4px; font-size: 12px; }
.detail-block { margin-top: 14px; }
.detail-block h4 { font-size: 12px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.detail-block p { font-size: 12.5px; line-height: 1.65; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.detail-cell { padding: 11px; border-radius: 12px; background: var(--box); }
.detail-cell span { display: block; font-size: 10px; color: var(--muted-2); }
.detail-cell strong { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 700; line-height: 1.45; word-break: keep-all; }

/* --------------------------------------------------------------- academy */
.overview-card {
  padding: 17px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.overview-cell { padding: 11px; border-radius: 12px; background: var(--ivory); }
.overview-cell span { display: block; font-size: 10px; color: var(--muted-2); }
.overview-cell strong { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 800; }
.week-list { display: flex; flex-direction: column; gap: 8px; }
.week-row {
  display: flex;
  gap: 12px;
  padding: 13px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.week-badge {
  flex: 0 0 46px;
  align-self: flex-start;
  padding: 5px 0;
  border-radius: 9px;
  background: var(--yellow-soft);
  color: #7A5B12;
  font-size: 10.5px;
  font-weight: 800;
  text-align: center;
}
.week-row strong { font-size: 12.5px; font-weight: 700; }
.week-row p { margin-top: 3px; font-size: 11px; line-height: 1.55; color: var(--muted); }
.student-progress { margin-top: 12px; }
.student-progress .usage-figures { color: var(--navy); }
.student-progress .usage-figures span { color: var(--muted-2); }
.student-progress .progress { background: var(--box); }
.student-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.notice-block {
  display: flex;
  gap: 7px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--ivory);
  font-size: 10.5px;
  color: var(--muted);
}
.material-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}
.material-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--box); color: var(--muted);
  flex: 0 0 auto;
}
.material-body { flex: 1; min-width: 0; }
.material-body strong { font-size: 12.5px; font-weight: 700; }
.material-body p { margin-top: 2px; }

/* ------------------------------------------------------------- community */
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0 10px;
}
.post-row {
  display: block;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease);
}
.post-row:active { transform: scale(0.99); border-color: var(--line-strong); }
.post-top { display: flex; align-items: center; gap: 6px; }
.pin-mark {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  color: var(--yellow-dark);
}
.post-title { margin-top: 8px; font-size: 14px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.4; }
.post-preview {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-meta { display: flex; gap: 10px; margin-top: 9px; font-size: 10.5px; color: var(--muted-2); }

.detail-nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; }
.post-detail { padding: 4px 18px 0; }
.post-detail-head { display: flex; align-items: center; gap: 6px; }
.post-detail-title { margin-top: 10px; font-size: 21px; font-weight: 800; line-height: 1.35; letter-spacing: -0.03em; }
.post-detail .post-meta { margin-top: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.admin-inline-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--ivory);
  flex-wrap: wrap;
}
.post-body { padding: 16px 0 8px; font-size: 13.5px; line-height: 1.85; color: #202A40; }
.comment-list { margin-top: 4px; }
.comment-row {
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 7px;
  position: relative;
}
.comment-head { display: flex; align-items: baseline; justify-content: space-between; }
.comment-head strong { font-size: 12px; font-weight: 700; }
.comment-body { margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.6; white-space: pre-line; }
.comment-del {
  position: absolute; top: 10px; right: 10px;
  border: 0; background: transparent; color: var(--muted-2);
  font-size: 10px; text-decoration: underline; cursor: pointer;
}
.comment-empty { padding: 10px 2px; }
.comment-form { display: flex; gap: 8px; margin-top: 10px; }
.comment-form textarea {
  flex: 1;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: inherit;
  font-size: 12.5px;
  resize: none;
}
.comment-form textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(245, 184, 46, 0.16); }
.comment-form .btn { align-self: flex-end; }

/* --------------------------------------------------------------- account */
.profile-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 24px 20px 8px;
}
.profile-avatar {
  width: 60px; height: 60px;
  border-radius: 22px;
  background: linear-gradient(150deg, #0B142A, #070D1E);
  color: var(--yellow);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800;
  flex: 0 0 auto;
  box-shadow: var(--shadow-md);
}
.profile-info h1 { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.profile-info p { margin-top: 2px; }
.grade-row { display: flex; align-items: center; gap: 7px; margin-top: 8px; flex-wrap: wrap; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 13px 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.18s var(--ease);
}
.quick-item:active { transform: scale(0.96); }
.quick-item .ico { color: var(--navy); }

.grade-track { display: flex; flex-direction: column; gap: 6px; }
.grade-pip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted-2);
}
.grade-pip span { flex: 0 0 74px; font-weight: 800; }
.grade-pip small { font-size: 10.5px; }
.grade-pip.is-on { border-color: #F0DCA8; background: var(--yellow-soft); color: #6B5312; }
.grade-pip.is-on span { color: #4A3706; }

.coupon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  background: var(--white);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}
.coupon-row strong { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; }
.coupon-test { display: flex; gap: 8px; margin-top: 12px; }
.coupon-test input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: inherit;
  font-size: 12.5px;
  text-transform: uppercase;
}
.coupon-test input:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(245, 184, 46, 0.16); }
.coupon-test .btn { height: 40px; }

.noti-item {
  display: flex;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  margin-bottom: 7px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
}
.noti-item.is-unread { border-color: #F0DCA8; background: #FFFCF3; }
.noti-dot {
  width: 6px; height: 6px; margin-top: 6px;
  border-radius: 50%; background: var(--line-strong); flex: 0 0 auto;
}
.noti-item.is-unread .noti-dot { background: var(--yellow); }
.noti-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.noti-body strong { font-size: 12.5px; font-weight: 700; }
.noti-text { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.noti-meta { font-size: 10px; color: var(--muted-2); margin-top: 2px; }

.form-card { padding: 16px; }
.form-card .field + .field { margin-top: 10px; }

.status-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.status-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--ivory);
  font-size: 12px;
}

/* ----------------------------------------------------------------- more */
.more-list { display: flex; flex-direction: column; gap: 8px; }
.more-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform 0.18s var(--ease);
}
.more-row:active { transform: scale(0.99); }
.more-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 13px;
  background: var(--yellow-soft); color: var(--yellow-dark);
  flex: 0 0 auto;
}
.more-text { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.more-text strong { font-size: 12.5px; font-weight: 800; letter-spacing: 0.02em; }
.more-text span { font-size: 11px; color: var(--muted); }
.brand-card { text-align: center; padding: 22px 18px; }
.brand-card-logo { height: 30px; margin: 0 auto 12px; }
.brand-slogan { font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1.6; }
/* M · I · N · A 4개 칩은 아이폰 폭(360~390px)에서도 항상 한 줄 */
.mina-chips { display: flex; flex-wrap: nowrap; justify-content: center; align-items: stretch; gap: 5px; margin-top: 12px; }
.mina-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  flex: 1 1 0; min-width: 0;
  padding: 6px 5px;
  border-radius: 999px;
  background: var(--ivory);
  font-size: 9.5px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--muted);
}
.mina-chip strong { color: var(--yellow-dark); font-size: 10.5px; }
@media (max-width: 420px) {
  .mina-chips { gap: 4px; }
  .mina-chip { padding: 5px 4px; gap: 3px; font-size: 8.8px; }
  .mina-chip strong { font-size: 10px; }
}
@media (max-width: 360px) {
  .mina-chip { font-size: 8.2px; padding: 5px 3px; }
  .mina-chip strong { font-size: 9.5px; }
}

/* ---------------------------------------------------------------- forms */
.field { display: block; }
.field + .field { margin-top: 12px; }
.field-label { display: block; margin-bottom: 6px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"],
.field input[type="date"],
.field input[type="number"],
.field input[type="url"],
.field input[type="search"],
.field input[type="file"],
.field select,
.field textarea,
.admin-toolbar input {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: #FCFBF8;
  font-family: inherit;
  font-size: 13px;
  color: var(--navy);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
.field textarea { min-height: 64px; resize: vertical; line-height: 1.6; }
.field input[type="file"] { padding: 9px 12px; font-size: 11.5px; background: var(--white); }
/* 좁은 모바일(375~390px)에서도 2열 날짜칸이 카드 밖으로 넘치지 않게
   (iOS 의 date input 은 고유 너비를 가져 1fr 트랙을 밀어내므로 min-width:0 + minmax(0,1fr) 로 막는다) */
.field input[type="date"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--yellow);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(245, 184, 46, 0.18);
}
.field-hint { margin-top: 6px; font-size: 10.5px; color: var(--muted-2); line-height: 1.5; }
/* 그리드 자식의 min-width:auto 때문에 iOS 에서 날짜 입력칸이 카드 밖으로 삐져나오던 문제 */
.form-grid > * { min-width: 0; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 12px; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid-4 { grid-template-columns: 1fr 1fr; }
.span-2 { grid-column: span 2; }
.form-grid .field + .field { margin-top: 0; }
.form-row { margin-top: 12px; }
.input-inline { display: flex; gap: 8px; }
.input-inline input { flex: 1; }
.input-inline .btn { flex: 0 0 auto; min-width: 64px; }
.input-sm {
  width: 100%;
  min-width: 64px;
  height: 34px;
  padding: 0 9px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  font-family: inherit;
  font-size: 11.5px;
  color: var(--navy);
}
.input-sm:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 2px rgba(245, 184, 46, 0.2); }
.is-hidden { display: none !important; }

.auth-card { margin-top: 14px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.auth-card .btn { margin-top: 16px; }
.consent-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--muted);
}
.consent-row input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--navy); }
.auth-divider {
  position: relative;
  margin: 18px 0 14px;
  text-align: center;
  font-size: 10.5px;
  color: var(--muted-2);
}
.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.auth-divider span { position: relative; padding: 0 10px; background: var(--ivory); }

/* ------------------------------------------------------- booking elements */
.booking-summary {
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: var(--ivory);
  margin-bottom: 14px;
}
.booking-summary-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.booking-summary-top strong { font-size: 14px; font-weight: 800; }
.booking-summary-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 11px; color: var(--muted); }
.booking-summary-meta span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; word-break: keep-all; }
.chip-radio-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-radio { position: relative; }
.chip-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-radio span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.16s var(--ease);
}
.chip-radio input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  box-shadow: 0 6px 14px rgba(7, 13, 30, 0.16);
}
.pay-box {
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: var(--yellow-soft);
  border: 1px solid #F3E4BB;
}
.pay-line { display: flex; align-items: baseline; justify-content: space-between; }
.pay-line span { font-size: 11.5px; color: #6B5312; font-weight: 600; }
.pay-line strong { font-size: 18px; font-weight: 800; color: #4A3706; letter-spacing: -0.03em; }
.pay-note { display: flex; gap: 6px; margin-top: 8px; font-size: 10.5px; line-height: 1.5; color: #7A5B12; }
.pay-note .ico { flex: 0 0 auto; margin-top: 1px; }

.success-mark {
  width: 62px; height: 62px;
  margin: 4px auto 14px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px rgba(7, 13, 30, 0.2);
}
.success-title { text-align: center; font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.success-sub { text-align: center; margin-top: 4px; font-size: 12px; color: var(--muted); }
.summary-list { margin: 16px 0; border-top: 1px solid var(--line); }
.summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.summary-row span { color: var(--muted); flex: 0 0 auto; }
.summary-row strong { font-weight: 700; text-align: right; }

/* ---------------------------------------------------------------- notice */
.notice {
  display: flex;
  gap: 8px;
  padding: 12px 13px;
  border-radius: var(--radius-sm);
  background: var(--box);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 10px;
}
.notice:last-child { margin-bottom: 0; }
.notice-ico { flex: 0 0 auto; margin-top: 1px; color: var(--muted-2); }
.notice-warn { background: #FFF7E3; border: 1px solid #F3E4BB; color: #6B5312; }
.notice-warn .notice-ico { color: var(--yellow-dark); }
.notice-neutral { background: var(--box); }
.notice strong { color: var(--navy); font-weight: 700; }
.notice-warn strong { color: #4A3706; }

.info-rows { display: flex; flex-direction: column; gap: 8px; }
.info-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 12px 13px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}
.info-row .ico { color: var(--yellow-dark); flex: 0 0 auto; margin-top: 1px; }
.info-row strong { color: var(--navy); }
.bullet-list { margin: 10px 0; padding-left: 16px; list-style: disc; }
.bullet-list li { font-size: 11.5px; line-height: 1.7; color: var(--muted); margin-bottom: 2px; }

/* -------------------------------------------------------------- tab strip */
.tab-strip {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--box);
}
.tab-btn {
  flex: 1;
  min-height: 36px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.tab-btn.is-on { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }
.tab-panel { display: none; }
.tab-panel.is-on { display: block; animation: viewIn 0.24s var(--ease); }

/* --------------------------------------------------------------- empty */
.empty {
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}
.empty-error { border-color: #EFD8D5; background: #FFFBFB; }
.empty-icon {
  width: 48px; height: 48px;
  margin: 0 auto 10px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted-2);
  display: flex; align-items: center; justify-content: center;
}
.empty-error .empty-icon { color: var(--red); border-color: #F0D9D7; }
.empty-title { font-size: 13.5px; font-weight: 800; letter-spacing: -0.02em; }
.empty-desc { margin-top: 5px; font-size: 11.5px; line-height: 1.65; color: var(--muted-2); }
.empty-action { margin-top: 14px; display: flex; justify-content: center; gap: 8px; }

/* ------------------------------------------------------------ loading UI */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(7, 13, 30, 0.12);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex: 0 0 auto;
}
.spinner-sm { width: 13px; height: 13px; border-width: 2px; border-top-color: currentColor; border-color: rgba(255, 255, 255, 0.35); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px 0;
  font-size: 11.5px;
  color: var(--muted-2);
}
.skeleton-wrap { display: flex; flex-direction: column; gap: 8px; }
.skeleton-row {
  height: 74px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #F3EFE6 25%, #FAF7F2 50%, #F3EFE6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* --------------------------------------------------------- sheet & modal */
.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(7, 13, 30, 0.42);
  opacity: 0;
  transition: opacity 0.24s var(--ease);
  padding: 0;
}
.sheet-overlay.is-in { opacity: 1; }
.sheet {
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -20px 60px rgba(7, 13, 30, 0.24);
  transform: translateY(28px);
  transition: transform 0.28s var(--ease);
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet-overlay.is-in .sheet { transform: translateY(0); }
.sheet-grip {
  width: 40px; height: 4px;
  margin: 9px auto 2px;
  border-radius: 999px;
  background: var(--line-strong);
  flex: 0 0 auto;
}
.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px 10px;
  flex: 0 0 auto;
}
.sheet-title { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.sheet-sub { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.sheet-close { flex: 0 0 auto; width: 34px; height: 34px; }
.sheet-body {
  padding: 4px 18px 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}
.sheet-foot {
  display: flex;
  gap: 8px;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--line);
  background: rgba(250, 247, 242, 0.96);
  flex: 0 0 auto;
}
.sheet-foot .btn { flex: 0 0 auto; }
.sheet-foot .btn-grow { flex: 1; }
.sheet-help { font-size: 12px; line-height: 1.7; color: var(--muted); }
.confirm-text { font-size: 12.5px; line-height: 1.7; color: var(--muted); }

@media (min-width: 700px) {
  .sheet-overlay { align-items: center; padding: 24px; }
  .sheet.sheet-wide { max-width: 760px; }
  .sheet { border-radius: 26px; max-height: 86vh; transform: translateY(14px) scale(0.98); }
  .sheet-overlay.is-in .sheet { transform: translateY(0) scale(1); }
  .sheet-grip { display: none; }
  .sheet-head { padding-top: 18px; }
}

/* ---------------------------------------------------------------- toast */
#toast-root {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc(100% - 36px);
  max-width: 394px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(7, 13, 30, 0.95);
  color: var(--white);
  font-size: 12px;
  line-height: 1.5;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}
.toast.is-in { opacity: 1; transform: translateY(0); }
.toast-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); flex: 0 0 auto; }
.toast-success .toast-dot { background: #7ED9A8; }
.toast-error .toast-dot { background: #FF8F86; }

/* ----------------------------------------------------------------- admin */
body.admin-mode { background: #F3EFE6; }
body.admin-mode .app {
  max-width: 100%;
  padding-bottom: 32px;
  background: #F6F2EA;
  box-shadow: none;
  border: 0;
}
body.admin-mode #tabbar { display: none; }
body.admin-mode #app-header { display: none; }

.admin-page { padding: 0 0 26px; }
.admin-page .empty { margin: 18px; }
.admin-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(246, 242, 234, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.admin-header-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.admin-back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.admin-header h1 { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.admin-header .muted { margin-top: 1px; }

.admin-tabs {
  position: sticky;
  top: 63px;
  z-index: 25;
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  overflow-x: auto;
  background: rgba(246, 242, 234, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}
.admin-tab.is-on { background: var(--navy); border-color: var(--navy); color: var(--white); box-shadow: 0 6px 16px rgba(7, 13, 30, 0.16); }

.admin-body { padding: 16px 14px 0; max-width: 1180px; margin: 0 auto; }
.admin-section {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.admin-h2 { font-size: 14px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.admin-h4 { margin: 14px 0 6px; font-size: 12px; font-weight: 800; color: var(--muted); }
.admin-form { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.admin-form .btn { margin-top: 12px; }
.admin-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.admin-toolbar input { flex: 0 1 260px; min-height: 38px; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.stat-card {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-card.tone-navy { background: linear-gradient(150deg, #0B142A, #070D1E); border-color: var(--navy); color: var(--white); }
.stat-card.tone-navy .stat-label, .stat-card.tone-navy .stat-sub { color: rgba(255, 255, 255, 0.6); }
.stat-card.tone-navy .stat-value { color: var(--yellow); }
.stat-card.tone-yellow { background: var(--yellow-soft); border-color: #F3E4BB; }
.stat-label { font-size: 10.5px; color: var(--muted-2); font-weight: 600; }
.stat-value { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.stat-sub { font-size: 10px; color: var(--muted-2); }

.table-scroll { overflow-x: auto; margin: 0 -4px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 11.5px; min-width: 560px; }
.data-table th {
  text-align: left;
  padding: 8px 8px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td {
  padding: 9px 8px;
  border-bottom: 1px solid #F4EFE6;
  vertical-align: top;
  color: var(--muted);
}
.data-table td strong { color: var(--navy); }

@media (max-width: 560px) {
  .data-table { min-width: 480px; font-size: 11px; }
  .form-grid-4 { grid-template-columns: 1fr 1fr; }
}
.table-empty { text-align: center; color: var(--muted-2); padding: 22px 8px; font-size: 11.5px; }

.mini-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #F4EFE6;
  font-size: 11.5px;
  color: var(--muted);
}
.mini-row span { flex: 0 0 auto; color: var(--muted-2); font-size: 10.5px; }
.mini-row strong { flex: 1; color: var(--navy); font-weight: 600; }

.switch { position: relative; display: inline-block; width: 38px; height: 22px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background 0.2s var(--ease);
}
.switch span::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.2s var(--ease);
  box-shadow: 0 1px 3px rgba(7, 13, 30, 0.2);
}
.switch input:checked + span { background: var(--navy); }
.switch input:checked + span::after { transform: translateX(16px); }
.field-inline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.field-inline .field-label { margin-bottom: 0; }

@media (min-width: 900px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .admin-body { padding: 22px 24px 0; }
  .admin-header { padding: 18px 24px; }
  .admin-tabs { padding: 12px 24px; }
  .form-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ------------------------------------------------------------ responsive */
/* 하단 탭 6개(홈·브레인체크·MY BRAIN·두뇌게임·프로그램·더보기) 한 줄 보정 */
@media (max-width: 380px) {
  #tabbar { padding-left: 4px; padding-right: 4px; }
  .tab { padding-left: 0; padding-right: 0; gap: 2px; }
  .tab-label { font-size: 9.2px; letter-spacing: -0.05em; }
}
@media (max-width: 340px) {
  .tab-label { font-size: 8.6px; letter-spacing: -0.06em; }
}

@media (max-width: 360px) {
  .page-title { font-size: 24px; }
  .hero-title { font-size: 22px; }
  .menu-card { min-height: 108px; padding: 13px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* =====================================================================
   v2.0.0 — MINA WORLD 통합 플랫폼 (샴페인 골드 프리미엄 · 관리자/기관 데스크톱)
   ===================================================================== */

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.02em; }
.nowrap { white-space: nowrap; }

.pill-gold { background: var(--gold-soft); color: var(--gold-dark); border: 1px solid rgba(201, 169, 110, 0.4); }
.badge-gold { background: rgba(201, 169, 110, 0.16); color: #7A5F2C; }
.stat-card.tone-gold { background: linear-gradient(150deg, #FBF6EA, var(--gold-soft)); border-color: #E8D9BC; }
.stat-card.tone-gold .stat-value { color: #7A5F2C; }
.field-sub { font-weight: 500; color: var(--muted-2); font-size: 10.5px; margin-left: 6px; }

/* ------------------------------------------------- 개인 회원 대시보드 */
.dash { padding: 18px 18px 4px; }
.dash-hello { margin-bottom: 16px; }
.dash-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; color: var(--gold-dark); text-transform: uppercase; }
.dash-hello h1 { font-size: 23px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.3; margin: 6px 0 4px; }
.dash-hello h1 strong { font-weight: 800; }
.dash-hello p { font-size: 12.5px; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.dash-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 13px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  min-height: 92px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.dash-tile:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.dash-ico { color: var(--gold-dark); display: flex; }
.dash-label { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted-2); text-transform: uppercase; }
.dash-value { font-size: 16px; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); line-height: 1.25; }
.dash-sub { font-size: 10px; color: var(--muted-2); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.share-banner {
  margin-top: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, #FFFDF8, var(--gold-soft));
  border: 1px solid rgba(201, 169, 110, 0.45);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.share-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; color: var(--gold-dark); text-transform: uppercase; }
.share-banner-body strong { display: block; font-size: 14px; margin: 4px 0 2px; }
.share-banner-body p { font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.share-banner-actions { display: flex; gap: 8px; justify-content: flex-end; }

.reco-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.reco-list::-webkit-scrollbar { display: none; }
.reco-card {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.reco-badge { font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em; color: var(--gold-dark); text-transform: uppercase; }
.reco-card strong { font-size: 13.5px; letter-spacing: -0.02em; }
.reco-price { font-size: 12px; font-weight: 700; color: var(--navy); }
.reco-desc { font-size: 10.5px; color: var(--muted-2); line-height: 1.5; }

.org-chip-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.org-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 13px; border-radius: var(--radius-sm);
  background: var(--white); border: 1px solid var(--line); font-size: 12px;
}
.org-chip strong { font-weight: 700; }

/* ------------------------------------------------------- MY BRAIN v2 */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 10px 0; }
.metric-cell { padding: 9px 8px; border-radius: 12px; background: var(--gold-soft); border: 1px solid #EFE4CC; display: flex; flex-direction: column; gap: 1px; }
.metric-cell span { font-size: 9.5px; color: #7A5F2C; font-weight: 600; }
.metric-cell strong { font-size: 15px; letter-spacing: -0.02em; }
.item-detail-list { margin: 10px 0; border-top: 1px solid var(--line); }
.item-detail-row { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid #F4EFE6; font-size: 11.5px; }
.item-detail-row span { flex: 0 0 38%; color: var(--muted-2); font-weight: 600; }
.item-detail-row strong { flex: 1; font-weight: 500; color: var(--muted); line-height: 1.55; }
.compare-card { padding: 14px; border-radius: var(--radius-md); background: var(--white); border: 1px solid var(--line); margin-bottom: 12px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 11.5px; margin-top: 8px; }
.compare-table th { text-align: left; font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); padding: 6px 4px; border-bottom: 1px solid var(--line); }
.compare-table td { padding: 7px 4px; border-bottom: 1px solid #F4EFE6; color: var(--muted); }
.emotion-line { display: flex; align-items: center; gap: 6px; margin-top: 9px; padding: 8px 11px; border-radius: 11px; background: var(--gold-soft); border: 1px solid #EFE4CC; font-size: 11.5px; color: #7A5F2C; }
.emotion-line strong { color: var(--navy); }
.item-more { margin-top: 5px; font-size: 10.5px; color: var(--muted-2); }
.item-more a { color: var(--navy); text-decoration: underline; }
.compare-notes { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.compare-note { padding: 9px 11px; border-radius: 10px; background: var(--box); font-size: 11px; color: var(--muted); }
.compare-note span { display: block; margin-bottom: 3px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted-2); }
.compare-note p { margin: 0; line-height: 1.55; white-space: pre-line; }
.compare-table tr.is-changed td { background: rgba(240, 199, 94, 0.10); }
.compare-table tr.is-changed td:first-child { font-weight: 700; color: var(--navy); }
.compare-table td strong { color: var(--navy); }
.delta { font-size: 10px; font-weight: 700; color: var(--muted-2); }
.delta.is-up { color: var(--green); }
.delta.is-down { color: var(--red); }
.result-row, .session-row { padding: 12px 13px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); margin-bottom: 8px; }
.result-row-head, .session-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.result-row-head strong, .session-head strong { font-size: 12.5px; }
.counselor-note { display: flex; gap: 6px; margin-top: 8px; padding: 9px 10px; border-radius: 12px; background: var(--gold-soft); font-size: 11px; color: var(--muted); line-height: 1.6; }
.counselor-note .ico { flex: 0 0 auto; color: var(--gold-dark); margin-top: 2px; }
.counselor-list { display: flex; flex-direction: column; gap: 8px; }
.counselor-row { padding: 12px 13px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); font-size: 11.5px; }
.counselor-row strong { display: block; margin: 3px 0; font-size: 12px; }
.counselor-row p { color: var(--muted); line-height: 1.6; }

/* --------------------------------------------------------- 동의 · 계정 */
.consent-group { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; }
.consent-block {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 11px 12px; border-radius: var(--radius-sm);
  background: var(--white); border: 1px solid var(--line);
}
.consent-block input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--gold-dark); flex: 0 0 auto; }
.consent-block strong { display: block; font-size: 11.5px; font-weight: 700; }
.consent-block em { display: block; font-style: normal; font-size: 10.5px; color: var(--muted-2); line-height: 1.55; margin-top: 2px; }
.membership-row {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 13px; border-radius: var(--radius-sm);
  background: var(--white); border: 1px solid var(--line); margin-bottom: 8px;
}
.membership-info { display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.membership-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.consent-history { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.consent-history-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid #F4EFE6; font-size: 11px; }
.consent-history-row strong { font-size: 11.5px; }
.danger-card { border-color: #F0D6D3; background: #FFFBFA; }
.danger-title { display: block; font-size: 12.5px; font-weight: 800; color: var(--red); margin-bottom: 4px; }

/* ------------------------------------------------------ 캘린더 (예약) */
.seg-group { display: inline-flex; gap: 4px; padding: 3px; border-radius: 12px; background: var(--box); border: 1px solid var(--line); }
.seg-btn {
  padding: 6px 12px; border-radius: 9px; font-size: 11px; font-weight: 700; color: var(--muted);
  background: transparent; border: 1px solid transparent; white-space: nowrap;
}
.seg-btn.is-on { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }
.period-custom { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.field-compact { display: flex; flex-direction: column; gap: 4px; font-size: 10.5px; color: var(--muted-2); font-weight: 600; }
.field-compact input, .field-compact select { min-height: 34px; padding: 6px 9px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--white); font-size: 11.5px; color: var(--navy); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 10px; }
.cal-head strong { font-size: 14px; font-weight: 800; letter-spacing: -0.02em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid-head span { text-align: center; font-size: 10px; font-weight: 700; color: var(--muted-2); padding: 3px 0; }
.cal-cell {
  position: relative;
  min-height: 54px;
  padding: 6px 5px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.cal-cell:hover { border-color: var(--gold); transform: translateY(-1px); }
.cal-cell.is-empty { background: transparent; border-color: transparent; pointer-events: none; }
.cal-cell.is-today { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201, 169, 110, 0.18); }
.cal-cell.has-booking { background: linear-gradient(160deg, #FFFDF8, var(--white)); }
.cal-num { font-size: 11px; font-weight: 700; color: var(--muted); }
.cal-cell.is-today .cal-num { color: var(--gold-dark); }
.cal-count { position: absolute; top: 5px; right: 6px; font-size: 9.5px; font-weight: 800; color: var(--navy); background: var(--gold-soft); border-radius: 6px; padding: 0 4px; }
.cal-dots { display: flex; gap: 3px; flex-wrap: wrap; margin-top: auto; }
.dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; background: var(--line-strong); }
.dot-pending { background: var(--yellow); }
.dot-confirmed { background: var(--navy); }
.dot-completed { background: var(--green); }
.dot-canceled { background: var(--red); }
.dot-noshow { background: #8A93A6; }
.cal-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 10px; color: var(--muted-2); }
.cal-legend span { display: inline-flex; align-items: center; gap: 4px; }

.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.week-col { border-radius: 12px; background: var(--white); border: 1px solid var(--line); padding: 8px 6px; min-height: 120px; }
.week-col.is-today { border-color: var(--gold); }
.week-col-head { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.week-col-head strong { font-size: 10.5px; font-weight: 800; }
.week-col-head em { font-style: normal; font-size: 9.5px; color: var(--muted-2); }
.week-item {
  display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left;
  padding: 6px 7px; margin-bottom: 5px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--ivory); font-size: 10px; color: var(--muted);
}
.week-item.tone-yellow { background: #FFFBF0; border-color: #F3E4BB; }
.week-item.tone-navy { background: #F5F7FC; border-color: #D9E0F0; }
.week-item.tone-green { background: var(--green-soft); border-color: #CDE7DB; }
.week-item.tone-red { background: var(--red-soft); border-color: #F0D6D3; }
.week-time { font-weight: 800; color: var(--navy); }
.week-title { font-weight: 600; color: var(--navy); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.week-sub { color: var(--muted-2); }
.week-empty { font-size: 9.5px; color: var(--muted-2); text-align: center; padding: 8px 0; }

.day-list { display: flex; flex-direction: column; gap: 7px; }
.day-row { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.day-time { font-size: 12.5px; font-weight: 800; color: var(--navy); flex: 0 0 48px; }
.day-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.day-body strong { font-size: 12px; }
.day-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.day-actions select { min-height: 30px; font-size: 10.5px; padding: 3px 6px; }
.footer-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.status-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.status-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 10px; background: var(--ivory); border: 1px solid var(--line); font-size: 10.5px; }
.status-chip em { font-style: normal; color: var(--muted-2); }
.status-chip strong { color: var(--navy); }

/* ---------------------------------------------------- 관리자 · 기관 공통 */
.stat-grid-4 { grid-template-columns: repeat(2, 1fr); }
.stat-grid-5 { grid-template-columns: repeat(2, 1fr); }
.admin-header-right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chart-wrap-tall { height: 260px; }
.kv-row { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.kv-row input { flex: 1; min-height: 34px; padding: 6px 9px; border-radius: 9px; border: 1px solid var(--line-strong); font-size: 11.5px; background: var(--white); }
.kv-key { flex: 0 0 38%; }
.kv-list { display: block; }
.kv-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.kv-actions .btn { flex: 0 0 auto; white-space: nowrap; }
.kv-row input::placeholder { color: var(--muted-2); font-size: 10.5px; }
@media (max-width: 560px) {
  .kv-row { flex-wrap: wrap; }
  .kv-key { flex: 1 1 100%; }
  .kv-value { flex: 1 1 auto; }
}
.perm-grid { display: grid; grid-template-columns: 1fr; gap: 6px; margin: 6px 0 10px; }
.perm-item { display: flex; gap: 8px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--ivory); }
.perm-item input { margin-top: 2px; width: 15px; height: 15px; accent-color: var(--gold-dark); }
.perm-item strong { display: block; font-size: 11px; }
.perm-item em { display: block; font-style: normal; font-size: 10px; color: var(--muted-2); }
.perm-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.perm-chip { font-size: 10px; font-weight: 600; padding: 4px 8px; border-radius: 999px; background: var(--gold-soft); color: #7A5F2C; border: 1px solid rgba(201, 169, 110, 0.35); }
.member-chip-grid { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.member-chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 9px 12px; border-radius: 12px; background: var(--gold-soft); border: 1px solid #EFE4CC;
  font-size: 11.5px; text-align: left;
}
.member-chip strong { font-size: 12px; }
.member-chip em { font-style: normal; font-size: 10px; color: var(--muted-2); }
.sched-block { margin-bottom: 12px; }
.sched-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 5px 0; border-bottom: 1px solid #F7F2E8; }
.sched-day { flex: 0 0 22px; font-size: 11px; font-weight: 800; color: var(--navy); }
.sched-row input[type="time"] { min-height: 30px; padding: 3px 6px; border-radius: 8px; border: 1px solid var(--line-strong); font-size: 11px; }
.audit-legend { display: flex; gap: 6px; flex-wrap: wrap; }
.is-dim { opacity: 0.62; }
.mfa-enroll { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; margin: 10px 0; padding: 14px; border-radius: var(--radius-md); background: var(--gold-soft); border: 1px solid #EFE4CC; }
.mfa-qr img { width: 168px; height: 168px; border-radius: 12px; background: var(--white); padding: 8px; border: 1px solid var(--line); }
.mfa-info { flex: 1 1 240px; min-width: 220px; }
.mfa-info .secret { font-size: 12px; word-break: break-all; background: var(--white); padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); }
.mfa-info .field { margin: 10px 0; }

/* ------------------------------------------------------- 관리자 로그인 */
body.portal-mode { background: var(--navy); }
body.portal-mode .app { max-width: 100%; padding-bottom: 0; background: var(--navy); box-shadow: none; border: 0; }
body.portal-mode #tabbar, body.portal-mode #app-header { display: none; }
body.portal-mode .mode-banner { display: none; }
.portal-page { padding: 0; }
.portal {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--navy);
  color: var(--white);
}
.portal-aside {
  position: relative;
  padding: 32px 24px 28px;
  background:
    radial-gradient(circle at 88% 8%, rgba(201, 169, 110, 0.28), transparent 46%),
    radial-gradient(circle at 10% 92%, rgba(245, 184, 46, 0.12), transparent 42%),
    linear-gradient(160deg, #0B142A, #070D1E 60%, #050A16);
  border-bottom: 1px solid rgba(201, 169, 110, 0.18);
}
.portal-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.portal-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--gold), #B08F52); color: var(--navy);
  font-weight: 900; font-size: 19px; letter-spacing: -0.02em;
}
.portal-brand strong { display: block; font-size: 13px; letter-spacing: 0.14em; }
.portal-brand span { display: block; font-size: 10px; color: rgba(255, 255, 255, 0.55); letter-spacing: 0.08em; }
.portal-title { font-size: 26px; line-height: 1.3; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 10px; }
.portal-desc { font-size: 12px; line-height: 1.7; color: rgba(255, 255, 255, 0.62); margin-bottom: 22px; }
.portal-points { display: flex; flex-direction: column; gap: 12px; }
.portal-points li { display: flex; gap: 11px; align-items: flex-start; }
.portal-num { font-size: 10px; font-weight: 800; color: var(--gold); letter-spacing: 0.08em; padding-top: 2px; }
.portal-points strong { display: block; font-size: 12.5px; }
.portal-points em { display: block; font-style: normal; font-size: 10.5px; color: rgba(255, 255, 255, 0.5); line-height: 1.55; }
.portal-foot { margin-top: 24px; font-size: 9.5px; line-height: 1.7; color: rgba(255, 255, 255, 0.38); }
.portal-main { display: flex; align-items: center; justify-content: center; padding: 26px 18px 40px; }
.portal-card {
  width: 100%; max-width: 420px;
  padding: 22px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}
.portal-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; color: var(--gold); text-transform: uppercase; }
.portal-card h2 { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 6px; color: var(--white); }
.portal-card .muted, .portal-card .muted.small { color: rgba(255, 255, 255, 0.55) !important; }
.portal-lead { font-size: 11.5px; color: rgba(255, 255, 255, 0.66); margin: 10px 0 14px; line-height: 1.65; }
.portal-card .field-label { color: rgba(255, 255, 255, 0.7); }
.portal-card input, .portal-card select, .portal-card textarea {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--white);
}
.portal-card input::placeholder { color: rgba(255, 255, 255, 0.34); }
.portal-card .btn-primary { background: linear-gradient(150deg, var(--gold), #B08F52); color: var(--navy); box-shadow: 0 12px 26px rgba(201, 169, 110, 0.24); }
.portal-card .btn-primary:hover { background: linear-gradient(150deg, #D6B77C, #B08F52); }
.portal-card .btn-ghost { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); color: var(--white); }
.portal-card .field-hint { color: rgba(255, 255, 255, 0.45); }
.portal-card .notice { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.7); }
.portal-card .notice strong { color: var(--white); }
.portal-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 11px; }
.portal-links a { color: rgba(255, 255, 255, 0.6); text-decoration: underline; text-underline-offset: 3px; }
.portal-cap { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.portal-cap h3 { font-size: 11.5px; margin-bottom: 4px; color: var(--white); }
.portal-cap .muted.small { margin-bottom: 8px; }
.badge-gold { background: rgba(201, 169, 110, 0.2); color: #E3C88F; }
.portal-mini { padding: 60px 24px; text-align: center; color: var(--white); }
.portal-mini h1 { font-size: 22px; margin-bottom: 8px; }
.portal-mini .muted { color: rgba(255, 255, 255, 0.6); margin-bottom: 18px; }

/* ------------------------------------------------------------ 반응형 v2 */
@media (min-width: 700px) {
  .dash-grid { grid-template-columns: repeat(3, 1fr); }
  .perm-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .portal-card { padding: 30px 28px; max-width: 440px; }
  .cal-cell { min-height: 74px; }
}

@media (min-width: 1024px) {
  .portal { grid-template-columns: 1.05fr 1fr; }
  .portal-aside { padding: 56px 52px; border-bottom: 0; border-right: 1px solid rgba(201, 169, 110, 0.16); display: flex; flex-direction: column; justify-content: center; }
  .portal-title { font-size: 34px; }
  .portal-desc { font-size: 13px; max-width: 420px; }
  .portal-main { padding: 56px 40px; }
  .stat-grid-5 { grid-template-columns: repeat(5, 1fr); }
  .admin-body { max-width: 1440px; }
  .data-table { font-size: 12px; min-width: 720px; }
  .week-grid { gap: 10px; }
}

@media (min-width: 1280px) {
  .dash { padding: 26px 30px 8px; }
  .dash-grid { grid-template-columns: repeat(6, 1fr); }
  .dash-tile { min-height: 104px; }
}

/* v2 소소한 보완 */
.bk-place { margin: 10px 0; }
.kv-value { flex: 1 1 60%; }

/* 태블릿 · PC에서 B2C 앱이 답답하지 않도록 폭 확장 */
@media (min-width: 700px) {
  body:not(.admin-mode):not(.portal-mode) .app { max-width: 560px; }
  body:not(.admin-mode):not(.portal-mode) .dash-grid { grid-template-columns: repeat(3, 1fr); }
  body:not(.admin-mode):not(.portal-mode) .menu-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  body:not(.admin-mode):not(.portal-mode) .app { max-width: 640px; }
  body:not(.admin-mode):not(.portal-mode) .dash-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================ 하루 한 스푼 */
/* 홈페이지 '하루 한 스푼, 뇌과학' 연재를 앱에서 읽는 카드 · 리더 뷰 */

.spoon-all-link {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 11.5px; font-weight: 700; color: var(--gold-dark);
}

/* 홈 — 오늘의 연재 카드 */
.spoon-hero {
  position: relative;
  display: block;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(152deg, #0B142A 0%, #070D1E 60%, #16223F 100%);
  border: 1px solid rgba(201, 169, 110, 0.42);
  box-shadow: 0 14px 34px rgba(7, 13, 30, 0.22);
  color: var(--white);
  overflow: hidden;
  transition: transform 0.18s var(--ease);
}
.spoon-hero::after {
  content: '';
  position: absolute; top: -46px; right: -34px;
  width: 132px; height: 132px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.34) 0%, rgba(201, 169, 110, 0) 70%);
  pointer-events: none;
}
.spoon-hero:active { transform: scale(0.985); }
.spoon-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.spoon-hero-tag {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.2em;
  color: #E3C88F; text-transform: uppercase;
}
.spoon-hero-date { font-size: 10.5px; font-weight: 600; color: rgba(255, 255, 255, 0.58); }
.spoon-hero-title {
  display: block; margin-top: 10px;
  word-break: keep-all;
  font-size: 17px; font-weight: 800; line-height: 1.4; letter-spacing: -0.025em;
}
.spoon-hero-summary {
  margin-top: 8px;
  word-break: keep-all; font-size: 12px; line-height: 1.62; color: rgba(255, 255, 255, 0.72);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.spoon-hero-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 14px;
}
.spoon-hero-foot .pill-gold { background: rgba(201, 169, 110, 0.18); color: #E9D3A4; border-color: rgba(201, 169, 110, 0.45); }
.spoon-hero-cta {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 700; color: var(--yellow);
}

/* 커뮤니티 — 연재 블록 + 카드 */
.spoon-block { margin: 4px 0 16px; }
.spoon-block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.spoon-eyebrow {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.18em;
  color: var(--gold-dark); text-transform: uppercase;
}
.spoon-block-title { margin-top: 4px; font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.spoon-block-desc { margin: 6px 0 12px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.spoon-list-wrap { display: flex; flex-direction: column; gap: 8px; }
.spoon-card {
  display: block;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease);
}
.spoon-card:active { transform: scale(0.99); border-color: var(--line-strong); }
.spoon-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.spoon-date { font-size: 10.5px; font-weight: 600; color: var(--muted-2); }
.spoon-title { margin-top: 8px; word-break: keep-all; font-size: 14.5px; font-weight: 800; line-height: 1.42; letter-spacing: -0.02em; }
.spoon-preview {
  margin-top: 5px;
  word-break: keep-all; font-size: 11.5px; line-height: 1.55; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.spoon-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 10px; padding-top: 9px;
  border-top: 1px dashed var(--line);
  font-size: 10.5px; color: var(--muted-2);
}
.spoon-more { display: inline-flex; align-items: center; gap: 1px; font-weight: 700; color: var(--gold-dark); }
.spoon-empty-note { padding: 6px 2px 2px; font-size: 12px; color: var(--muted-2); }

/* 리더 뷰 */
.spoon-reader { padding: 4px 18px 0; }
.spoon-reader-head { padding-top: 2px; }
.spoon-reader-title { margin-top: 10px; word-break: keep-all; font-size: 22px; font-weight: 800; line-height: 1.34; letter-spacing: -0.03em; }
.spoon-lead { margin-top: 9px; word-break: keep-all; font-size: 13px; line-height: 1.66; color: var(--muted); }
.spoon-reader-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin-top: 12px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px; color: var(--muted-2);
}
.spoon-dot { color: var(--line-strong); }
.spoon-tldr {
  margin-top: 16px; padding: 16px;
  background: var(--gold-soft);
  border: 1px solid #E8D9BC;
  border-radius: var(--radius-md);
}
.spoon-tldr-head {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: #7A5F2C;
}
.spoon-tldr ul { margin-top: 9px; display: flex; flex-direction: column; gap: 7px; }
.spoon-tldr li { position: relative; word-break: keep-all; padding-left: 13px; font-size: 12.5px; line-height: 1.66; color: #4A3C22; }
.spoon-tldr li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}
.spoon-body { margin-top: 18px; }
.spoon-section + .spoon-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.spoon-h2 {
  word-break: keep-all;
  display: flex; align-items: baseline; gap: 7px;
  font-size: 16.5px; font-weight: 800; line-height: 1.42; letter-spacing: -0.02em;
}
.spoon-num { font-size: 13px; font-weight: 800; color: var(--gold-dark); }
.spoon-rich { margin-top: 10px; }
.spoon-p { word-break: keep-all; font-size: 13.5px; line-height: 1.85; color: #202A40; }
.spoon-p + .spoon-p { margin-top: 9px; }
.spoon-sub { margin-top: 12px; word-break: keep-all; font-size: 12.5px; font-weight: 800; color: var(--navy); }
.spoon-sub + .spoon-p { margin-top: 5px; }
.spoon-list { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.spoon-list li { position: relative; word-break: keep-all; padding-left: 12px; font-size: 12.5px; line-height: 1.72; color: #2C3550; }
.spoon-list li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong);
}
.spoon-reader .notice { margin-top: 16px; }
.spoon-actions { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 10px; }

/* ===== 공유 (카톡 · 문자 · 링크 복사) ===== */
.detail-nav-right { display: flex; align-items: center; gap: 4px; }
.share-nav-btn { width: 34px; height: 34px; background: var(--box); color: var(--navy); }
.share-nav-btn:hover { background: var(--gold-soft); }
.spoon-meta-actions { display: inline-flex; align-items: center; gap: 8px; }
.spoon-head-actions { display: inline-flex; align-items: center; gap: 8px; }
.spoon-card-main { display: block; color: inherit; }

.share-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white);
  font-size: 10.5px; font-weight: 700; color: var(--muted);
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.share-chip .ico { color: var(--gold-dark); }
.share-chip:hover, .share-chip:active { background: var(--gold-soft); border-color: rgba(201, 169, 110, 0.45); color: var(--navy); }

.spoon-share-bar {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px;
  margin: 14px 0 4px;
}
.spoon-share-bar.is-bottom { margin: 16px 0 2px; }
.share-btn {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 0; padding: 10px 4px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); color: var(--navy);
  font-size: 11px; font-weight: 700; letter-spacing: -0.03em;
  word-break: keep-all; white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.share-btn .ico { flex: 0 0 auto; color: var(--gold-dark); }
.share-btn:active { transform: scale(0.97); background: var(--gold-soft); border-color: rgba(201, 169, 110, 0.45); }
@media (max-width: 359px) {
  .share-btn { font-size: 10px; gap: 3px; padding: 9px 2px; }
}

/* 공유 바텀시트 */
.share-note {
  padding: 9px 11px; margin-bottom: 10px;
  border-radius: 11px; background: var(--gold-soft); border: 1px solid #E8D9BC;
  font-size: 11.5px; line-height: 1.6; color: #7A5F2C; word-break: keep-all;
}
.share-preview { padding: 13px 14px; border-radius: var(--radius-md); background: var(--box); border: 1px solid var(--line); }
.share-preview-tag { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: 0.12em; color: var(--gold-dark); text-transform: uppercase; }
.share-preview-title {
  display: block; margin-top: 5px;
  font-size: 13.5px; font-weight: 800; line-height: 1.45; letter-spacing: -0.02em;
  color: var(--navy); word-break: keep-all;
}
.share-preview-desc {
  margin-top: 5px; font-size: 11.5px; line-height: 1.6; color: var(--muted); word-break: keep-all;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.share-preview-url { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line-strong); font-size: 10.5px; color: var(--muted-2); word-break: break-all; }
.share-options { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.share-opt {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 13px;
  background: var(--white); color: var(--navy); text-align: left; cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.share-opt:active { background: var(--gold-soft); border-color: rgba(201, 169, 110, 0.45); }
.share-opt-ico {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold-dark);
}
.share-opt-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.share-opt-text strong { font-size: 12.5px; font-weight: 800; letter-spacing: -0.02em; word-break: keep-all; }
.share-opt-text span { font-size: 10.5px; color: var(--muted); line-height: 1.45; word-break: keep-all; }
.share-opt > .ico { flex: 0 0 auto; color: var(--muted-2); }
.share-tip { margin-top: 10px; font-size: 10.5px; color: var(--muted-2); line-height: 1.55; word-break: keep-all; text-align: center; }

/* ===== 개인정보 처리방침 · 민감정보 안내 시트 ===== */
.policy-block + .policy-block { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.policy-block h3 { word-break: keep-all; font-size: 13px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.policy-block p { margin-top: 6px; word-break: keep-all; font-size: 12px; line-height: 1.75; color: var(--muted); }
.policy-meta { margin-top: 0; font-size: 11px; font-weight: 700; color: var(--gold-dark); }
.policy-block ul { margin-top: 7px; display: flex; flex-direction: column; gap: 4px; }
.policy-block li { position: relative; word-break: keep-all; padding-left: 11px; font-size: 11.5px; line-height: 1.72; color: var(--muted); }
.policy-block li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong);
}
.policy-table { margin-top: 9px; display: flex; flex-direction: column; gap: 6px; }
.policy-table-row {
  display: flex; flex-direction: column; gap: 2px;
  padding: 9px 11px; border-radius: 10px; background: var(--box);
}
.policy-table-row strong { font-size: 11.5px; font-weight: 800; color: var(--navy); }
.policy-table-row span { font-size: 11px; line-height: 1.6; color: var(--muted); }
.policy-table-row em { font-style: normal; font-size: 10.5px; color: var(--muted-2); }

/* =====================================================================
   v2.0.20 — 뉴로피드백 화면 캡처 자동 입력 / 단계별 훈련 기록
   ===================================================================== */
.capture-zone {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-md);
  background: var(--ivory); padding: 16px 18px; margin-top: 10px;
  cursor: pointer; transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.capture-zone:hover, .capture-zone:focus { border-color: var(--navy); background: var(--gold-soft); outline: none; }
.capture-zone.is-over { border-color: var(--green); background: var(--green-soft); }
.capture-zone-main { display: flex; flex-direction: column; gap: 4px; flex: 1 1 320px; min-width: 0; }
.capture-zone-main strong { font-size: 14px; color: var(--navy); }
.capture-caption { font-size: 12px; line-height: 1.55; color: var(--muted); }
.capture-caption kbd {
  display: inline-block; padding: 1px 5px; border: 1px solid var(--line-strong); border-radius: 5px;
  background: var(--white); font-family: inherit; font-size: 11px; color: var(--navy);
}
.capture-status {
  margin-top: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--box); color: var(--muted); font-size: 12px; line-height: 1.5;
}
.capture-pct { font-weight: 700; color: var(--navy); }
.capture-summary { margin-top: 12px; }
.capture-summary-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--navy); }
.capture-match { margin-top: 8px; font-size: 12px; line-height: 1.5; padding: 8px 11px; border-radius: var(--radius-sm); }
.capture-match.ok { background: var(--green-soft); color: var(--green); }
.capture-match.warn { background: var(--yellow-soft); color: #7A5A0B; }
.capture-warn { margin-top: 8px; font-size: 11.5px; line-height: 1.6; color: #7A5A0B; }
.capture-sessions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.capture-session {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  border: 1px solid var(--line-strong); background: var(--white); color: var(--navy);
  border-radius: 999px; padding: 8px 14px; font-size: 12px; cursor: pointer;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.capture-session:hover { border-color: var(--navy); }
.capture-session.is-active { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--gold-soft); }
.csb-no { font-weight: 800; }
.csb-date { color: var(--muted); }
.csb-total { font-weight: 700; }
.csb-steps { color: var(--muted-2); }
.capture-detail { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px; background: var(--white); }
.capture-detail-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; font-size: 12.5px; }
.capture-detail-foot { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-top: 10px; }
.capture-table { font-size: 12px; }
.capture-table th { white-space: nowrap; }
.capture-table tr.is-uncertain td { background: var(--yellow-soft); }
.capture-cell {
  width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 5px 7px;
  font-size: 12px; font-family: inherit; color: var(--navy); background: var(--white);
}
.capture-cell:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 2px rgba(7, 13, 30, 0.08); }
.check-row { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.check-row input[type="checkbox"] { margin-top: 2px; }

/* 회원 앱 — 단계별 훈련 기록 */
.neuro-details { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 8px; }
.neuro-details-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.neuro-ex-table { display: flex; flex-direction: column; gap: 2px; }
.neuro-ex-row {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) 52px 62px;
  align-items: center; gap: 6px; padding: 3px 0; font-size: 11.5px; color: var(--navy);
  border-bottom: 1px solid var(--line);
}
.neuro-ex-row:last-child { border-bottom: 0; }
.neuro-ex-seq { color: var(--muted-2); font-variant-numeric: tabular-nums; }
.neuro-ex-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.neuro-ex-proto { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.neuro-ex-score { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
@media (max-width: 380px) {
  .neuro-ex-row { grid-template-columns: 18px minmax(0, 1fr) 46px 58px; font-size: 11px; }
}

/* ------------------------------------------------------------- 포인트 */
.checkin-points {
  display: flex; align-items: center; gap: 5px;
  margin: -4px 0 10px;
  font-size: 11px; font-weight: 600; color: var(--gold-dark);
  line-height: 1.45;
}
.checkin-points .ico { flex: 0 0 auto; }

.point-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #FFFDF7, var(--gold-soft));
  border: 1px solid rgba(201, 169, 110, 0.45);
  box-shadow: var(--shadow-sm);
}
.point-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.point-balance { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.point-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--gold-dark); text-transform: uppercase; }
.point-value { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.point-value em { font-size: 15px; font-style: normal; font-weight: 700; color: var(--gold-dark); margin-left: 2px; }
.point-worth {
  flex: 0 0 auto;
  font-size: 11.5px; font-weight: 700; color: #6B5312;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(201, 169, 110, 0.4);
  border-radius: 999px; padding: 5px 10px; white-space: nowrap;
}
.point-guide { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.point-guide li { position: relative; padding-left: 12px; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.point-guide li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}
.point-guide strong { color: var(--navy); font-weight: 700; }

.point-history {
  margin-top: 12px; border-radius: var(--radius-md);
  background: var(--white); border: 1px solid var(--line); overflow: hidden;
}
.point-history-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 13px; border-bottom: 1px solid var(--line); background: #FCFBF8;
}
.point-history-head strong { font-size: 12px; font-weight: 800; color: var(--navy); }
.point-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 13px; border-bottom: 1px solid var(--line);
}
.point-row:last-child { border-bottom: 0; }
.point-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.point-row-main strong { font-size: 12px; font-weight: 700; color: var(--navy); }
.point-row-main .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.point-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: 0 0 auto; }
.point-row-side strong { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.point-plus { color: var(--green); }
.point-minus { color: var(--red); }
.point-empty { padding: 12px 13px; }

.pay-detail { margin-top: 4px; font-size: 10.5px; line-height: 1.5; color: #7A5B12; }
.pay-detail:empty { display: none; }
.list-points { color: var(--gold-dark); }

/* =====================================================================
   BRAIN GAME — 두뇌게임 5종 · 스트릭(연속 플레이)
   ===================================================================== */
.bg-board { padding: 0 18px; }
.bg-board-inner { display: flex; flex-direction: column; gap: 10px; }

/* 리텐션 현황판 */
.bg-streak {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-radius: var(--radius-md); color: var(--white);
  background: linear-gradient(145deg, #101A36 0%, #070D1E 68%);
  box-shadow: var(--shadow-md);
}
.bg-streak-ico {
  display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(245, 184, 46, 0.16); color: var(--yellow);
}
.bg-streak-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bg-streak-body strong { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.bg-streak-body span { font-size: 11px; color: rgba(255, 255, 255, 0.6); }
.bg-streak-total { display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 auto; font-size: 10px; color: rgba(255, 255, 255, 0.55); }
.bg-streak-total strong { font-size: 17px; font-weight: 800; color: var(--yellow); font-variant-numeric: tabular-nums; }

.bg-today { padding: 14px 16px; border-radius: var(--radius-md); background: var(--white); border: 1px solid var(--line); }
.bg-today-head { display: flex; align-items: center; justify-content: space-between; }
.bg-today-head strong { font-size: 13px; font-weight: 800; }
.bg-today-head span { font-size: 11.5px; font-weight: 700; color: var(--gold-dark); }
.bg-progress { margin-top: 8px; height: 8px; border-radius: 999px; background: var(--box); overflow: hidden; }
.bg-progress-bar { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--yellow)); transition: width 0.4s var(--ease); }
.bg-week { margin-top: 12px; display: flex; gap: 6px; }
.bg-week-day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; color: var(--muted-2); }
.bg-week-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--box); border: 1px solid var(--line); }
.bg-week-day.is-on .bg-week-dot { background: var(--yellow); border-color: var(--yellow-dark); box-shadow: 0 0 0 3px rgba(245, 184, 46, 0.18); }
.bg-week-day.is-on .bg-week-num { color: var(--navy); font-weight: 700; }

.bg-complete { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--yellow-soft); border: 1px solid #F3E4BB; color: #7A5B12; }
.bg-complete > span { display: flex; flex-direction: column; }
.bg-complete strong { font-size: 13px; font-weight: 800; color: #241A02; }
.bg-complete span span { font-size: 11px; }

.bg-guest { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--white); border: 1px dashed var(--line-strong); font-size: 11px; line-height: 1.45; color: var(--muted); }
.bg-guest > span { flex: 1; }
.bg-guest .btn { flex: 0 0 auto; }

/* 게임 선택 카드 — 예시 그림(미니 프리뷰) + 제목/설명/기록 */
.bg-games { display: flex; flex-direction: column; gap: 10px; }
.bg-game-card {
  position: relative; display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 11px; text-align: left; cursor: pointer; font-family: inherit;
  border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--white);
  box-shadow: var(--shadow-sm); transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), border-color 0.16s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.bg-game-card:active { transform: scale(0.985); box-shadow: var(--shadow-md); }
.bg-game-card.is-done { border-color: #DCEBE2; }
.bg-game-thumb {
  position: relative; display: block; flex: 0 0 auto; width: 84px; height: 68px;
  border-radius: 14px; overflow: hidden; background: var(--box);
  box-shadow: inset 0 0 0 1px rgba(7, 13, 30, 0.06);
}
.bg-game-thumb-svg { display: block; width: 100%; height: 100%; }
.bg-game-thumb.tone-navy { background: linear-gradient(150deg, #16223F 0%, #070D1E 100%); }
.bg-game-thumb.tone-gold { background: linear-gradient(150deg, #FBF6EA 0%, #EEE1C4 100%); }
.bg-game-thumb.tone-yellow { background: linear-gradient(150deg, #FFF8E2 0%, #FBE4AB 100%); }
.bg-game-thumb.tone-ivory { background: linear-gradient(150deg, #FFFFFF 0%, #EEF1F7 100%); }
.bg-game-ico { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-dark); }
.bg-game-ico.tone-navy { background: linear-gradient(145deg, #101A36, #070D1E); color: var(--yellow); }
.bg-game-ico.tone-gold { background: linear-gradient(145deg, #FBF6EA, var(--gold-soft)); color: var(--gold-dark); }
.bg-game-ico.tone-yellow { background: var(--yellow-soft); color: #7A5B12; }
.bg-game-ico.tone-ivory { background: var(--box); color: var(--navy); }
.bg-game-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.bg-game-area { font-size: 9.5px; font-weight: 700; letter-spacing: 0.05em; color: var(--gold-dark); }
.bg-game-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.bg-game-title-row strong { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.bg-game-text strong { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.bg-game-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.bg-game-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; font-size: 10.5px; color: var(--muted-2); }
.bg-game-best { color: var(--navy); font-weight: 700; }
.bg-game-latest { color: var(--muted-2); }
.bg-done { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; padding: 3px 7px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 9px; font-weight: 800; white-space: nowrap; }
.bg-play-ico { align-self: center; flex: 0 0 auto; color: var(--muted-2); }
.bg-guide { margin-top: 10px; font-size: 11px; line-height: 1.55; color: var(--muted-2); }

@media (max-width: 380px) {
  .bg-game-thumb { width: 74px; height: 60px; }
  .bg-game-card { gap: 9px; padding: 10px; }
  .bg-game-title-row strong, .bg-game-text strong { font-size: 14px; }
}

/* 플레이 화면 */
.bg-stage { margin: 18px 18px 0; padding: 16px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.bg-stage[hidden] { display: none; }
.bg-game-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bg-back { display: inline-flex; align-items: center; gap: 2px; padding: 4px 8px 4px 0; border: 0; background: none; font-family: inherit; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.bg-game-head .bg-game-area { color: var(--muted-2); }
.bg-game-title { margin-top: 8px; font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }
.bg-game-desc { margin-top: 4px; font-size: 12px; line-height: 1.55; color: var(--muted); }
.bg-play { margin-top: 4px; }
/* 빠른 연타(더블탭) 시 화면 확대·텍스트 선택·콜아웃 방지.
   드래그가 필요한 블록 블라스트(.bg-bb-board·.bg-bb-slot)는 파일 뒤쪽에서
   touch-action: none 을 선언해 이 규칙을 덮어씁니다(같은 특이성 → 뒤 선언 우선). */
.bg-play {
  touch-action: manipulation;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.bg-play * {
  touch-action: manipulation;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
/* 게임 플레이 중에는 페이지 인사말을 접어 조리대가 한눈에 들어오게 합니다 */
.bg-playing .page-head { display: none; }
.bg-playing .bg-stage { margin-top: 10px; }
.bg-play .bg-hud { gap: 5px; }
.bg-play .bg-hud-item { padding: 4px 8px; font-size: 10px; gap: 3px; }
.bg-play .bg-hud-item strong { font-size: 12px; }
.bg-hud { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bg-hud-item { display: inline-flex; align-items: baseline; gap: 4px; padding: 5px 10px; border-radius: 999px; background: var(--box); font-size: 10.5px; color: var(--muted); }
.bg-hud-item strong { font-size: 13px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.bg-status { margin-top: 12px; min-height: 19px; font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; }

/* 1) 순서 기억 */
.bg-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px auto 0; max-width: 300px; }
.bg-tile {
  aspect-ratio: 1 / 1; display: grid; place-items: center; cursor: pointer;
  border-radius: 18px; border: 1px solid var(--line); background: var(--box);
  transition: background 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.bg-tile-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line-strong); transition: background 0.12s ease, transform 0.12s ease; }
.bg-tile.is-lit { background: var(--yellow); border-color: var(--yellow-dark); box-shadow: 0 0 0 4px rgba(245, 184, 46, 0.2); }
.bg-tile.is-lit .bg-tile-dot { background: var(--white); transform: scale(1.35); }
.bg-tiles.is-input .bg-tile { background: var(--white); }
.bg-tile.is-tap { background: var(--gold); border-color: var(--gold-dark); transform: scale(0.95); }
.bg-tile.is-wrong { background: var(--red-soft); border-color: var(--red); animation: bgShake 0.32s var(--ease); }

/* 2) 색깔 vs 글자 */
.bg-timerbar { margin-top: 12px; height: 6px; border-radius: 999px; background: var(--box); overflow: hidden; }
.bg-timerbar-fill { display: block; height: 100%; width: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--yellow), var(--gold)); transition: width 0.1s linear; }
.bg-stroop-card { margin-top: 14px; padding: 22px 16px; border-radius: var(--radius-md); background: var(--ivory); border: 1px solid var(--line); text-align: center; }
.bg-stroop-hint { font-size: 11px; color: var(--muted); }
.bg-stroop-hint strong { color: var(--navy); }
.bg-stroop-word { margin-top: 8px; font-size: 44px; font-weight: 900; line-height: 1.15; letter-spacing: -0.04em; transition: transform 0.12s ease; }
.bg-stroop-word.is-correct { transform: scale(1.06); }
.bg-stroop-word.is-miss { animation: bgShake 0.3s var(--ease); }
.bg-stroop-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.bg-stroop-btn {
  padding: 14px 8px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--white); color: var(--navy); font-family: inherit; font-size: 16px; font-weight: 800;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.bg-stroop-btn:active { background: var(--gold-soft); transform: scale(0.98); }

/* 3) 1→25 숫자 터치 */
.bg-number-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 14px; }
.bg-num {
  aspect-ratio: 1 / 1; border-radius: 12px; border: 1px solid var(--line); background: var(--white);
  color: var(--navy); font-family: inherit; font-size: 15px; font-weight: 800;
  font-variant-numeric: tabular-nums; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.bg-num:active { transform: scale(0.94); }
.bg-num.is-done { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-dark); }
.bg-num.is-shake { background: var(--red-soft); border-color: var(--red); animation: bgShake 0.32s var(--ease); }

/* 4) 양궁 과녁 맞히기 */
.bg-archery { display: flex; justify-content: center; margin-top: 14px; }
.bg-archery-board {
  position: relative; width: min(74vw, 292px); aspect-ratio: 1 / 1;
  cursor: crosshair; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.bg-archery-board:focus-visible { outline: 2px solid var(--gold); outline-offset: 8px; border-radius: 50%; }
.bg-arc-ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; }
.bg-arc-ring.is-6 { width: 100%; height: 100%; background: #FFFFFF; box-shadow: 0 0 0 2px #E6DCC9, inset 0 2px 10px rgba(7, 13, 30, 0.08); }
.bg-arc-ring.is-7 { width: 80%; height: 80%; background: #23262E; }
.bg-arc-ring.is-8 { width: 60%; height: 60%; background: #2C67B2; }
.bg-arc-ring.is-9 { width: 40%; height: 40%; background: #C8483C; }
.bg-arc-ring.is-10 { width: 20%; height: 20%; background: linear-gradient(160deg, #FFD969, #E8A81D); box-shadow: inset 0 0 0 1px rgba(140, 95, 5, 0.35); }
.bg-arc-x { position: absolute; left: 50%; top: 50%; width: 9%; height: 9%; transform: translate(-50%, -50%); }
.bg-arc-x::before, .bg-arc-x::after { content: ''; position: absolute; left: 50%; top: 50%; width: 2px; height: 130%; background: rgba(255, 255, 255, 0.9); transform: translate(-50%, -50%) rotate(45deg); }
.bg-arc-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.bg-arc-aim {
  position: absolute; left: 50%; top: 50%; width: 34px; height: 34px;
  transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid var(--yellow);
  box-shadow: 0 0 0 1.5px rgba(7, 13, 30, 0.55), inset 0 0 0 1.5px rgba(7, 13, 30, 0.35);
  pointer-events: none;
}
.bg-arc-aim::before, .bg-arc-aim::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--yellow); box-shadow: 0 0 0 1px rgba(7, 13, 30, 0.45); }
.bg-arc-aim::before { width: 2px; height: 46px; transform: translate(-50%, -50%); }
.bg-arc-aim::after { width: 46px; height: 2px; transform: translate(-50%, -50%); }
.bg-arc-pin {
  position: absolute; width: 11px; height: 11px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #070D1E; border: 2px solid var(--yellow);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); pointer-events: none;
  animation: bgPinIn 0.3s var(--ease);
}
.bg-arc-pin.is-ten { background: var(--yellow); border-color: #070D1E; }
.bg-arc-pin.is-out { background: #B4453F; border-color: rgba(255, 255, 255, 0.85); }
.bg-arc-shots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.bg-arc-shot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--box); border: 1px dashed var(--line-strong); font-size: 11px; font-weight: 800; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.bg-arc-shot.is-filled { border-style: solid; border-color: var(--gold); background: var(--gold-soft); color: var(--gold-dark); animation: bgPopIn 0.28s var(--ease); }
.bg-arc-shot.is-ten { background: var(--yellow); border-color: var(--yellow-dark); color: #241A02; }
.bg-arc-shot.is-zero { background: var(--red-soft); border-color: #E4B4AF; color: var(--red); }
.bg-arc-shoot { margin-top: 12px; }

/* 5) 브레인 주방 매드니스 — 실제 주방 조리대 */
.bg-rush-floor {
  position: relative; margin-top: 12px; padding: 8px 8px 9px; border-radius: 14px;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0) 0 40px, rgba(255,255,255,0.42) 40px 42px) left top / 100% 26px no-repeat,
    linear-gradient(180deg, rgba(118,154,198,0.28), rgba(118,154,198,0.02)) left top / 100% 26px no-repeat,
    radial-gradient(120% 70% at 50% 118%, #FFF2CF 0%, rgba(255,242,207,0) 62%),
    linear-gradient(180deg, #E6EEF9 0%, #EFE7DA 58%, #E2D0B4 100%);
  border: 1px solid #E3D8C4;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}
.bg-rush-floor::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 11px;
  background: linear-gradient(180deg, #C99C65, #A97A44);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.28);
}
.bg-rush-custs { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bg-rush-slotwrap {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  min-height: 100px; padding-bottom: 8px;
}
.bg-rush-seat {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 100%; min-height: 92px; padding: 4px;
  border-radius: 12px 12px 4px 4px; border: 1px dashed rgba(130,108,74,0.34);
  background: rgba(255,255,255,0.34); color: rgba(110,92,64,0.62);
  font-size: 8px; line-height: 1.3; text-align: center;
}
.bg-rush-seat-e { font-size: 15px; opacity: 0.7; }
.bg-rush-slotwrap.is-empty .bg-rush-seat { display: flex; }

.bg-rush-cust {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 100%; transform-origin: 50% 100%;
}
.bg-rush-cust.is-entering { animation: bgWalkInR 0.62s cubic-bezier(.2,.9,.28,1.16) both; }
.bg-rush-cust.is-entering.from-left { animation-name: bgWalkInL; }
.bg-rush-cust.is-leaving-happy { animation: bgWalkOutRight 0.72s cubic-bezier(.4,0,.7,1) both; }
.bg-rush-cust.is-leaving-angry { animation: bgWalkOutLeft 0.72s cubic-bezier(.4,0,.7,1) both; }

.bg-rush-avatar { display: block; width: 40px; height: 42px; }
.bg-rush-avatar svg { display: block; width: 100%; height: 100%; }
.bg-rush-av .av-m, .bg-rush-av .av-brow, .bg-rush-av .av-blush { display: none; }
.bg-rush-cust.mood-calm .av-m-calm,
.bg-rush-cust.mood-neutral .av-m-neutral,
.bg-rush-cust.mood-warn .av-m-warn,
.bg-rush-cust.mood-angry .av-m-angry,
.bg-rush-cust.mood-joy .av-m-joy { display: inline; }
.bg-rush-cust.mood-joy .av-blush { display: inline; }
.bg-rush-cust.mood-angry .av-brow { display: inline; }
.bg-rush-cust.mood-angry .bg-rush-avatar { animation: bgShiver 0.36s ease-in-out infinite; }
.bg-rush-cust.mood-joy .bg-rush-avatar { animation: bgHop 0.5s ease-in-out infinite; }

.bg-rush-bubble {
  position: relative; display: flex; flex-direction: column; gap: 1px; width: 100%;
  padding: 3px 2px; border-radius: 9px; background: #fff;
  border: 1px solid rgba(126,104,70,0.24); box-shadow: 0 2px 4px rgba(60,45,20,0.09);
  transition: opacity 0.2s ease;
}
.bg-rush-bubble.is-faded { opacity: 0.22; }
.bg-rush-bubble::before {
  content: ''; position: absolute; top: -4px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px;
  background: #fff; border-left: 1px solid rgba(126,104,70,0.24); border-top: 1px solid rgba(126,104,70,0.24);
  transform: rotate(45deg);
}
.bg-rush-order { display: flex; align-items: center; justify-content: center; gap: 2px; line-height: 1.15; }
.bg-rush-order.is-done { opacity: 0.34; }
.bg-rush-order.is-done .bg-rush-order-n { text-decoration: line-through; }
.bg-rush-order-e { font-size: 12px; line-height: 1; }
.bg-rush-order-n { font-size: 7.5px; font-weight: 700; color: #4A3A22; }
.bg-rush-pat { display: block; width: 90%; height: 4px; border-radius: 999px; background: rgba(90,70,40,0.16); overflow: hidden; }
.bg-rush-pat-fill {
  display: block; height: 100%; width: 100%; background: var(--green); border-radius: 999px;
  transition: width 0.1s linear, background 0.2s ease;
}
.bg-rush-pat-fill.is-warn { background: var(--yellow); }
.bg-rush-pat-fill.is-low { background: var(--red); }

.bg-rush-say {
  position: absolute; left: 50%; top: -4px; transform: translateX(-50%); z-index: 3;
  white-space: nowrap; padding: 2px 6px; border-radius: 999px;
  font-size: 8px; font-weight: 800; animation: bgSay 0.7s ease-out both;
}
.bg-rush-say.is-happy { background: #FFF2CC; color: #7A5B12; border: 1px solid #F0D89A; }
.bg-rush-say.is-angry { background: #F7DDD9; color: #9C3B33; border: 1px solid #E7BDB7; }

.bg-rush-float {
  position: absolute; left: 50%; top: 22%; z-index: 5;
  padding: 2px 6px; border-radius: 999px; background: rgba(7,13,30,0.86);
  color: #FFD969; font-size: 9px; font-weight: 800; white-space: nowrap; pointer-events: none;
  animation: bgFloatUp 0.95s ease-out both;
}
.bg-rush-float.is-bad { background: rgba(180,69,63,0.92); color: #fff; }

/* 조리대 — 음료 머신 | 접시 | 철판 그릴 | 토핑 4열 */
.bg-rush-kitchen {
  display: grid; grid-template-columns: 0.84fr 1.12fr 1.06fr 0.84fr; gap: 4px; margin-top: 8px; padding: 5px;
  border-radius: 14px; border: 1px solid #E6D7BB;
  background: linear-gradient(180deg, #FCF6E9, #F1E5CE);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 2px 6px rgba(90,70,35,0.08);
}
.bg-rush-station { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bg-rush-station.is-topping { align-items: stretch; }
.bg-rush-station.is-drink,
.bg-rush-station.is-plate,
.bg-rush-station.is-grill { touch-action: manipulation; }
.bg-rush-station-label { font-size: 7.5px; font-weight: 800; letter-spacing: 0.02em; color: #9A7A45; text-align: center; }
.bg-rush-slots { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.bg-rush-machine {
  display: flex; flex-direction: column; gap: 4px; padding: 4px; border-radius: 11px; flex: 1;
  background: linear-gradient(180deg, #454F62, #26303F);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), inset 0 -2px 6px rgba(0,0,0,0.35);
}

.bg-rush-drink {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 46px; padding: 2px 2px 3px; border-radius: 9px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.16);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.bg-rush-drink.is-ready {
  background: rgba(255,216,120,0.2); border-color: rgba(255,216,120,0.62);
  box-shadow: 0 0 0 2px rgba(255,216,120,0.16);
}
.bg-rush-nozzle {
  display: block; width: 13px; height: 6px; border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, #D7DCE5, #8E96A4);
}
.bg-rush-cup {
  position: relative; display: block; width: 20px; height: 20px;
  border-radius: 2px 2px 6px 6px; background: rgba(255,255,255,0.92);
  border: 1.4px solid #C4CBD6; overflow: hidden;
}
.bg-rush-cup-fill {
  position: absolute; left: 0; bottom: 0; display: block; width: 100%; height: 0%;
  background: linear-gradient(180deg, #F0B25C, #C9761F); transition: height 0.1s linear;
}
.bg-rush-stream {
  position: absolute; left: 50%; top: -3px; width: 2px; height: 11px; margin-left: -1px; border-radius: 1px;
  background: linear-gradient(180deg, rgba(255,226,168,0.95), rgba(255,226,168,0.12));
  animation: bgStream 0.36s linear infinite;
}

.bg-rush-plate {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 1px;
  min-height: 46px; padding: 3px 2px 2px; border-radius: 9px;
  border: 1px dashed rgba(150,122,80,0.38); background: rgba(255,255,255,0.62);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.bg-rush-plate.is-started { border-style: solid; border-color: #E4C88E; background: #FFFBEF; }
.bg-rush-plate.is-dish {
  border-style: solid; border-color: #F0C260; background: #FFF6DC;
  animation: bgGlow 1.5s ease-in-out infinite;
}
.bg-rush-stack {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  width: 100%; height: 30px;
}
.bg-rush-layer { display: block; margin-top: -1px; animation: bgPopIn 0.26s var(--ease); }
.bg-rush-layer.is-bun { width: 30px; height: 6px; border-radius: 3px 3px 8px 8px; background: linear-gradient(180deg, #EFC079, #D89C48); }
.bg-rush-layer.is-patty { width: 27px; height: 6px; border-radius: 4px; background: linear-gradient(180deg, #7A4A29, #4A2C17); box-shadow: inset 0 -1px 0 rgba(0,0,0,0.35); }
.bg-rush-layer.is-lettuce { width: 32px; height: 4px; border-radius: 4px; background: linear-gradient(180deg, #8ACB95, #4E9A61); }
.bg-rush-layer.is-top { width: 29px; height: 8px; border-radius: 12px 12px 3px 3px; background: linear-gradient(180deg, #F6C97D, #E0A445); box-shadow: inset 0 -1px 0 rgba(150,90,20,0.2); }
.bg-rush-plate-base { display: block; width: 38px; height: 4px; border-radius: 50%; background: linear-gradient(180deg, #FFFFFF, #D9D2C4); box-shadow: 0 1px 2px rgba(60,45,20,0.2); }

.bg-rush-gslot {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 46px; padding: 3px 2px 2px; border-radius: 9px;
  border: 1px dashed rgba(150,122,80,0.38); background: rgba(255,255,255,0.62);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.bg-rush-gslot.is-cooking { border-style: solid; border-color: #C08A3E; background: linear-gradient(180deg, #3A3A40, #232327); }
.bg-rush-gslot.is-ready {
  border-style: solid; border-color: #E8B441;
  background: radial-gradient(circle at 50% 42%, #FFF0C0, #F5D583);
  box-shadow: 0 0 0 2px rgba(245,184,46,0.22);
}
.bg-rush-gslot.is-burnt { border-style: solid; border-color: #A07565; background: linear-gradient(180deg, #6B5A52, #3E332E); }
.bg-rush-grill-lines {
  position: absolute; inset: 4px; border-radius: 6px; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.1) 0 2px, rgba(255,255,255,0) 2px 7px);
}
.bg-rush-patty {
  position: relative; display: block; width: 22px; height: 11px; border-radius: 6px;
  background: linear-gradient(180deg, #8E5734, #5B3420); box-shadow: inset 0 -2px 0 rgba(0,0,0,0.3);
}
.bg-rush-patty.is-cooking { animation: bgSizzle 0.34s ease-in-out infinite; }
.bg-rush-patty.is-ready {
  background: linear-gradient(180deg, #CE9050, #9A5F2C);
  box-shadow: 0 0 7px rgba(255,206,120,0.85), inset 0 -2px 0 rgba(0,0,0,0.22);
  animation: bgReadyBounce 0.9s ease-in-out infinite;
}
.bg-rush-patty.is-burnt { background: linear-gradient(180deg, #4C3B33, #221A16); }
.bg-rush-heat {
  position: absolute; left: 10%; right: 10%; bottom: 9px; height: 9px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255,150,60,0.6), rgba(255,150,60,0) 72%);
  animation: bgHeat 1.1s ease-in-out infinite;
}
.bg-rush-smoke {
  position: absolute; top: 6px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%;
  background: rgba(120,110,104,0.45); pointer-events: none; animation: bgSmoke 1.5s ease-out infinite;
}
.bg-rush-gbar { display: block; width: 78%; height: 3px; border-radius: 999px; background: rgba(255,255,255,0.24); overflow: hidden; }
.bg-rush-gbar > i { display: block; height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, #F0C060, #FF9A3C); }
.bg-rush-gslot-plus { font-size: 13px; line-height: 1; color: rgba(150,122,80,0.6); }

.bg-rush-slot-n { font-size: 7px; line-height: 1.2; text-align: center; color: #8A6F45; font-weight: 700; }
.bg-rush-drink .bg-rush-slot-n { color: rgba(255,255,255,0.88); }
.bg-rush-slot-n.is-light { color: rgba(255,255,255,0.86); }
.bg-rush-slot-n.is-gold { color: #8A6208; font-weight: 800; }
.bg-rush-trash {
  position: absolute; top: -5px; right: -5px; z-index: 4; display: grid; place-items: center;
  width: 17px; height: 17px; border-radius: 50%; background: #fff;
  border: 1px solid rgba(120,100,70,0.35); font-size: 9px; box-shadow: 0 1px 3px rgba(60,45,20,0.18);
}

/* 토핑 스테이션 — 스텐 바트에 담긴 양상추·토마토·치즈 (옆 2단 슬롯 전체 높이) */
.bg-rush-topping {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  flex: 1 1 auto; width: 100%; min-height: 96px; padding: 4px 2px 3px; border-radius: 11px;
  border: 1px solid #D8C7A4; cursor: pointer; overflow: hidden;
  background: radial-gradient(circle at 50% 18%, #FFFFFF, #F6EEDC 62%, #E9DBBE);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 1px 3px rgba(90,70,35,0.14);
  -webkit-tap-highlight-color: transparent; -webkit-appearance: none; appearance: none;
  font: inherit; color: #8A6F45;
  transition: transform 0.09s ease, box-shadow 0.09s ease;
}
.bg-rush-topping:active { transform: translateY(2px) scale(0.97); box-shadow: inset 0 3px 7px rgba(90,70,35,0.2); }
.bg-rush-topping.is-on { border-color: #E4B860; box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 0 0 2px rgba(245,184,46,0.2); }
.bg-rush-topping-art { display: block; width: 100%; max-width: 52px; height: auto; filter: drop-shadow(0 1px 2px rgba(90,70,35,0.22)); }
.bg-rush-topping-n { font-size: 7px; line-height: 1.2; text-align: center; color: #8A6F45; font-weight: 800; }

/* 빈 접시 빵 힌트 */
.bg-rush-bun-hint {
  display: block; width: 26px; height: 8px; border-radius: 9px 9px 3px 3px;
  background: linear-gradient(180deg, #F3D9A6, #E2BC78); opacity: 0.55;
  box-shadow: inset 0 -1px 0 rgba(150,110,40,0.25);
}

/* 사운드 토글 · 게임 헤드 우측 */
.bg-hub-tools { display: flex; align-items: center; gap: 8px; }
.bg-head-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.bg-sfx-btn {
  display: inline-grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto;
  border-radius: 50%; border: 1px solid var(--line-strong); background: var(--white);
  color: var(--muted); cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.bg-sfx-btn.is-on { color: var(--gold-dark); border-color: #E7D3A2; background: var(--yellow-soft); }
.bg-sfx-btn:active { transform: scale(0.93); }

@keyframes bgWalkInL {
  0% { opacity: 0; transform: translateX(-72%) translateY(5px) scale(0.9); }
  45% { opacity: 1; transform: translateX(3%) translateY(-5px) scale(1.03); }
  68% { transform: translateX(0) translateY(0) scale(0.99); }
  84% { transform: translateX(1.5%) translateY(-2px) scale(1.01); }
  100% { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
}
@keyframes bgWalkInR {
  0% { opacity: 0; transform: translateX(72%) translateY(5px) scale(0.9); }
  45% { opacity: 1; transform: translateX(-3%) translateY(-5px) scale(1.03); }
  68% { transform: translateX(0) translateY(0) scale(0.99); }
  84% { transform: translateX(-1.5%) translateY(-2px) scale(1.01); }
  100% { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
}
@keyframes bgWalkOutRight {
  0% { opacity: 1; transform: translateX(0) scale(1); }
  22% { transform: translateY(-7px) scale(1.05); }
  58% { opacity: 0.9; transform: translateX(52%) translateY(-2px) scale(1); }
  100% { opacity: 0; transform: translateX(126%) translateY(0) scale(0.94); }
}
@keyframes bgWalkOutLeft {
  0% { opacity: 1; transform: translateX(0) scale(1); }
  20% { transform: translateY(-4px) scale(1.01); }
  100% { opacity: 0; transform: translateX(-126%) translateY(0) scale(0.94); }
}
@keyframes bgShiver { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-1.2px); } 75% { transform: translateX(1.2px); } }
@keyframes bgHop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes bgSay {
  0% { opacity: 0; transform: translate(-50%, 6px) scale(0.8); }
  30% { opacity: 1; transform: translate(-50%, 0) scale(1.04); }
  100% { opacity: 1; transform: translate(-50%, -1px) scale(1); }
}
@keyframes bgFloatUp {
  0% { opacity: 0; transform: translate(-50%, 8px) scale(0.8); }
  20% { opacity: 1; transform: translate(-50%, 0) scale(1.06); }
  100% { opacity: 0; transform: translate(-50%, -26px) scale(0.95); }
}
@keyframes bgStream { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes bgSizzle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.2px); } }
@keyframes bgReadyBounce { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-2px) scale(1.06); } }
@keyframes bgHeat { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes bgSmoke { 0% { opacity: 0.55; transform: translateY(0) scale(0.6); } 100% { opacity: 0; transform: translateY(-13px) scale(1.4); } }
@keyframes bgGlow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(245,184,46,0.16); }
  50% { box-shadow: 0 0 0 4px rgba(245,184,46,0.3); }
}

@media (max-width: 359px) {
  .bg-rush-avatar { width: 34px; height: 36px; }
  .bg-rush-order-n { font-size: 7px; }
  .bg-rush-slot-n { font-size: 6.5px; }
}

/* 6) 블록 블라스트 */
.bg-bb-board {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px;
  width: 100%; max-width: 300px; margin: 12px auto 0; padding: 6px;
  border-radius: 16px; background: linear-gradient(160deg, #101A36 0%, #070D1E 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), var(--shadow-sm);
  touch-action: none; -webkit-user-select: none; user-select: none;
}
.bg-bb-cell {
  aspect-ratio: 1 / 1; width: 100%; padding: 0; border: 0; border-radius: 6px;
  background: rgba(255, 255, 255, 0.07); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}
.bg-bb-cell.is-filled { box-shadow: inset 0 -2px 0 rgba(7, 13, 30, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.32); }
.bg-bb-cell.c1 { background: linear-gradient(160deg, #F0845F, #D2503B); }
.bg-bb-cell.c2 { background: linear-gradient(160deg, #FFD15C, #E5A419); }
.bg-bb-cell.c3 { background: linear-gradient(160deg, #63C6AE, #2E8B77); }
.bg-bb-cell.c4 { background: linear-gradient(160deg, #7AA6E6, #3F6FB5); }
.bg-bb-cell.c5 { background: linear-gradient(160deg, #B394E0, #7E5CB8); }
.bg-bb-cell.is-ghost { box-shadow: 0 0 0 2px rgba(245, 184, 46, 0.55); }
.bg-bb-cell.is-ghost.c1 { background: rgba(228, 105, 79, 0.62); box-shadow: 0 0 0 2px rgba(228, 105, 79, 0.9); }
.bg-bb-cell.is-ghost.c2 { background: rgba(229, 164, 25, 0.62); box-shadow: 0 0 0 2px rgba(229, 164, 25, 0.92); }
.bg-bb-cell.is-ghost.c3 { background: rgba(62, 158, 138, 0.62); box-shadow: 0 0 0 2px rgba(62, 158, 138, 0.92); }
.bg-bb-cell.is-ghost.c4 { background: rgba(74, 123, 196, 0.62); box-shadow: 0 0 0 2px rgba(74, 123, 196, 0.92); }
.bg-bb-cell.is-ghost.c5 { background: rgba(139, 107, 199, 0.62); box-shadow: 0 0 0 2px rgba(139, 107, 199, 0.92); }
.bg-bb-cell.is-ghost-line { box-shadow: inset 0 0 0 2px rgba(245, 184, 46, 0.9), 0 0 10px rgba(245, 184, 46, 0.45); }
.bg-bb-cell.is-ghost-line:not(.is-filled) { background: rgba(245, 184, 46, 0.24); }
.bg-bb-cell.is-ghost-bad { background: rgba(180, 69, 63, 0.4); box-shadow: 0 0 0 2px rgba(216, 108, 100, 0.5); }
.bg-bb-cell.is-void { background: transparent; }
/* 드래그 중 손가락 위로 떠서 따라다니는 조각 */
.bg-bb-drag {
  position: fixed; z-index: 90; display: grid; pointer-events: none; opacity: 0.94;
  filter: drop-shadow(0 10px 18px rgba(7, 13, 30, 0.42));
  transition: opacity 0.12s ease;
}
.bg-bb-drag.is-moved { opacity: 1; }
.bg-bb-drag .bg-bb-cell { cursor: default; transition: none; }
.bg-bb-cell.is-clearing { background: linear-gradient(160deg, #FFF4CF, #F5B82E); animation: bgBbClear 0.34s var(--ease) forwards; }
.bg-bb-cell.is-blocked { animation: bgShake 0.36s var(--ease); }
.bg-bb-tray {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  width: 100%; max-width: 300px; margin: 12px auto 0;
}
.bg-bb-slot {
  display: grid; place-items: center; align-content: center; min-height: 62px; padding: 7px 4px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--box);
  cursor: grab; font-family: inherit; -webkit-tap-highlight-color: transparent;
  touch-action: none; -webkit-user-select: none; user-select: none;
  transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}
.bg-bb-slot:active { cursor: grabbing; }
.bg-bb-slot.is-selected { border-color: var(--yellow-dark); background: var(--yellow-soft); box-shadow: 0 0 0 2px rgba(245, 184, 46, 0.32); }
.bg-bb-slot.is-used { border-style: dashed; border-color: var(--line); background: transparent; cursor: default; opacity: 0.45; }
.bg-bb-mini-grid { display: grid; gap: 2px; }
.bg-bb-mini { display: block; width: 12px; height: 12px; border-radius: 3px; }
.bg-bb-mini.is-off { background: transparent; }
.bg-bb-mini.is-on.c1 { background: #E4694F; }
.bg-bb-mini.is-on.c2 { background: #E5A419; }
.bg-bb-mini.is-on.c3 { background: #3E9E8A; }
.bg-bb-mini.is-on.c4 { background: #4A7BC4; }
.bg-bb-mini.is-on.c5 { background: #8B6BC7; }

@keyframes bgBbClear {
  0% { transform: scale(1); opacity: 1; }
  45% { transform: scale(1.14); opacity: 1; }
  100% { transform: scale(0.25); opacity: 0; }
}

@media (max-width: 359px) {
  .bg-bb-board { gap: 2px; padding: 5px; border-radius: 14px; }
  .bg-bb-cell { border-radius: 5px; }
  .bg-bb-slot { min-height: 56px; padding: 6px 3px; }
  .bg-bb-mini { width: 10px; height: 10px; }
}


/* 7) 미니 스도쿠 */
.bg-sudoku-board {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px;
  width: 100%; max-width: 300px; margin: 12px auto 0; padding: 6px;
  border-radius: 16px; background: #DFE6F1;
  box-shadow: inset 0 0 0 1px rgba(7, 13, 30, 0.08), var(--shadow-sm);
  touch-action: manipulation;
}
.bg-sdk-cell {
  position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; width: 100%;
  padding: 0; border: 0; border-radius: 5px; background: var(--white);
  font-family: inherit; color: var(--navy); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}
.bg-sdk-cell.is-box-left { box-shadow: inset 2px 0 0 #AAB8CE; }
.bg-sdk-cell.is-box-top { box-shadow: inset 0 2px 0 #AAB8CE; }
.bg-sdk-cell.is-box-left.is-box-top { box-shadow: inset 2px 0 0 #AAB8CE, inset 0 2px 0 #AAB8CE; }
.bg-sdk-num { position: relative; z-index: 1; font-size: 21px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.bg-sdk-notes { position: absolute; inset: 2px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); place-items: center; font-size: 8px; font-weight: 700; line-height: 1; color: #7C879B; }
.bg-sdk-notes i { font-style: normal; }
.bg-sdk-cell.is-given { background: #EDF1F8; }
.bg-sdk-cell.is-given .bg-sdk-num { color: var(--navy); }
.bg-sdk-cell.is-user .bg-sdk-num { color: var(--gold-dark); }
.bg-sdk-cell.is-hint .bg-sdk-num { color: #2E8B77; }
.bg-sdk-cell.is-peer { background: #F7F1E5; }
.bg-sdk-cell.is-same { background: #FBE7B7; }
.bg-sdk-cell.is-sel { background: #FFF1C9; box-shadow: inset 0 0 0 2px var(--yellow-dark); }
.bg-sdk-cell.is-wrong { background: var(--red-soft); animation: bgShake 0.36s var(--ease); }
.bg-sudoku-pad {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
  width: 100%; max-width: 300px; margin: 12px auto 0;
}
.bg-sdk-key {
  height: 44px; padding: 0; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--white); color: var(--navy); font-family: inherit;
  font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.bg-sdk-key:active { transform: scale(0.95); background: var(--yellow-soft); }
.bg-sudoku-tools {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  width: 100%; max-width: 300px; margin: 8px auto 0;
}
.bg-sdk-tool {
  display: inline-flex; align-items: center; justify-content: center; gap: 3px; height: 38px;
  border-radius: 11px; border: 1px solid var(--line); background: var(--box);
  color: var(--navy); font-family: inherit; font-size: 12px; font-weight: 700;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.bg-sdk-tool strong { font-size: 12px; font-weight: 800; }
.bg-sdk-tool.is-on { background: var(--yellow); border-color: var(--yellow-dark); color: #241A02; box-shadow: 0 0 0 2px rgba(245, 184, 46, 0.28); }
.bg-sdk-tool:disabled { opacity: 0.45; cursor: default; }

@media (max-width: 380px) {
  .bg-sudoku-board { gap: 2px; padding: 5px; border-radius: 14px; }
  .bg-sdk-num { font-size: 19px; }
  .bg-sdk-key { height: 40px; font-size: 18px; }
  .bg-sdk-tool { height: 36px; font-size: 11.5px; }
}

@media (max-width: 340px) {
  .bg-sdk-num { font-size: 17px; }
  .bg-sdk-key { height: 36px; font-size: 17px; border-radius: 10px; }
  .bg-sdk-notes { font-size: 7px; }
}

/* 결과 */
.bg-result { display: flex; flex-direction: column; align-items: center; padding-top: 6px; text-align: center; }
.bg-result.is-loading { flex-direction: row; justify-content: center; gap: 8px; padding: 46px 0; font-size: 12px; color: var(--muted); }
.bg-result-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; color: var(--gold-dark); }
.bg-result-title { margin-top: 2px; font-size: 15px; font-weight: 800; }
.bg-result-score { margin-top: 4px; font-size: 40px; font-weight: 900; letter-spacing: -0.04em; color: var(--navy); font-variant-numeric: tabular-nums; }
.bg-new-record { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 5px 10px; border-radius: 999px; background: var(--yellow-soft); border: 1px solid #F3E4BB; color: #7A5B12; font-size: 11px; font-weight: 800; }
.bg-result-sub { margin-top: 4px; font-size: 11px; color: var(--muted-2); }
.bg-result-rows { width: 100%; margin-top: 14px; border-top: 1px solid var(--line); }
.bg-result-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.bg-result-row strong { font-size: 13px; color: var(--navy); font-variant-numeric: tabular-nums; }
.bg-save-note { margin-top: 10px; font-size: 10.5px; line-height: 1.5; color: var(--muted-2); }
.bg-result-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 14px; }

@keyframes bgShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  55% { transform: translateX(4px); }
  80% { transform: translateX(-2px); }
}

@keyframes bgPinIn {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes bgPopIn {
  0% { transform: scale(0.55); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* 홈 배너 — 오늘의 두뇌 워밍업 */
.bg-home-banner {
  position: relative; display: flex; flex-direction: column; gap: 5px; overflow: hidden;
  padding: 16px; border-radius: var(--radius-lg); color: var(--white);
  background: linear-gradient(150deg, #0B142A 0%, #070D1E 62%, #101A36 100%);
  box-shadow: var(--shadow-md);
}
.bg-home-banner::after {
  content: ''; position: absolute; right: -34px; top: -46px; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 184, 46, 0.22), rgba(245, 184, 46, 0) 70%);
}
.bg-home-top { position: relative; display: flex; align-items: center; gap: 8px; }
.bg-home-ico { display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 12px; background: rgba(245, 184, 46, 0.16); color: var(--yellow); }
.bg-home-eyebrow { flex: 1; font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.62); }
.bg-home-streak { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; background: rgba(245, 184, 46, 0.18); color: var(--yellow); font-size: 10.5px; font-weight: 800; }
.bg-home-streak.is-new { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.68); }
.bg-home-title { position: relative; font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.bg-home-sub { position: relative; font-size: 11.5px; color: rgba(255, 255, 255, 0.62); }
.bg-home-chips { position: relative; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.bg-home-chip { padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); font-size: 10px; color: rgba(255, 255, 255, 0.64); }
.bg-home-chip.is-on { background: rgba(245, 184, 46, 0.2); border-color: rgba(245, 184, 46, 0.42); color: var(--yellow); font-weight: 700; }
.bg-home-cta { position: relative; display: inline-flex; align-items: center; gap: 2px; margin-top: 7px; font-size: 12px; font-weight: 800; color: var(--yellow); }
