.theme-switch {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid #35323a;
  border-radius: 50%;
  background: #232126;
  color: #bbb4bd;
}
.theme-switch[aria-pressed="true"] {
  background: #272d40;
  border-color: #525c77;
  color: #d8e9ff;
}
.theme-switch:focus-visible { outline: 2px solid #e5c6a2; outline-offset: 3px; }
.winter-snow { display: none; }
[data-theme="winter"] { --bg: #160e16; --line: #392631; }
[data-theme="winter"] body {
  background: radial-gradient(ellipse at 50% 0, #332033, #130c15 56%);
}
[data-theme="winter"] .app-header { background: #170e17; border-bottom-color: #37232e; }
[data-theme="winter"] .bottom-nav { background: #1c121a; border-color: #432b3a; }
[data-theme="winter"] .home-intro h1 span { color: #ff6d7d; }
[data-theme="winter"] .wallet { background: linear-gradient(120deg, #fffcf6, #e7eafa); }
[data-theme="winter"] .club-hero { border-color: #7b394d; }
[data-theme="winter"] .tab-panel, [data-theme="winter"] .sheet { border-color: #4b3544; }
[data-theme="winter"] .winter-snow {
  display: block;
  position: fixed;
  pointer-events: none;
  z-index: 2;
  inset: 0;
  overflow: hidden;
}
.winter-snow i {
  position: absolute;
  inset: -190px 0 0;
  background: radial-gradient(circle at 25px 16px, #f7f2ff 1px, transparent 1.6px),
    radial-gradient(circle at 121px 57px, #daeaff 1px, transparent 1.9px),
    radial-gradient(circle at 69px 137px, #fff0da 1.4px, transparent 2.2px);
  background-size: 173px 183px;
  opacity: .32;
  animation: union-snow 19s linear infinite;
}
.winter-snow i:nth-child(2) { background-position: 51px 31px; opacity: .19; animation-duration: 29s; }
.winter-snow i:nth-child(3) { background-position: 93px 112px; opacity: .13; animation-duration: 37s; }
@keyframes union-snow { to { transform: translateY(183px); } }
@media (prefers-reduced-motion: reduce) { [data-theme="winter"] .winter-snow { display: none; } }

.charity-banner {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  text-align: left;
  color: #fff5ed;
  border: 1px solid #6b3549;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 85% 49%, #843343 0, transparent 53%),
    linear-gradient(120deg, #2b1427 8%, #3f1829 57%, #4e253c 100%);
}
.charity-home { margin: 16px 0; min-height: 161px; }
.charity-hero { min-height: 204px; }
.charity-banner-copy { position: relative; z-index: 1; padding: 17px; width: 58%; }
.charity-kicker { display: block; font-size: 8px; font-weight: 750; letter-spacing: .13em; color: #f6c4a8; line-height: 1.4; }
.charity-banner h1, .charity-banner h2 { margin: 8px 0; font-size: clamp(25px, 7vw, 38px); font-weight: 820; letter-spacing: -.06em; line-height: .98; }
.charity-hero h1 { font-size: clamp(28px, 8vw, 43px); }
.charity-banner p { color: #f0ced6; font-size: 11px; line-height: 1.5; max-width: 145px; }
.charity-banner-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 10px; font-weight: 700; }
.charity-mascot { position: absolute; right: 0; bottom: -5%; width: 52%; height: 113%; object-fit: contain; object-position: right bottom; }
.charity-page { padding-bottom: 78px; }
.charity-stats { display: grid; gap: 7px; margin: 17px 0 24px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; }
.charity-stats .detail-row { padding: 4px 0; }
.charity-ranking-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 12px; }
.charity-ranking-title h2 { font-size: 18px; }
.charity-ranking { list-style: none; padding: 0; margin: 0; }
.charity-ranking li { display: grid; grid-template-columns: 23px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 12px 8px; border-bottom: 1px solid var(--line); font-size: 12px; }
.charity-ranking li.is-you { background: #ef293512; border-radius: 8px; }
.charity-ranking li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.charity-ranking li strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.charity-place { color: #e5a58a; font-size: 11px; }
.charity-fixed-action {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: calc(74px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100% - 40px), 400px);
  padding: 8px;
  border: 1px solid #754351;
  border-radius: 17px;
  background: #20131c;
  box-shadow: 0 6px 25px #0007;
}
.charity-consent { display: flex; align-items: flex-start; gap: 9px; line-height: 1.5; font-size: 12px; color: #e4d6dd; }
.charity-consent input { flex: none; width: 16px; height: 16px; margin-top: 1px; accent-color: #ef2935; }
.charity-page .notice { margin-bottom: 12px; }
.club-tabs:not(.three-tabs) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.club-tab { min-width: 0; }
.club-tab span { white-space: nowrap; }
