:root {
  color-scheme: light;
  --ink: #24364a;
  --muted: #75869a;
  --blue: #2586d5;
  --blue-dark: #196cac;
  --blue-pale: #eaf5ff;
  --orange: #fa9c4d;
  --cream: #fff8ec;
  --mint: #6bc8a4;
  --line: #e2edf4;
  --shadow: 0 9px 32px #31628e0a, 0 2px 5px #31628e04;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 300px;
  color: var(--ink);
  background: radial-gradient(ellipse at 12% 0%, #fffaf0 0, transparent 40%), radial-gradient(ellipse at 98% 12%, #dcf2ff 0, transparent 40%), #f0f8fd;
  font-size: 15px;
  line-height: 1.55;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button, input { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid #146fc8; outline-offset: 4px; }
button:disabled { opacity: .48; cursor: not-allowed; filter: saturate(.6); }
button[hidden], [hidden] { display: none !important; }
button { -webkit-user-select: none; user-select: none; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }
button, a, .date-target { transition: background-color .16s, border-color .16s, box-shadow .16s, color .16s; }
.app-shell { width: min(1360px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 max(22px, env(safe-area-inset-bottom)); }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding: 0 4px; }
.brand-lockup { display: flex; align-items: center; gap: 15px; }
.brand-mascot { width: 88px; height: 88px; display: grid; place-items: center; flex: 0 0 auto; position: relative; }
.brand-mascot::before { content: ""; position: absolute; inset: 12px 1px 1px; border-radius: 29px; transform: rotate(-8deg); background: #ffebce; box-shadow: inset 0 0 0 3px #ffffffa6; }
.brand-mascot img { position: relative; display: block; width: 82px; height: 82px; object-fit: contain; transform: rotate(-5deg); }
.eyebrow { font-size: 11px; letter-spacing: .075em; font-weight: 750; color: #939081; margin-bottom: 3px; }
h1 { font-size: clamp(25px, 2.7vw, 37px); letter-spacing: -.065em; line-height: 1.3; font-weight: 850; }
h1 span { color: var(--blue); }
.page-subtitle { color: #7b8b9c; font-weight: 600; font-size: 13px; margin-top: 4px; letter-spacing: -.03em; }
.sibling-link { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 0 17px; border: 1px solid #dceaf2; border-radius: 14px; background: #ffffffb8; font-size: 13px; color: #526c83; font-weight: 750; white-space: nowrap; }
.sibling-link:hover { background: white; border-color: #91bfde; }
.sibling-link span { color: var(--blue); font-size: 19px; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 352px; grid-template-rows: auto 1fr; gap: 20px; grid-template-areas: "play mission" "play calendar"; align-items: start; }
.paper-card { background: #fff; border: 1px solid #e2edf4; border-radius: 25px; box-shadow: var(--shadow); overflow: hidden; }
.mission-card { grid-area: mission; padding: 22px 21px 19px; background: linear-gradient(160deg, #fffcf6, #fff 82%); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 11px; }
.section-kicker { display: flex; align-items: center; gap: 8px; color: #8794a4; font-size: 11px; letter-spacing: .025em; font-weight: 800; }
.little-sun { width: 9px; height: 9px; border-radius: 50%; background: #ffb55f; box-shadow: 0 0 0 4px #fff0d9; margin: 0 3px; }
.small-button { padding: 0 12px; min-height: 44px; border: 1px solid #e6ecf0; border-radius: 11px; background: #fff; color: #637b90; font-weight: 750; font-size: 11px; white-space: nowrap; }
.small-button:hover { background: #f3f9ff; }
.mission-card h2 { font-size: 21px; line-height: 1.4; letter-spacing: -.05em; font-weight: 850; word-break: keep-all; }
.mission-text { margin-top: 12px; color: #697c8d; font-size: 14px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
.rule-summary { display: flex; align-items: center; gap: 9px; text-align: left; width: 100%; min-height: 48px; margin-top: 17px; padding: 11px 12px; border: 1px solid #ddebf6; border-radius: 13px; background: #f0f7ff; color: #4782b1; font-size: 12px; font-weight: 750; line-height: 1.5; }
.rule-summary:hover { background: #e7f2ff; }
.rule-icon { flex: 0 0 17px; display: grid; place-items: center; width: 17px; height: 17px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 11px; font-weight: 800; }
.rule-arrow { font-size: 23px; line-height: 1; margin-left: auto; }
.play-card { grid-area: play; padding: 15px 18px 0; }
.play-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 2px 11px 5px; }
.play-label { display: flex; align-items: center; gap: 8px; color: #8794a0; font-size: 11px; font-weight: 750; }
.live-dot { width: 6px; height: 6px; border-radius: 100%; background: #76cba9; box-shadow: 0 0 0 4px #effaf4; }
.game-tools { display: flex; align-items: center; gap: 5px; }
.tool-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: #f6f9fc; border: 1px solid #eaf0f5; border-radius: 12px; color: #7b91a4; font-size: 17px; font-weight: 800; line-height: 1; }
.tool-button:hover, .tool-button[aria-pressed="true"] { color: var(--blue); background: #eaf5ff; border-color: #c8e4f9; }
.sound-button { font-size: 21px; }
.hud { display: grid; grid-template-columns: 1.25fr 1.15fr 1fr 1fr .85fr; align-items: center; gap: 2px; padding: 12px 5px; border: 1px solid #eaf0f5; border-radius: 17px; background: #f9fbfd; margin-bottom: 14px; }
.hud-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; padding: 1px 5px; border-right: 1px solid #e8eef4; }
.hud-item:last-child { border-right: 0; }
.hud-caption { color: #8997a7; font-size: 10px; font-weight: 750; white-space: nowrap; }
.hud-value { font-size: 20px; line-height: 1.25; font-weight: 850; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.count-pair { display: flex; align-items: baseline; gap: 5px; }
.count-pair strong { color: var(--blue); font-size: 24px; }
.count-divider, #hud-goal { color: #9caebb; font-size: 16px; }
.unit { font-size: 10px; color: #9caabb; font-weight: 650; }
.hearts { color: #f37e83; font-size: 17px; letter-spacing: .05em; white-space: nowrap; }
.hud-combo .hud-value { color: #eea04b; }
.hud-shield .hud-value { color: #73b89e; }
.arena { position: relative; width: 100%; aspect-ratio: 900 / 650; min-height: 260px; overflow: hidden; isolation: isolate; container-type: inline-size; border: 1px solid #d7eaf8; border-radius: 19px; background: linear-gradient(#c7e9ff 0%, #e4f5ff 68%, #fff9ec 100%); }
#game-canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; }
.date-targets { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.date-target { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-width: 44px; min-height: 44px; padding: 3px; border: 3px solid #fff; border-radius: 17px; background: #fffcf3; color: #6d7585; box-shadow: 0 4px 0 #b7d6e8, 0 6px 14px #518ba31a; pointer-events: auto; touch-action: manipulation; font-size: clamp(17px, 2.7vw, 31px); font-weight: 850; line-height: 1.05; text-align: center; font-variant-numeric: tabular-nums; }
.date-target:hover { background: #fff4d5; border-color: #fff; box-shadow: 0 4px 0 #edc274, 0 6px 16px #518ba31a; }
.date-target .month, .date-target .target-month, .date-target small { display: block; font-size: .34em; font-weight: 750; color: #8b99a4; line-height: 1.6; }
.date-target .day, .date-target .target-day { display: block; font-size: clamp(15px, 3.3cqw, 29px); line-height: 1.05; }
.date-target .weekday, .date-target .target-weekday { font-size: .33em; margin-top: 3px; font-weight: 650; }
.date-target .target-tag { display: block; font-size: clamp(6px, 1cqw, 9px); font-weight: 750; line-height: 1.3; color: #b2a27c; }
.date-target.current { color: #3b8ac3; background: #eaf7ff; border-color: #fff; box-shadow: 0 4px 0 #93caec, 0 0 0 2px #96ceed; }
.date-target.counted { color: #458c74; background: #e9f8ee; border-color: #fff; box-shadow: 0 4px 0 #abd6bf; }
.date-target.selected { color: #a97328; background: #fff0c6; border-color: #fff; box-shadow: 0 4px 0 #edb85d, 0 0 0 3px #ffc961, 0 8px 20px #edb85d29; }
.date-target.is-weekend, .date-target.weekend, .date-target.holiday { color: #dc7e7d; }
.date-target:disabled { opacity: .65; }
.feedback { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 46px; padding: 10px 9px; margin-top: 6px; text-align: center; color: #788d9f; font-size: 12px; font-weight: 650; line-height: 1.6; word-break: keep-all; }
.feedback h3, .feedback strong { margin: 0; font-size: 13px; line-height: 1.45; font-weight: 800; }
.feedback span { font-size: 11px; font-weight: 600; }
.feedback.success, .feedback[data-tone="success"] { color: #439674; }
.feedback.error, .feedback[data-tone="error"] { color: #d97665; }
.jump-controls { margin: 0 -18px; padding: 14px 23px 13px; background: linear-gradient(#fffcf6, #fffaf0); border-top: 1px solid #f1ecdf; }
.power-heading, .power-labels { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.power-heading { padding-bottom: 12px; margin-bottom: 9px; border-bottom: 1px dashed #e8e3d8; }
.control-step { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: #8c8e88; white-space: nowrap; }
.control-step > span { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 6px; background: #ece9df; color: #9e9b8e; font-size: 10px; }
#selected-label { font-size: 13px; color: #a98145; font-weight: 750; letter-spacing: -.025em; text-align: right; }
.power-labels { margin-bottom: 9px; }
.power-tip { font-size: 10px; color: #89a292; font-weight: 700; }
.power-track { position: relative; height: 24px; border: 3px solid white; border-radius: 99px; background: #e6edf0; box-shadow: 0 0 0 1px #e6e9df; isolation: isolate; }
.power-safe, .power-perfect { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.power-safe { left: 33%; width: 42%; background: #a9dfbb; }
.power-perfect { left: 47%; width: 14%; background: #edc564; }
.power-perfect::after { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; line-height: 1; color: #fff9db; }
.power-cursor { position: absolute; z-index: 2; left: 0; top: -6px; bottom: -6px; width: 5px; border: 1px solid white; border-radius: 5px; background: #506b7b; box-shadow: 0 2px 4px #3a535535; transform: translateX(-50%); pointer-events: none; }
.power-cursor::before { content: ""; position: absolute; top: -5px; left: -3px; width: 9px; height: 9px; background: #506b7b; border-radius: 3px; transform: rotate(45deg); }
.power-scale { display: flex; justify-content: space-between; padding: 6px 2px 0; color: #b1ada1; font-size: 9px; font-weight: 700; }
.power-scale span:nth-child(2) { color: #74a78a; margin-left: 9%; }
.jump-action-row { display: grid; grid-template-columns: 1fr 106px; gap: 11px; margin-top: 13px; }
.jump-button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 12px; border: 1px solid #f2a052; border-bottom: 4px solid #db8035; border-radius: 17px; background: linear-gradient(#ffb35e, #ffa150); color: #fff; text-shadow: 0 1px 1px #c2783340; font-size: 18px; font-weight: 850; letter-spacing: -.04em; box-shadow: 0 4px 12px #f2a25129; touch-action: none; }
.jump-button:hover { background: #ffad55; }
.jump-button:active, .jump-button.is-charging { border-bottom-width: 2px; padding-top: 14px; background: #fa9b43; box-shadow: inset 0 2px 5px #d5852730; }
.jump-glyph { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; background: #ffffff30; font-size: 23px; font-weight: 750; line-height: 1; }
.stamp-button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 60px; padding: 10px 8px; border: 1px solid #a6cddf; border-bottom: 4px solid #8eb8ce; border-radius: 17px; background: #e9f5fc; color: #5790b0; font-size: 16px; font-weight: 850; }
.stamp-button:hover { background: #ddf0fc; }
.stamp-button:active { border-bottom-width: 2px; padding-top: 12px; }
.stamp-glyph { width: 22px; height: 22px; display: grid; place-items: center; border: 1.5px dashed currentColor; border-radius: 50%; font-size: 13px; }
.controls-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 3px; color: #a5a092; font-size: 10px; font-weight: 650; }
.text-button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 0 0 8px; background: none; border: 0; font-size: 11px; color: #a29a8a; font-weight: 700; white-space: nowrap; }
.text-button:hover { color: #796d59; }
.text-button span { font-size: 17px; }
.calendar-card { grid-area: calendar; padding: 21px 14px 16px; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 5px 16px; }
.calendar-heading h2 { margin-top: 4px; font-size: 23px; letter-spacing: -.055em; font-weight: 850; }
.calendar-icon { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 41px; height: 45px; border: 1px solid #d6e9f6; border-radius: 10px; color: #6dadd3; background: #f0f8ff; overflow: hidden; }
.calendar-icon span { width: 100%; padding: 2px 0; color: #fff; background: #a6cfe8; text-align: center; font-size: 7px; font-weight: 850; letter-spacing: .07em; }
.calendar-icon strong { flex: 1; font-size: 19px; line-height: 1.65; }
.calendar-scroll { overflow-x: auto; overscroll-behavior-inline: contain; padding-bottom: 4px; scrollbar-width: thin; scrollbar-color: #d9e6ee transparent; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(44px, 1fr)); gap: 2px; min-width: 320px; align-items: center; }
.calendar-weekday, .weekday-label, .calendar-grid > .weekday, .calendar-grid > .dow { min-height: 28px; display: grid; place-items: center; font-size: 10px; font-weight: 750; color: #9ba8b3; }
.calendar-empty, .calendar-spacer, .calendar-gap { min-height: 44px; }
.calendar-day { display: grid; place-items: center; position: relative; width: 100%; min-width: 44px; min-height: 44px; padding: 4px 1px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: #708297; font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.1; }
.calendar-day:hover { background: #f0f7fc; }
.calendar-day.is-weekend, .calendar-weekday.is-weekend { color: #d9a09b; }
.calendar-day.is-marked { background: #fff0ea; color: #ce887e; }
.calendar-day.is-marked::after { content: ""; position: absolute; bottom: 4px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.calendar-day.is-counted { background: #e8f7ee; color: #70ab8d; }
.calendar-day.is-current { background: #e5f3ff; color: #3b94d2; border-color: #aad5f3; box-shadow: inset 0 0 0 1px #aad5f3; }
.calendar-day.is-selected { background: #fff0cf; color: #b4873c; border-color: #f0c978; box-shadow: inset 0 0 0 1px #f0c978; }
.calendar-day.is-outside, .calendar-day.is-muted { opacity: .32; }
.calendar-day small { font-size: 8px; font-weight: 650; }
.calendar-legend { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 14px 3px 0; border-top: 1px solid #f0f4f7; margin-top: 9px; font-size: 9px; color: #94a2b0; font-weight: 700; }
.calendar-legend > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.legend-dot { display: block; width: 8px; height: 8px; border-radius: 3px; }
.dot-current { background: #a7d6f4; }
.dot-counted { background: #a5dabb; }
.dot-selected { background: #f6d58e; }
.calendar-note { display: flex; align-items: flex-start; gap: 8px; padding: 12px 13px; margin-top: 17px; border-radius: 13px; background: #f7fafc; color: #9aa7b4; font-size: 11px; font-weight: 550; line-height: 1.8; }
.note-star { color: #e6bb75; font-size: 17px; line-height: 1.3; }
.page-footer { display: flex; align-items: center; justify-content: center; gap: 8px; color: #a1b3c1; font-size: 10px; font-weight: 650; text-align: center; padding: 22px 8px 0; }
.footer-spark { font-size: 15px; color: #e6bd84; }
.loading { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 9px; background: #e7f5fff5; color: #6295b7; text-align: center; padding: 22px; }
.loading strong { font-size: 16px; font-weight: 800; }
.loading > span { font-size: 12px; color: #93b2c8; }
.loading-cloud { display: flex; align-items: center; justify-content: center; gap: 9px; height: 46px; margin-bottom: 8px; }
.loading-cloud span { width: 14px; height: 14px; border-radius: 50%; background: #9bcbea; animation: loading-hop 1.15s ease-in-out infinite; }
.loading-cloud span:nth-child(2) { background: #f4c98c; animation-delay: .13s; }
.loading-cloud span:nth-child(3) { background: #a8d5c2; animation-delay: .26s; }
@keyframes loading-hop { 0%, 70%, 100% { transform: translateY(0); } 35% { transform: translateY(-9px); } }
.game-dialog { width: min(560px, calc(100vw - 30px)); max-height: min(86dvh, 850px); padding: 29px; border: 1px solid #e7edf0; border-radius: 27px; background: #fffdf8; color: var(--ink); box-shadow: 0 25px 100px #193e6638; overflow: auto; }
.game-dialog::backdrop { background: #25456164; backdrop-filter: blur(6px); }
.modal-eyebrow { margin: 0 0 8px; color: #8fb2cc; font-size: 11px; font-weight: 850; letter-spacing: .04em; }
.modal-title { margin: 0 0 13px; font-size: 28px; font-weight: 850; line-height: 1.4; letter-spacing: -.05em; word-break: keep-all; }
.modal-copy { color: #81919e; font-size: 14px; line-height: 1.8; word-break: keep-all; margin: 10px 0; }
.rules-list { display: grid; gap: 10px; margin: 20px 0; padding: 17px 17px 17px 34px; border-radius: 15px; background: #f0f7fc; color: #637f95; font-size: 13px; line-height: 1.7; }
.rules-list strong { color: #347eac; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.primary, .secondary { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; flex: 1 1 120px; padding: 12px 17px; border-radius: 13px; font-size: 14px; font-weight: 800; text-align: center; }
.primary { background: #f9a44e; border: 1px solid #f09e4a; border-bottom: 3px solid #dc893f; color: #fff; }
.primary:hover { background: #f69b3b; }
.secondary { background: #f1f7fa; border: 1px solid #d9e6ef; color: #7093ac; }
.secondary:hover { background: #e8f2f8; }
.stage-option { display: block; width: 100%; min-height: 62px; padding: 15px 16px; margin: 10px 0; text-align: left; border: 1px solid #e0eaf1; border-radius: 15px; background: white; color: #57758a; font-size: 14px; line-height: 1.6; }
.stage-option:hover, .stage-option.selected, .stage-option[aria-pressed="true"] { background: #eff8ff; border-color: #a7d3ef; }
.stage-option strong { display: block; color: #345e7d; font-weight: 850; font-size: 15px; }
.stage-option small { display: block; color: #8ca1b2; font-size: 11px; margin-top: 4px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
.stats-grid > * { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px 7px; border: 1px solid #e4edf2; border-radius: 14px; background: #f6fafc; color: #8a9aa8; font-size: 11px; text-align: center; }
.stats-grid strong { color: #458bb8; font-size: 25px; line-height: 1.25; font-weight: 850; }
.result-stamp { display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 22px; border: 3px solid #a9d7bc; outline: 1px dashed #a9d7bc; outline-offset: 5px; border-radius: 50%; background: #edf8f0; color: #6cab86; font-size: 24px; font-weight: 850; transform: rotate(-9deg); text-align: center; line-height: 1.25; }
@media (max-width: 1100px) {
  .app-shell { width: min(920px, calc(100% - 36px)); padding-top: 20px; }
  .game-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "mission" "play" "calendar"; gap: 16px; }
  .mission-card { padding: 16px 21px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, .7fr); column-gap: 24px; }
  .section-heading { grid-column: 1 / -1; margin-bottom: 2px; }
  .mission-card h2 { grid-column: 1; }
  .mission-text { grid-column: 1; margin-top: 8px; }
  .rule-summary { grid-column: 2; grid-row: 2 / 4; align-self: center; margin-top: 0; }
  .play-card { padding: 12px 18px 0; }
  .calendar-card { max-width: 560px; width: 100%; justify-self: center; padding: 20px; }
  .calendar-day { min-height: 49px; }
  .calendar-grid { gap: 5px; }
  .calendar-note { margin-top: 16px; }
}
@media (max-width: 600px) {
  .app-shell { width: calc(100% - 24px); padding-top: max(15px, env(safe-area-inset-top)); }
  .page-header { gap: 8px; margin-bottom: 16px; padding: 0 2px; }
  .brand-lockup { gap: 7px; }
  .brand-mascot { width: 59px; height: 68px; }
  .brand-mascot img { width: 61px; height: 65px; }
  .brand-mascot::before { inset: 13px 0 4px; border-radius: 20px; }
  .eyebrow { font-size: 8px; letter-spacing: 0; margin-bottom: 3px; }
  h1 { font-size: clamp(21px, 5.9vw, 28px); }
  .page-subtitle { font-size: 10px; margin-top: 3px; }
  .sibling-link { padding: 0 9px; gap: 5px; font-size: 10px; border-radius: 12px; min-height: 44px; }
  .sibling-link span { font-size: 15px; }
  .game-layout { gap: 13px; }
  .paper-card { border-radius: 20px; }
  .mission-card { display: block; padding: 12px 16px 14px; }
  .section-heading { margin-bottom: 4px; }
  .section-kicker { font-size: 10px; }
  .mission-card h2 { font-size: 19px; }
  .mission-text { font-size: 12px; line-height: 1.7; margin-top: 7px; }
  .rule-summary { margin-top: 11px; min-height: 44px; padding: 9px 11px; font-size: 11px; }
  .play-card { padding: 9px 9px 0; }
  .play-topline { padding: 0 1px 8px 4px; }
  .play-label { font-size: 10px; }
  .game-tools { gap: 4px; }
  .tool-button { width: 44px; height: 44px; border-radius: 11px; font-size: 15px; }
  .sound-button { font-size: 18px; }
  .hud { padding: 10px 1px; border-radius: 14px; margin-bottom: 10px; grid-template-columns: 1.25fr 1.15fr .8fr .9fr .75fr; }
  .hud-item { padding: 0 2px; gap: 4px; }
  .hud-caption { font-size: 8px; }
  .hud-value { font-size: 17px; }
  .count-pair { gap: 3px; }
  .count-pair strong { font-size: 20px; }
  .count-divider, #hud-goal { font-size: 13px; }
  .unit { font-size: 8px; }
  .hearts { font-size: 12px; letter-spacing: 0; }
  .arena { border-radius: 14px; min-height: 260px; }
  .date-target { border-width: 2px; border-radius: 12px; font-size: 22px; }
  .date-target .month, .date-target .target-month, .date-target small { font-size: 8px; }
  .date-target .weekday, .date-target .target-weekday { font-size: 8px; margin-top: 2px; }
  .feedback { min-height: 45px; font-size: 10px; padding: 8px 4px; margin-top: 2px; }
  .jump-controls { margin: 0 -9px; padding: 13px 14px 8px; }
  .power-heading { gap: 8px; margin-bottom: 9px; padding-bottom: 10px; }
  .control-step { font-size: 10px; }
  #selected-label { font-size: 11px; }
  .power-tip { font-size: 9px; }
  .power-track { height: 23px; }
  .jump-action-row { grid-template-columns: minmax(0, 1fr) 88px; gap: 9px; margin-top: 11px; }
  .jump-button, .stamp-button { min-height: 59px; border-radius: 14px; }
  .jump-button { gap: 9px; font-size: 15px; }
  .jump-glyph { width: 23px; height: 23px; border-radius: 8px; font-size: 21px; }
  .stamp-button { gap: 5px; font-size: 14px; }
  .stamp-glyph { width: 18px; height: 18px; font-size: 11px; }
  .controls-foot { font-size: 8px; gap: 4px; }
  .text-button { font-size: 10px; gap: 5px; }
  .calendar-card { padding: 18px 14px 15px; }
  .calendar-grid { gap: 2px; }
  .calendar-day { min-height: 44px; }
  .calendar-heading { padding-bottom: 13px; }
  .calendar-heading h2 { font-size: 22px; }
  .calendar-note { font-size: 10px; }
  .page-footer { font-size: 9px; padding-top: 18px; }
  .game-dialog { padding: 23px 21px; border-radius: 22px; }
  .modal-title { font-size: 24px; }
  .modal-copy { font-size: 13px; }
  .rules-list { font-size: 12px; padding-left: 29px; }
}
@media (max-width: 350px) {
  .brand-mascot { display: none; }
  .sibling-link { padding: 0 7px; }
  .app-shell { width: calc(100% - 20px); }
  .jump-action-row { grid-template-columns: minmax(0, 1fr) 76px; }
  .jump-button { font-size: 13px; gap: 6px; }
  .stamp-button { font-size: 13px; }
  .controls-foot > span { max-width: 160px; }
}
.intro-characters { display: flex; align-items: flex-end; justify-content: center; gap: 12px; height: 112px; margin: 5px 0 18px; position: relative; }
.intro-characters::before { content: ""; position: absolute; width: 184px; height: 57px; bottom: 1px; border-radius: 50%; background: #eef7fc; }
.intro-characters img { position: relative; display: block; width: 100px; height: 106px; object-fit: contain; }
.intro-characters img + img { width: 78px; height: 86px; transform: rotate(6deg); }
.control-note { margin-top: 17px; padding: 12px 13px; border: 1px dashed #efdab3; border-radius: 12px; background: #fff7e8; color: #b59154; font-size: 12px; line-height: 1.7; font-weight: 750; text-align: center; }
.rules-list { list-style: none; padding: 15px 17px; }
.rules-list li { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 10px; }
.rules-list li + li { padding-top: 9px; border-top: 1px solid #dcebf4; }
.rules-list li strong { font-size: 11px; font-weight: 850; white-space: nowrap; }
.rules-list li span { font-size: 12px; word-break: keep-all; overflow-wrap: anywhere; }
.stage-options { display: grid; gap: 9px; margin-top: 19px; }
.stage-options .stage-option { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 11px; align-items: center; margin: 0; padding: 14px 13px; }
.stage-option.is-current { background: #eff8ff; border-color: #a7d3ef; }
.stage-number { display: grid; place-items: center; width: 32px; height: 36px; border-radius: 10px; background: #ecf5fb; color: #86b8d7; font-size: 13px; font-weight: 850; font-variant-numeric: tabular-nums; }
.stage-option.is-current .stage-number { background: #d7edfc; color: #5199c8; }
.stage-record { color: #b69b72; font-size: 10px; font-weight: 750; white-space: nowrap; }
.modal-footnote { margin-top: 17px; color: #a2adb6; font-size: 10px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
.help-steps { display: grid; gap: 12px; margin: 21px 0; padding: 0; list-style: none; counter-reset: help; }
.help-steps li { position: relative; padding: 15px 15px 15px 48px; border: 1px solid #e7edf0; border-radius: 14px; background: #fff; counter-increment: help; }
.help-steps li::before { content: counter(help); position: absolute; left: 13px; top: 14px; display: grid; place-items: center; width: 24px; height: 26px; border-radius: 8px; background: #fff0d9; color: #ce9c56; font-size: 11px; font-weight: 850; }
.help-steps strong { color: #597a92; font-size: 13px; font-weight: 850; }
.help-steps p { margin-top: 6px; color: #8b9ba8; font-size: 12px; line-height: 1.8; word-break: keep-all; }
.help-rewards { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.help-rewards span { padding: 7px 9px; border-radius: 8px; background: #edf7ef; color: #7aa28a; font-size: 10px; font-weight: 750; }
.help-rewards span:nth-child(2) { background: #fff4dd; color: #b6a063; }
.help-rewards span:nth-child(3) { background: #eef5ff; color: #859fc0; }
.route-review { margin: 19px 0; padding: 16px; border: 1px solid #dceee0; border-radius: 15px; background: #f1f9f3; color: #81a18b; font-size: 12px; line-height: 1.85; }
.route-review > strong { display: block; color: #639270; font-size: 11px; margin-bottom: 7px; }
.route-review p + p { margin-top: 8px; }
.route-review p { overflow-wrap: anywhere; }
.solution-details { margin-top: 19px; padding: 0 15px; border: 1px solid #e2eaf0; border-radius: 14px; background: #f8fbfd; }
.solution-details summary { display: list-item; min-height: 48px; padding: 14px 0; color: #8096a8; font-size: 11px; font-weight: 750; cursor: pointer; }
.solution-details summary:focus-visible { outline: 3px solid #146fc8; outline-offset: 3px; border-radius: 4px; }
.source-explanation { padding-top: 12px; border-top: 1px solid #e4edf3; color: #8293a2; font-size: 12px; line-height: 1.85; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; }
.solution-details > a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; color: #6c9bbb; font-size: 11px; font-weight: 750; }
.result-stamp.try { background: #fff4e4; color: #c89958; border-color: #e6c99e; outline-color: #e6c99e; }
.stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#hud-combo, #hud-shield { display: flex; align-items: center; justify-content: center; min-height: 27px; font-size: 12px; white-space: nowrap; letter-spacing: -.035em; }
#hud-shield.has-shield { color: #478f72; text-shadow: 0 0 12px #7bcba72e; }
.stamp-button.is-ready { background: #dcf1e1; color: #58986b; border-color: #aed6ba; border-bottom-color: #8ab49a; box-shadow: 0 3px 13px #93c7a324; }
.date-target .target-weekday { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.modal-open { overflow: hidden; }
@container (max-width: 420px) {
  .date-target { min-width: 0; min-height: 0; padding: 1px; border-width: 2px; border-radius: 9px; }
  .date-target::before { content: ""; position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; min-width: 44px; min-height: 44px; transform: translate(-50%, -50%); }
  .date-target .target-month { font-size: 6px; line-height: 1.1; }
  .date-target .target-day { font-size: 15px; line-height: 1; }
  .date-target .target-weekday { font-size: 6px; line-height: 1.1; margin-top: 1px; }
}
@media (max-width: 600px) {
  #hud-combo, #hud-shield { min-height: 25px; font-size: 10px; }
  .stage-options .stage-option { grid-template-columns: 29px minmax(0, 1fr); gap: 10px; }
  .stage-record { grid-column: 2; margin-top: -5px; }
  .stage-number { width: 28px; height: 32px; }
  .stage-option strong { font-size: 13px; }
  .stage-option small { font-size: 10px; }
  .rules-list li { grid-template-columns: 59px minmax(0, 1fr); gap: 7px; }
  .rules-list li strong { font-size: 10px; }
  .rules-list li span { font-size: 11px; }
  .control-note { font-size: 10px; }
  .intro-characters { height: 100px; margin-bottom: 14px; }
  .intro-characters img { width: 91px; height: 98px; }
  .intro-characters img + img { width: 70px; height: 79px; }
  .feedback h3, .feedback strong { font-size: 11px; }
  .feedback span { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.jump-action-row.jump-only { grid-template-columns: minmax(0, 1fr); }
.hud { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#hud-start { color: var(--blue); }

.source-evidence{padding:13px 15px;margin:16px 0;background:#f4f5ea;border:1px solid #e5e4d3;border-radius:12px}
.source-evidence p{font-size:12px;line-height:1.8;color:#6a735f;margin:7px 0;overflow-wrap:anywhere}
.source-evidence strong{color:#425d48;font-size:12px}
