* {
  box-sizing: border-box;
}

/* =========================================================
   降級基礎樣式(不支援 CSS 自訂變數的舊瀏覽器,如 IE11 以下)
   純色、無主題切換效果,但表單版面完整可用。
   支援 CSS 變數的瀏覽器會被下方 @supports 區塊整套覆蓋。
   ========================================================= */
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
  background: #1a0e14;
  color: #2a2530;
  padding: 32px 16px 60px;
}

.page {
  max-width: 480px;
  margin: 0 auto;
}

.brand {
  text-align: center;
  margin-bottom: 24px;
}

.brand .moon {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #b3273a;
  margin-bottom: 8px;
}

.brand h1 {
  font-size: 20px;
  color: #f3e4d8;
  margin: 0;
  letter-spacing: 2px;
  font-weight: 600;
}

.brand .sub {
  color: #cbb9ae;
  font-size: 12px;
  margin-top: 4px;
  letter-spacing: 1px;
}

.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 28px 26px 30px;
}

.card h2 {
  font-size: 18px;
  margin: 0 0 18px;
  color: #8a1c2b;
}

.card h3 {
  font-size: 14px;
  margin: 22px 0 8px;
  color: #7a7280;
  font-weight: 600;
  border-bottom: 1px solid #e7e1e4;
  padding-bottom: 6px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.topbar h2 {
  margin: 0;
}

label {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  color: #7a7280;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  margin-top: 5px;
  border: 1px solid #e7e1e4;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fbfafa;
  color: #2a2530;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #b3273a;
  background: #fff;
}

.row {
  display: flex;
  gap: 10px;
}

.row > div {
  flex: 1;
}

button,
.btn {
  margin-top: 22px;
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: #b3273a;
  color: #fff;
  cursor: pointer;
  letter-spacing: 1px;
}

button:active,
.btn:active {
  opacity: 0.85;
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn-secondary {
  background: #f1eef0;
  color: #2a2530;
  border: 1px solid #e7e1e4;
}

.topbar button.btn-secondary {
  width: auto;
  margin-top: 0;
  padding: 7px 16px;
  font-size: 13px;
}

.errors {
  background: #fdecee;
  border: 1px solid #c33;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 16px;
}

.errors ul {
  margin: 0;
  padding-left: 18px;
}

.errors li {
  color: #a00;
  font-size: 13px;
}

.notice {
  background: #eaf7ee;
  border: 1px solid #3aa35a;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 16px;
  color: #1f6b38;
  font-size: 13px;
}

.chars {
  margin: 0;
  padding: 0;
  list-style: none;
}

.chars li {
  margin-top: 6px;
}

.chars li a {
  display: block;
  padding: 10px 14px;
  background: #faf6f2;
  border: 1px solid #e7e1e4;
  border-radius: 8px;
  text-decoration: none;
  color: #2a2530;
  font-size: 14px;
}

.empty {
  color: #7a7280;
  font-size: 13px;
}

.links {
  margin-top: 20px;
  font-size: 13px;
  text-align: center;
  color: #7a7280;
}

.links a {
  color: #b3273a;
  text-decoration: none;
  font-weight: 600;
}

.success-page {
  text-align: center;
}

.success-page .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #b3273a;
  color: #fff;
  line-height: 56px;
  font-size: 28px;
  margin: 0 auto 16px;
}

.badge {
  display: inline-block;
  background: #b3273a;
  color: #fff;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 999px;
  margin-left: 8px;
}

table.info {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
}

table.info th,
table.info td {
  text-align: left;
  padding: 9px 8px;
  border-bottom: 1px solid #e7e1e4;
  font-size: 14px;
}

table.info th {
  width: 42%;
  color: #7a7280;
  font-weight: 500;
}

.hint {
  font-size: 12px;
  color: #7a7280;
  margin-top: 2px;
}

/* 舊瀏覽器沒有主題系統可切,色塊列直接隱藏，避免顯示無作用的裝飾物 */
.theme-switch {
  display: none;
}

/* =========================================================
   進階樣式(支援 CSS 自訂變數的瀏覽器套用，含四套可切換主題)
   透過 @supports 特性偵測；不支援的瀏覽器會忽略整個區塊，
   停留在上方的降級基礎樣式，表單仍完整可用。
   ========================================================= */
@supports (--css: red) {
  :root {
    --bg-1: #1a0e14;
    --bg-2: #2b1420;
    --card-bg: #ffffff;
    --card-text: #2a2530;
    --accent: #b3273a;
    --accent-dark: #8a1c2b;
    --accent-light: #e0536a;
    --gold: #c9a24b;
    --muted: #7a7280;
    --border: #e7e1e4;
    --success-bg: #eaf7ee;
    --success-border: #3aa35a;
    --success-text: #1f6b38;
    --error-bg: #fdecee;
    --error-border: #c33;
    --error-text: #a00;

    --radius: 14px;
    --radius-sm: 8px;
    --outer-text: #f3e4d8;
    --outer-muted: rgba(243, 228, 216, 0.6);
    --input-bg: #fbfafa;
    --input-bg-focus: #ffffff;
    --list-bg: #faf6f2;
    --list-hover-bg: #fdf1f2;
    --btn-secondary-bg: #f1eef0;
    --focus-ring: rgba(179, 39, 58, 0.12);
    --card-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 2px 0 rgba(255, 255, 255, 0.04) inset;
    --btn-shadow: 0 6px 16px rgba(179, 39, 58, 0.35);
    --btn-shadow-hover: 0 8px 20px rgba(179, 39, 58, 0.45);
  }

  /* ---- 主題:復古像素RPG ---- */
  [data-theme="pixel"] {
    --bg-1: #14101f;
    --bg-2: #241b38;
    --card-bg: #efe6cf;
    --card-text: #2a2214;
    --accent: #d98c2b;
    --accent-dark: #a85f16;
    --accent-light: #f2b25c;
    --gold: #ffd873;
    --muted: #6b5d42;
    --border: #8a7040;
    --success-bg: #dff0d0;
    --success-border: #5a8a3a;
    --success-text: #33501f;
    --error-bg: #f3d9c6;
    --error-border: #a8461f;
    --error-text: #7a2f10;

    --radius: 0px;
    --radius-sm: 0px;
    --outer-text: #ffd873;
    --outer-muted: rgba(255, 216, 115, 0.65);
    --input-bg: #fbf3d9;
    --input-bg-focus: #fffaf0;
    --list-bg: #fbf3d9;
    --list-hover-bg: #f7e6b8;
    --btn-secondary-bg: #d9cba3;
    --focus-ring: rgba(217, 140, 43, 0.3);
    --card-shadow: 0 0 0 4px #14101f, 8px 8px 0 #000;
    --btn-shadow: 3px 3px 0 #000;
    --btn-shadow-hover: 4px 4px 0 #000;
  }

  /* ---- 主題:簡約現代 ---- */
  [data-theme="minimal"] {
    --bg-1: #f5f5f7;
    --bg-2: #ffffff;
    --card-bg: #ffffff;
    --card-text: #1d1d1f;
    --accent: #2b2b2f;
    --accent-dark: #000000;
    --accent-light: #5a5a60;
    --gold: #2b2b2f;
    --muted: #8a8a8f;
    --border: #e4e4e7;
    --success-bg: #eef7ef;
    --success-border: #3aa35a;
    --success-text: #1f6b38;
    --error-bg: #fdecee;
    --error-border: #c33;
    --error-text: #a00;

    --radius: 6px;
    --radius-sm: 5px;
    --outer-text: #1d1d1f;
    --outer-muted: rgba(29, 29, 31, 0.5);
    --input-bg: #fafafa;
    --input-bg-focus: #ffffff;
    --list-bg: #fafafa;
    --list-hover-bg: #f2f2f4;
    --btn-secondary-bg: #f0f0f2;
    --focus-ring: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    --btn-shadow: none;
    --btn-shadow-hover: none;
  }

  /* ---- 主題:暗黑霓虹奇幻 ---- */
  [data-theme="neon"] {
    --bg-1: #0c0716;
    --bg-2: #1c0f2e;
    --card-bg: rgba(26, 15, 42, 0.78);
    --card-text: #eae1ff;
    --accent: #b455ff;
    --accent-dark: #7a2fd6;
    --accent-light: #ff5fd1;
    --gold: #7ee8ff;
    --muted: #a89bd0;
    --border: rgba(180, 120, 255, 0.35);
    --success-bg: rgba(58, 163, 90, 0.18);
    --success-border: #3aa35a;
    --success-text: #8ff0ab;
    --error-bg: rgba(255, 80, 120, 0.15);
    --error-border: #ff5078;
    --error-text: #ff9db4;

    --radius: 16px;
    --radius-sm: 10px;
    --outer-text: #eae1ff;
    --outer-muted: rgba(234, 225, 255, 0.6);
    --input-bg: rgba(255, 255, 255, 0.06);
    --input-bg-focus: rgba(255, 255, 255, 0.1);
    --list-bg: rgba(255, 255, 255, 0.05);
    --list-hover-bg: rgba(255, 255, 255, 0.09);
    --btn-secondary-bg: rgba(255, 255, 255, 0.08);
    --focus-ring: rgba(180, 85, 255, 0.3);
    --card-shadow: 0 0 0 1px var(--border), 0 20px 50px rgba(122, 47, 214, 0.35);
    --btn-shadow: 0 8px 20px rgba(180, 85, 255, 0.45);
    --btn-shadow-hover: 0 10px 26px rgba(255, 95, 209, 0.5);
  }

  /* ---- 主題:通用框架風(仿 Bootstrap 5 預設樣式) ---- */
  [data-theme="bootstrap"] {
    --bg-1: #f8f9fa;
    --bg-2: #ffffff;
    --card-bg: #ffffff;
    --card-text: #212529;
    --accent: #0d6efd;
    --accent-dark: #0a58ca;
    --accent-light: #3d8bfd;
    --gold: #0d6efd;
    --muted: #6c757d;
    --border: #dee2e6;
    --success-bg: #d1e7dd;
    --success-border: #a3cfbb;
    --success-text: #0f5132;
    --error-bg: #f8d7da;
    --error-border: #f5c2c7;
    --error-text: #842029;

    --radius: 8px;
    --radius-sm: 6px;
    --outer-text: #212529;
    --outer-muted: rgba(33, 37, 41, 0.6);
    --input-bg: #ffffff;
    --input-bg-focus: #ffffff;
    --list-bg: #ffffff;
    --list-hover-bg: #f8f9fa;
    --btn-secondary-bg: #e9ecef;
    --focus-ring: rgba(13, 110, 253, 0.25);
    --card-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --btn-shadow: none;
    --btn-shadow-hover: none;
  }

  body {
    background:
      radial-gradient(1200px 600px at 50% -10%, var(--bg-2) 0%, var(--bg-1) 60%),
      linear-gradient(180deg, var(--bg-1), var(--bg-1));
    color: var(--card-text);
  }

  [data-theme="pixel"] body {
    font-family: "Consolas", "Microsoft JhengHei", monospace;
    background: repeating-linear-gradient(45deg, #14101f, #14101f 12px, #1c1530 12px, #1c1530 24px);
  }

  [data-theme="bootstrap"] body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", Roboto, Arial, sans-serif;
    background: var(--bg-1);
  }

  .brand .moon {
    background: radial-gradient(circle at 35% 35%, var(--gold), var(--accent) 70%);
    box-shadow: 0 0 24px rgba(201, 162, 75, 0.55);
  }

  [data-theme="pixel"] .brand .moon {
    border-radius: 4px;
    transform: rotate(45deg);
    box-shadow: none;
  }

  [data-theme="minimal"] .brand .moon {
    box-shadow: none;
  }

  [data-theme="neon"] .brand .moon {
    box-shadow: 0 0 28px rgba(180, 85, 255, 0.7);
  }

  [data-theme="bootstrap"] .brand .moon {
    background: var(--accent);
    box-shadow: none;
  }

  .brand h1 {
    color: var(--outer-text);
  }

  .brand .sub {
    color: var(--outer-muted);
  }

  .card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
  }

  [data-theme="pixel"] .card {
    border: 4px solid var(--gold);
  }

  [data-theme="minimal"] .card {
    border: 1px solid var(--border);
  }

  [data-theme="bootstrap"] .card {
    border: 1px solid var(--border);
  }

  [data-theme="neon"] .card {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .card h2 {
    color: var(--accent-dark);
  }

  [data-theme="neon"] .card h2 {
    color: var(--accent-light);
  }

  .card h3 {
    color: var(--muted);
    border-bottom: 1px solid var(--border);
  }

  label {
    color: var(--muted);
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="datetime-local"],
  input[type="date"],
  select,
  textarea {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--input-bg);
    color: var(--card-text);
    transition: border-color 0.15s, box-shadow 0.15s;
  }

  [data-theme="pixel"] input[type="text"],
  [data-theme="pixel"] input[type="email"],
  [data-theme="pixel"] input[type="password"],
  [data-theme="pixel"] input[type="datetime-local"],
  [data-theme="pixel"] input[type="date"],
  [data-theme="pixel"] select,
  [data-theme="pixel"] textarea {
    border: 2px solid var(--border);
  }

  input:focus,
  select:focus,
  textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--focus-ring);
    background: var(--input-bg-focus);
  }

  button,
  .btn {
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    transition: transform 0.08s, box-shadow 0.15s, opacity 0.15s;
    box-shadow: var(--btn-shadow);
  }

  [data-theme="pixel"] button,
  [data-theme="pixel"] .btn {
    text-transform: uppercase;
  }

  [data-theme="bootstrap"] button,
  [data-theme="bootstrap"] .btn {
    background: var(--accent);
  }

  button:hover,
  .btn:hover {
    box-shadow: var(--btn-shadow-hover);
  }

  [data-theme="bootstrap"] button:hover,
  [data-theme="bootstrap"] .btn:hover {
    background: var(--accent-dark);
  }

  button:active,
  .btn:active {
    transform: translateY(1px);
    opacity: 1;
  }

  button:disabled {
    box-shadow: none;
  }

  .btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--card-text);
    box-shadow: none;
    border: 1px solid var(--border);
  }

  .errors {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    border-radius: var(--radius-sm);
  }

  .errors li {
    color: var(--error-text);
  }

  .notice {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    border-radius: var(--radius-sm);
    color: var(--success-text);
  }

  .chars {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .chars li {
    margin-top: 0;
  }

  .chars li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--list-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--card-text);
    transition: border-color 0.15s, background 0.15s;
  }

  .chars li a:hover {
    border-color: var(--accent);
    background: var(--list-hover-bg);
  }

  .chars li a::after {
    content: "›";
    color: var(--muted);
    font-size: 16px;
  }

  .empty {
    color: var(--muted);
  }

  .links {
    color: var(--muted);
  }

  .links a:hover {
    text-decoration: underline;
  }

  .success-page .icon {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .badge {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
  }

  table.info th,
  table.info td {
    border-bottom: 1px solid var(--border);
  }

  table.info th {
    color: var(--muted);
  }

  table.info tr:last-child th,
  table.info tr:last-child td {
    border-bottom: none;
  }

  .hint {
    color: var(--muted);
  }

  /* ---- 風格切換器 ---- */
  .theme-switch {
    display: flex;
    margin-top: 22px;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .theme-switch-label {
    font-size: 11px;
    color: var(--outer-muted);
    margin-right: 2px;
  }

  .swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--outer-muted);
    display: inline-block;
    transition: transform 0.12s, border-color 0.12s;
  }

  .swatch:hover {
    transform: scale(1.15);
  }

  .swatch.active {
    border-color: var(--outer-text);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
  }

  .swatch-crimson {
    background: linear-gradient(135deg, #e0536a, #8a1c2b);
  }

  .swatch-pixel {
    background: linear-gradient(135deg, #ffd873, #a85f16);
    border-radius: 4px;
  }

  .swatch-minimal {
    background: linear-gradient(135deg, #ffffff, #2b2b2f);
  }

  .swatch-neon {
    background: linear-gradient(135deg, #ff5fd1, #7a2fd6);
  }

  .swatch-bootstrap {
    background: linear-gradient(135deg, #3d8bfd, #0d6efd);
    border-radius: 6px;
  }
}

/* =========================================================
   靜態頁共用（2026-09-27 改版：頁面改純靜態 + 導覽列）
   ========================================================= */
[hidden] {
  display: none !important;
}

.page.wide {
  max-width: 760px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin: -8px 0 20px;
}

.site-nav a {
  color: #f3e4d8;
  color: var(--outer-text, #f3e4d8);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.current {
  border-bottom-color: #c9a24b;
  border-bottom-color: var(--gold, #c9a24b);
}

.card + .card {
  margin-top: 20px;
}

.card p {
  line-height: 1.7;
}

pre.announcement {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  margin: 0;
  line-height: 1.7;
}

.captcha {
  margin: 8px 0 14px;
}

/* =========================================================
   贊助頁（/sponsor，2026-10-07）
   顏色全部走主題變數，五套主題（含深色 neon、淺色 minimal/bootstrap）自動套用；
   每條先寫純色再寫 var()，舊瀏覽器停在第一條。
   ========================================================= */
.item-icon {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  width: 36px;
  height: 66px;
  flex: none;
}

.sponsor-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  margin: 6px 0 18px;
  background: #faf6f2;
  background: var(--list-bg, #faf6f2);
  border: 1px solid #e7e1e4;
  border: 1px solid var(--border, #e7e1e4);
  border-radius: 8px;
  border-radius: var(--radius-sm, 8px);
}

.sponsor-item-name {
  font-weight: 600;
  font-size: 15px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.plan {
  text-align: center;
  padding: 18px 10px 16px;
  background: #faf6f2;
  background: var(--list-bg, #faf6f2);
  border: 1px solid #e7e1e4;
  border: 1px solid var(--border, #e7e1e4);
  border-top: 3px solid #b3273a;
  border-top: 3px solid var(--accent, #b3273a);
  border-radius: 8px;
  border-radius: var(--radius-sm, 8px);
}

.plan-price {
  font-size: 24px;
  font-weight: 700;
  color: #8a1c2b;
  color: var(--accent-dark, #8a1c2b);
  margin-bottom: 10px;
}

[data-theme="neon"] .plan-price {
  color: var(--accent-light);
}

.plan-cur {
  font-size: 13px;
  font-weight: 600;
  margin-right: 3px;
}

.plan .item-icon {
  display: block;
  margin: 0 auto 8px;
}

.plan-reward {
  font-size: 14px;
}

.plan-qty {
  font-weight: 700;
}

.pending {
  color: #7a7280;
  color: var(--muted, #7a7280);
  font-style: italic;
}

ol.steps,
ul.notes {
  margin: 0;
  padding-left: 22px;
  line-height: 1.8;
  font-size: 14px;
}

ol.steps li + li,
ul.notes li + li {
  margin-top: 4px;
}

/* ---- 會員中心：帳號資訊／角色／點數紀錄／排行／回報 ---- */
textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.6;
}

.field-count {
  display: block;
  text-align: right;
  font-size: 12px;
  color: #7a7280;
  color: var(--muted, #7a7280);
  margin-top: 2px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 6px;
}

table.list {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.list th,
table.list td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid #e7e1e4;
  border-bottom: 1px solid var(--border, #e7e1e4);
  white-space: nowrap;
}

table.list th {
  font-weight: 500;
  font-size: 12px;
  color: #7a7280;
  color: var(--muted, #7a7280);
}

table.list td.num,
table.list th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

table.list td.wrap {
  white-space: normal;
  word-break: break-word;
}

table.list tr.top3 td:first-child {
  font-weight: 700;
  color: #c9a24b;
  color: var(--gold, #c9a24b);
}

.pts {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.pts > div {
  flex: 1;
  padding: 12px;
  border: 1px solid #e7e1e4;
  border: 1px solid var(--border, #e7e1e4);
  border-radius: 8px;
  border-radius: var(--radius-sm, 8px);
  text-align: center;
}

.pts strong {
  display: block;
  font-size: 22px;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.status {
  display: inline-block;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
}

.status-0,
.status-1 { color: #b07a10; }
.status-2 { color: #2f8a4a; }
.status-3,
.status-4 { color: #7a7280; }

.reply {
  margin-top: 4px;
  padding: 6px 10px;
  border-left: 3px solid #c9a24b;
  border-left: 3px solid var(--gold, #c9a24b);
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
}

.reply-head {
  font-size: 12px;
  font-weight: 600;
  color: #7a7280;
  color: var(--muted, #7a7280);
  margin-bottom: 2px;
}

.status-at {
  font-size: 11px;
  margin-top: 3px;
  color: #7a7280;
  color: var(--muted, #7a7280);
  white-space: nowrap;
}

/* 回報附圖 */
.attach { margin: 6px 0 12px; }
.attach-label { font-weight: 600; margin-bottom: 4px; }
.attach-drop {
  border: 2px dashed #e7e1e4;
  border: 2px dashed var(--border, #e7e1e4);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
}
.attach-drop.over {
  border-color: #b3273a;
  border-color: var(--accent, #b3273a);
}
.attach-drop p { margin: 4px 0; }
.attach-pick {
  display: inline;
  color: #b3273a;
  color: var(--accent, #b3273a);
  text-decoration: underline;
  cursor: pointer;
}
.attach-pick input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.attach-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.attach-item {
  width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
}
.attach-item img,
.thumbs img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border: 1px solid #e7e1e4;
  border: 1px solid var(--border, #e7e1e4);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.05);
}
.attach-remove {
  width: auto;
  padding: 2px 8px;
  font-size: 12px;
  margin: 0;
}
.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.thumbs img { width: 64px; height: 48px; }

.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 10px;
}

.seg button {
  width: auto;
  margin-top: 0;
  padding: 5px 12px;
  font-size: 13px;
  letter-spacing: 0;
  background: #f1eef0;
  color: #2a2530;
  border: 1px solid #e7e1e4;
  box-shadow: none;
}

.seg button[aria-pressed="true"] {
  background: #b3273a;
  color: #fff;
  border-color: #b3273a;
}

@supports (--css: red) {
  .seg button {
    background: var(--btn-secondary-bg);
    color: var(--card-text);
    border-color: var(--border);
  }

  .seg button[aria-pressed="true"] {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
  }
}

@media (max-width: 560px) {
  .pts {
    flex-direction: column;
  }

  table.list th,
  table.list td {
    padding: 7px 4px;
    font-size: 13px;
  }

  .plans {
    grid-template-columns: 1fr;
  }

  .plan {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 12px 14px;
    border-top-width: 1px;
    border-left: 3px solid #b3273a;
    border-left: 3px solid var(--accent, #b3273a);
  }

  .plan .item-icon {
    margin: 0;
    order: -1;
  }

  .plan-price {
    margin: 0;
    font-size: 20px;
  }

  .plan-reward {
    text-align: right;
  }

  .plan [data-note] {
    grid-column: 1 / -1;
  }
}

/* 主帳號：勾選框、遊戲帳號清單、法律草稿頁 */
label.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

label.check input {
  width: auto;
  margin-top: 3px;
}

.game-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.game-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.draft-banner {
  border: 2px dashed #c0392b;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 10px 0;
}

.legal h3 {
  margin-top: 1.4em;
}

.legal li {
  margin: 4px 0;
}
