:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f2f5f3;
  color: #142a24;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100% - 48px, 700px); margin: 0 auto; padding: clamp(32px, 8vh, 88px) 0 36px; }

.brand { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; font-weight: 650; color: #486359; }
.brand-mark { width: 12px; height: 12px; background: #25745a; border-radius: 4px 4px 4px 1px; transform: rotate(-12deg); }
.heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 26px 0 20px; }
h1 { margin: 0; letter-spacing: -0.055em; line-height: 1.15; font-size: clamp(1.85rem, 5vw, 3rem); }

button {
  font: inherit;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #b9cdc3;
  border-radius: 10px;
  background: #fff;
  color: #174b3b;
  font-size: 0.875rem;
  font-weight: 650;
  cursor: pointer;
}
button:hover { background: #e8f1eb; }
:focus-visible { outline: 3px solid #2e8168; outline-offset: 3px; }

.total {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 206px;
  padding: clamp(22px, 6vw, 36px);
  background: radial-gradient(ellipse at 103% 102%, #23614d 0%, transparent 62%), #173b31;
  color: #f5fcf7;
  border-radius: 22px;
}
.total p { margin: 0; }
.total #available, .total-meta { color: #c7e3d3; }
.total .amount { font-size: clamp(1.8rem, 9vw, 4rem); line-height: 1.16; font-variant-numeric: tabular-nums; font-weight: 680; letter-spacing: -0.055em; overflow-wrap: anywhere; }
.total-meta { font-size: 0.8125rem; }
.total-meta span { padding: 0 4px; }

.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0 20px; }
.details div, .notice { background: #fff; border: 1px solid #dce6df; border-radius: 15px; }
.details div { display: grid; gap: 8px; padding: clamp(13px, 4vw, 22px); }
dt, footer { color: #486359; }
dt, footer { font-size: 0.8125rem; }
dd { margin: 0; overflow-wrap: anywhere; font-size: clamp(0.95rem, 4.4vw, 1.35rem); font-variant-numeric: tabular-nums; font-weight: 650; }
footer { line-height: 1.6; }
time { white-space: nowrap; }

.notice { padding: clamp(18px, 5vw, 28px); }
.notice h2 { margin: 0; font-size: 1.15rem; }
.notice p { margin: 12px 0 0; color: #486359; line-height: 1.55; }

@media (max-width: 400px) {
  main { width: calc(100% - 32px); }
  .total { min-height: 174px; }
}
