/* 呱呱村謎題 — 夜裡的鐘樓。狀態一律「符號＋文字」，不靠顏色分辨（柏逸色盲）。 */
:root {
  --bg: #15171c;
  --panel: #1f2229;
  --panel2: #272b34;
  --line: #3a3f4b;
  --text: #e8e6df;
  --muted: #9a9ca6;
  --accent: #e3b341;   /* 鐘的銅色 */
  --accent2: #7fb3d5;  /* 月光 */
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif; line-height: 1.65; }
a { color: var(--accent2); }
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 5; }
header h1 { font-size: 18px; margin: 0; letter-spacing: 1px; }
header h1 small { color: var(--muted); font-weight: normal; font-size: 12px; margin-left: 8px; }
nav a { margin-left: 12px; font-size: 14px; }
.user { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.user img { width: 28px; height: 28px; border-radius: 50%; background: #000; }
main { max-width: 860px; margin: 0 auto; padding: 18px 16px 80px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 14px 0; }
.card h2 { margin: 0 0 6px; font-size: 18px; }
.card h2 .reward { font-size: 13px; color: var(--muted); font-weight: normal; margin-left: 8px; }
.intro { white-space: pre-line; color: var(--muted); font-size: 14px; margin: 6px 0 10px; }
.sections { display: grid; gap: 8px; }
.sec { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; background: var(--panel2); border: 1px solid transparent; cursor: pointer; }
.sec:hover { border-color: var(--accent2); }
.sec.disabled { cursor: default; opacity: .72; }
.sec .st { min-width: 92px; font-size: 13px; }
.sec .t { flex: 1; }
.sec .tags { font-size: 12px; color: var(--muted); }
.tag { display: inline-block; border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; margin-left: 4px; font-size: 11px; }
.cnt { font-size: 12px; color: var(--muted); }
.btn { background: var(--accent); color: #1a1a1a; border: 0; border-radius: 8px; padding: 9px 16px; font-size: 15px; cursor: pointer; font-weight: bold; }
.btn.secondary { background: var(--panel2); color: var(--text); border: 1px solid var(--line); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
input[type=text], input[type=number], textarea { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: #111318; color: var(--text); font-size: 16px; }
.story { white-space: pre-line; margin: 10px 0; }
.prompt { white-space: pre-line; background: #111318; border-left: 3px solid var(--accent); padding: 10px 12px; border-radius: 6px; margin: 10px 0; }
.imgs img { max-width: 100%; border-radius: 8px; border: 1px solid var(--line); margin: 6px 0; background: #fff; }
.msg { margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line); }
.msg.ok { border-color: var(--accent); }
.msg.bad { border-color: #c96; }
.back { font-size: 14px; margin-bottom: 8px; display: inline-block; }
.notice { font-size: 13px; color: var(--muted); }
.hero { text-align: center; padding: 30px 10px 10px; }
.hero h2 { font-size: 24px; margin: 0 0 8px; }
.hero p { color: var(--muted); max-width: 560px; margin: 0 auto 16px; white-space: pre-line; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: normal; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } header { flex-wrap: wrap; } }
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 20px; }
