/* Design tokens and shared components, based on docs/mockups/src/common.css. */
:root {
  --bg: #FBF7F0; --card: #fff; --ink: #1E2433; --sub: #5B6475; --muted: #646D7D; --line: #E8E2D7;
  --pri: #3F5BD9; --pri-weak: #E8ECFF; --ok: #1F9D55; --ok-weak: #E3F6EA; --warn: #C9700A; --warn-weak: #FFF1DC;
  --danger: #D9443F; --board: #F3EDE2;
  --m1: #F0544F; --m2: #22A559; --m3: #3B82F6; --m4: #9B51E0; --m5: #F2A20C; --m6: #E64C9A;
  --font: 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font-family: var(--font); -webkit-font-smoothing: antialiased;
}
svg, img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--pri); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Shared components */
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand .ic { width: 26px; height: 26px; }
.btn {
  border: 0; border-radius: 14px; font: inherit; font-weight: 700; font-size: 16px; min-height: 44px; padding: 12px 18px;
  background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none;
}
.btn.pri { background: var(--pri); color: #fff; box-shadow: none; }
.btn.big { width: 100%; height: 58px; font-size: 19px; border-radius: 16px; }
.btn.danger { color: var(--danger); box-shadow: inset 0 0 0 1.5px #F2C4C2; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--sub); }
.pill.ok { background: var(--ok-weak); color: var(--ok); box-shadow: none; }
.pill.pri { background: var(--pri-weak); color: var(--pri); box-shadow: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); display: inline-block; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 6px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; white-space: nowrap; }
.chip .ic { width: 20px; height: 20px; }
.chip.off { color: var(--muted); background: #F4F2EE; }
.chip.off .ic { filter: grayscale(1) opacity(.5); }
.chip em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 500; }
.ic svg { width: 100%; height: 100%; }
.sub { color: var(--sub); font-size: 16px; line-height: 1.5; }
.hint { color: var(--muted); font-size: 14px; text-align: center; }
.spacer { flex: 1; }
.board { background-color: var(--board); background-image: radial-gradient(rgba(120, 100, 70, .16) 1.2px, transparent 1.3px); background-size: 22px 22px; position: relative; overflow: hidden; }
.prog { display: inline-block; height: 8px; border-radius: 99px; background: #E9E3D8; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.tile { background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); padding: 4px; }
.tile svg { width: 100%; height: 100%; }
.iconbtn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; cursor: pointer; }
.iconbtn svg { width: 22px; height: 22px; }
.card { background: #fff; border-radius: 20px; box-shadow: 0 1px 0 rgba(0, 0, 0, .02), inset 0 0 0 1px var(--line); }
.seg { display: flex; background: #F2EEE7; border-radius: 14px; padding: 4px; gap: 4px; }
.seg > * { flex: 1; text-align: center; padding: 10px 0; border-radius: 10px; font-weight: 700; color: var(--sub); }
.seg > .on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
