* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: #f3f8f1;
  color: #17382e;
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
}
.dashboard-header {
  display: grid;
  gap: 28px;
  padding: 34px max(24px, calc((100vw - 1080px) / 2));
  background: linear-gradient(135deg, #0f6849, #2f9c69);
  color: #fff;
}
.back-home { color: #e5fff1; font-weight: 800; text-decoration: none; }
.eyebrow { margin: 0 0 6px; color: #67a684; font-size: 13px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.dashboard-header .eyebrow { color: #bdf3d3; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 9px; font-size: clamp(31px, 6vw, 54px); }
.dashboard-header p:last-child { margin-bottom: 0; color: #daf8e7; }
main { width: min(1080px, calc(100% - 32px)); margin: 28px auto 60px; }
.profile-card, .data-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 9px 30px rgba(37, 93, 66, .09);
}
.avatar { display: grid; place-items: center; width: 94px; height: 94px; flex: 0 0 auto; border-radius: 28px; background: #e2f7e9; font-size: 49px; }
.profile-copy { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; flex: 1; }
.profile-copy h2 { width: 100%; margin-bottom: 0; }
label { display: grid; gap: 5px; color: #507265; font-size: 13px; font-weight: 800; }
input, select, button, .file-button { min-height: 44px; border-radius: 12px; font: inherit; }
input, select { border: 1px solid #bed7ca; background: #fbfffc; padding: 8px 12px; color: #17382e; }
button, .file-button { border: 0; background: #16865c; color: #fff; padding: 10px 16px; cursor: pointer; font-weight: 800; }
button:hover, .file-button:hover { filter: brightness(1.08); }
.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0 36px; }
.summary article { padding: 20px; border-radius: 20px; background: #fff; box-shadow: 0 8px 24px rgba(37, 93, 66, .07); }
.summary strong { display: block; color: #16865c; font-size: 30px; }
.summary span { color: #607b70; font-size: 13px; font-weight: 800; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin-bottom: 0; }
#lastUpdated { color: #6a8278; font-size: 13px; }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 16px; }
.game-progress-card { padding: 20px; border-radius: 22px; background: #fff; box-shadow: 0 8px 24px rgba(37, 93, 66, .07); }
.game-progress-card .game-icon { font-size: 33px; }
.game-progress-card h3 { margin: 10px 0 13px; }
.stat-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid #edf2ef; color: #637b71; font-size: 13px; }
.stat-row strong { color: #22483a; }
.game-progress-card a { display: inline-block; margin-top: 14px; color: #16865c; font-weight: 900; text-decoration: none; }
.data-card { justify-content: space-between; margin-top: 28px; }
.data-card p { margin-bottom: 0; color: #637b71; }
.data-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
.file-button { display: inline-grid; place-items: center; }
.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.danger { background: #b84848; }
@media (max-width: 760px) {
  .summary { grid-template-columns: repeat(2, 1fr); }
  .game-grid { grid-template-columns: 1fr; }
  .profile-card, .data-card { align-items: stretch; flex-direction: column; }
  .data-actions { justify-content: stretch; }
  .data-actions > * { width: 100%; }
}

