/* 기본 모습은 젤리예요. 나머지 테마는 여기서 바꿔요. */

/* 체중계 */
[data-theme="scale"] {
  --accent: #3f4fc2;
  --accent-edge: #2c3a9e;
  --accent-text: #3344b0;
  --tile1: #dfe3ff;
  --tile1-edge: #bcc4f5;
  --tile1-faint: #cfd2e6;
  --tile2: #f3f4ff;
  --tile2-edge: #e2e5f8;
  --tile2-text: #2c3380;
  --tile2-faint: #6d76b8;
  --tile3: #ffd9e2;
  --tile3-edge: #f5b5c6;
  --tile3-text: #a02a56;
  --ink: #2c3380;
  --ink-soft: #5f68a8;
  --ink-faint: #a9afd6;
  --line: #e2e5f8;
  --ground: #eef0ff;
  --day-off: #d3d7ee;
  --save-off: #c6ccef;
  --mark-2: #e2415f;
  --chart-line: #3f4fc2;
  --chart-goal: #d9486c;
  --chart-grid: #e9ebfa;
  --chart-cursor: #2c3380;
}
[data-theme="scale"] #record-form {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 22px 18px 18px;
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 6px 0 var(--line);
}
[data-theme="scale"] .weight-field {
  position: relative;
  height: 176px;
  padding: 86px 0 0;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%20300%20156%27%3E%3Cline%20x1%3D%2720.0%27%20y1%3D%27150.0%27%20x2%3D%2734.0%27%20y2%3D%27150.0%27%20stroke%3D%27%236f7fe0%27%20stroke-width%3D%273%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%2720.4%27%20y1%3D%27139.8%27%20x2%3D%2727.4%27%20y2%3D%27140.3%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%2721.6%27%20y1%3D%27129.7%27%20x2%3D%2728.5%27%20y2%3D%27130.8%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%2723.6%27%20y1%3D%27119.7%27%20x2%3D%2730.4%27%20y2%3D%27121.3%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%2726.4%27%20y1%3D%27109.8%27%20x2%3D%2733.0%27%20y2%3D%27112.0%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%2729.9%27%20y1%3D%27100.3%27%20x2%3D%2742.8%27%20y2%3D%27105.6%27%20stroke%3D%27%236f7fe0%27%20stroke-width%3D%273%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%2734.2%27%20y1%3D%2791.0%27%20x2%3D%2740.4%27%20y2%3D%2794.2%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%2739.2%27%20y1%3D%2782.1%27%20x2%3D%2745.1%27%20y2%3D%2785.7%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%2744.8%27%20y1%3D%2773.6%27%20x2%3D%2750.5%27%20y2%3D%2777.7%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%2751.1%27%20y1%3D%2765.6%27%20x2%3D%2756.5%27%20y2%3D%2770.1%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%2758.1%27%20y1%3D%2758.1%27%20x2%3D%2768.0%27%20y2%3D%2768.0%27%20stroke%3D%27%236f7fe0%27%20stroke-width%3D%273%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%2765.6%27%20y1%3D%2751.1%27%20x2%3D%2770.1%27%20y2%3D%2756.5%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%2773.6%27%20y1%3D%2744.8%27%20x2%3D%2777.7%27%20y2%3D%2750.5%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%2782.1%27%20y1%3D%2739.2%27%20x2%3D%2785.7%27%20y2%3D%2745.1%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%2791.0%27%20y1%3D%2734.2%27%20x2%3D%2794.2%27%20y2%3D%2740.4%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%27100.3%27%20y1%3D%2729.9%27%20x2%3D%27105.6%27%20y2%3D%2742.8%27%20stroke%3D%27%236f7fe0%27%20stroke-width%3D%273%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%27109.8%27%20y1%3D%2726.4%27%20x2%3D%27112.0%27%20y2%3D%2733.0%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%27119.7%27%20y1%3D%2723.6%27%20x2%3D%27121.3%27%20y2%3D%2730.4%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%27129.7%27%20y1%3D%2721.6%27%20x2%3D%27130.8%27%20y2%3D%2728.5%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%27139.8%27%20y1%3D%2720.4%27%20x2%3D%27140.3%27%20y2%3D%2727.4%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%27150.0%27%20y1%3D%2720.0%27%20x2%3D%27150.0%27%20y2%3D%2734.0%27%20stroke%3D%27%236f7fe0%27%20stroke-width%3D%273%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%27160.2%27%20y1%3D%2720.4%27%20x2%3D%27159.7%27%20y2%3D%2727.4%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%27170.3%27%20y1%3D%2721.6%27%20x2%3D%27169.2%27%20y2%3D%2728.5%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%27180.3%27%20y1%3D%2723.6%27%20x2%3D%27178.7%27%20y2%3D%2730.4%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%27190.2%27%20y1%3D%2726.4%27%20x2%3D%27188.0%27%20y2%3D%2733.0%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%27199.7%27%20y1%3D%2729.9%27%20x2%3D%27194.4%27%20y2%3D%2742.8%27%20stroke%3D%27%236f7fe0%27%20stroke-width%3D%273%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%27209.0%27%20y1%3D%2734.2%27%20x2%3D%27205.8%27%20y2%3D%2740.4%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%27217.9%27%20y1%3D%2739.2%27%20x2%3D%27214.3%27%20y2%3D%2745.1%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%27226.4%27%20y1%3D%2744.8%27%20x2%3D%27222.3%27%20y2%3D%2750.5%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%27234.4%27%20y1%3D%2751.1%27%20x2%3D%27229.9%27%20y2%3D%2756.5%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%27241.9%27%20y1%3D%2758.1%27%20x2%3D%27232.0%27%20y2%3D%2768.0%27%20stroke%3D%27%236f7fe0%27%20stroke-width%3D%273%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%27248.9%27%20y1%3D%2765.6%27%20x2%3D%27243.5%27%20y2%3D%2770.1%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%27255.2%27%20y1%3D%2773.6%27%20x2%3D%27249.5%27%20y2%3D%2777.7%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%27260.8%27%20y1%3D%2782.1%27%20x2%3D%27254.9%27%20y2%3D%2785.7%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%27265.8%27%20y1%3D%2791.0%27%20x2%3D%27259.6%27%20y2%3D%2794.2%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%27270.1%27%20y1%3D%27100.3%27%20x2%3D%27257.2%27%20y2%3D%27105.6%27%20stroke%3D%27%236f7fe0%27%20stroke-width%3D%273%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%27273.6%27%20y1%3D%27109.8%27%20x2%3D%27267.0%27%20y2%3D%27112.0%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%27276.4%27%20y1%3D%27119.7%27%20x2%3D%27269.6%27%20y2%3D%27121.3%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%27278.4%27%20y1%3D%27129.7%27%20x2%3D%27271.5%27%20y2%3D%27130.8%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%27279.6%27%20y1%3D%27139.8%27%20x2%3D%27272.6%27%20y2%3D%27140.3%27%20stroke%3D%27%23c3cbf5%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3Cline%20x1%3D%27280.0%27%20y1%3D%27150.0%27%20x2%3D%27266.0%27%20y2%3D%27150.0%27%20stroke%3D%27%236f7fe0%27%20stroke-width%3D%273%27%20stroke-linecap%3D%27round%27/%3E%3Cpath%20d%3D%27M150%2012l-7%2013h14z%27%20fill%3D%27%23ff7d9c%27/%3E%3C/svg%3E") center top / 300px no-repeat;
  box-shadow: none;
  color: var(--ink-soft);
}
[data-theme="scale"] .weight-field:focus-within,
[data-theme="scale"] .meal-field:focus-within { box-shadow: none; }
[data-theme="scale"] .weight-field .field-label {
  position: absolute;
  left: 0;
  right: 0;
  top: 56px;
  font-size: 15px;
}
[data-theme="scale"] .weight-entry input { font-size: 62px; color: var(--ink); }
[data-theme="scale"] .weight-unit { font-size: 22px; }
[data-theme="scale"] .meal-field {
  min-height: 0;
  padding: 10px 18px;
  border-radius: 20px;
  box-shadow: none;
}
[data-theme="scale"] .meal-field .field-label { color: var(--ink-soft); font-size: 14px; }
[data-theme="scale"] .side.me { color: var(--ink); }

/* 도장: 체중계, 플래너 */
[data-theme="scale"] .exercise-toggle,
[data-theme="planner"] .exercise-toggle {
  flex-direction: row;
  justify-content: flex-start;
  gap: 12px;
  min-height: 0;
  padding: 2px 4px;
  background: none;
  box-shadow: none;
  color: var(--ink);
}
[data-theme="scale"] .check,
[data-theme="planner"] .check {
  position: relative;
  order: 0;
  flex: none;
  width: 76px;
  height: 76px;
  border: 2px dashed var(--ink-faint);
}
[data-theme="scale"] .exercise-toggle input:checked + .check,
[data-theme="planner"] .exercise-toggle input:checked + .check {
  border: 3px solid #e2415f;
  background: none;
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px #e2415f;
  transform: rotate(-12deg);
}
[data-theme="scale"] .exercise-toggle input:checked + .check::after,
[data-theme="planner"] .exercise-toggle input:checked + .check::after {
  content: "참 잘\A했어요";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #e2415f;
  font-family: "Jua", sans-serif;
  font-size: 15px;
  line-height: 1.15;
  text-align: center;
  white-space: pre;
}

/* 플래너 */
[data-theme="planner"] {
  --display: "Gaegu", "Jua", sans-serif;
  --accent: #3b3a4a;
  --accent-edge: #3b3a4a;
  --accent-text: #3b3a4a;
  --tile1: #ffe48a;
  --tile1-edge: #3b3a4a;
  --tile1-faint: #cbc9d6;
  --tile2: transparent;
  --tile2-edge: transparent;
  --tile2-text: #3b3a4a;
  --tile2-faint: #6d6b80;
  --tile3: #ffc6d6;
  --tile3-edge: #3b3a4a;
  --tile3-text: #3b3a4a;
  --ink: #3b3a4a;
  --ink-soft: #5e5c74;
  --ink-faint: #a5a3b8;
  --line: #e7eef6;
  --ground: #fffdf4;
  --day-off: #c9c7d6;
  --save-off: #b7b5c6;
  --sticker: #ff7d9c;
  --mark-2: #e2415f;
  --chart-line: #3b3a4a;
  --chart-goal: #e2415f;
  --chart-grid: #eef1f6;
  --chart-cursor: #3b3a4a;
}
[data-theme="planner"] body {
  background-color: var(--ground);
  background-image:
    linear-gradient(#e7eef6 1px, transparent 1px),
    linear-gradient(90deg, #e7eef6 1px, transparent 1px);
  background-size: 24px 24px;
  font-weight: 700;
}
[data-theme="planner"] .quiet,
[data-theme="planner"] .tabs button,
[data-theme="planner"] .field-label,
[data-theme="planner"] .wide,
[data-theme="planner"] .theme-choice,
[data-theme="planner"] .range button { font-size: 19px; font-weight: 700; }
[data-theme="planner"] .tabs { background: var(--ground); border-top-color: #d5dbe5; }
[data-theme="planner"] .tabs button { font-size: 21px; }
[data-theme="planner"] .save { box-shadow: none; font-size: 19px; font-weight: 700; }
[data-theme="planner"] .primary { box-shadow: none; font-size: 21px; font-weight: 700; }
[data-theme="planner"] .day-title h1 { font-size: 21px; font-weight: 700; }
[data-theme="planner"] #record-form {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 10px 8px;
}
[data-theme="planner"] .weight-field {
  position: relative;
  padding: 26px 0 6px;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--ink);
}
[data-theme="planner"] .weight-field:focus-within,
[data-theme="planner"] .meal-field:focus-within { box-shadow: none; }
[data-theme="planner"] .weight-field .field-label {
  position: absolute;
  left: 50%;
  top: -4px;
  width: 110px;
  padding: 2px 0;
  background: rgba(255, 214, 90, .75);
  transform: translateX(-50%) rotate(-3deg);
}
[data-theme="planner"] .weight-entry {
  width: max-content;
  margin: 0 auto;
  padding: 0 6px;
  background: linear-gradient(transparent 62%, rgba(255, 150, 180, .55) 62% 90%, transparent 90%);
}
[data-theme="planner"] .weight-entry input,
[data-theme="planner"] .amount {
  font-family: "Jua", sans-serif;
  font-weight: 400;
  color: var(--ink);
}
[data-theme="planner"] .weight-entry input { font-size: 66px; }
[data-theme="planner"] .weight-unit { font-size: 26px; }
[data-theme="planner"] .meal-field {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
[data-theme="planner"] .meal-field textarea {
  border-bottom: 2px dashed #b9b7c9;
  font-size: 20px;
  font-weight: 700;
}
[data-theme="planner"] .exercise-toggle { font-size: 21px; }
[data-theme="planner"] .bet-period { font-size: 19px; }
[data-theme="planner"] .bet-headline { font-size: 32px; font-weight: 700; }
[data-theme="planner"] .side {
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--ink);
}
[data-theme="planner"] .side.me { transform: rotate(-1deg); }
[data-theme="planner"] .side.other { transform: rotate(1deg); }
[data-theme="planner"] .who { font-size: 21px; font-weight: 700; }
[data-theme="planner"] .verb,
[data-theme="planner"] .goal-line { font-size: 18px; font-weight: 700; }
[data-theme="planner"] .amount small { font-family: var(--display); font-weight: 700; font-size: 22px; }
[data-theme="planner"] .tug,
[data-theme="planner"] .block {
  border-radius: 6px;
  box-shadow: 0 0 0 1.5px #d5dbe5;
}
[data-theme="planner"] .block h2,
[data-theme="planner"] .bet-empty h1,
[data-theme="planner"] dialog h2 { font-weight: 700; }
[data-theme="planner"] .block h2 { font-size: 21px; }
[data-theme="planner"] .weekdays,
[data-theme="planner"] .legend { font-size: 17px; }
[data-theme="planner"] .day-cell { font-size: 19px; font-weight: 700; }
[data-theme="planner"] .day-weight { font-size: 15px; letter-spacing: -0.03em; }
[data-theme="planner"] .goal-row { font-size: 19px; }
[data-theme="planner"] .rope {
  height: 0;
  border-top: 3px dashed var(--ink);
  background: none;
  top: 36px;
}
[data-theme="planner"] .knot { background-color: #e2415f; box-shadow: none; }
[data-theme="planner"] .day-cell[aria-current="date"] { background: rgba(255, 214, 90, .6); }

/* 레트로 게임 */
[data-theme="game"] {
  --display: "Galmuri11", "Jua", sans-serif;
  --body: "Galmuri11", "Pretendard", sans-serif;
  --accent: #d6322d;
  --accent-edge: #96201c;
  --accent-text: #222034;
  --tile1: #ffffff;
  --tile1-edge: #222034;
  --tile1-faint: #c9c6d6;
  --tile2: #ffd95e;
  --tile2-edge: #222034;
  --tile2-text: #222034;
  --tile2-faint: #6b5a12;
  --tile3: #7fe3a8;
  --tile3-edge: #222034;
  --tile3-text: #222034;
  --ink: #222034;
  --ink-soft: #5b5870;
  --ink-faint: #8c88a0;
  --line: #222034;
  --ground: #fdf6dc;
  --day-off: #c5c2b8;
  --save-off: #c9c6bc;
  --sticker: #3a53c5;
  --mark-2: #d6322d;
  --chart-line: #3a53c5;
  --chart-goal: #d6322d;
  --chart-grid: #eeeadb;
  --chart-cursor: #222034;
}
[data-theme="game"] .weight-field,
[data-theme="game"] .meal-field,
[data-theme="game"] .exercise-toggle,
[data-theme="game"] .block,
[data-theme="game"] .side,
[data-theme="game"] .tug,
[data-theme="game"] dialog {
  border-radius: 0;
  box-shadow: 0 0 0 3px var(--ink), 5px 5px 0 3px var(--ink);
}
[data-theme="game"] dialog { margin: auto; box-shadow: 0 0 0 3px var(--ink); }
[data-theme="game"] .weight-field:focus-within,
[data-theme="game"] .meal-field:focus-within {
  box-shadow: 0 0 0 3px var(--ink), 5px 5px 0 3px var(--ink);
}
[data-theme="game"] .save,
[data-theme="game"] .primary {
  border-radius: 0;
  box-shadow: inset -3px -3px 0 var(--accent-edge), 0 0 0 3px var(--ink);
  font-size: 14px;
}
[data-theme="game"] .save:disabled { box-shadow: 0 0 0 3px var(--ink); color: #6f6c62; }
[data-theme="game"] .quiet,
[data-theme="game"] .day-title h1,
[data-theme="game"] .goal-row { font-size: 14px; }
[data-theme="game"] .icon-button { color: var(--ink); }
[data-theme="game"] .tabs { background: var(--ground); border-top: 3px solid var(--ink); }
[data-theme="game"] .tabs button { font-size: 14px; }
[data-theme="game"] .tabs button[aria-current="page"] { color: var(--ink); }
[data-theme="game"] #record-form { gap: 22px 20px; padding: 4px 8px 10px 4px; }
[data-theme="game"] .field-label { font-size: 13px; }
[data-theme="game"] .weight-field { padding: 0; background: var(--surface); }
[data-theme="game"] .weight-field .field-label {
  padding: 5px 10px;
  background: #3a53c5;
  color: #fff;
  text-align: left;
}
[data-theme="game"] .weight-entry {
  align-items: center;
  height: 118px;
  padding: 0 10px;
}
[data-theme="game"] .weight-entry input {
  position: relative;
  top: 3px;
  color: var(--ink);
  font-size: 60px;
  letter-spacing: -2px;
  line-height: 1;
}
[data-theme="game"] .weight-unit { align-self: center; margin-top: 30px; font-size: 16px; }
[data-theme="game"] .meal-field textarea { font-size: 13px; }
[data-theme="game"] .exercise-toggle { font-size: 13px; }
[data-theme="game"] .check {
  width: 40px;
  height: 40px;
  border: 3px solid var(--ink);
  border-radius: 0;
  background: var(--surface);
}
[data-theme="game"] .exercise-toggle input:checked + .check {
  border: 3px solid var(--ink);
  background: #3a53c5 center / 26px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath d='M6 1h1v2H6zM5 2h1v2H5zM4 3h1v2H4zM3 4h1v2H3zM2 3h1v2H2zM1 2h1v2H1z' fill='%23fff'/%3E%3C/svg%3E");
  transform: none;
}
[data-theme="game"] .block { margin: 26px 8px 8px 4px; }
[data-theme="game"] #view-calendar .block { margin-top: 12px; }
[data-theme="game"] .block h2 { font-size: 15px; }
[data-theme="game"] .weekdays,
[data-theme="game"] .legend { font-size: 12px; }
[data-theme="game"] .day-cell { border-radius: 0; font-size: 14px; }
[data-theme="game"] .day-cell[aria-current="date"] {
  background: var(--tile2);
  box-shadow: inset 0 0 0 2px var(--ink);
  color: var(--ink);
}
[data-theme="game"] .day-cell.today { color: var(--accent); }
[data-theme="game"] .day-cell[aria-current="date"].today { color: var(--ink); }
[data-theme="game"] .mark-exercise {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath d='M6 1h1v2H6zM5 2h1v2H5zM4 3h1v2H4zM3 4h1v2H3zM2 3h1v2H2zM1 2h1v2H1z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath d='M6 1h1v2H6zM5 2h1v2H5zM4 3h1v2H4zM3 4h1v2H3zM2 3h1v2H2zM1 2h1v2H1z'/%3E%3C/svg%3E");
}
[data-theme="game"] .day-weight { font-size: 11px; letter-spacing: -0.04em; color: #3a53c5; }
[data-theme="game"] .day-cell[aria-current="date"] .day-weight { color: var(--ink); }
[data-theme="game"] .range { border-radius: 0; }
[data-theme="game"] .range button { border-radius: 0; font-size: 12px; }
[data-theme="game"] .range button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
[data-theme="game"] .chart-tip { border-radius: 0; font-size: 12px; }
[data-theme="game"] .bet-period { font-size: 13px; }
[data-theme="game"] .bet-headline { margin-top: 6px; font-size: 22px; color: var(--ink); }
[data-theme="game"] .score { gap: 20px; margin: 18px 8px 0 4px; }
[data-theme="game"] .side { padding: 0 12px 12px; background: var(--surface); color: var(--ink); }
[data-theme="game"] .who {
  margin: 0 -12px 10px;
  padding: 5px 10px;
  background: #3a53c5;
  color: #fff;
  font-size: 13px;
}
[data-theme="game"] .side.other { background: var(--surface); color: var(--ink); }
[data-theme="game"] .side.other .who { background: var(--accent); }
[data-theme="game"] .amount { font-size: 40px; letter-spacing: -2px; }
[data-theme="game"] .amount small { font-size: 14px; letter-spacing: 0; }
[data-theme="game"] .verb,
[data-theme="game"] .goal-line { font-size: 12px; }
[data-theme="game"] .tug { margin: 26px 8px 0 4px; background: var(--surface); }
[data-theme="game"] .rope {
  top: 30px;
  height: 16px;
  border-radius: 0;
  background: repeating-linear-gradient(90deg, transparent 0 8px, #fff 8px 11px), linear-gradient(90deg, #3a53c5 50%, var(--accent) 50%);
  box-shadow: 0 0 0 3px var(--ink);
}
[data-theme="game"] .tug-line { display: none; }
[data-theme="game"] .knot {
  border: 3px solid var(--ink);
  border-radius: 0;
  background-color: var(--tile2);
  background-image: none;
  box-shadow: none;
  transition-timing-function: steps(8);
}
[data-theme="game"] .bet-note { font-size: 12px; margin-top: 22px; }
[data-theme="game"] dialog h2 { font-size: 16px; color: var(--ink); }
[data-theme="game"] dialog p { font-size: 13px; }
[data-theme="game"] .wide,
[data-theme="game"] .field input,
[data-theme="game"] .theme-choice { border-radius: 0; font-size: 13px; }
[data-theme="game"] .logo { font-size: 42px; color: var(--ink); }

/* 영수증 */
[data-theme="receipt"] {
  --display: "Nanum Gothic Coding", "Pretendard", monospace;
  --body: "Nanum Gothic Coding", "Pretendard", monospace;
  --accent: #2b2b2b;
  --accent-edge: #2b2b2b;
  --accent-text: #2b2b2b;
  --tile1: #ffffff;
  --tile1-edge: transparent;
  --tile1-faint: #c6c6c6;
  --tile2: #ffffff;
  --tile2-edge: transparent;
  --tile2-text: #2b2b2b;
  --tile2-faint: #707070;
  --tile3: #ffffff;
  --tile3-edge: transparent;
  --tile3-text: #2b2b2b;
  --ink: #2b2b2b;
  --ink-soft: #5c5c5c;
  --ink-faint: #8e8e8e;
  --line: #c9c9c9;
  --ground: #dedfe3;
  --day-off: #c6c6c6;
  --save-off: #a9a9a9;
  --sticker: #d32f3f;
  --mark-2: #d32f3f;
  --chart-line: #2b2b2b;
  --chart-goal: #d32f3f;
  --chart-grid: #ececec;
  --chart-cursor: #2b2b2b;
}
[data-theme="receipt"] body { font-weight: 700; }
[data-theme="receipt"] .save,
[data-theme="receipt"] .primary {
  border-radius: 6px;
  box-shadow: none;
  font-weight: 700;
}
[data-theme="receipt"] .day-title h1,
[data-theme="receipt"] .quiet,
[data-theme="receipt"] .tabs button { font-weight: 700; }
[data-theme="receipt"] .tabs { background: #f6f6f4; }
[data-theme="receipt"] .tabs button[aria-current="page"] { color: var(--ink); }
[data-theme="receipt"] #record-form {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-bottom: 26px;
  padding: 20px 20px 16px;
  background: var(--surface);
}
[data-theme="receipt"] #record-form::before {
  content: "오늘의 기록 영수증";
  padding-bottom: 14px;
  border-bottom: 2px dashed var(--ink);
  font-size: 19px;
  text-align: center;
}
[data-theme="receipt"] #record-form::after,
[data-theme="receipt"] .tug::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 10px;
  background:
    linear-gradient(135deg, #fff 50%, transparent 50%) 0 0 / 14px 10px repeat-x,
    linear-gradient(225deg, #fff 50%, transparent 50%) 0 0 / 14px 10px repeat-x;
}
[data-theme="receipt"] .weight-field,
[data-theme="receipt"] .meal-field,
[data-theme="receipt"] .exercise-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding: 8px 0;
  border-radius: 0;
  border-bottom: 1px dashed #9a9a9a;
  background: none;
  box-shadow: none;
  color: var(--ink);
  font-size: 16px;
  text-align: left;
}
[data-theme="receipt"] .weight-field:focus-within,
[data-theme="receipt"] .meal-field:focus-within { box-shadow: none; }
[data-theme="receipt"] .field-label { flex: none; }
[data-theme="receipt"] .weight-entry input { color: var(--ink); font-size: 40px; text-align: right; }
[data-theme="receipt"] .weight-unit { font-size: 17px; }
[data-theme="receipt"] .meal-field textarea {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-weight: 700;
  text-align: right;
}
[data-theme="receipt"] .exercise-toggle { border-bottom: 0; }
[data-theme="receipt"] .exercise-toggle > span:last-child { order: -1; }
[data-theme="receipt"] .check {
  order: 0;
  width: 72px;
  height: 34px;
  border: 2px dashed #b5b5b5;
  border-radius: 4px;
}
[data-theme="receipt"] .exercise-toggle input:checked + .check {
  position: relative;
  border: 2.5px solid var(--sticker);
  background: none;
  transform: rotate(-6deg);
}
[data-theme="receipt"] .exercise-toggle input:checked + .check::after {
  content: "완료";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--sticker);
  font-size: 17px;
}
[data-theme="receipt"] .block { margin-top: 0; border-radius: 0; box-shadow: none; }
[data-theme="receipt"] #view-calendar .block { margin-top: 8px; }
[data-theme="receipt"] .day-cell { border-radius: 4px; font-weight: 700; }
[data-theme="receipt"] .day-cell.today { color: var(--sticker); }
[data-theme="receipt"] .day-cell[aria-current="date"] {
  background: none;
  box-shadow: inset 0 0 0 2px var(--ink);
  color: var(--ink);
}
[data-theme="receipt"] .day-weight { color: var(--ink); }
[data-theme="receipt"] .bet-headline { font-size: 25px; font-weight: 700; color: var(--ink); }
[data-theme="receipt"] .score {
  gap: 0;
  padding: 16px 0 4px;
  background: var(--surface);
}
[data-theme="receipt"] .side {
  padding: 4px 18px 12px;
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
  color: var(--ink);
}
[data-theme="receipt"] .side.me { border-right: 1px dashed #9a9a9a; }
[data-theme="receipt"] .side.other { background: var(--surface); box-shadow: none; color: var(--ink); }
[data-theme="receipt"] .who { font-weight: 700; }
[data-theme="receipt"] .amount { font-size: 42px; }
[data-theme="receipt"] .amount small { font-size: 18px; }
[data-theme="receipt"] .verb,
[data-theme="receipt"] .goal-line { color: var(--ink-soft); }
[data-theme="receipt"] .tug {
  margin-top: 0;
  border-top: 2px dashed var(--ink);
  border-radius: 0;
  box-shadow: none;
}
[data-theme="receipt"] .rope {
  height: 0;
  border-top: 3px dotted var(--ink);
  background: none;
  top: 36px;
}
[data-theme="receipt"] .knot {
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  transform: rotate(-6deg);
}
[data-theme="receipt"] .bet-note { margin-top: 26px; font-size: 14px; font-weight: 700; }
[data-theme="receipt"] dialog { border-radius: 6px; }
[data-theme="receipt"] dialog h2 { font-weight: 700; color: var(--ink); }
[data-theme="receipt"] .field input,
[data-theme="receipt"] .wide,
[data-theme="receipt"] .theme-choice { border-radius: 6px; font-weight: 700; }
[data-theme="receipt"] .logo { font-size: 44px; font-weight: 700; color: var(--ink); }

/* 고양이 */
[data-theme="cat"] {
  --accent: #b0601a;
  --accent-edge: #84450f;
  --accent-text: #8a4c12;
  --tile1: #ffbe73;
  --tile1-edge: #e8982f;
  --tile1-faint: #d99a55;
  --tile2: #ffffff;
  --tile2-edge: #f3dcbf;
  --tile2-text: #7a4310;
  --tile2-faint: #93703f;
  --tile3: #ffe0a8;
  --tile3-edge: #f0c470;
  --tile3-text: #7a4310;
  --ink: #6a3f16;
  --ink-soft: #7f5c38;
  --ink-faint: #cfae8a;
  --line: #f3dcbf;
  --ground: #fff5e8;
  --check-edge: #d9a24f;
  --day-off: #e6d5c0;
  --save-off: #f4cfa4;
  --sticker: #e8892b;
  --mark-2: #7a4310;
  --chart-line: #e8892b;
  --chart-goal: #7a4310;
  --chart-grid: #f8ecdc;
  --chart-cursor: #6a3f16;
}
[data-theme="cat"] #record-form,
[data-theme="cat"] .score { position: relative; z-index: 0; }
[data-theme="cat"] #record-form { padding-top: 26px; }
[data-theme="cat"] .score { margin-top: 34px; }
[data-theme="cat"] .weight-field,
[data-theme="cat"] .side { position: relative; }
[data-theme="cat"] .weight-field { border-radius: 34px; }
[data-theme="cat"] .weight-field::before,
[data-theme="cat"] .weight-field::after,
[data-theme="cat"] .side::before,
[data-theme="cat"] .side::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -20px;
  width: 62px;
  height: 52px;
  background: var(--tile1);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
[data-theme="cat"] .weight-field::before { left: 34px; transform: rotate(-12deg); }
[data-theme="cat"] .weight-field::after { right: 34px; transform: rotate(12deg); }
[data-theme="cat"] .side::before { left: 14px; top: -14px; width: 44px; height: 38px; transform: rotate(-12deg); }
[data-theme="cat"] .side::after { right: 14px; top: -14px; width: 44px; height: 38px; transform: rotate(12deg); }
[data-theme="cat"] .side.other::before,
[data-theme="cat"] .side.other::after { background: var(--tile3); }
[data-theme="cat"] .side.me { color: #7a4310; }
[data-theme="cat"] .weight-entry input { color: #7a4310; }
[data-theme="cat"] .weight-field { color: #7a4310; }
[data-theme="cat"] .exercise-toggle input:checked + .check,
[data-theme="cat"] .knot {
  background: var(--sticker) center / 30px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cellipse cx='12' cy='16' rx='6' ry='5'/%3E%3Ccircle cx='5.5' cy='10.5' r='2.3'/%3E%3Ccircle cx='10' cy='6.5' r='2.3'/%3E%3Ccircle cx='14.5' cy='6.5' r='2.3'/%3E%3Ccircle cx='18.5' cy='10.5' r='2.3'/%3E%3C/svg%3E");
}
[data-theme="cat"] .knot { background-size: 22px; box-shadow: 0 3px 0 var(--accent-edge); }
[data-theme="cat"] .day-cell[aria-current="date"] { color: #7a4310; }
