* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
.toon-a {
  --ink: #232936; --line: #272a32; --lw: 3px; --r: 3px;
  --paper: #f3f2ee; --surface: #fff; --pri: #ffdf6b; --muted: #535c69;
  --font-d: "Black Han Sans", "Gothic A1", "Malgun Gothic", sans-serif;
  --font-b: "Gothic A1", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  background: radial-gradient(circle, #dedcd2 1.1px, transparent 1.6px) 0 0 / 11px 11px, var(--paper);
  font-family: var(--font-b); color: var(--ink); line-height: 1.45;
  word-break: keep-all; overflow-wrap: anywhere;
}
h1, p, ul { margin: 0; }
button, textarea, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, textarea:focus-visible, input:focus-visible, [role="spinbutton"]:focus-visible { outline: 3px solid #245893; outline-offset: 3px; }
.sg { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; font-size: 16px; }
.ph-top { height: 44px; flex: none; display: flex; align-items: center; justify-content: flex-end; padding: 0 24px; font-size: 13px; font-weight: 900; background: var(--pri); border-bottom: var(--lw) solid var(--line); }
.sg-main { flex: 1; padding: 10px 18px 6px; display: flex; flex-direction: column; gap: 14px; }
.say { position: relative; align-self: flex-start; background: #fff; border: var(--lw) solid var(--line); border-radius: 22px; padding: 12px 18px 14px; box-shadow: 4px 4px 0 #dcdbd3; margin-bottom: 10px; max-width: 100%; }
.say::before, .say::after { content: ""; position: absolute; width: 0; height: 0; border-style: solid; }
.say::before { bottom: -18px; border-width: 18px 4px 0 16px; left: 30px; border-color: var(--line) transparent transparent transparent; }
.say::after { bottom: -12px; border-width: 13px 3px 0 11px; left: 33px; border-color: #fff transparent transparent transparent; }
.say h1 { font-size: 25px; font-weight: 900; letter-spacing: -.03em; }
.say p { font-size: 14px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 58px; padding: 0 1.4em; font-size: 18px; font-weight: 800; background: #fff; border: var(--lw) solid var(--line); border-radius: var(--r); box-shadow: 4px 4px 0 var(--line); }
.btn-pri { background: var(--pri); }
.btn:disabled { background: #ecebe5; color: #6b7280; border-style: dashed; box-shadow: none; }
.btn:not(:disabled):active { transform: translate(4px, 4px); box-shadow: none; }
.sg-foot { margin-top: auto; padding: 14px 18px 26px; padding-bottom: max(26px, env(safe-area-inset-bottom)); background: #fff; border-top: var(--lw) solid var(--line); }
.sg-foot .btn { width: 100%; }
.sc-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 20px 22px; text-align: center; background: repeating-conic-gradient(from 0deg at 50% 38%, rgba(255,223,107,.55) 0 4deg, transparent 4deg 9deg); }
.sc-brand { display: flex; align-items: baseline; gap: 10px; }
.brand-mark { font-family: var(--font-d); font-size: 40px; font-weight: 400; letter-spacing: .02em; background: var(--line); color: var(--pri); padding: 0 12px 2px; box-shadow: 4px 4px 0 #fff; transform: rotate(-2deg); }
.brand-sub { font-weight: 900; background: #fff; border: 2px solid var(--line); padding: 1px 10px; font-size: 15px; }
.sc-title { font-family: var(--font-d); font-size: 58px; line-height: 1; background: #fff; border: var(--lw) solid var(--line); box-shadow: 6px 6px 0 var(--line); padding: 14px 22px 16px; transform: rotate(-1.5deg); }
.sc-main .say { align-self: center; }
.sc-main .say::before { left: calc(50% - 10px); }
.sc-main .say::after { left: calc(50% - 7px); }
.sp-flag { align-self: flex-start; border: 2px dashed var(--line); border-radius: 999px; font-size: 12px; font-weight: 800; padding: 3px 10px; background: #fff4cf; }
.sg-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.sg-field legend { font-weight: 800; padding: 0; margin-bottom: 8px; }
.sp-type { display: flex; flex-direction: column; gap: 6px; }
.sp-type input { width: 100%; height: 52px; padding: 0 14px; font-size: 20px; font-weight: 800; letter-spacing: .06em; font-variant-numeric: tabular-nums; background: #fff; border: var(--lw) solid var(--line); border-radius: var(--r); box-shadow: 4px 4px 0 #d1d0c8; }
.sp-type input::placeholder { font-weight: 600; letter-spacing: 0; color: #8a909a; }
.sp-hint { font-size: 13px; color: var(--muted); margin: 6px 0 10px; }
.sp-hint.bad { color: #b3261e; font-weight: 800; }
.sp-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sg-cat { background: #fff; border: var(--lw) solid var(--line); border-radius: var(--r); box-shadow: 4px 4px 0 #d1d0c8; display: flex; flex-direction: column; align-items: flex-start; padding: 12px 14px; gap: 2px; text-align: left; }
.sg-cat[aria-pressed="true"] { background: var(--pri); box-shadow: 4px 4px 0 var(--line); }
.sg-cat[aria-pressed="true"] b::before { content: "✓ "; }
.sp-chips .sg-cat { align-items: center; padding: 12px 6px; }
.sp-chips b { font-size: 18px; }
.sg-field legend small { font-weight: 600; color: var(--muted); margin-left: 4px; }
.sg-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sg-cats b { font-size: 20px; }
.sg-cats span { font-size: 13px; color: var(--muted); }
.sg-text { display: flex; flex-direction: column; gap: 6px; }
.field-l { font-weight: 700; font-size: .92em; }
.sg-text textarea { width: 100%; border: var(--lw) solid var(--line); border-radius: var(--r); background: #fff; resize: none; height: 112px; padding: 10px 14px; font-size: 16px; line-height: 1.5; }
.sg-count { align-self: flex-end; font-size: 13px; color: var(--muted); margin-top: -2px; }
.sg-count i { font-style: normal; font-weight: 800; color: var(--ink); }
.banner { padding: 10px 14px; font-size: 14px; font-weight: 700; background: #fff4cf; border: 2px solid var(--line); }
.alert { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; background: #fff; border: 2px solid #e8473b; font-size: 14px; }
.alert-ico { flex: none; color: #e8473b; font-weight: 900; }
.sg-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; }
.sg-center .say { align-self: center; }
.sg-center .say::before { left: calc(50% - 10px); }
.sg-center .say::after { left: calc(50% - 7px); }
.sg-ico { width: 96px; height: 96px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 46px; font-weight: 900; background: var(--pri); border: var(--lw) solid var(--line); box-shadow: 5px 5px 0 var(--line); border-radius: 50%; }
.sg-sent .sg-ico { width: 120px; height: 120px; clip-path: polygon(50% 0, 61% 30%, 95% 18%, 72% 46%, 100% 62%, 66% 68%, 74% 100%, 50% 78%, 26% 100%, 34% 68%, 0 62%, 28% 46%, 5% 18%, 39% 30%); border: 0; box-shadow: none; }
.sg-acts { width: 100%; display: flex; flex-direction: column; gap: 10px; align-items: center; margin-top: 10px; }
.sg-acts .btn { width: min(100%, 250px); }
.sg-note { font-size: 13px; color: var(--muted); }
.spin { width: 1em; height: 1em; border: .16em solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
@media (max-width: 374px) { .sc-title { font-size: 52px; } }
