:root {
  --dash-bg: #f4f7f2;
  --dash-card: #ffffff;
  --dash-ink: #17231d;
  --dash-muted: #5A6660;
  --dash-green: #34745a;
  --dash-green-2: #6da184;
  --dash-green-soft: #e6f2eb;
  --dash-yellow: #f2bd57;
  --dash-blue: #5b84a4;
  --dash-coral: #d8786d;
  --dash-line: #dfe7e1;
  --dash-shadow: 0 12px 30px rgba(32, 64, 47, .09);
}

body.auth-ready { background: var(--dash-bg); color: var(--dash-ink); }
body.auth-ready #app { max-width: 760px; padding: 0 18px 112px; }
body.auth-ready header.brandbar {
  position: sticky; top: 0; z-index: 20; margin: 0 -18px 8px; padding: 14px 20px;
  border: 0; background: rgba(244, 247, 242, .96); backdrop-filter: blur(16px);
}
body.auth-ready .brand-emoji { font-size: 30px; }
body.auth-ready .brand-stack { gap: 0; }
body.auth-ready .brand-name { color: var(--dash-green); font-size: 23px; letter-spacing: -.04em; }
body.auth-ready .brand-sub { margin-left: 0 !important; color: var(--dash-muted); font-size:calc(16px * var(--txt-mul, 1)); }
body.auth-ready #feedbackBox,
body.auth-ready footer.disclaimer,
body.auth-ready .helper-char { display: none !important; }

.daily-deck { display: grid; gap: 18px; padding-bottom: 18px; }
.deck-card {
  background: var(--dash-card); border: 1px solid rgba(220, 230, 223, .92);
  border-radius: 26px; box-shadow: var(--dash-shadow);
}
.deck-hero {
  position: relative; overflow: hidden; padding: 24px;
  color: #fff; background: linear-gradient(135deg, #2f6f55 0%, #4f8e6d 100%);
}
.deck-hero::after {
  content: ""; position: absolute; width: 190px; height: 190px; right: -72px; bottom: -92px;
  border-radius: 50%; background: rgba(255,255,255,.10);
}
.deck-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.deck-date { font-size:calc(16px * var(--txt-mul, 1)); opacity: .84; }
.deck-greeting { margin: 4px 0 0; font-size: 27px; line-height: 1.35; letter-spacing: -.04em; }
.hero-progress { display: flex; align-items: center; gap: 18px; margin-top: 22px; }
.hero-ring {
  --p: 0; flex: 0 0 92px; width: 92px; height: 92px; display: grid; place-items: center;
  border-radius: 50%; background: conic-gradient(var(--dash-yellow) calc(var(--p) * 1%), rgba(255,255,255,.2) 0);
}
.hero-ring::before { content: ""; grid-area: 1/1; width: 70px; height: 70px; border-radius: 50%; background: #3c7b5e; }
.hero-ring strong { position: relative; z-index: 1; grid-area: 1/1; color: #fff; font-size: 24px; line-height: 1; }
.hero-progress-copy strong { display: block; font-size: 22px; line-height: 1.3; }
.hero-progress-copy span { display: block; margin-top: 5px; font-size:calc(16px * var(--txt-mul, 1)); opacity: .86; }

.deck-section { padding: 22px; }
.deck-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.deck-heading { margin: 0; color: var(--dash-ink); font-size: 21px; letter-spacing: -.03em; }
.deck-link { color: var(--dash-green); font-weight: 800; text-decoration: none; font-size:calc(16px * var(--txt-mul, 1)); min-height: 44px; display: inline-flex; align-items: center; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.metric {
  min-width: 0; min-height: 142px; padding: 16px; border: 1px solid var(--dash-line); border-radius: 21px;
  background: #fbfcfb; display: grid; grid-template-columns: 64px minmax(0,1fr) 18px; align-items: center; gap: 10px;
}
.metric-link { width: 100%; margin: 0; color: inherit; text-align: left; text-decoration: none; font: inherit; cursor: pointer; }
.metric-link:active { transform: scale(.985); }
.metric-link:focus-visible { outline: 4px solid #efbd55; outline-offset: 3px; }
.metric-link:disabled { opacity: .72; cursor: wait; }
.metric-arrow { color: var(--dash-muted); font-size: 28px; font-weight: 800; line-height: 1; }
.metric-ring {
  --p: 0; --tone: var(--dash-green); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--tone) calc(var(--p) * 1%), #e8eeea 0);
}
.metric-ring::before { content: ""; grid-area: 1/1; width: 48px; height: 48px; border-radius: 50%; background: #fff; }
.metric-ring span { position: relative; grid-area: 1/1; z-index: 1; font-size: 21px; }
.metric-copy { min-width: 0; }
.metric-label { display: block; color: var(--dash-muted); font-size:calc(16px * var(--txt-mul, 1)); font-weight: 700; }
.metric-value { display: block; margin-top: 2px; color: var(--dash-ink); font-size: 20px; font-weight: 900; line-height: 1.25; }
.metric-note { display: block; margin-top: 4px; color: var(--dash-muted); font-size:calc(16px * var(--txt-mul, 1)); line-height: 1.35; }

.home-notice-section { display: grid; gap: 12px; }
.home-notice-section #noticeCard:empty { display: none; }
.home-notice-shortcut {
  min-height: 86px; padding: 14px 18px; border: 1px solid #e6d5a7; border-radius: 22px;
  background: linear-gradient(135deg, #fff8df, #fffdf5); color: var(--dash-ink);
  text-decoration: none; display: grid; grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center; gap: 14px; box-shadow: 0 8px 20px rgba(95, 76, 34, .07);
}
.home-notice-icon {
  width: 54px; height: 54px; border-radius: 18px; background: #f4c968;
  display: grid; place-items: center; font-size: 28px;
}
.home-notice-copy { min-width: 0; }
.home-notice-copy strong { display: block; font-size: 21px; font-weight: 900; letter-spacing: -.03em; }
.home-notice-copy small {
  display: block; margin-top: 4px; color: var(--dash-muted);
  font-size: calc(16px * var(--txt-mul, 1)); font-weight: 700; line-height: 1.4;
  word-break: keep-all; overflow-wrap: anywhere;
}
.home-notice-open { color: #725617; font-size: calc(16px * var(--txt-mul, 1)); font-weight: 900; white-space: nowrap; }
.home-notice-shortcut:focus-visible { outline: 4px solid #efbd55; outline-offset: 3px; }
.home-notice-shortcut:active { transform: scale(.99); }

.home-health-section { display: grid; }
.home-health-shortcut {
  min-height: 86px; padding: 14px 18px; border: 1px solid #c9e2d2; border-radius: 22px;
  background: linear-gradient(135deg, #e7f3eb, #fbfdfb); color: var(--dash-ink);
  text-decoration: none; display: grid; grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center; gap: 14px; box-shadow: 0 8px 20px rgba(52, 116, 90, .08);
}
.home-health-icon {
  width: 54px; height: 54px; border-radius: 18px; background: var(--dash-green);
  color: #fff; display: grid; place-items: center; font-size: 23px; font-weight: 900;
}
.home-health-copy { min-width: 0; }
.home-health-copy strong { display: block; font-size: 21px; font-weight: 900; letter-spacing: -.03em; }
.home-health-copy small {
  display: block; margin-top: 4px; color: var(--dash-muted);
  font-size: calc(16px * var(--txt-mul, 1)); font-weight: 700; line-height: 1.4;
  word-break: keep-all; overflow-wrap: anywhere;
}
.home-health-open { color: var(--dash-green); font-size: calc(16px * var(--txt-mul, 1)); font-weight: 900; white-space: nowrap; }
.home-health-shortcut:focus-visible { outline: 4px solid #75ab91; outline-offset: 3px; }
.home-health-shortcut:active { transform: scale(.99); }

.action-stack { display: grid; gap: 12px; }
.action-card {
  position: relative; overflow: hidden; min-height: 166px; padding: 22px; border-radius: 24px;
  color: var(--dash-ink); text-decoration: none; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px;
}
.action-card.exercise { background: linear-gradient(135deg, #e1f2e8, #f3faf5); border: 1px solid #c9e2d2; }
.action-card.cognition { background: linear-gradient(135deg, #edf1f8, #f8f9fc); border: 1px solid #d6dfeb; }
.action-eyebrow { display: block; color: var(--dash-muted); font-size:calc(16px * var(--txt-mul, 1)); font-weight: 800; }
.action-title { display: block; margin-top: 4px; color: var(--dash-ink); font-size: 24px; font-weight: 900; letter-spacing: -.04em; }
.action-desc { display: block; margin-top: 8px; color: var(--dash-muted); font-size:calc(16px * var(--txt-mul, 1)); line-height: 1.45; }
.action-button {
  min-width: 72px; min-height: 72px; padding: 10px; border-radius: 22px; display: grid; place-items: center;
  background: var(--dash-green); color: #fff; font-size: 27px; font-weight: 900;
}
.action-card.cognition .action-button { background: var(--dash-blue); }
.favorite-shortcut {
  min-height: 56px; padding: 10px 18px; border: 1px solid var(--dash-line); border-radius: 18px;
  background: #fff; color: var(--dash-ink); text-decoration: none; font-weight: 800;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.cognitive-grid,.other-maru-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
.quick-card,.other-maru-card {
  min-height:82px;padding:14px;border:1px solid var(--dash-line);border-radius:18px;background:#fbfcfb;
  color:var(--dash-ink);text-decoration:none;display:flex;align-items:center;gap:11px;font-weight:900;font-size:calc(16px * var(--txt-mul, 1));line-height:1.35;
}
.quick-card span:first-child,.other-maru-card span:first-child { font-size:27px;flex:0 0 auto; }
.quick-card small,.other-maru-card small { display:block;margin-top:3px;color:var(--dash-muted);font-size:calc(16px * var(--txt-mul, 1));font-weight:700; }
/* 인지운동 빠른 카드의 단계 배지 (2026-08-31 레브 지시 · 레벨 진행)
   쉬움·보통·어려움이 한눈에 구별되도록 구간마다 색을 나눈다 (흰 글자 대비 확보).

   2026-09-03 배지 넘침 수정 (레브 실기기 제보 "글자 뒤로 밀린 거 보이지").
   실측 원인: 카드가 가로 배치(이모지 + 글자)라 360px 화면의 두 칸 그리드에서
   글자 칸이 70px 밖에 안 남았다. 알약은 그 폭에 맞춰 줄어들고, 한국어 기본
   줄바꿈은 낱말 가운데도 끊기 때문에 "1단계 · 쉬 / 움" 으로 쪼개져 세로로 부풀었다
   (실측: 배지 높이 44px = 두 줄).
   고친 방법 — 배지를 작게 만들지 않고 자리를 넓혀 준다:
     ① 카드를 세로 배치로 바꿔 글자가 카드 폭 전체(약 121px)를 쓰게 한다.
     ② word-break:keep-all 로 낱말을 절대 쪼개지 않는다(끊긴다면 띄어쓰기에서만).
     ③ 배지 글자를 --txt-mul 로 키워 큰 글꼴 설정을 따르게 한다(고령자용).
     ④ 큰 글꼴에서는 좁은 화면일 때 한 칸 그리드로 내려 항상 한 줄에 들어가게 한다. */
.quick-card {
  flex-direction:column;justify-content:center;align-items:center;
  gap:7px;padding:14px 10px;min-height:112px;text-align:center;
}
.quick-card > span:last-child {
  display:block;width:100%;min-width:0;word-break:keep-all;overflow-wrap:normal;
}
.quick-card small { word-break:keep-all;overflow-wrap:normal; }
.quick-card .quick-level {
  display:inline-block;max-width:100%;margin-top:7px;padding:5px 12px;border-radius:999px;
  background:#4E7D63;color:#fff;font-size: calc(16px * var(--txt-mul, 1));
  font-weight:900;font-style:normal;line-height:1.5;text-align:center;
  word-break:keep-all;overflow-wrap:normal;
}
.quick-card .quick-level.band-easy   { background:#4E7D63; }
.quick-card .quick-level.band-normal { background:#A65F24; }
.quick-card .quick-level.band-hard   { background:#8B4456; }
/* 배지가 한 줄로 못 들어가는 조합(좁은 화면 + 큰 글꼴)에서는 한 칸으로 내려 준다. */
@media (max-width: 479px) {
  html[data-text="large"]  .cognitive-grid,
  html[data-text="larger"] .cognitive-grid { grid-template-columns:1fr; }
}
@media (min-width: 480px) and (max-width: 599px) {
  html[data-text="larger"] .cognitive-grid { grid-template-columns:1fr; }
}
.other-maru-card {
  min-height:132px;padding:15px 10px;flex-direction:column;justify-content:center;gap:7px;text-align:center;
  word-break:keep-all;overflow-wrap:normal;
}
.other-maru-card > span:nth-child(2) { display:block;width:100%;word-break:keep-all;overflow-wrap:normal; }
.other-maru-card small { margin-top:5px;line-height:1.45;word-break:keep-all;overflow-wrap:normal; }
.other-maru-card[data-app-disabled="1"] { border-style:dashed;background:#f2f5f3;color:var(--dash-muted);cursor:default; }
.quick-card:focus-visible,.other-maru-card:focus-visible { outline:4px solid #efbd55;outline-offset:3px; }
.other-maru-card.is-pending {
  border-style:dashed;background:#f2f5f3;color:var(--dash-muted);cursor:default;
}

.med-now { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 16px; }
.med-time { color: var(--dash-green); font-size:calc(16px * var(--txt-mul, 1)); font-weight: 900; }
.med-name { margin-top: 4px; color: var(--dash-ink); font-size: 22px; font-weight: 900; line-height: 1.35; }
.med-dose { margin-top: 3px; color: var(--dash-muted); font-size:calc(16px * var(--txt-mul, 1)); }
.med-done-btn, .step-enable-btn {
  min-width: 112px; min-height: 62px; padding: 12px 16px; border: 0; border-radius: 19px;
  background: var(--dash-green); color: #fff; font-family:inherit;font-weight:900;font-size:calc(18px * var(--txt-mul,1));line-height:1.25; cursor: pointer;
}
.med-empty { color: var(--dash-muted); font-size:calc(16px * var(--txt-mul, 1)); line-height: 1.55; }

.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 7px; }
.week-day { min-width: 0; text-align: center; }
.week-name { display: block; color: var(--dash-muted); font-size:calc(16px * var(--txt-mul, 1)); font-weight: 700; }
.week-date {
  width: 36px; height: 36px; margin: 5px auto 7px; border-radius: 12px; display: grid; place-items: center;
  background: #f2f5f3; color: var(--dash-ink); font-size:calc(16px * var(--txt-mul, 1)); font-weight: 800;
}
.week-day.today .week-date { background: var(--dash-green); color: #fff; }
.week-dots { min-height: 12px; display: flex; justify-content: center; gap: 3px; }
.week-dot { width: 6px; height: 6px; border-radius: 50%; background: #d7dfda; }
.week-dot.on.med { background: var(--dash-coral); }
.week-dot.on.exercise { background: var(--dash-green-2); }
.week-dot.on.cognitive { background: var(--dash-blue); }
.week-chart { height: 132px; margin-top: 20px; display: grid; grid-template-columns: repeat(7,1fr); align-items: end; gap: 9px; }
.bar-col { min-width: 0; text-align: center; }
.bar-track { height: 96px; border-radius: 10px 10px 5px 5px; background: #eef2ef; display: flex; align-items: flex-end; overflow: hidden; }
.bar-fill { width: 100%; min-height: 4px; border-radius: 10px 10px 5px 5px; background: linear-gradient(#6da184, #34745a); }
.bar-label { display: block; margin-top: 5px; color: var(--dash-muted); font-size:calc(16px * var(--txt-mul, 1)); }

.more-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.more-link {
  min-height: 62px; padding: 12px 14px; border: 1px solid var(--dash-line); border-radius: 17px;
  background: #fbfcfb; color: var(--dash-ink); text-decoration: none; font-weight: 800;
  display: flex; align-items: center; gap: 10px;
}
.more-link small { display: block; margin-top: 3px; color: var(--dash-muted); font-size:calc(16px * var(--txt-mul, 1)); line-height: 1.35; }
.more-link.is-disabled {
  font-family: inherit; text-align: left; cursor: not-allowed; opacity: 1;
  background: #f0f2f0; color: #737a75; border-style: dashed;
}
.deck-safety { margin: 0; color: var(--dash-muted); font-size:calc(16px * var(--txt-mul, 1)); line-height: 1.6; text-align: center; }

.bottom-nav {
  position: fixed; z-index: 30; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(calc(100% - 24px), 720px); min-height: 74px; padding: 8px;
  border: 1px solid rgba(215, 226, 218, .95); border-radius: 24px; background: rgba(255,255,255,.97);
  box-shadow: 0 14px 36px rgba(30, 62, 44, .16); display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 2px;
}
.bottom-nav a {
  min-height: 58px; border-radius: 17px; color: var(--dash-muted); text-decoration: none; font-size:calc(16px * var(--txt-mul, 1)); font-weight: 800;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
}
.bottom-nav a span { font-size: 21px; line-height: 1.15; }
.bottom-nav a.active { background: var(--dash-green-soft); color: var(--dash-green); }

@media (max-width: 560px) {
  body.auth-ready #app { padding-inline: 14px; }
  body.auth-ready header.brandbar { margin-inline: -14px; padding-inline: 16px; }
  .deck-hero, .deck-section { padding: 19px; }
  .deck-greeting { font-size: 24px; }
  .hero-ring { flex-basis: 82px; width: 82px; height: 82px; }
  .hero-ring::before { width: 62px; height: 62px; }
  .metric-grid { gap: 10px; }
  .metric {
    position: relative; min-height: 174px; padding: 14px 12px 13px;
    grid-template-columns: 1fr; grid-template-rows: auto auto;
    justify-items: center; align-content: start; gap: 8px; text-align: center;
  }
  .metric-ring { width: 58px; height: 58px; margin: 0 auto; }
  .metric-ring::before { width: 44px; height: 44px; }
  .metric-ring span { font-size: 20px; }
  .metric-copy { width: 100%; padding: 0 3px; }
  .metric-label {
    font-size:calc(16px * var(--txt-mul, 1)); line-height: 1.3; white-space: nowrap;
    word-break: keep-all; overflow-wrap: normal;
  }
  .metric-value {
    margin-top: 3px; font-size: 20px; line-height: 1.2; white-space: nowrap;
    word-break: keep-all; overflow-wrap: normal;
  }
  .metric-note {
    margin-top: 5px; font-size:calc(16px * var(--txt-mul, 1)); line-height: 1.4;
    word-break: keep-all; overflow-wrap: normal;
  }
  .metric-arrow {
    position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
    font-size: 24px;
  }
  .action-card { min-height: 154px; padding: 19px; }
  .action-title { font-size: 22px; }
  .action-button { min-width: 64px; min-height: 64px; }
  .med-now { grid-template-columns: 1fr; }
  .med-done-btn, .step-enable-btn { width: 100%; min-height: 64px; }
  .week-strip { gap: 3px; }
  .week-date { width: 32px; height: 34px; }
}

@media (max-width: 350px) {
  .metric-grid { grid-template-columns: 1fr; }
  .metric { min-height: 158px; grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .more-grid,.cognitive-grid,.other-maru-grid { grid-template-columns: 1fr; }
  .deck-topline { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .bottom-nav, .deck-card { scroll-behavior: auto; }
}

/* ============================================================
   2026-08-31 출시 전 결함 수정
   ============================================================ */

/* R3 — .other-maru-card{display:flex} 가 브라우저 기본 [hidden] 규칙을 이기던 문제.
   dashboard.css 는 v3_nature.css 뒤에 로드되므로 여기에도 같은 규칙을 둔다. */
[hidden] { display: none !important; }

/* Y1 — 홈 화면 터치 영역 48px (시니어 기준) */
.deck-link,
.more-link,
.favorite-shortcut,
.metric-link,
.quick-card,
.other-maru-card {
  min-height: 48px;
}

/* R2 — 내 기록 저장/가져오기 카드 */
.data-card { display: block; }
.data-card .data-desc {
  font-size:calc(16px * var(--txt-mul, 1));
  line-height: 1.7;
  color: var(--dash-muted, #5b5750);
  margin: 0 0 14px;
}
.data-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 420px) {
  .data-actions { grid-template-columns: 1fr; }
}
.data-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--dash-line, #e3ded4);
  background: var(--dash-card, #fff);
  color: var(--dash-ink, #2c2a26);
  font-size:calc(17px * var(--txt-mul, 1));
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.data-btn.primary {
  background: var(--dash-accent, #34745a);
  border-color: var(--dash-accent, #34745a);
  color: #fff;
}
.data-btn:focus-visible { outline: 3px solid var(--dash-accent, #34745a); outline-offset: 2px; }
.data-status {
  margin: 12px 0 0;
  font-size:calc(16px * var(--txt-mul, 1));
  line-height: 1.6;
  color: var(--dash-muted, #5b5750);
  min-height: 1.6em;
}
.data-status.ok { color: #2f6b4f; font-weight: 700; }
.data-status.err { color: #b4483d; font-weight: 700; }

/* R5 — 홈 화면 설정 카드 */
.set-group { margin: 0 0 16px; }
.set-group:last-child { margin-bottom: 0; }
.set-label {
  display: block;
  font-size:calc(16px * var(--txt-mul, 1));
  font-weight: 700;
  color: var(--dash-muted, #5b5750);
  margin: 0 0 8px;
}
.set-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.set-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 64px;
  padding: 10px 8px;
  border-radius: 14px;
  border: 1px solid var(--dash-line, #e3ded4);
  background: var(--dash-card, #fff);
  color: var(--dash-ink, #2c2a26);
  cursor: pointer;
  text-align: center;
}
.set-btn strong { font-size:calc(16px * var(--txt-mul, 1)); font-weight: 700; }
.set-btn small { font-size:calc(16px * var(--txt-mul, 1)); color: var(--dash-muted, #5b5750); line-height: 1.3; }
.set-btn.on {
  border-color: var(--dash-accent, #34745a);
  border-width: 2px;
  background: color-mix(in srgb, var(--dash-accent, #34745a) 10%, #fff);
}
.set-btn.on strong { color: var(--dash-accent, #34745a); }
.set-btn:focus-visible { outline: 3px solid var(--dash-accent, #34745a); outline-offset: 2px; }

/* 2026-09-06: keep level labels on one line, including narrow phone cards. */
.cognitive-grid .quick-card { min-width:0;flex-direction:column;gap:7px;text-align:center; }
.cognitive-grid .quick-card > span:last-child { min-width:0;width:100%;font-size:clamp(14px,3.7vw,17px);word-break:keep-all;overflow-wrap:normal; }
.cognitive-grid .quick-card small { font-size:clamp(12px,3.2vw,14px);word-break:keep-all;overflow-wrap:normal; }
.cognitive-grid .quick-card .quick-level { box-sizing:border-box;white-space:nowrap;word-break:normal;max-width:100%;font-size:clamp(11px,2.8vw,13px);line-height:1.5;padding:5px 8px; }

#playMaru button.is-disabled { opacity:1;color:#6a706c;background:#eef0ed;cursor:default;font-family:inherit; }

#playMaru [data-inapp-game="pinoFlip"] { grid-column:1 / -1; }

.deck-safety-line { display:block;word-break:keep-all; }
html[lang="ko"] .deck-safety { font-size:clamp(10px,3.1vw,13px);line-height:1.85; }
html[lang="ko"] .deck-safety-line { white-space:nowrap; }

/* Keep full labels inside narrow cards in every supported language. */
.daily-deck{grid-template-columns:minmax(0,1fr)}
.daily-deck>*{min-width:0}
.deck-topline>div,.hero-progress-copy{min-width:0;overflow-wrap:anywhere}
.deck-greeting{overflow-wrap:anywhere}
.deck-safety-line{white-space:normal!important;overflow-wrap:anywhere}
@media(max-width:560px){
 .metric{grid-template-columns:minmax(0,1fr)}
 .metric-label,.metric-value,.metric-note{white-space:normal;overflow-wrap:anywhere}
}
