:root {
  --bg: #161616;
  --bg-deep: #0f0f10;
  --panel: rgba(28, 27, 30, 0.72);
  --panel-strong: rgba(22, 22, 24, 0.94);
  --line: rgba(255, 183, 3, 0.22);
  --line-strong: rgba(255, 183, 3, 0.5);
  --orange: #e85d04;
  --orange-deep: #c64700;
  --gold: #ffb703;
  --gold-soft: #ffe49a;
  --text: #f6efe3;
  --muted: #b8aaa0;
  --green: #48c78e;
  --red: #ef4444;
  --blue: #6aa9ff;
  --radius: 8px;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.36);
  --header-h: 72px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(26, 26, 26, 0.98), rgba(18, 14, 12, 0.98) 48%, rgba(10, 10, 11, 0.99)),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 8px);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  letter-spacing: 0;
}

body {
  display: flex;
  flex-direction: column;
}

.view-root {
  width: 100%;
  flex: 1 0 auto;
}

.site-record-footer {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 13px 20px 17px;
  border-top: 1px solid rgba(190, 151, 112, 0.28);
  color: #705344;
  background: rgba(255, 249, 241, 0.78);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  backdrop-filter: blur(10px);
}

.site-record-footer a {
  color: inherit;
  transition: color 0.18s ease;
}

.site-record-footer a:hover {
  color: #9f4829;
  text-decoration: underline;
  text-underline-offset: 3px;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  z-index: 0;
}

.leaf-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.falling-leaf {
  position: absolute;
  top: -10%;
  width: var(--leaf-size);
  height: calc(var(--leaf-size) * 1.35);
  opacity: var(--leaf-opacity);
  background: var(--leaf-color);
  clip-path: polygon(50% 0%, 88% 23%, 100% 61%, 74% 90%, 50% 100%, 26% 90%, 0% 61%, 12% 23%);
  animation: leaf-fall var(--leaf-duration) linear var(--leaf-delay) infinite;
  will-change: transform, opacity;
}

.falling-leaf::after {
  content: "";
  position: absolute;
  left: 48%;
  top: 0;
  width: 4%;
  height: 100%;
  background: rgba(0, 0, 0, 0.16);
  transform: rotate(14deg);
}

@keyframes leaf-fall {
  0% {
    transform: translate3d(0, -12vh, 0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: var(--leaf-opacity);
  }
  100% {
    transform: translate3d(var(--leaf-drift), 112vh, 0) rotate(var(--leaf-spin));
    opacity: 0;
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 18, 19, 0.78);
  backdrop-filter: blur(18px) saturate(125%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(232, 93, 4, 0.14);
  box-shadow: inset 0 0 18px rgba(255, 183, 3, 0.12);
}

.brand-mark svg {
  width: 34px;
  height: 34px;
}

.brand-text {
  display: grid;
  line-height: 1.12;
}

.brand-text strong {
  font-size: 18px;
  letter-spacing: 0;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255, 183, 3, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: rgba(232, 93, 4, 0.2);
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.mail-button {
  position: relative;
}

.mail-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid #1a1a1c;
  border-radius: 999px;
  color: #fff;
  background: #ef4444;
  font-size: 10px;
  font-weight: 800;
}

.ghost-button,
.solid-button,
.danger-button,
.quiet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 14px;
  transition: transform 0.15s ease, background 0.18s ease, border-color 0.18s ease;
}

.ghost-button {
  border-color: var(--line-strong);
  color: var(--gold-soft);
  background: rgba(255, 183, 3, 0.08);
}

.ghost-button:hover {
  background: rgba(255, 183, 3, 0.17);
}

.solid-button {
  border-color: var(--gold);
  color: #1a140b;
  background: linear-gradient(135deg, var(--gold), #f49a06);
  font-weight: 700;
}

.solid-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #ffd166, var(--gold));
}

.solid-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.danger-button {
  border-color: rgba(239, 68, 68, 0.4);
  color: #ffd7d7;
  background: rgba(239, 68, 68, 0.12);
}

.danger-button:hover {
  background: rgba(239, 68, 68, 0.22);
}

.quiet-button {
  min-height: 34px;
  padding: 0 12px;
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
}

.quiet-button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

.is-hidden {
  display: none !important;
}

.view-root {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0 48px;
}

.page-band {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

.glass-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(16px) saturate(120%);
}

.panel-pad {
  padding: 20px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.section-head h1,
.section-head h2,
.section-head h3 {
  margin: 0;
  letter-spacing: 0;
}

.section-head h1 {
  font-size: 28px;
}

.section-head h2 {
  font-size: 22px;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 183, 3, 0.1);
}

.icon-button svg,
.solid-button svg,
.ghost-button svg,
.danger-button svg,
.quiet-button svg {
  width: 17px;
  height: 17px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(27, 26, 29, 0.72);
  backdrop-filter: blur(14px);
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  color: var(--gold);
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid rgba(255, 183, 3, 0.2);
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
}

.stat-label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 18px;
}

.data-table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  white-space: nowrap;
}

.data-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.025);
}

.data-table tbody tr {
  transition: background 0.15s ease;
}

.data-table tbody tr:hover {
  background: rgba(255, 183, 3, 0.045);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.rank-badge {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--gold);
  background: rgba(255, 183, 3, 0.1);
  border: 1px solid rgba(255, 183, 3, 0.2);
  font-weight: 800;
}

.rank-badge.rank-1 {
  color: #171107;
  background: linear-gradient(135deg, #ffd166, var(--gold));
}

.rank-badge.rank-2 {
  color: #1d2024;
  background: linear-gradient(135deg, #dce4ec, #9ba8b7);
}

.rank-badge.rank-3 {
  color: #2a1c08;
  background: linear-gradient(135deg, #d99a4e, #bd6b28);
}

.member-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  color: #21160c;
  background: var(--avatar-color, var(--gold));
  font-weight: 800;
}

.member-name {
  font-weight: 700;
}

.member-sub {
  color: var(--muted);
  font-size: 12px;
}

.amount-positive {
  color: var(--green);
  font-weight: 700;
}

.amount-negative {
  color: #ff8b8b;
  font-weight: 700;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pending {
  color: var(--gold-soft);
  background: rgba(255, 183, 3, 0.13);
  border: 1px solid rgba(255, 183, 3, 0.25);
}

.status-approved {
  color: #c4f7e0;
  background: rgba(72, 199, 142, 0.12);
  border: 1px solid rgba(72, 199, 142, 0.28);
}

.status-rejected {
  color: #ffc6c6;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.contribution-kind {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 700;
}

.contribution-kind.weekly {
  color: #c4f7e0;
  border-color: rgba(72, 199, 142, 0.32);
  background: rgba(72, 199, 142, 0.12);
}

.contribution-kind.normal {
  color: #d6e4f5;
  border-color: rgba(106, 169, 255, 0.26);
  background: rgba(106, 169, 255, 0.1);
}

.role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.role-badge.president {
  color: #ffd166;
  background: rgba(255, 183, 3, 0.14);
  border-color: rgba(255, 183, 3, 0.32);
}

.role-badge.admin {
  color: #ffc9a3;
  background: rgba(232, 93, 4, 0.14);
  border-color: rgba(232, 93, 4, 0.32);
}

.role-badge.vicePresident {
  color: #ffd0a8;
  background: rgba(232, 93, 4, 0.14);
  border-color: rgba(232, 93, 4, 0.32);
}

.role-badge.administrator {
  color: #73531d;
  background: rgba(188, 139, 55, 0.14);
  border-color: rgba(188, 139, 55, 0.35);
}

.role-badge.maplePlush {
  color: #7b3346;
  background: #ffdce8;
  border-color: #e9a2b9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.role-badge.maplePlush::before {
  margin-right: 5px;
  color: #d84e78;
  font-size: 11px;
  line-height: 1;
  content: "♥";
}

.role-badge.member {
  color: #d6e4f5;
  background: rgba(106, 169, 255, 0.12);
  border-color: rgba(106, 169, 255, 0.26);
}

.guild-branch-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.guild-branch-badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.46);
}

.guild-branch-badge.main {
  color: #9f3e29;
  border-color: #df9b82;
  background: #fce4d8;
}

.guild-branch-badge.sub {
  color: #45566a;
  border-color: #b8c4d1;
  background: #e9eef3;
}

.week-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.week-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: #f5f1e7;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.week-dot.active {
  background: #48c78e;
  border-color: #7fe0b3;
  box-shadow:
    0 0 12px rgba(72, 199, 142, 0.9),
    0 0 4px rgba(72, 199, 142, 0.75);
  transform: scale(1.08);
}

.resource-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.resource-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  white-space: nowrap;
}

.resource-chip svg {
  width: 14px;
  height: 14px;
}

.resource-chip .resource-img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.resource-mini .resource-chip {
  padding: 0 6px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.resource-mini .resource-chip.gold,
.resource-mini .resource-chip.crystal,
.resource-mini .resource-chip.guildToken,
.resource-mini .resource-chip.engraving {
  color: var(--text);
  background: transparent !important;
  border: 0 !important;
  box-shadow: none;
}

.resource-mini .resource-chip > span {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.28);
}

.resource-mini .resource-chip .resource-img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  opacity: 1;
  background: #161616;
  mix-blend-mode: multiply;
  filter: brightness(0.95) contrast(1.08) saturate(0.88);
  -webkit-mask-image: radial-gradient(circle, black 62%, transparent 98%);
  mask-image: radial-gradient(circle, black 62%, transparent 98%);
}

.resource-chip.gold {
  color: #ffe08a;
  background: rgba(255, 183, 3, 0.12);
  border-color: rgba(255, 183, 3, 0.28);
}

.resource-chip.crystal {
  color: #bde0ff;
  background: rgba(106, 169, 255, 0.12);
  border-color: rgba(106, 169, 255, 0.28);
}

.resource-chip.guildToken {
  color: #ffd0a8;
  background: rgba(232, 93, 4, 0.12);
  border-color: rgba(232, 93, 4, 0.28);
}

.resource-chip.engraving {
  color: #d6c6ff;
  background: rgba(160, 120, 255, 0.12);
  border-color: rgba(160, 120, 255, 0.28);
}

.resource-chip.maple {
  color: #d9f4b6;
  background: transparent;
  border: 0;
}

.resource-input-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.review-resource-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.draw-panel {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(22, 16, 12, 0.94), rgba(9, 9, 11, 0.97)),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 10px);
}

.draw-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.draw-card {
  position: relative;
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 220px;
  padding: 18px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.draw-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.12), rgba(8, 8, 10, 0.62)),
    radial-gradient(circle at 50% 30%, rgba(255, 183, 3, 0.08), transparent 62%);
  pointer-events: none;
}

.draw-card svg {
  width: 46px;
  height: 46px;
}

.draw-card .resource-img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  background: #161616;
  mix-blend-mode: multiply;
  filter: brightness(0.92) contrast(1.06) saturate(0.9);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.draw-card span {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.draw-card.gold {
  color: #ffe08a;
  background: linear-gradient(145deg, rgba(255, 183, 3, 0.16), rgba(255, 255, 255, 0.04));
}

.draw-card.crystal {
  color: #bde0ff;
  background: linear-gradient(145deg, rgba(106, 169, 255, 0.16), rgba(255, 255, 255, 0.04));
}

.draw-card.guildToken {
  color: #ffd0a8;
  background: linear-gradient(145deg, rgba(232, 93, 4, 0.16), rgba(255, 255, 255, 0.04));
}

.draw-card.engraving {
  color: #d6c6ff;
  background: linear-gradient(145deg, rgba(160, 120, 255, 0.16), rgba(255, 255, 255, 0.04));
}

.draw-card.hit {
  transform: translateY(-4px);
  border: 1px solid var(--gold);
  box-shadow: 0 12px 32px rgba(255, 183, 3, 0.18);
}

.draw-card.hit .resource-img {
  opacity: 0.88;
  filter: brightness(1.12) contrast(1.14) saturate(1.16);
}

.draw-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 14px;
}

.draw-result.hit {
  color: var(--gold-soft);
  border-color: rgba(255, 183, 3, 0.32);
  background: rgba(255, 183, 3, 0.08);
}

.draw-result .resource-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.lottery-hero {
  background:
    linear-gradient(135deg, rgba(232, 93, 4, 0.2), rgba(255, 183, 3, 0.08)),
    rgba(22, 22, 24, 0.82);
}

.lottery-grid {
  display: grid;
  gap: 16px;
}

.disc-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.disc-option {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 16px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.disc-option:hover,
.disc-option.active {
  border-color: var(--gold);
  background: rgba(255, 183, 3, 0.1);
  transform: translateY(-2px);
}

.disc-preview {
  width: 118px;
  height: 118px;
  border: 7px solid #1a130d;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 183, 3, 0.35), 0 14px 30px rgba(0, 0, 0, 0.35);
}

.disc-name {
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.disc-meta {
  color: var(--muted);
  font-size: 12px;
}

.selected-disc-panel {
  margin-top: 18px;
}

.lottery-card {
  display: grid;
  gap: 14px;
}

.lottery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lottery-type {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(255, 183, 3, 0.12);
  font-size: 12px;
  font-weight: 800;
}

.lottery-type.wheel {
  color: #bde0ff;
  border-color: rgba(106, 169, 255, 0.34);
  background: rgba(106, 169, 255, 0.12);
}

.lottery-card h2 {
  margin: 0;
  font-size: 21px;
}

.lottery-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.lottery-meta,
.lottery-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 12px;
}

.lottery-participants {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(182, 95, 53, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 248, 239, 0.58);
}

.lottery-participants-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.lottery-participant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 116px;
  overflow-y: auto;
}

.lottery-participant-chip {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 3px 10px;
  border: 1px solid #e7bea7;
  border-radius: 999px;
  color: #71341f;
  background: #fff4ea;
  font-size: 12px;
  font-weight: 700;
}

.lottery-participants-empty {
  color: var(--muted);
  font-size: 12px;
}

.winner-list {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(255, 183, 3, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 183, 3, 0.05);
}

.winner-list-title {
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 800;
}

.winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-size: 13px;
}

.winner-item strong {
  color: var(--gold);
}

.prize-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prize-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
}

.prize-chip .wheel-prize-image,
.prize-chip .resource-img,
.prize-chip .wheel-prize-fallback,
.winner-item .wheel-prize-image,
.winner-item .resource-img,
.winner-item .wheel-prize-fallback {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.winner-item strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.lottery-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.lottery-code {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.lottery-code:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.12);
}

.admin-lottery-layout {
  display: grid;
  gap: 18px;
}

.lottery-admin-list {
  display: grid;
  gap: 12px;
}

.lottery-admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.winner-group-list {
  display: grid;
  gap: 12px;
}

.winner-group-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
  border: 1px solid rgba(255, 183, 3, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 183, 3, 0.05);
}

.winner-detail-modal {
  width: min(620px, 100%);
}

.lottery-admin-title {
  font-weight: 800;
}

.lottery-admin-sub {
  margin: 6px 0;
  color: var(--muted);
  font-size: 12px;
}

.lottery-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.participant-modal {
  width: min(940px, 100%);
}

.participant-table-section {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.participant-table-section h4 {
  margin: 0;
  color: var(--text);
}

.participant-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.surprise-config-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lottery-prize-editor {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid rgba(194, 139, 61, 0.3);
  border-radius: 12px;
  background: rgba(255, 250, 241, 0.58);
}

.lottery-prize-editor-head,
.lottery-prize-toolbar,
.lottery-prize-summary > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.lottery-prize-editor-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}

.lottery-prize-editor-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.lottery-prize-count-tools {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.lottery-prize-count-tools label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.lottery-prize-count-tools input {
  width: 78px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fffdf8;
}

.lottery-prize-rows {
  display: grid;
  gap: 9px;
}

.lottery-prize-row {
  display: grid;
  grid-template-columns: 34px 82px minmax(180px, 1.8fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) 38px;
  gap: 9px;
  align-items: end;
  padding: 11px;
  border: 1px solid rgba(215, 197, 170, 0.8);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
}

.lottery-prize-image-control {
  display: grid;
  gap: 3px;
}

.lottery-prize-image-field {
  display: grid;
  justify-items: center;
  gap: 3px;
  cursor: pointer;
}

.lottery-prize-image-preview {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px dashed #d4b58c;
  border-radius: 10px;
  color: #9f4829;
  background: #fffaf2;
}

.lottery-prize-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lottery-prize-image-preview svg {
  width: 20px;
  height: 20px;
}

.lottery-prize-image-text,
.lottery-prize-image-clear {
  color: var(--muted);
  font-size: 10px;
}

.lottery-prize-image-clear {
  display: none;
  border: 0;
  background: transparent;
}

.lottery-prize-row.has-image .lottery-prize-image-clear {
  display: block;
}

.lottery-prize-order {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 4px;
  border-radius: 50%;
  color: #fff8ef;
  background: #9f4829;
  font-size: 11px;
  font-weight: 900;
}

.lottery-prize-field {
  display: grid;
  gap: 5px;
}

.lottery-prize-field > span:first-child {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.lottery-prize-field input {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  color: var(--text);
  background: #fffdf8;
}

.lottery-prize-field input:focus,
.lottery-prize-count-tools input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(194, 139, 61, 0.13);
}

.lottery-prize-input-suffix {
  position: relative;
  display: block;
}

.lottery-prize-input-suffix input {
  padding-right: 30px;
}

.lottery-prize-input-suffix b {
  position: absolute;
  right: 11px;
  top: 50%;
  color: var(--muted);
  font-size: 12px;
  transform: translateY(-50%);
}

.lottery-prize-remove {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(183, 67, 59, 0.25);
  border-radius: 8px;
  color: var(--red);
  background: rgba(183, 67, 59, 0.07);
}

.lottery-prize-remove:hover {
  color: #fff;
  background: var(--red);
}

.lottery-prize-remove svg {
  width: 16px;
  height: 16px;
}

.lottery-prize-summary {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid #e1b7a9;
  border-radius: 9px;
  color: #8f362e;
  background: #fff5f1;
}

.lottery-prize-summary.complete {
  border-color: #a9cfba;
  color: #24634a;
  background: #f0faf4;
}

.lottery-prize-summary.invalid {
  border-color: #e1a09b;
  color: #9b2c2c;
  background: #fff0f0;
}

.lottery-prize-summary span,
.lottery-prize-summary small {
  font-size: 11px;
}

.lottery-prize-probability-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(125, 105, 89, 0.14);
}

.lottery-prize-probability-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #c05b44;
  transition: width 0.2s ease, background 0.2s ease;
}

.lottery-prize-summary.complete .lottery-prize-probability-track span {
  background: #3f8b68;
}

@media (max-width: 760px) {
  .surprise-config-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lottery-prize-row {
    grid-template-columns: 34px 82px minmax(0, 1fr) minmax(0, 1fr) 38px;
    align-items: end;
  }

  .lottery-prize-order {
    grid-column: 1;
    grid-row: 1;
  }

  .lottery-prize-image-control {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .lottery-prize-name-field {
    grid-column: 3 / 5;
    grid-row: 1;
  }

  .lottery-prize-row > .lottery-prize-field:nth-of-type(2) {
    grid-column: 3;
    grid-row: 2;
  }

  .lottery-prize-row > .lottery-prize-field:nth-of-type(3) {
    grid-column: 4;
    grid-row: 2;
  }

  .lottery-prize-remove {
    grid-column: 5;
    grid-row: 1;
  }
}

@media (max-width: 520px) {
  .surprise-config-row {
    grid-template-columns: 1fr;
  }

  .lottery-prize-row {
    grid-template-columns: 34px 72px minmax(0, 1fr) 38px;
  }

  .lottery-prize-name-field {
    grid-column: 3 / 4;
    grid-row: 1;
  }

  .lottery-prize-field:not(.lottery-prize-name-field) {
    grid-column: 2 / 4;
  }

  .lottery-prize-row > .lottery-prize-field:nth-of-type(2) {
    grid-row: 2;
  }

  .lottery-prize-row > .lottery-prize-field:nth-of-type(3) {
    grid-row: 3;
  }

  .lottery-prize-remove {
    grid-column: 4;
    grid-row: 1;
  }
}

.segment-control.lottery-tabs {
  grid-template-columns: repeat(3, 1fr);
}

.segment-control.tabs-count-1 {
  grid-template-columns: 1fr;
}

.segment-control.tabs-count-2 {
  grid-template-columns: repeat(2, 1fr);
}

.segment-control.tabs-count-4 {
  grid-template-columns: repeat(4, 1fr);
}

.segment-control.tabs-count-5 {
  grid-template-columns: repeat(5, 1fr);
}

.segment-control.tabs-count-6 {
  grid-template-columns: repeat(6, 1fr);
}

.segment-control.tabs-count-7 {
  grid-template-columns: repeat(7, 1fr);
}

.segment-control.tabs-count-8 {
  grid-template-columns: repeat(8, 1fr);
}

.wheel-modal {
  width: min(520px, 100%);
}

.wheel-stage {
  position: relative;
  width: min(360px, 76vw);
  aspect-ratio: 1;
  margin: 0 auto;
}

.wheel-disc {
  position: absolute;
  inset: 18px;
  border: 8px solid #1a130d;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 183, 3, 0.55), 0 22px 45px rgba(0, 0, 0, 0.55);
  will-change: transform;
}

.wheel-disc::after {
  content: "";
  position: absolute;
  inset: 43%;
  z-index: 1;
  border: 2px solid rgba(255, 183, 3, 0.55);
  border-radius: 50%;
  background: #1a1719;
}

.wheel-style-crystal .wheel-disc {
  border-color: #10243f;
  box-shadow: 0 0 0 2px rgba(106, 169, 255, 0.6), 0 22px 45px rgba(0, 0, 0, 0.55);
}

.wheel-style-crystal .wheel-disc::after {
  border-color: rgba(106, 169, 255, 0.6);
}

.wheel-style-crystal .wheel-pointer {
  border-top-color: #6aa9ff;
}

.wheel-style-crystal .wheel-center {
  border-color: rgba(106, 169, 255, 0.7);
  color: #bde0ff;
}

.wheel-style-ember .wheel-disc {
  border-color: #431014;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.6), 0 22px 45px rgba(0, 0, 0, 0.55);
}

.wheel-style-ember .wheel-disc::after {
  border-color: rgba(239, 68, 68, 0.6);
}

.wheel-style-ember .wheel-pointer {
  border-top-color: #ef4444;
}

.wheel-style-ember .wheel-center {
  border-color: rgba(239, 68, 68, 0.7);
  color: #ffd0d0;
}

.wheel-style-guild .wheel-disc {
  border-color: #2d1840;
  box-shadow: 0 0 0 2px rgba(160, 120, 255, 0.6), 0 22px 45px rgba(0, 0, 0, 0.55);
}

.wheel-style-guild .wheel-disc::after {
  border-color: rgba(160, 120, 255, 0.6);
}

.wheel-style-guild .wheel-pointer {
  border-top-color: #a078ff;
}

.wheel-style-guild .wheel-center {
  border-color: rgba(160, 120, 255, 0.7);
  color: #d6c6ff;
}

.wheel-label {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 92px;
  min-height: 48px;
  margin: -24px 0 0 -46px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.wheel-label-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
}

.wheel-label-icon .resource-img,
.wheel-label-icon .wheel-prize-image,
.wheel-label-icon svg {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.32));
}

.wheel-prize-fallback {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
}

.wheel-prize-image {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

.wheel-label-name {
  display: block;
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wheel-pointer {
  position: absolute;
  left: 50%;
  top: -4px;
  z-index: 4;
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 34px solid var(--gold);
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.wheel-center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border: 4px solid rgba(255, 183, 3, 0.7);
  border-radius: 50%;
  color: var(--gold-soft);
  background: #1a1719;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.wheel-spin-button {
  width: 100%;
  margin-top: 18px;
}

.wheel-modal .draw-result {
  margin-top: 12px;
}

.mail-modal {
  width: min(560px, 100%);
}

.mail-list {
  display: grid;
  gap: 10px;
  max-height: 62vh;
  overflow: auto;
}

.mail-item {
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.mail-item:hover {
  border-color: var(--line-strong);
  background: rgba(255, 183, 3, 0.06);
}

.mail-item.unread {
  border-color: rgba(255, 183, 3, 0.32);
  background: rgba(255, 183, 3, 0.08);
}

.mail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mail-head span {
  color: var(--muted);
  font-size: 12px;
}

.mail-item p {
  margin: 0;
  color: rgba(246, 239, 227, 0.82);
  font-size: 13px;
  line-height: 1.6;
}

.mail-time {
  color: var(--muted);
  font-size: 12px;
}

.shop-modal {
  width: min(680px, 100%);
}

.shop-purchases-modal {
  width: min(680px, 100%);
}

.shop-purchases-modal .purchase-records {
  max-height: 62vh;
  overflow: auto;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.surprise-grid {
  max-height: 62vh;
  overflow: auto;
  padding: 4px;
}

.shop-modal .surprise-grid {
  max-height: none;
  overflow: visible;
}

.shop-modal .surprise-card {
  aspect-ratio: auto;
  min-height: 0;
  padding: 12px;
  gap: 6px;
}

.shop-modal .surprise-card.revealed {
  display: flex;
  flex-direction: column;
}

.shop-modal .surprise-card.revealed .solid-button {
  margin-top: auto;
}

.shop-modal .guide-card-image {
  height: 76px;
}

.shop-modal .surprise-card h2 {
  font-size: 13px;
}

.shop-modal .surprise-card .solid-button {
  min-height: 32px;
  margin-top: 6px;
  font-size: 12px;
}

.guide-card {
  aspect-ratio: 1 / 1;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(255, 183, 3, 0.08);
}

.guide-index {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.guide-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-card-image {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  background: #161616;
}

.surprise-card {
  align-content: start;
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #1a140b;
  background: linear-gradient(135deg, var(--gold), #f49a06);
  font-size: 12px;
  font-weight: 900;
}

.surprise-card.covered {
  justify-items: center;
  align-content: center;
  gap: 10px;
}

.surprise-covered-icon svg {
  width: 42px;
  height: 42px;
  color: var(--gold);
}

.surprise-covered-text {
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 800;
}

.surprise-card.covered .solid-button {
  width: 100%;
  margin-top: 4px;
}

.surprise-card h2 {
  font-size: 15px;
}

.surprise-card-price {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.surprise-card .solid-button {
  width: 100%;
  margin-top: auto;
}

.guide-modal {
  width: min(680px, 100%);
}

.guide-modal-image {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: #161616;
}

.guide-content {
  color: rgba(246, 239, 227, 0.88);
  font-size: 14px;
  line-height: 1.75;
  white-space: normal;
  max-height: 62vh;
  overflow: auto;
}

.guide-admin-list {
  display: grid;
  gap: 12px;
}

.guide-admin-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.guide-admin-image {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 6px;
  background: #161616;
}

.guide-admin-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.shop-balance {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--gold-soft);
  background: rgba(255, 183, 3, 0.07);
  font-size: 14px;
  font-weight: 800;
}

.shop-list {
  display: grid;
  gap: 12px;
  max-height: 64vh;
  overflow: auto;
}

.shop-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.shop-item-image {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 6px;
  background: #161616;
}

.shop-item-info {
  min-width: 0;
}

.shop-item-name {
  font-weight: 800;
}

.shop-item-info p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.shop-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 12px;
}

.maple-price {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #d9f4b6;
}

.original-price {
  color: var(--muted);
  text-decoration: line-through;
}

.surprise-button svg {
  width: 15px;
  height: 15px;
}

.admin-shop-layout {
  display: grid;
  gap: 18px;
}

.shop-admin-list {
  display: grid;
  gap: 12px;
}

.shop-admin-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.shop-admin-item img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 6px;
  background: #161616;
}

.shop-admin-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.shop-item-actions {
  display: grid;
  gap: 8px;
}

.new-purchase {
  color: var(--gold-soft) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 14px rgba(255, 183, 3, 0.22);
}

.purchase-records {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 183, 3, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 183, 3, 0.05);
}

.purchase-records-title {
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 800;
}

.purchase-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
  font-size: 12px;
}

.purchase-record.pending {
  padding: 9px;
  border: 1px solid rgba(255, 183, 3, 0.38);
  border-radius: 6px;
  background: rgba(255, 183, 3, 0.08);
  animation: purchase-pulse 1.6s ease-in-out infinite;
}

@keyframes purchase-pulse {
  50% {
    box-shadow: 0 0 16px rgba(255, 183, 3, 0.22);
  }
}

.purchase-status {
  margin-top: 4px;
}

.purchase-note {
  margin-top: 6px;
  color: var(--gold-soft);
  font-size: 12px;
  line-height: 1.5;
}

.purchase-actions {
  display: flex;
  gap: 8px;
}

.purchase-actions .solid-button,
.purchase-actions .danger-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.purchase-review-time {
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 26px;
  color: var(--muted);
  text-align: center;
}

.empty-state svg {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  opacity: 0.7;
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h) - 80px);
}

.auth-card {
  width: min(460px, 100%);
  padding: 26px;
}

.auth-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.auth-title svg {
  width: 30px;
  height: 30px;
  color: var(--gold);
}

.auth-title h1 {
  margin: 0;
  font-size: 24px;
}

.tab-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.tab-bar button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
}

.tab-bar button.active {
  color: var(--text);
  background: rgba(232, 93, 4, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 183, 3, 0.25);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.shop-kind-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.shop-kind-option {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(215, 197, 170, 0.82);
  border-radius: 11px;
  color: var(--text);
  background: rgba(255, 253, 248, 0.72);
  text-align: left;
}

.shop-kind-option:hover,
.shop-kind-option.active {
  border-color: rgba(159, 72, 41, 0.58);
  background: #fff8ee;
  box-shadow: 0 8px 20px rgba(100, 57, 27, 0.09);
}

.shop-kind-option.surprise.active {
  border-color: rgba(194, 139, 61, 0.72);
  background: linear-gradient(135deg, #fff8e8, #fffdf8);
}

.shop-kind-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: #fff8ef;
  background: #87513a;
}

.shop-kind-option.surprise .shop-kind-icon {
  background: linear-gradient(135deg, #c28b3d, #9f4829);
}

.shop-kind-icon svg {
  width: 20px;
  height: 20px;
}

.shop-kind-option span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.shop-kind-option strong {
  font-size: 14px;
}

.shop-kind-option small {
  color: var(--muted);
  font-size: 11px;
}

.shop-kind-option b {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(125, 105, 89, 0.08);
  font-size: 10px;
}

.shop-kind-option.active b {
  color: #fff;
  background: #9f4829;
}

.shop-kind-hint {
  display: grid;
  gap: 4px;
  padding: 11px 13px;
  border: 1px solid #d9c9b6;
  border-radius: 9px;
  color: #5d4a3b;
  background: #fffdf8;
}

.shop-kind-hint.surprise {
  border-color: #dfbd7e;
  color: #70451d;
  background: #fff7e6;
}

.shop-kind-hint strong {
  font-size: 13px;
}

.shop-kind-hint span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.shop-create-form.surprise-mode .upload-zone {
  border-color: rgba(194, 139, 61, 0.58);
  background: rgba(255, 183, 3, 0.045);
}

.shop-surprise-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 13px;
  border: 1px solid #dfbd7e;
  border-radius: 10px;
  background: #fff8e8;
}

.shop-surprise-fields.is-hidden {
  display: none;
}

.shop-discount-input {
  position: relative;
}

.shop-discount-input input {
  padding-right: 42px;
}

.shop-discount-input span {
  position: absolute;
  right: 13px;
  top: 50%;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 900;
  transform: translateY(-50%);
}

.shop-surprise-fields-note {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 620px) {
  .shop-kind-selector {
    grid-template-columns: 1fr;
  }

  .shop-surprise-fields {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
}

.field input,
.field textarea,
.field select,
.search-input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field textarea {
  min-height: 92px;
  padding-top: 12px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.12);
}

.field input::placeholder,
.field textarea::placeholder,
.search-input::placeholder {
  color: rgba(184, 170, 160, 0.62);
}

.check-line {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  font-size: 13px;
}

.check-line input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.form-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.profile-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 18px;
}

.profile-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: #1d1609;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  font-size: 25px;
  font-weight: 800;
}

.profile-name {
  font-size: 22px;
  font-weight: 800;
}

.profile-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.checkin-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(255, 183, 3, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.checkin-button:hover {
  background: rgba(255, 183, 3, 0.2);
}

.checkin-button:disabled {
  cursor: default;
  opacity: 0.65;
  background: rgba(255, 255, 255, 0.05);
}

.profile-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.total-contribution {
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.2), rgba(255, 183, 3, 0.1));
}

.total-contribution span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.total-contribution strong {
  display: block;
  margin-top: 8px;
  color: var(--gold-soft);
  font-size: 38px;
  line-height: 1;
}

.submit-card {
  padding: 22px;
}

.upload-zone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 16px;
  border: 1px dashed rgba(255, 183, 3, 0.4);
  border-radius: var(--radius);
  background: rgba(255, 183, 3, 0.035);
  overflow: hidden;
}

.upload-zone.has-image {
  border-style: solid;
  background: transparent;
}

.upload-zone img {
  max-width: 100%;
  max-height: 230px;
  object-fit: contain;
  border-radius: 6px;
}

.upload-zone input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-clear {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--text);
  background: rgba(20, 20, 22, 0.85);
  font-size: 18px;
  line-height: 1;
}

.upload-clear:hover {
  border-color: var(--red);
  color: #ffd0d0;
  background: rgba(239, 68, 68, 0.2);
}

.upload-placeholder {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.upload-placeholder svg {
  width: 40px;
  height: 40px;
  color: var(--gold);
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.history-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  cursor: zoom-in;
}

.history-copy {
  min-width: 0;
}

.history-title {
  font-weight: 700;
  line-height: 1.4;
}

.history-sub {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.history-note {
  margin-top: 6px;
  color: #ffc1c1;
  font-size: 12px;
}

.history-amount {
  font-weight: 800;
  text-align: right;
}

.admin-grid {
  display: grid;
  gap: 18px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.segment-control {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.segment-control button {
  min-height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
}

.segment-control button.active {
  color: var(--text);
  background: rgba(232, 93, 4, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 183, 3, 0.25);
}

.pending-list {
  display: grid;
  gap: 14px;
}

.pending-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 230px;
  gap: 16px;
  padding: 16px;
}

.pending-shot {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  background: #0d0d0e;
}

.pending-info {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.pending-title {
  font-size: 16px;
  font-weight: 800;
}

.pending-sub {
  color: var(--muted);
  font-size: 12px;
}

.pending-remark {
  color: rgba(246, 239, 227, 0.82);
  font-size: 13px;
  line-height: 1.55;
}

.review-box {
  display: grid;
  align-content: start;
  gap: 10px;
}

.review-box .field {
  gap: 5px;
}

.review-box input,
.review-box textarea {
  min-height: 38px;
}

.review-box textarea {
  min-height: 70px;
}

.review-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.member-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.guild-branch-action {
  border-color: rgba(159, 72, 41, 0.28);
  color: #7b351f;
  background: #fff7ed;
}

.admin-role-action {
  border-color: rgba(159, 112, 36, 0.34);
  color: #75501a;
  background: #fff8df;
}

.maple-plush-action {
  border-color: rgba(184, 102, 126, 0.34);
  color: #7d3a50;
  background: #fff1f5;
}

.maple-grant-action,
.member-maple-points {
  color: #8a321f !important;
  font-weight: 800;
}

.maple-grant-action {
  border-color: rgba(176, 83, 47, 0.34);
  background: #fff1e5;
}

.member-maple-points {
  white-space: nowrap;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
}

.toast-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100% - 40px));
}

.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(23, 22, 24, 0.95);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  animation: toast-in 0.22s ease;
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.45);
}

.toast.success {
  border-color: rgba(72, 199, 142, 0.45);
}

.toast button {
  border: 0;
  color: var(--muted);
  background: transparent;
}

@keyframes toast-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(5, 5, 6, 0.76);
  backdrop-filter: blur(8px);
}

.modal-card {
  width: min(520px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(22, 22, 24, 0.97);
  box-shadow: var(--shadow);
}

.modal-card.image-modal {
  display: grid;
  place-items: center;
  padding: 10px;
  background: #0c0c0d;
}

.modal-card.image-modal img {
  max-width: 100%;
  max-height: calc(100vh - 64px);
  border-radius: 6px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-head h3 {
  margin: 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.loading {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: var(--muted);
}

.loading::before {
  content: "";
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border: 3px solid rgba(255, 183, 3, 0.18);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(72, 199, 142, 0.65);
  vertical-align: 1px;
}

.inline-icon {
  width: 17px;
  height: 17px;
  vertical-align: -3px;
}

.input-with-prefix {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.input-with-prefix:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.12);
}

.input-with-prefix span {
  padding: 0 12px;
  color: var(--gold);
  font-weight: 800;
}

.input-with-prefix input {
  min-width: 0;
  min-height: 42px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  outline: none;
  color: var(--text);
  background: transparent;
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px 16px;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: stretch;
    overflow-x: auto;
  }

  .main-nav a {
    flex: 1;
    justify-content: center;
  }

  .view-root {
    width: min(100% - 24px, 900px);
    padding-top: 20px;
  }

  .stats-grid,
  .content-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .pending-item {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .lottery-admin-item {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .pending-shot {
    width: 130px;
    height: 92px;
  }

  .review-box {
    grid-column: 1 / -1;
  }

  .review-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .brand-text small {
    display: none;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head h1 {
    font-size: 24px;
  }

  .stat-card {
    min-height: 84px;
    padding: 14px;
  }

  .stat-value {
    font-size: 23px;
  }

  .pending-item {
    grid-template-columns: 1fr;
  }

  .pending-shot {
    width: 100%;
    height: 170px;
  }

  .history-item {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .history-thumb {
    width: 54px;
    height: 44px;
  }

  .history-amount {
    grid-column: 2;
    text-align: left;
  }

  .lottery-entry {
    grid-template-columns: 1fr;
  }

  .disc-selector {
    grid-template-columns: 1fr;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    aspect-ratio: auto;
    min-height: 150px;
  }

  .guide-admin-item {
    grid-template-columns: 1fr;
  }

  .guide-admin-image {
    width: 100%;
    height: 160px;
  }

  .shop-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .shop-item .solid-button {
    grid-column: 1 / -1;
  }

  .shop-admin-item {
    grid-template-columns: 1fr;
  }

  .shop-admin-item img {
    width: 100%;
    height: 170px;
  }

  .winner-group-card {
    flex-direction: column;
    align-items: stretch;
  }

  .winner-group-card .solid-button {
    width: 100%;
  }

  .lottery-actions {
    justify-content: stretch;
  }

  .lottery-actions .quiet-button,
  .lottery-actions .solid-button,
  .lottery-actions .danger-button {
    flex: 1;
  }

  .search-row,
  .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .segment-control {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .data-table th,
  .data-table td {
    padding: 11px 10px;
  }
}

@media (max-width: 700px) {
  .resource-input-grid,
  .review-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .draw-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .resource-input-grid,
  .review-resource-grid {
    grid-template-columns: 1fr;
  }

  .draw-strip {
    grid-template-columns: 1fr;
  }
}

/* White executive theme overrides */
:root {
  --bg: #f6f7f9;
  --bg-deep: #eef1f5;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --line: #e6eaf0;
  --line-strong: #d5dbe5;
  --orange: #b86b1d;
  --orange-deep: #8f5115;
  --gold: #c9932d;
  --gold-soft: #7a5a22;
  --text: #151922;
  --muted: #657080;
  --green: #16835d;
  --red: #c43a3a;
  --blue: #2e6edb;
  --radius: 8px;
  --shadow: 0 16px 36px rgba(20, 29, 43, 0.08);
  --soft-shadow: 0 8px 22px rgba(20, 29, 43, 0.06);
}

html {
  background: #f6f7f9;
}

body {
  color: var(--text);
  background:
    linear-gradient(180deg, #ffffff 0, #f7f8fb 320px, #f2f4f7 100%);
  font-family: Inter, "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

.grain,
.leaf-layer {
  display: none;
}

.topbar {
  min-height: 66px;
  padding: 10px 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(20, 29, 43, 0.03);
  backdrop-filter: blur(16px) saturate(130%);
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border-color: #e0d0ad;
  background: #fffaf0;
  box-shadow: none;
}

.brand-mark svg {
  width: 30px;
  height: 30px;
}

.brand-text strong {
  color: #151922;
  font-size: 17px;
  font-weight: 750;
}

.brand-text small,
.profile-meta,
.member-sub,
.history-sub,
.lottery-admin-sub,
.lottery-desc,
.guide-card p,
.shop-item-info p,
.shop-admin-item p,
.form-note,
.section-head p {
  color: var(--muted);
}

.main-nav {
  gap: 2px;
  padding: 3px;
  border-color: #e8ebf0;
  background: #f4f6f8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.main-nav a {
  min-height: 34px;
  padding: 0 14px;
  color: #667080;
  font-weight: 650;
}

.main-nav a:hover,
.main-nav a.active {
  color: #121722;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(20, 29, 43, 0.08);
}

.view-root {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 54px;
}

.page-band,
.content-grid,
.profile-grid,
.admin-grid,
.auth-shell {
  position: relative;
  z-index: 1;
}

.glass-panel,
.stat-card,
.profile-card,
.auth-card,
.lottery-card,
.lottery-admin-item,
.winner-group-card,
.guide-card,
.guide-admin-item,
.shop-item,
.shop-admin-item,
.mail-item,
.purchase-record,
.modal-card {
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  backdrop-filter: none;
}

.glass-panel {
  border-radius: var(--radius);
}

.panel-pad,
.auth-card,
.profile-card,
.submit-card {
  padding: 22px;
}

.section-head {
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h1,
.section-head h2,
.auth-title h1,
.profile-name,
.lottery-card h2,
.guide-card h2,
.lottery-admin-title,
.shop-item-name,
.member-name {
  color: #151922;
  font-weight: 760;
}

.section-head h1 {
  font-size: 28px;
}

.section-head h2 {
  font-size: 18px;
}

.live-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 131, 93, 0.1);
}

.ghost-button,
.solid-button,
.danger-button,
.quiet-button,
.icon-button,
.checkin-button {
  border-radius: 8px;
  box-shadow: none;
}

.ghost-button,
.quiet-button,
.icon-button,
.checkin-button {
  border-color: var(--line-strong);
  color: #283243;
  background: #ffffff;
}

.ghost-button:hover,
.quiet-button:hover,
.icon-button:hover,
.checkin-button:hover {
  border-color: #c8d0dc;
  color: #111827;
  background: #f7f9fc;
  transform: none;
}

.solid-button {
  border-color: #151922;
  color: #ffffff;
  background: #151922;
  font-weight: 750;
}

.solid-button:hover {
  border-color: #2a3342;
  background: #2a3342;
  transform: none;
}

.danger-button {
  border-color: #f1c9c9;
  color: #a22727;
  background: #fff4f4;
}

.danger-button:hover {
  border-color: #e9abab;
  background: #ffe9e9;
  transform: none;
}

.solid-button:disabled,
.ghost-button:disabled,
.danger-button:disabled,
.quiet-button:disabled,
.checkin-button:disabled {
  color: #9aa3af;
  border-color: #e5e7eb;
  background: #f3f4f6;
}

.mail-badge {
  border-color: #ffffff;
  background: var(--red);
}

.stat-card {
  min-height: 88px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fafbfc);
}

.stat-icon,
.profile-avatar,
.avatar {
  color: #151922;
  background: #f1f4f8;
  border: 1px solid #e4e9f0;
  box-shadow: none;
}

.stat-value,
.total-contribution strong {
  color: #111827;
}

.stat-label,
.total-contribution span {
  color: #6b7280;
}

.data-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.data-table {
  color: #1f2937;
}

.data-table thead th {
  color: #667080;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.data-table tbody tr {
  background: #ffffff;
}

.data-table tbody tr:hover {
  background: #fbfcfe;
}

.data-table td {
  border-bottom-color: #edf0f4;
}

.rank-badge {
  color: #354052;
  border-color: #dbe1ea;
  background: #f6f8fb;
}

.rank-badge.rank-1,
.rank-badge.rank-2,
.rank-badge.rank-3 {
  color: #151922;
  border-color: #e4c37f;
  background: #fff8e8;
}

.role-badge,
.status-chip,
.lottery-type,
.prize-chip,
.guide-index,
.discount-badge {
  border: 1px solid #e2e8f0;
  color: #4b5563;
  background: #f8fafc;
  font-weight: 700;
}

.role-badge.president,
.role-badge.admin,
.status-approved {
  border-color: #bfe7d6;
  color: #146c4b;
  background: #eefaf5;
}

.status-pending {
  border-color: #ead39a;
  color: #805d16;
  background: #fff8e8;
}

.status-rejected {
  border-color: #f1c7c7;
  color: #a22727;
  background: #fff1f1;
}

.week-dot {
  border-color: #cfd6e1;
  background: #edf1f5;
}

.week-dot.active {
  background: #151922;
}

.amount-positive {
  color: #12704e;
}

.amount-negative {
  color: #b42323;
}

.resource-chip,
.resource-mini .resource-chip {
  border-color: #e4e8ef;
  color: #374151;
  background: #f8fafc;
}

.resource-chip.gold,
.resource-mini .resource-chip.gold {
  border-color: #ead39a;
  background: #fff8e8;
}

.resource-chip.crystal,
.resource-mini .resource-chip.crystal {
  border-color: #c8daf7;
  background: #f0f6ff;
}

.resource-chip.guildToken,
.resource-mini .resource-chip.guildToken {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.resource-chip.engraving,
.resource-mini .resource-chip.engraving {
  border-color: #dfd6ca;
  background: #fbf8f3;
}

.resource-chip.maple {
  border-color: #cfe8d6;
  background: #f0faf3;
}

input,
textarea,
select,
.lottery-code {
  border: 1px solid #d9e0ea;
  color: #151922;
  background: #ffffff;
  box-shadow: none;
}

input:focus,
textarea:focus,
select:focus,
.lottery-code:focus {
  border-color: #151922;
  outline: 3px solid rgba(21, 25, 34, 0.08);
}

.input-with-prefix {
  border-color: #d9e0ea;
  background: #ffffff;
}

.input-with-prefix span {
  color: #6b7280;
  background: #f8fafc;
}

.field label {
  color: #374151;
  font-weight: 700;
}

.upload-zone {
  border-color: #d9e0ea;
  background: #f9fbfd;
}

.upload-zone:hover {
  border-color: #b9c2cf;
  background: #f5f8fb;
}

.upload-placeholder {
  color: #6b7280;
}

.upload-clear {
  color: #ffffff;
  background: rgba(17, 24, 39, 0.78);
}

.profile-card {
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
}

.profile-top {
  align-items: center;
}

.profile-heading {
  gap: 8px;
}

.total-contribution {
  border: 1px solid #e7ebf1;
  border-radius: 8px;
  background: #f8fafc;
}

.history-item,
.pending-item {
  border: 1px solid #e7ebf1;
  background: #ffffff;
  box-shadow: none;
}

.history-item:hover,
.pending-item:hover {
  background: #fbfcfe;
}

.history-thumb,
.pending-shot,
.guide-card-image,
.guide-modal-image,
.guide-admin-image,
.shop-item-image,
.shop-admin-item img,
.draw-card .resource-img {
  border: 1px solid #e7ebf1;
  background: #f3f5f8;
}

.history-note,
.purchase-note {
  border-color: #f0d3d3;
  color: #9b2c2c;
  background: #fff6f6;
}

.tab-bar,
.segment-control,
.segment-control.lottery-tabs {
  border: 1px solid #e5e9ef;
  background: #f5f7fa;
}

.tab-bar button,
.segment-control button {
  color: #667080;
  background: transparent;
}

.tab-bar button.active,
.segment-control button.active {
  color: #151922;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(20, 29, 43, 0.08);
}

.auth-shell {
  min-height: calc(100vh - 132px);
}

.auth-card {
  max-width: 430px;
  border-color: #e3e8ef;
}

.auth-title svg {
  color: #151922;
}

.lottery-hero {
  background: #ffffff;
}

.lottery-grid,
.guide-grid {
  gap: 16px;
}

.lottery-card,
.guide-card,
.surprise-card {
  border-radius: 8px;
  overflow: hidden;
}

.lottery-card:hover,
.guide-card:hover,
.surprise-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.lottery-head,
.lottery-meta,
.lottery-stats,
.shop-item-meta {
  color: #657080;
}

.lottery-entry {
  border-color: #e5e9ef;
  background: #f8fafc;
}

.draw-card {
  border: 1px solid #e3e8ef;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.draw-card::after {
  display: none;
}

.draw-card.gold,
.draw-card.crystal,
.draw-card.guildToken,
.draw-card.engraving {
  background: #ffffff;
}

.draw-card.hit {
  border-color: #151922;
  box-shadow: 0 12px 30px rgba(20, 29, 43, 0.12);
}

.draw-result {
  color: #151922;
}

.wheel-modal,
.mail-modal,
.shop-modal,
.guide-modal,
.winner-detail-modal {
  color: #151922;
}

.wheel-stage {
  background: #f8fafc;
}

.wheel-disc {
  border-color: #d8dee8;
  box-shadow: 0 16px 40px rgba(20, 29, 43, 0.12);
}

.wheel-center,
.wheel-pointer {
  background: #151922;
}

.wheel-label {
  color: #151922;
  background: rgba(255, 255, 255, 0.82);
}

.mail-item {
  border-radius: 8px;
  box-shadow: none;
}

.mail-item.unread {
  border-color: #c9d7f2;
  background: #f6f9ff;
}

/* Mail readability on the warm light theme. */
.mail-modal .modal-head h3 {
  color: #281811;
  font-weight: 900;
}

.mail-item .mail-head strong {
  color: #2e1b13;
  font-size: 14px;
  font-weight: 900;
}

.mail-item .mail-head span {
  padding: 3px 7px;
  border-radius: 999px;
  color: #69483a;
  background: #f2e4d6;
  font-weight: 800;
}

.mail-item p,
.mail-item.read p,
.mail-item.unread p {
  color: #493228;
  opacity: 1;
  font-weight: 600;
}

.mail-item .mail-time {
  color: #735748;
  opacity: 1;
  font-weight: 700;
}

.mail-item.unread .mail-head strong {
  color: #7d2f22;
}

.mail-item.unread .mail-head span {
  color: #7d2f22;
  background: #f9ddd3;
}

.mail-modal .empty-state {
  color: #5e463a;
  font-weight: 700;
}

.shop-balance {
  border: 1px solid #dfe5ed;
  color: #374151;
  background: #f8fafc;
}

.shop-item,
.shop-admin-item,
.guide-admin-item,
.lottery-admin-item {
  box-shadow: none;
}

.shop-item:hover,
.shop-admin-item:hover,
.guide-admin-item:hover,
.lottery-admin-item:hover {
  border-color: #cfd6e1;
  background: #fbfcfe;
}

.surprise-card.covered {
  color: #151922;
  border-color: #e3e8ef;
  background:
    linear-gradient(135deg, rgba(21, 25, 34, 0.04), transparent 42%),
    #ffffff;
}

.surprise-card.covered::before {
  background: rgba(21, 25, 34, 0.05);
}

.surprise-covered-icon {
  color: #151922;
  background: #f3f5f8;
}

.admin-toolbar {
  border-bottom: 0;
}

.admin-grid .stat-card {
  min-height: 76px;
}

.search-row {
  gap: 10px;
}

.empty-state {
  color: #7b8492;
  border: 1px dashed #d8dee8;
  background: #fafbfc;
}

.modal-backdrop {
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(8px);
}

.modal-card {
  color: #151922;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.modal-head {
  border-bottom: 1px solid #edf0f4;
}

.modal-head h3 {
  color: #151922;
}

.toast {
  border: 1px solid #d7e9df;
  color: #145c3e;
  background: #f0faf4;
  box-shadow: 0 14px 34px rgba(20, 29, 43, 0.12);
}

.toast.error {
  border-color: #f0cccc;
  color: #9b2c2c;
  background: #fff4f4;
}

.toast button {
  color: currentColor;
}

code {
  color: #111827;
  background: #f1f4f8;
}

@media (max-width: 900px) {
  .topbar {
    padding: 10px 16px;
    background: #ffffff;
  }

  .view-root {
    padding: 18px 14px 42px;
  }

  .main-nav {
    border-radius: 8px;
  }

  .main-nav a {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .panel-pad,
  .auth-card,
  .profile-card,
  .submit-card {
    padding: 16px;
  }

  .section-head h1 {
    font-size: 23px;
  }

  .section-head {
    align-items: stretch;
  }

  .ghost-button,
  .solid-button,
  .danger-button,
  .quiet-button {
    min-height: 38px;
    padding-inline: 12px;
  }
}

/* Refined maple theme: warm white, ink, copper accents */
:root {
  --bg: #f6eadb;
  --bg-deep: #ead7c0;
  --panel: rgba(255, 249, 240, 0.92);
  --panel-strong: #fff8ef;
  --line: #e2c9aa;
  --line-strong: #cfaa7d;
  --orange: #c8522d;
  --orange-deep: #83351f;
  --gold: #c28b3d;
  --gold-soft: #7d5727;
  --text: #2b211b;
  --muted: #7d6959;
  --green: #2f765d;
  --red: #b7433b;
  --blue: #315f9d;
  --shadow: 0 22px 55px rgba(100, 57, 27, 0.16);
  --soft-shadow: 0 10px 30px rgba(100, 57, 27, 0.1);
  --maple-shape: polygon(50% 0%, 58% 24%, 69% 13%, 66% 34%, 89% 25%, 77% 47%, 100% 43%, 80% 59%, 89% 78%, 61% 69%, 54% 78%, 53% 100%, 47% 100%, 48% 78%, 39% 69%, 11% 78%, 20% 59%, 0% 43%, 23% 47%, 11% 25%, 34% 34%, 31% 13%, 42% 24%);
  --maple-mask: url("/assets/brand/maple-leaf-shape.svg");
}

html {
  background: #f6eadb;
}

body {
  background:
    radial-gradient(circle at 8% 0%, rgba(207, 91, 45, 0.15), transparent 32%),
    radial-gradient(circle at 92% 14%, rgba(205, 143, 63, 0.17), transparent 30%),
    linear-gradient(180deg, #fff8ef 0, #faeddd 360px, #f0dfca 100%);
}

body::before {
  content: "";
  position: fixed;
  right: clamp(18px, 5vw, 72px);
  top: 92px;
  width: clamp(180px, 24vw, 340px);
  aspect-ratio: 0.92;
  pointer-events: none;
  opacity: 0.08;
  z-index: 0;
  background: linear-gradient(145deg, #dc6941, #a73a24);
  clip-path: none;
  -webkit-mask: var(--maple-mask) center / contain no-repeat;
  mask: var(--maple-mask) center / contain no-repeat;
  transform: rotate(-12deg);
}

body::after {
  content: "";
  position: fixed;
  left: -120px;
  bottom: -140px;
  width: 420px;
  height: 420px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 88, 36, 0.11), transparent 68%);
  z-index: 0;
}

.leaf-layer {
  display: block;
  opacity: 0.34;
}

.falling-leaf {
  background: color-mix(in srgb, var(--leaf-color) 70%, #8f3d1d);
  filter: drop-shadow(0 10px 18px rgba(91, 47, 23, 0.12));
}

.falling-leaf::after {
  background: rgba(91, 47, 23, 0.18);
}

.topbar {
  border-bottom-color: rgba(211, 174, 130, 0.72);
  background: rgba(255, 247, 235, 0.9);
  box-shadow: 0 10px 30px rgba(100, 57, 27, 0.08);
}

.brand-mark {
  position: relative;
  border-color: rgba(185, 137, 55, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 245, 226, 0.9)),
    #fffaf0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 16px;
  height: 16px;
  background: #b85824;
  clip-path: none;
  -webkit-mask: var(--maple-mask) center / contain no-repeat;
  mask: var(--maple-mask) center / contain no-repeat;
  transform: rotate(18deg);
  box-shadow: 0 6px 14px rgba(184, 88, 36, 0.28);
}

.brand-text strong,
.section-head h1,
.section-head h2,
.auth-title h1,
.profile-name,
.lottery-card h2,
.guide-card h2,
.lottery-admin-title,
.shop-item-name,
.member-name {
  color: #202027;
}

.main-nav {
  border-color: rgba(216, 181, 137, 0.72);
  background: rgba(249, 230, 207, 0.72);
}

.main-nav a {
  color: #74685d;
}

.main-nav a:hover,
.main-nav a.active {
  color: #3b2419;
  background: #fff9f0;
  box-shadow: 0 8px 18px rgba(100, 57, 27, 0.1);
}

.glass-panel,
.stat-card,
.profile-card,
.auth-card,
.lottery-card,
.lottery-admin-item,
.winner-group-card,
.guide-card,
.guide-admin-item,
.shop-item,
.shop-admin-item,
.mail-item,
.purchase-record,
.modal-card {
  border-color: rgba(219, 203, 180, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.94), rgba(255, 244, 231, 0.92)),
    #fff8ef;
  box-shadow: var(--soft-shadow);
}

.page-band > .glass-panel:first-child,
.profile-card,
.auth-card {
  background:
    linear-gradient(135deg, rgba(207, 91, 45, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(255, 239, 221, 0.94));
}

.section-head h1::before,
.section-head h2::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 16px;
  margin-right: 8px;
  background: linear-gradient(145deg, #df5e38, #a93422);
  clip-path: none;
  -webkit-mask: var(--maple-mask) center / contain no-repeat;
  mask: var(--maple-mask) center / contain no-repeat;
  transform: rotate(-8deg);
  vertical-align: -3px;
}

.solid-button {
  border-color: #642b1b;
  background: linear-gradient(180deg, #773821, #4d2419);
}

.solid-button:hover {
  border-color: #813720;
  background: linear-gradient(180deg, #914326, #5b291b);
}

.ghost-button,
.quiet-button,
.icon-button,
.checkin-button {
  border-color: rgba(213, 178, 135, 0.9);
  background: rgba(255, 249, 240, 0.9);
}

.ghost-button:hover,
.quiet-button:hover,
.icon-button:hover,
.checkin-button:hover {
  border-color: #bf9f70;
  background: #ffedda;
}

.stat-card,
.total-contribution,
.data-table thead th,
.input-with-prefix span,
.empty-state,
.lottery-entry,
.shop-balance,
.wheel-stage,
code {
  background: #f9ead7;
}

.stat-icon,
.profile-avatar,
.avatar {
  border-color: rgba(185, 137, 55, 0.28);
  background: #ffedda;
}

.data-table-wrap,
input,
textarea,
select,
.lottery-code,
.input-with-prefix,
.upload-zone {
  border-color: rgba(213, 178, 135, 0.84);
  background: rgba(255, 249, 240, 0.94);
}

input:focus,
textarea:focus,
select:focus,
.lottery-code:focus {
  border-color: #9e6c35;
  outline-color: rgba(184, 88, 36, 0.12);
}

.rank-badge.rank-1,
.rank-badge.rank-2,
.rank-badge.rank-3,
.status-pending,
.resource-chip.gold,
.resource-mini .resource-chip.gold {
  border-color: #dfbd7e;
  background: #fff4dc;
}

.role-badge.president,
.role-badge.admin,
.status-approved {
  border-color: #aacdbb;
  background: #edf8f1;
}

.resource-chip,
.resource-mini .resource-chip,
.role-badge,
.status-chip,
.lottery-type,
.prize-chip,
.guide-index,
.discount-badge {
  border-color: rgba(215, 197, 170, 0.78);
  background: rgba(255, 250, 241, 0.82);
}

.guide-card,
.lottery-card,
.shop-admin-item,
.lottery-admin-item {
  position: relative;
  overflow: hidden;
}

.guide-card::after,
.lottery-card::after,
.shop-admin-item::after,
.lottery-admin-item::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 42px;
  height: 42px;
  pointer-events: none;
  opacity: 0.055;
  background: #8f3d1d;
  clip-path: none;
  -webkit-mask: var(--maple-mask) center / contain no-repeat;
  mask: var(--maple-mask) center / contain no-repeat;
  transform: rotate(22deg);
}

.lottery-card:hover,
.guide-card:hover,
.surprise-card:hover,
.shop-item:hover,
.shop-admin-item:hover,
.guide-admin-item:hover,
.lottery-admin-item:hover {
  border-color: rgba(185, 137, 55, 0.56);
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.tab-bar,
.segment-control,
.segment-control.lottery-tabs {
  border-color: rgba(215, 197, 170, 0.7);
  background: rgba(255, 248, 237, 0.74);
}

.tab-bar button.active,
.segment-control button.active {
  background: #fffefa;
  box-shadow: 0 8px 18px rgba(65, 46, 26, 0.08);
}

.modal-backdrop {
  background: rgba(44, 34, 25, 0.32);
}

.modal-card {
  box-shadow: 0 30px 80px rgba(44, 34, 25, 0.24);
}

.toast {
  border-color: #c9dccf;
  background: #f4fbf2;
}

.toast.error {
  border-color: #edc8bf;
  background: #fff2ef;
}

@media (max-width: 900px) {
  .topbar {
    background: rgba(255, 246, 232, 0.96);
  }

  body::before {
    top: 132px;
    right: -42px;
    width: 190px;
  }
}

@media (max-width: 560px) {
  .leaf-layer {
    opacity: 0.2;
  }

  .section-head h1::before,
  .section-head h2::before {
    width: 11px;
    height: 11px;
  }
}

/* Maple cat brand mark */
.brand-mark.brand-mark--logo {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  overflow: visible;
  border: 0;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(240, 194, 112, 0.16), transparent 68%);
  box-shadow: none;
}

.brand-mark.brand-mark--logo::after {
  display: none;
}

.brand-mark--logo img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(86, 47, 24, 0.16));
  transform: translateY(1px);
}

.brand:hover .brand-mark--logo img {
  filter: drop-shadow(0 8px 10px rgba(86, 47, 24, 0.22));
  transform: translateY(-1px) scale(1.025);
}

.brand-mark--logo img {
  transition: transform 180ms ease, filter 180ms ease;
}

@media (max-width: 560px) {
  .brand-mark.brand-mark--logo {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .brand-mark--logo img {
    width: 48px;
    height: 48px;
  }
}

/* Maple cat visual system */
.falling-leaf {
  width: var(--leaf-size);
  height: calc(var(--leaf-size) * 1.18);
  overflow: visible;
  background: transparent;
  clip-path: none;
  transform-origin: 50% 45%;
  filter: drop-shadow(0 7px 8px rgba(91, 47, 23, 0.12));
}

.falling-leaf::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, color-mix(in srgb, var(--leaf-color) 74%, #ffb36b), var(--leaf-color));
  clip-path: none;
  -webkit-mask: var(--maple-mask) center / contain no-repeat;
  mask: var(--maple-mask) center / contain no-repeat;
}

.falling-leaf::after {
  display: none;
}

@keyframes leaf-fall {
  0% {
    transform: translate3d(0, -12vh, 0) rotate(0deg) rotateY(0deg);
    opacity: 0;
  }
  8% {
    opacity: var(--leaf-opacity);
  }
  48% {
    transform: translate3d(var(--leaf-drift-mid), 49vh, 0) rotate(var(--leaf-spin-mid)) rotateY(var(--leaf-flip));
    opacity: var(--leaf-opacity);
  }
  100% {
    transform: translate3d(var(--leaf-drift), 112vh, 0) rotate(var(--leaf-spin)) rotateY(0deg);
    opacity: 0;
  }
}

.ambient-mascot {
  position: fixed;
  right: clamp(-58px, -3vw, -22px);
  bottom: clamp(-52px, -4vw, -28px);
  z-index: 0;
  width: clamp(150px, 16vw, 230px);
  pointer-events: none;
  opacity: 0.075;
  filter: saturate(0.78) sepia(0.08);
  transform: rotate(-7deg);
}

.ambient-mascot img {
  display: block;
  width: 100%;
  height: auto;
}

.stat-icon {
  position: relative;
  overflow: visible;
}

.stat-icon::before,
.stat-icon::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 10px;
  height: 10px;
  z-index: -1;
  border: 1px solid rgba(185, 137, 55, 0.34);
  background: #fff8ea;
  transform: rotate(45deg);
}

.stat-icon::before {
  left: 7px;
}

.stat-icon::after {
  right: 7px;
}

.empty-state {
  grid-template-rows: auto auto;
  align-content: center;
  gap: 8px;
}

.empty-state::before {
  content: "";
  width: 52px;
  height: 52px;
  background: url("/assets/brand/maple-cat-logo.png") center / contain no-repeat;
  opacity: 0.5;
  filter: saturate(0.78);
}

.auth-title--brand {
  gap: 13px;
}

.auth-title--brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(86, 47, 24, 0.15));
}

.auth-title--brand h1::after {
  content: " · MAPLE CAT";
  display: block;
  margin-top: 5px;
  color: #96704a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

@media (max-width: 900px) {
  .ambient-mascot {
    width: 150px;
    opacity: 0.055;
  }
}

@media (max-width: 560px) {
  .leaf-layer {
    opacity: 0.16;
  }

  .falling-leaf:nth-child(even) {
    display: none;
  }

  .ambient-mascot {
    right: -46px;
    bottom: -36px;
    width: 126px;
    opacity: 0.05;
  }
}

@media (prefers-reduced-motion: reduce) {
  .falling-leaf {
    animation: none;
    display: none;
  }

  .brand-mark--logo img {
    transition: none;
  }
}

/* Admin contribution value editor */
.contribution-rate-panel {
  background:
    radial-gradient(circle at 100% 0, rgba(181, 72, 42, 0.1), transparent 34%),
    linear-gradient(145deg, #fffaf3, #fff4e6);
}

.contribution-rate-panel .section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.contribution-rate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.contribution-rate-card {
  display: grid;
  gap: 13px;
  padding: 14px;
  border: 1px solid rgba(205, 166, 120, 0.72);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 8px 22px rgba(107, 61, 29, 0.06);
}

.contribution-rate-card:focus-within {
  border-color: rgba(161, 70, 40, 0.72);
  box-shadow: 0 0 0 3px rgba(177, 74, 43, 0.1);
}

.contribution-rate-resource {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contribution-rate-resource .resource-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.contribution-rate-resource > span {
  display: grid;
  gap: 3px;
}

.contribution-rate-resource strong {
  color: #3c2419;
  font-size: 14px;
}

.contribution-rate-resource small {
  color: #846b5c;
  font-size: 11px;
}

.contribution-rate-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(205, 166, 120, 0.72);
  border-radius: 9px;
  background: #fffdf9;
}

.contribution-rate-input input {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 0;
  color: #24150f;
  background: transparent;
  font-size: 16px;
  font-weight: 800;
}

.contribution-rate-input input:focus {
  box-shadow: none;
}

.contribution-rate-input > span {
  padding: 0 10px;
  color: #8b4a32;
  font-size: 12px;
  font-weight: 700;
}

.contribution-rate-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.contribution-rate-footer .form-note {
  margin: 0;
}

.maple-point-rate-panel {
  background:
    radial-gradient(circle at 100% 0, rgba(180, 77, 45, 0.14), transparent 34%),
    linear-gradient(145deg, #fff9ef, #fbe9d5);
}

.maple-point-rate-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.maple-point-rate-card {
  border-color: rgba(178, 85, 49, 0.38);
}

.maple-point-rate-input > span {
  color: #a6472e;
}

.history-maple-award {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin-top: 5px;
  color: #a64b31;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.history-maple-award .inline-icon {
  width: 13px;
  height: 13px;
}

/* Ranking reward announcement */
.leaderboard-rank-panel {
  position: relative;
}

.leaderboard-month-picker {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr);
  align-items: center;
  gap: 9px;
  color: #7c5a47;
  font-size: 12px;
  font-weight: 700;
}

.leaderboard-month-picker select {
  min-height: 38px;
  padding: 0 34px 0 11px;
  border: 1px solid rgba(193, 145, 103, 0.55);
  border-radius: 9px;
  color: #3b2419;
  background: #fffaf3;
  font-weight: 700;
  cursor: pointer;
}

.ranking-reward-announcement {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 18px;
  padding: 20px;
  border-color: rgba(190, 130, 83, 0.66);
  color: #3a2419;
  background:
    radial-gradient(circle at 100% 0, rgba(181, 66, 38, 0.16), transparent 38%),
    linear-gradient(155deg, #fffaf2, #f6e2c9);
  box-shadow: 0 18px 44px rgba(93, 50, 25, 0.13);
}

.ranking-reward-announcement::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -38px;
  width: 128px;
  height: 128px;
  opacity: 0.07;
  background: #a9412b;
  -webkit-mask: var(--maple-mask) center / contain no-repeat;
  mask: var(--maple-mask) center / contain no-repeat;
  pointer-events: none;
}

.ranking-reward-kicker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #a4472e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.ranking-reward-kicker .inline-icon {
  width: 15px;
  height: 15px;
}

.ranking-reward-announcement h2 {
  position: relative;
  z-index: 1;
  margin: 13px 0 12px;
  color: #2f1c14;
  font-size: 21px;
  line-height: 1.25;
}

.ranking-reward-content {
  position: relative;
  z-index: 1;
  color: #694c3d;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.ranking-reward-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 17px;
  padding-top: 12px;
  border-top: 1px solid rgba(170, 107, 67, 0.2);
  color: #9b6d56;
  font-size: 11px;
}

.ranking-reward-foot .inline-icon {
  width: 13px;
  height: 13px;
}

.ranking-announcement-admin {
  background:
    radial-gradient(circle at 100% 0, rgba(174, 68, 39, 0.1), transparent 34%),
    linear-gradient(145deg, #fffaf3, #fff2e2);
}

.ranking-announcement-admin textarea {
  min-height: 132px;
  resize: vertical;
}

.ranking-reward-announcement.is-side {
  position: absolute;
  top: 0;
  right: calc(100% + 18px);
  margin-bottom: 0;
}

/* Guild events */
.event-list {
  display: grid;
  gap: 18px;
}

.event-card {
  overflow: hidden;
  border-color: rgba(206, 165, 118, 0.72);
  background: #fffaf3;
}

.event-cover {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-bottom: 1px solid rgba(206, 165, 118, 0.55);
  background: #f5e5d2;
}

.event-cover-empty {
  display: grid;
  place-items: center;
  color: rgba(164, 67, 43, 0.35);
  background:
    radial-gradient(circle at 50% 45%, rgba(185, 72, 44, 0.16), transparent 34%),
    linear-gradient(135deg, #f8ead8, #f1d8bd);
}

.event-cover-empty .inline-icon {
  width: 72px;
  height: 72px;
}

.event-card-body {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.event-card-head,
.event-participant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.event-status {
  padding: 5px 10px;
  border: 1px solid rgba(181, 87, 52, 0.34);
  border-radius: 999px;
  color: #9c472f;
  background: #fff1e5;
  font-size: 11px;
  font-weight: 800;
}

.event-status.active {
  border-color: rgba(33, 133, 88, 0.35);
  color: #176b4a;
  background: #eef9f3;
}

.event-status.ended {
  border-color: #d8d5d1;
  color: #77706b;
  background: #f4f2ef;
}

.event-time {
  color: #806353;
  font-size: 12px;
  font-weight: 650;
}

.event-card-body h2 {
  margin: 0;
  color: #302019;
  font-size: 24px;
}

.event-content {
  color: #684c3e;
  font-size: 14px;
  line-height: 1.8;
}

.event-join-button {
  justify-self: start;
  min-width: 142px;
}

.event-participants {
  padding: 18px 22px 22px;
  border-top: 1px solid rgba(206, 165, 118, 0.45);
  background: rgba(247, 229, 208, 0.48);
}

.event-participant-head {
  margin-bottom: 13px;
  color: #463027;
}

.event-participant-head span {
  color: #a34a31;
  font-size: 12px;
  font-weight: 800;
}

.event-member-list {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.event-member {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 7px;
  border: 1px solid rgba(205, 166, 120, 0.55);
  border-radius: 999px;
  background: #fffaf4;
}

.event-member .avatar {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  font-size: 12px;
}

.event-member > span:last-child {
  display: grid;
  gap: 1px;
}

.event-member strong {
  color: #3d291f;
  font-size: 12px;
}

.event-member small,
.event-no-member {
  color: #927666;
  font-size: 10px;
}

.event-admin-image-empty {
  display: grid;
  place-items: center;
  color: rgba(159, 68, 42, 0.35);
}

.modal-card.cdk-modal {
  width: min(860px, 100%);
}

.avatar,
.profile-avatar {
  overflow: hidden;
}

.avatar img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-edit-button {
  color: #824632;
  background: #fff7ee;
}

.modal-card.profile-settings-modal {
  width: min(620px, 100%);
}

.profile-password-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(199, 151, 105, 0.52);
  border-radius: 12px;
  background: linear-gradient(145deg, #fffaf3, #fff4e7);
}

.profile-password-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #6f3826;
}

.profile-password-heading > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.profile-password-heading strong {
  font-size: 15px;
}

.profile-password-heading span {
  color: var(--muted);
  font-size: 11px;
}

.profile-password-heading svg {
  width: 18px;
  height: 18px;
}

.profile-password-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 560px) {
  .profile-password-grid {
    grid-template-columns: 1fr;
  }
}

.profile-avatar-editor {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(199, 151, 105, 0.52);
  border-radius: 12px;
  background: #fff9f1;
}

.profile-avatar-preview {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #f1e0ce;
  box-shadow: 0 8px 24px rgba(94, 50, 27, 0.18);
}

.profile-avatar-preview > img,
.profile-avatar-preview > .profile-avatar {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 50%;
}

.profile-avatar-preview > img {
  object-fit: cover;
}

.profile-avatar-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-avatar-actions > span {
  width: 100%;
  color: #8b7060;
  font-size: 11px;
}

.profile-avatar-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#profileAvatarInput {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.cdk-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.cdk-summary span {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid rgba(199, 151, 105, 0.48);
  border-radius: 10px;
  color: #836654;
  background: #fffaf3;
  font-size: 11px;
  text-align: center;
}

.cdk-summary strong {
  color: #3a241a;
  font-size: 20px;
}

.cdk-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cdk-create-card {
  align-content: start;
  padding: 15px;
  border: 1px solid rgba(199, 151, 105, 0.5);
  border-radius: 11px;
  background: rgba(255, 250, 243, 0.82);
}

.cdk-create-card h4 {
  margin: 0;
  color: #3a241a;
  font-size: 15px;
}

.cdk-create-card p {
  margin: 5px 0 0;
  color: #8d7060;
  font-size: 11px;
}

.cdk-table-wrap {
  max-height: 330px;
  margin-top: 16px;
  overflow: auto;
}

@media (max-width: 700px) {
  .event-cover {
    height: 190px;
  }

  .event-card-body,
  .event-participants {
    padding: 17px;
  }

  .event-join-button {
    width: 100%;
  }

  .cdk-create-grid {
    grid-template-columns: 1fr;
  }

  .profile-avatar-editor {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 980px) {
  .contribution-rate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .contribution-rate-grid {
    grid-template-columns: 1fr;
  }

  .contribution-rate-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .leaderboard-month-picker {
    width: 100%;
    grid-template-columns: 1fr;
  }
}

/* Warmer autumn surfaces */
.history-item,
.pending-item,
.draw-card,
.lottery-hero,
.lottery-entry,
.wheel-stage,
.shop-balance,
.empty-state {
  border-color: rgba(216, 181, 137, 0.7);
  background: #fff4e7;
}

.tab-bar,
.segment-control,
.segment-control.lottery-tabs {
  border-color: rgba(216, 181, 137, 0.72);
  background: rgba(248, 226, 201, 0.76);
}

.tab-bar button.active,
.segment-control button.active {
  color: #3b2419;
  background: #fff8ef;
  box-shadow: 0 8px 18px rgba(100, 57, 27, 0.1);
}

.data-table thead th {
  color: #6d4f3d;
  background: #f8e7d1;
}

.data-table tbody tr:hover {
  background: rgba(244, 213, 177, 0.3);
}

.section-head h1::before,
.section-head h2::before,
.guide-card::after,
.lottery-card::after,
.shop-admin-item::after,
.lottery-admin-item::after {
  -webkit-mask-image: var(--maple-mask);
  mask-image: var(--maple-mask);
}

/* Personal center number contrast */
.profile-grid > .profile-card .total-contribution strong,
.profile-grid > .profile-card .stat-value,
.profile-grid > .profile-card .resource-mini .resource-chip > span {
  color: #17110d !important;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "SimHei", sans-serif;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-shadow: none;
}

.profile-grid > .profile-card .resource-mini .resource-chip > span {
  font-size: 16px;
  line-height: 1;
}

/* Transparent resource artwork */
.resource-mini .resource-chip,
.resource-mini .resource-chip.gold,
.resource-mini .resource-chip.crystal,
.resource-mini .resource-chip.guildToken,
.resource-mini .resource-chip.engraving,
.resource-mini .resource-chip.maple {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.resource-mini .resource-chip .resource-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  opacity: 1;
  border: 0;
  border-radius: 0;
  background: transparent;
  mix-blend-mode: normal;
  filter: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.draw-card .resource-img {
  border: 0;
  background: transparent;
  object-fit: contain;
  padding: 16%;
}

/* Leaderboard role and contribution history readability */
.data-table .role-badge {
  color: #241711 !important;
  border-color: #d5aa78;
  background: #f7e4ca;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "SimHei", sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-shadow: none;
}

.data-table .role-badge.president {
  color: #3d260f !important;
  border-color: #d0a354;
  background: #f6dfaa;
}

.data-table .role-badge.vicePresident,
.data-table .role-badge.admin {
  color: #532718 !important;
  border-color: #d69c79;
  background: #f7d8c7;
}

.data-table .role-badge.administrator {
  color: #6f241b !important;
  border-color: #dfa08d;
  background: #fde4dc;
}

.data-table .role-badge.maplePlush {
  color: #6f2d42 !important;
  border-color: #e9a2b9;
  background: #ffdce8;
}

/* Position badges: president and vice president share gold; delegated administrator uses red. */
.role-badge.president,
.role-badge.vicePresident,
.data-table .role-badge.president,
.data-table .role-badge.vicePresident {
  color: #4d310b !important;
  border-color: #deb45f !important;
  background: #f9e9bd !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.role-badge.administrator,
.role-badge.admin,
.data-table .role-badge.administrator,
.data-table .role-badge.admin {
  color: #6f241b !important;
  border-color: #dfa08d !important;
  background: #fde4dc !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.data-table .role-badge.member {
  color: #29211b !important;
  border-color: #cdbda8;
  background: #f1e8dc;
}

.data-table .guild-branch-badge {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "SimHei", sans-serif;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-shadow: none;
}

.history-list .resource-mini .resource-chip > span {
  color: #17110d !important;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "SimHei", sans-serif;
  font-size: 16px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow: none;
}

/* Wheel prize labels */
.wheel-label {
  padding: 4px 6px;
  border: 1px solid rgba(105, 62, 32, 0.2);
  border-radius: 10px;
  color: #2c1c13;
  background: rgba(255, 248, 235, 0.9);
  box-shadow: 0 4px 10px rgba(61, 34, 18, 0.14);
  text-shadow: none;
  backdrop-filter: blur(3px);
}

.wheel-center {
  color: #fff3d8;
  background: linear-gradient(180deg, #7b3a22, #4e2418);
}

.wheel-modal .draw-result .wheel-prize-fallback {
  display: inline-grid;
  margin-right: 4px;
  vertical-align: middle;
}

/* Guide readability and double-click image preview */
.guide-article-card .guide-index {
  color: #93411f;
  font-weight: 900;
}

.guide-article-card h2 {
  color: #251610 !important;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "SimHei", sans-serif;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.guide-article-card p {
  color: #513a30 !important;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "SimHei", sans-serif;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.65;
  opacity: 1;
}

.guide-modal .modal-head h3 {
  color: #251610;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "SimHei", sans-serif;
  font-weight: 900;
}

.guide-modal .guide-content {
  color: #38251e;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "SimHei", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.85;
  opacity: 1;
}

.guide-zoomable-image {
  cursor: zoom-in;
  user-select: none;
  transition: filter 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.guide-zoomable-image:hover {
  filter: brightness(1.03) saturate(1.04);
  box-shadow: 0 8px 22px rgba(99, 55, 29, 0.18);
}

.guide-article-card .guide-zoomable-image:hover {
  transform: scale(1.012);
}

/* Larger guide artwork and pinned guide controls */
.guide-article-card {
  aspect-ratio: auto;
  min-height: 0;
}

.guide-article-card .guide-card-image {
  width: 100%;
  height: auto;
  min-height: 210px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: #f4e8da;
}

.guide-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.guide-pin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 9px;
  border: 1px solid #d5a24d;
  border-radius: 999px;
  color: #713119;
  background: #f9df9f;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
}

.guide-pin-badge::before {
  margin-right: 4px;
  content: "◆";
  font-size: 8px;
}

.guide-modal {
  width: min(860px, 100%);
}

.guide-modal .guide-modal-image {
  width: 100%;
  height: auto;
  max-height: 62vh;
  object-fit: contain;
  background: #f4e8da;
}

.guide-pin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(213, 162, 77, 0.72);
  border-radius: 8px;
  color: #56301d;
  background: #fff7e8;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.guide-pin-toggle input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #9b4828;
  cursor: pointer;
}

@media (max-width: 680px) {
  .guide-article-card .guide-card-image {
    min-height: 170px;
  }
}

/* High-resolution guide upload hint */
.guide-upload-hint {
  display: block;
  margin-top: 5px;
  color: #755b4d;
  font-size: 12px;
  font-weight: 650;
}

/* Wheel-zoomable full-screen image viewer */
.modal-card.image-modal {
  display: block;
  width: calc(100vw - 32px);
  height: calc(100vh - 32px);
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border-color: rgba(228, 188, 137, 0.55);
  background: #17120f;
}

.image-viewer {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
}

.image-viewer-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 9px 14px 9px 18px;
  color: #f8ead9;
  background: rgba(38, 27, 21, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  font-size: 13px;
  font-weight: 700;
}

.image-viewer-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.image-viewer-actions .quiet-button,
.image-zoom-value {
  min-width: 38px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(239, 206, 166, 0.3);
  border-radius: 7px;
  color: #fff3e4;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.image-zoom-value {
  min-width: 68px;
}

.image-viewer-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  cursor: zoom-in;
  touch-action: none;
  background:
    radial-gradient(circle at center, rgba(105, 72, 52, 0.26), transparent 54%),
    #0f0d0c;
}

.image-viewer-stage.is-zoomed {
  cursor: grab;
}

.image-viewer-stage.is-dragging {
  cursor: grabbing;
}

.modal-card.image-modal .image-viewer-picture {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: calc(100% - 24px);
  max-height: calc(100% - 24px);
  border-radius: 6px;
  user-select: none;
  will-change: transform;
  transform-origin: center;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.42);
}

@media (max-width: 640px) {
  .modal-card.image-modal {
    width: calc(100vw - 12px);
    height: calc(100vh - 12px);
  }

  .image-viewer-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 9px 10px;
  }

  .image-viewer-toolbar > span {
    font-size: 11px;
  }
}

/* Live in-game chest shop */
.game-shop-page {
  gap: 18px;
}

.game-shop-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 10%, rgba(201, 83, 46, 0.11), transparent 34%),
    linear-gradient(135deg, rgba(255, 252, 247, 0.98), rgba(255, 241, 224, 0.94));
}

.game-shop-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: #8a5c48;
  font-size: 12px;
  font-weight: 800;
}

.game-shop-live span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b8a69c;
}

.game-shop-live.active {
  color: #2d7652;
}

.game-shop-live.active span {
  background: #35a86f;
  box-shadow: 0 0 0 5px rgba(53, 168, 111, 0.13), 0 0 12px rgba(53, 168, 111, 0.46);
}

.game-shop-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr)) minmax(210px, 1.5fr);
  gap: 10px;
  margin-top: 18px;
}

.game-shop-stats > div {
  display: grid;
  gap: 3px;
  padding: 13px 15px;
  border: 1px solid #ead2bc;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.game-shop-stats strong {
  color: #3e2419;
  font-size: 21px;
}

.game-shop-stats span,
.game-shop-result-count {
  color: #846f63;
  font-size: 12px;
}

.game-shop-stats .game-shop-update strong {
  font-size: 14px;
}

.game-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.game-shop-search {
  display: flex;
  gap: 8px;
  width: min(440px, 100%);
}

.game-shop-search input {
  min-width: 0;
  flex: 1;
}

.game-shop-table-wrap {
  max-height: 620px;
}

.game-shop-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.game-shop-table td {
  vertical-align: middle;
}

.game-shop-trade {
  display: inline-flex;
  justify-content: center;
  min-width: 50px;
  padding: 4px 9px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.game-shop-trade.selling {
  color: #9a3825;
  border-color: #e8aa99;
  background: #fff0ea;
}

.game-shop-trade.buying {
  color: #216b50;
  border-color: #a9d7c1;
  background: #eef9f3;
}

.game-shop-item-name {
  color: #292125;
}

.game-shop-price {
  color: #a34324;
  font-size: 15px;
  font-weight: 900;
}

.game-shop-coordinates {
  color: #57443a;
  white-space: nowrap;
}

.game-shop-result-count {
  margin-top: 11px;
  text-align: right;
}

@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .main-nav a {
    padding-inline: 10px;
  }

  .game-shop-stats {
    grid-template-columns: repeat(3, minmax(110px, 1fr));
  }
}

@media (max-width: 720px) {
  .game-shop-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-shop-stats .game-shop-update {
    grid-column: 1 / -1;
  }

  .game-shop-toolbar,
  .game-shop-search {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .game-shop-filters {
    overflow-x: auto;
  }
}

/* Main/sub guild identity discounts for shop and surprise drop */
.identity-discount-panel {
  border-color: rgba(190, 132, 66, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 247, 233, 0.82), rgba(255, 253, 248, 0.96)),
    #fffaf2;
}

.identity-discount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.identity-discount-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 180px);
  align-items: center;
  gap: 16px;
  padding: 15px;
  border: 1px solid #dec19c;
  border-radius: 9px;
  color: #4c2d20;
  background: #fffaf1;
}

.identity-discount-card.sub {
  border-color: #d8b7ae;
  background: #fff6f2;
}

.identity-discount-card > span:first-child {
  display: grid;
  gap: 4px;
}

.identity-discount-card strong {
  font-size: 15px;
  font-weight: 900;
}

.identity-discount-card small {
  color: #806759;
  font-size: 12px;
}

.identity-discount-card input {
  color: #482519;
  font-size: 17px;
  font-weight: 900;
}

.identity-discount-example {
  padding: 11px 13px;
  border: 1px solid #e5cba9;
  border-radius: 7px;
  color: #63402c;
  background: #fff4df;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}

.identity-discount-note {
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid #dab477;
  border-radius: 999px;
  color: #6f351e;
  background: #fff0d4;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.shop-item-meta .original-price {
  color: #80685c;
  font-weight: 700;
}

.surprise-card .identity-discount-note {
  max-width: 100%;
  border-radius: 6px;
  white-space: normal;
}

@media (max-width: 720px) {
  .identity-discount-grid {
    grid-template-columns: 1fr;
  }

  .identity-discount-card {
    grid-template-columns: minmax(0, 1fr) 120px;
  }
}

/* Combat power leaderboard, upload and admin review */
.combat-power-hero {
  border-color: rgba(188, 125, 57, 0.34);
  background:
    radial-gradient(circle at 88% 20%, rgba(210, 75, 45, 0.09), transparent 34%),
    linear-gradient(145deg, rgba(255, 252, 246, 0.97), rgba(250, 232, 211, 0.86));
}

.combat-power-content-grid {
  align-items: start;
}

.combat-power-rank-panel {
  min-width: 0;
}

.combat-power-value,
.combat-power-admin-value,
.combat-power-input {
  color: #592719 !important;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "SimHei", sans-serif;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.combat-power-value {
  font-size: 17px;
}

.combat-power-proof {
  color: #713720;
  border-color: #d8ad7b;
  background: #fff7e9;
}

.combat-power-import-source {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  color: #714a31;
  border: 1px solid #dbc3a6;
  border-radius: 999px;
  background: #f8efe3;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.combat-power-my-card .total-contribution strong {
  font-size: clamp(20px, 2.4vw, 30px);
}

.contribution-submit-head {
  align-items: center;
}

.power-upload-entry {
  color: #6e2f1c;
  border-color: #d7a365;
  background: #fff3df;
  font-weight: 800;
}

.power-upload-modal {
  width: min(700px, 100%);
}

.power-upload-zone {
  min-height: 210px;
}

.power-upload-zone img {
  object-fit: contain;
  background: #f6eee4;
}

.combat-power-input {
  min-height: 50px;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.power-upload-history {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #ead5bc;
}

.power-upload-history-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #ead9c6;
  border-radius: 8px;
  background: #fffaf3;
}

.power-upload-history-item > button {
  width: 74px;
  height: 54px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dfcbb4;
  border-radius: 6px;
  background: #f7efe5;
  cursor: zoom-in;
}

.power-upload-history-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.power-upload-history-item > div {
  display: grid;
  gap: 3px;
}

.power-upload-history-item > .power-history-import-mark {
  width: 74px;
  height: 54px;
  place-content: center;
  justify-items: center;
  gap: 3px;
  color: #76513b;
  border: 1px dashed #d7b991;
  border-radius: 6px;
  background: #f8efe3;
}

.power-history-import-mark .inline-icon {
  width: 18px;
  height: 18px;
}

.combat-power-import-panel {
  display: grid;
  gap: 12px;
  border-color: rgba(183, 114, 51, 0.38);
  background:
    radial-gradient(circle at 92% 10%, rgba(190, 62, 39, 0.09), transparent 30%),
    linear-gradient(145deg, rgba(255, 252, 246, 0.98), rgba(250, 235, 218, 0.91));
}

.combat-power-import-button {
  cursor: pointer;
  white-space: nowrap;
}

.combat-power-import-note {
  padding: 11px 13px;
  color: #704b36;
  border: 1px solid #e2c9aa;
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.74);
  font-size: 13px;
  line-height: 1.7;
}

.combat-power-import-confirm {
  display: grid;
  gap: 10px;
}

.combat-power-import-confirm .form-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.combat-power-import-confirm p {
  margin: 0;
  color: #644736;
  line-height: 1.7;
}

.combat-power-import-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.combat-power-import-summary > div {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 12px 8px;
  border: 1px solid #e3cdb3;
  border-radius: 8px;
  background: #fff8ef;
}

.combat-power-import-summary strong {
  color: #652a1d;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}

.combat-power-import-summary span {
  color: #785d4d;
  font-size: 12px;
}

.combat-power-import-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: min(54vh, 540px);
  overflow: auto;
  padding-right: 4px;
}

.combat-power-import-results section {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e4d2bd;
  border-radius: 8px;
  background: #fffdf9;
}

.combat-power-import-results h4 {
  margin: 0 0 9px;
  color: #4e281c;
}

.combat-power-import-result-list {
  display: grid;
  gap: 7px;
}

.combat-power-import-result-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid #f0e4d7;
}

.combat-power-import-result-list span {
  overflow: hidden;
  color: #4d3427;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combat-power-import-result-list strong {
  color: #792d1e;
  font-variant-numeric: tabular-nums;
}

.combat-power-import-result-list small {
  grid-column: 1 / -1;
  color: #866e60;
}

.combat-power-import-empty {
  color: #8b7467;
  font-size: 13px;
}

.power-upload-history-item strong {
  color: #4d2418;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.power-upload-history-item small {
  color: #80695d;
}

.power-upload-history-item p {
  grid-column: 2 / -1;
  margin: 0;
  color: #8d3027;
  font-size: 12px;
}

.combat-power-admin-panel {
  display: grid;
  gap: 14px;
}

.combat-power-admin-list {
  display: grid;
  gap: 12px;
}

.combat-power-admin-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding: 14px;
  border: 1px solid #e5d3be;
  background: #fffdf9;
}

.combat-power-admin-item.pending {
  border-left: 4px solid #cf8d32;
}

.combat-power-admin-item.approved {
  border-left: 4px solid #2b8755;
}

.combat-power-admin-item.rejected {
  border-left: 4px solid #b94a3f;
}

.combat-power-admin-item > img,
.combat-power-proof-placeholder {
  width: 190px;
  height: 118px;
  border: 1px solid #e2d0bd;
  border-radius: 7px;
  background: #f4ece3;
}

.combat-power-admin-item > img {
  object-fit: cover;
  cursor: zoom-in;
}

.combat-power-proof-placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  color: #765641;
  text-align: center;
  line-height: 1.45;
}

.combat-power-proof-placeholder .inline-icon {
  width: 26px;
  height: 26px;
}

.combat-power-admin-info,
.combat-power-admin-actions {
  display: grid;
  align-content: start;
  gap: 8px;
}

.combat-power-admin-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.combat-power-admin-value {
  font-size: 20px;
}

.combat-power-admin-actions {
  min-width: 130px;
}

@media (max-width: 860px) {
  .combat-power-admin-item {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .combat-power-admin-item > img,
  .combat-power-proof-placeholder {
    width: 150px;
    height: 104px;
  }

  .combat-power-admin-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .combat-power-admin-item {
    grid-template-columns: 1fr;
  }

  .combat-power-admin-item > img,
  .combat-power-proof-placeholder {
    width: 100%;
    height: 180px;
  }

  .combat-power-import-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .combat-power-import-results {
    grid-template-columns: 1fr;
  }

  .combat-power-admin-actions {
    grid-column: auto;
  }

  .power-upload-history-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .power-upload-history-item > button {
    width: 64px;
  }

  .power-upload-history-item > .power-history-import-mark {
    width: 64px;
  }

  .power-upload-history-item .status-chip {
    grid-column: 2;
    justify-self: start;
  }
}

/* Shop and surprise-drop maple point price readability */
.shop-modal .maple-price {
  color: #572819 !important;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "SimHei", sans-serif;
  font-size: 16px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-shadow: none;
}

.shop-modal .maple-price svg {
  width: 17px;
  height: 17px;
  color: #a94325;
  stroke-width: 2.5;
}

.shop-modal .shop-balance {
  color: #352018 !important;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "SimHei", sans-serif;
  font-size: 15px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-shadow: none;
}

.shop-modal .shop-balance svg {
  color: #a94325;
  stroke-width: 2.5;
}

.shop-modal .surprise-card-price .original-price {
  color: #715d53;
  font-size: 13px;
  font-weight: 700;
}

/* Per-item surprise appearance, free-order and background settings */
.surprise-card,
.surprise-card.covered,
.surprise-card.revealed {
  border-color: rgba(137, 81, 48, 0.28) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 248, 238, 0.34)),
    var(--surprise-card-bg, #fff0e5) !important;
  box-shadow:
    0 12px 28px rgba(86, 48, 28, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.surprise-card.free-order {
  border-color: #d69c2f !important;
  box-shadow:
    0 14px 34px rgba(174, 111, 18, 0.24),
    inset 0 0 0 2px rgba(255, 221, 130, 0.36);
}

.surprise-card .free-order-badge {
  color: #4b2907 !important;
  border-color: #c88c25;
  background: linear-gradient(135deg, #ffe59a, #ffc34d);
  box-shadow: 0 5px 14px rgba(166, 103, 14, 0.2);
}

.surprise-card.free-order .maple-price {
  color: #7b2e13 !important;
  font-size: 18px;
}

.surprise-color-preview {
  display: inline-block;
  width: 17px;
  height: 17px;
  margin-left: 3px;
  border: 2px solid rgba(82, 50, 34, 0.35);
  border-radius: 5px;
  background: var(--preview-color, #fff0e5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  vertical-align: -4px;
}

.shop-color-input {
  min-height: 44px;
  padding: 5px !important;
  cursor: pointer;
}

.shop-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.shop-color-input::-webkit-color-swatch {
  border: 1px solid rgba(82, 50, 34, 0.28);
  border-radius: 6px;
}

/* Contribution audit record tabs and stronger contribution labels */
.audit-record-head {
  align-items: center;
  gap: 12px;
}

.audit-record-tabs {
  width: fit-content;
}

.audit-record-tabs button {
  min-width: 132px;
  color: #6f5548;
  font-weight: 800;
}

.audit-record-tabs button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  margin-left: 5px;
  padding: 0 6px;
  border-radius: 999px;
  color: #6e301d;
  background: rgba(157, 68, 38, 0.12);
  font-size: 11px;
}

.audit-record-tabs button.active {
  color: #4d2418;
  background: #f3dac0;
  box-shadow: inset 0 0 0 1px #d5a46e;
}

.audit-record-panel .contribution-kind.weekly {
  color: #14532d !important;
  border-color: #74b78b !important;
  background: #dcf4e4 !important;
  box-shadow: inset 0 0 0 1px rgba(20, 83, 45, 0.05);
}

.audit-record-panel .contribution-kind.normal {
  color: #1e3a8a !important;
  border-color: #82a6db !important;
  background: #dce9fb !important;
  box-shadow: inset 0 0 0 1px rgba(30, 58, 138, 0.05);
}

.audit-record-panel .pending-remark {
  color: #4f3023 !important;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.reviewed-contribution-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(220px, 280px);
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid #ead6c0;
  background: #fffdf9;
}

.reviewed-contribution-item.approved {
  border-left: 4px solid #278452;
}

.reviewed-contribution-item.rejected {
  border-left: 4px solid #b94a3f;
}

.reviewed-contribution-shot {
  width: 150px;
  height: 104px;
  object-fit: cover;
  border: 1px solid #e2d4c6;
  border-radius: 7px;
  background: #f6eee5;
  cursor: zoom-in;
}

.reviewed-contribution-shot.empty-shot {
  cursor: default;
}

.reviewed-contribution-info,
.reviewed-contribution-result {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.reviewed-contribution-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reviewed-contribution-item .status-approved {
  color: #14532d;
  border-color: #7ab68d;
  background: #e0f3e5;
}

.reviewed-contribution-item .status-rejected {
  color: #8f251f;
  border-color: #dda09a;
  background: #fbe4e1;
}

.audit-status-revoked {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid #d39283;
  border-radius: 999px;
  color: #81291f;
  background: #f9ded8;
  font-size: 12px;
  font-weight: 800;
}

.reviewed-contribution-result > div:not(.reviewed-audit-meta):not(.reviewed-audit-note) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #6f5548;
}

.reviewed-contribution-result strong {
  color: #3b241b;
  font-size: 16px;
}

.reviewed-audit-meta {
  color: #765e52;
  font-size: 12px;
}

.reviewed-audit-note {
  padding: 8px 10px;
  border-radius: 6px;
  color: #5b3729;
  background: #f8ecdf;
  font-size: 12px;
  line-height: 1.5;
}

.revoke-warning {
  padding: 12px 14px;
  border: 1px solid #df9a8e;
  border-radius: 7px;
  color: #79291f;
  background: #fce8e3;
  font-weight: 700;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .reviewed-contribution-item {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .reviewed-contribution-shot {
    width: 120px;
    height: 90px;
  }

  .reviewed-contribution-result {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .audit-record-head {
    align-items: stretch;
    flex-direction: column;
  }

  .audit-record-tabs,
  .audit-record-tabs button {
    width: 100%;
  }

  .reviewed-contribution-item {
    grid-template-columns: 1fr;
  }

  .reviewed-contribution-shot {
    width: 100%;
    height: 160px;
  }

  .reviewed-contribution-result {
    grid-column: auto;
  }
}

.weekly-requirement-note {
  margin: 6px 0 0;
  color: #a1522b;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.weekly-requirement-note svg {
  width: 14px;
  height: 14px;
  flex: none;
}

@media (max-width: 640px) {
  .weekly-requirement-note {
    font-size: 12px;
  }
}
