/* 歲悅回饋表單 — 手機優先
   Layout: one narrow paper column, the milk-carton logo on top, big tap targets. */
:root {
  --bg: #fff8ee; --paper: #fffdf8; --ink: #2f231b; --muted: #7a5c48; --line: #ead2b6; --soft: #f6e9d9;
  --accent: #f08a24; --accent-strong: #ad5707; --on-accent: #2b1606; --bad: #c9472f; --ok: #4f8a3f;
  --font: "Huninn", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #15110d; --paper: #211a14; --ink: #f5e9da; --muted: #c4a88e; --line: #4a3a2b; --soft: #2c231b; --accent: #f39a42; --accent-strong: #f7ad62; --bad: #f07d66; --ok: #86b870; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #15110d; --paper: #211a14; --ink: #f5e9da; --muted: #c4a88e; --line: #4a3a2b; --soft: #2c231b; --accent: #f39a42; --accent-strong: #f7ad62; --bad: #f07d66; --ok: #86b870; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); padding: 24px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); }
[hidden] { display: none !important; }
main { max-width: 520px; margin: 0 auto; display: grid; gap: 18px; }
header { display: flex; gap: 12px; align-items: center; }
header img { width: 52px; height: auto; }
h1 { margin: 0; font-size: 25px; font-weight: 400; text-wrap: balance; }
header p { margin: 0; color: var(--muted); font-size: 14px; }
.notice { margin: 0; background: var(--soft); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
form, .done { background: var(--paper); border: 1.5px solid var(--line); border-radius: 24px; padding: 22px; display: grid; gap: 14px; outline: 1.5px dashed #d9bf9f; outline-offset: -9px; }
label, legend { font-weight: 700; font-size: 15px; }
select, textarea, input[type="text"], input[type="password"], input[type="number"] { width: 100%; font: inherit; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
select, input[type="text"], input[type="password"], input[type="number"] { height: 48px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
textarea { resize: vertical; min-height: 120px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { display: grid; gap: 6px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.scores { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scores input { position: absolute; opacity: 0; pointer-events: none; }
.scores label { user-select: none; -webkit-tap-highlight-color: transparent; display: grid; justify-items: center; gap: 2px; padding: 10px 2px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 500; font-size: 12px; color: var(--muted); text-align: center; }
.scores label b { font-size: 22px; color: var(--ink); font-weight: 900; }
.scores input:checked + label { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.scores input:checked + label b { color: var(--on-accent); }
.scores input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); }
.hint { margin: 0; color: var(--muted); font-size: 13px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.primary { height: 50px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 900; font-size: 17px; cursor: pointer; }
.primary[disabled] { opacity: 0.6; cursor: progress; }
.msg { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--bad); }
.done h2 { margin: 0; font-size: 22px; }
.done p { margin: 0; }
.done button { justify-self: start; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
