* {
  box-sizing: border-box;
}

:root {
  --kvibe-surface: #d6eef8;
  --kvibe-grid-dot: rgba(160, 210, 235, 0.45);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'SN Pro', system-ui, -apple-system, sans-serif;
  color: #1a2a3a;
  background-color: var(--kvibe-surface);
  background-image:
    linear-gradient(to bottom, var(--kvibe-surface) 60%, #a8cfe4 100%),
    radial-gradient(
      var(--kvibe-grid-dot) 1px,
      var(--kvibe-surface) 1px
    );
  background-size: 100% 100%, 20px 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'SN Pro', system-ui, -apple-system, sans-serif;
}

.page-title {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  margin: 0;
  padding: 14px 0 0;
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: 0.08em;
  color: #1a5276;
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.8),
    0 2px 12px rgba(180, 220, 240, 0.7),
    0 0 30px rgba(160, 210, 240, 0.3);
  z-index: 200;
  pointer-events: none;
}

@media (min-width: 640px) {
  .page-title {
    font-size: 3.2rem;
    padding-top: 18px;
  }
}

.lang-switcher {
  position: fixed;
  top: 12px;
  right: 20px;
  z-index: 300;
  display: flex;
  gap: 4px;
  background: rgba(200, 230, 245, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 4px;
  border: 1px solid rgba(160, 210, 240, 0.5);
  box-shadow: 0 2px 12px rgba(160, 210, 240, 0.3);
}

.lang-btn {
  border: none;
  background: transparent;
  font-family: 'JetBrains Mono', Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 16px;
  cursor: pointer;
  color: #4a7a9a;
  transition: all 0.25s ease;
}

.lang-btn:hover {
  background: rgba(160, 210, 240, 0.4);
  color: #1a5276;
}

.lang-btn.active {
  background: #1a5276;
  color: #fff;
  box-shadow: 0 1px 6px rgba(26, 82, 118, 0.35);
}

.blizzard-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(160, 210, 240, 0.5);
  background: rgba(200, 230, 245, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 28px;
  padding: 10px 18px;
  cursor: pointer;
  font-family: 'JetBrains Mono', Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a5276;
  box-shadow: 0 4px 16px rgba(160, 210, 240, 0.35);
  transition: all 0.3s ease;
}

.blizzard-btn:hover {
  background: rgba(180, 220, 240, 0.8);
  box-shadow: 0 6px 24px rgba(160, 210, 240, 0.5);
  transform: scale(1.04);
}

.blizzard-btn.active {
  background: rgba(26, 82, 118, 0.85);
  color: #d6eef8;
  border-color: rgba(26, 82, 118, 0.6);
  box-shadow: 0 4px 20px rgba(26, 82, 118, 0.45);
}

.blizzard-btn.active:hover {
  background: rgba(26, 82, 118, 0.95);
}

.blizzard-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.blizzard-label {
  line-height: 1;
}

.icicles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  pointer-events: none;
}

.icicles svg {
  display: block;
  width: 100%;
  height: 100%;
}

.welcome {
  min-height: 100vh;
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.25rem 3rem;
  gap: 0;
}

.welcome__art {
  width: 100%;
  max-width: min(28rem, 90%);
  height: auto;
  margin-bottom: 2rem;
  user-select: none;
  pointer-events: none;
}

.welcome__art svg {
  display: block;
  width: 100%;
  height: auto;
}

.welcome__title {
  margin: 0;
  max-width: 28rem;
  font-family: 'JetBrains Mono', Menlo, monospace;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.375;
  color: #1a2a3a;
}

@media (min-width: 640px) {
  .welcome__title {
    font-size: 1.25rem;
  }
}

.welcome__title-accent {
  color: #0a6faa;
}

.welcome__lead {
  margin: 0.75rem 0 0;
  max-width: 28rem;
  font-family: 'JetBrains Mono', Menlo, monospace;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #4a6a7a;
}

/* ── Sponsors Panel ── */
.sponsors-panel {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 400;
  display: flex;
  align-items: flex-start;
}

.sponsors-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px 10px 16px;
  border: 1px solid rgba(160, 210, 240, 0.5);
  border-left: none;
  border-radius: 0 16px 16px 0;
  background: rgba(200, 230, 245, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  font-family: 'JetBrains Mono', Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1a5276;
  box-shadow: 2px 2px 12px rgba(160, 210, 240, 0.3);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.sponsors-toggle:hover {
  padding-right: 20px;
  background: rgba(180, 220, 240, 0.85);
  box-shadow: 3px 2px 16px rgba(160, 210, 240, 0.45);
}

.sponsors-toggle.open {
  background: rgba(26, 82, 118, 0.88);
  color: #d6eef8;
  border-color: rgba(26, 82, 118, 0.6);
}

.sponsors-toggle__icon {
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.3s;
}

.sponsors-toggle.open .sponsors-toggle__icon {
  transform: rotate(15deg);
}

.sponsors-toggle__label {
  line-height: 1;
}

.sponsors-list {
  position: absolute;
  top: 0;
  left: 100%;
  width: 260px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 0;
  margin: 0;
  border-radius: 0 16px 16px 0;
  background: rgba(220, 240, 250, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(160, 210, 240, 0.45);
  border-left: none;
  box-shadow: 4px 4px 20px rgba(160, 210, 240, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
  transition: all 0.35s ease;
}

.sponsors-list::-webkit-scrollbar { width: 5px; }
.sponsors-list::-webkit-scrollbar-track { background: transparent; }
.sponsors-list::-webkit-scrollbar-thumb { background: rgba(26, 82, 118, 0.25); border-radius: 4px; }

.sponsors-list.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.sponsors-title {
  position: sticky;
  top: 0;
  margin: 0;
  padding: 14px 16px 10px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a5276;
  background: rgba(220, 240, 250, 0.95);
  border-bottom: 1px solid rgba(160, 210, 240, 0.3);
  z-index: 1;
}

.sponsors-items {
  padding: 8px 0;
}

.sponsor-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  transition: background 0.2s;
}

.sponsor-item:hover {
  background: rgba(160, 210, 240, 0.2);
}

.sponsor-item--new {
  animation: sponsor-pop 0.5s ease;
}

@keyframes sponsor-pop {
  0%   { opacity: 0; transform: translateX(-12px); }
  60%  { opacity: 1; transform: translateX(4px); }
  100% { opacity: 1; transform: translateX(0); }
}

.sponsor-avatar {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.sponsor-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.sponsor-name {
  font-family: 'JetBrains Mono', Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1a3a5a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sponsor-amount {
  font-family: 'JetBrains Mono', Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  color: #5a8aaa;
}

.sponsor-item--legend .sponsor-name {
  color: #0a3a6a;
  font-weight: 700;
}

.sponsor-item--legend .sponsor-amount {
  color: #1a6a9a;
  font-weight: 700;
}

.sponsor-item--legend {
  background: linear-gradient(90deg, rgba(26, 82, 118, 0.08) 0%, transparent 100%);
}

.sponsor-item--hot .sponsor-name {
  color: #0d4a7a;
  font-weight: 700;
}

.sponsor-item--hot .sponsor-amount {
  color: #2a7aaa;
}

.sponsors-new {
  padding: 4px 12px 10px;
}

.sponsor-new-tag {
  padding: 6px 12px;
  margin-bottom: 4px;
  border-radius: 10px;
  background: rgba(26, 82, 118, 0.12);
  font-family: 'JetBrains Mono', Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: #1a5276;
  animation: new-tag-in 0.4s ease;
  transition: opacity 0.3s;
}

@keyframes new-tag-in {
  0%   { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ── Last Donate Badge ── */
.last-donate {
  margin-top: 0.75rem;
  padding: 8px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(26, 82, 118, 0.15) 0%, rgba(90, 172, 212, 0.15) 100%);
  border: 1px solid rgba(90, 172, 212, 0.3);
  font-family: 'JetBrains Mono', Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a5276;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.35s ease;
  pointer-events: none;
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  border-width: 0;
}

.last-donate.show {
  opacity: 1;
  transform: translateY(0);
  height: auto;
  padding: 8px 22px;
  margin-top: 0.75rem;
  border-width: 1px;
}

.last-donate.bye {
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.4s ease;
}

/* ── Donate Total Counter ── */
.donate-total {
  margin-top: 1.5rem;
  padding: 10px 28px;
  border-radius: 20px;
  background: rgba(26, 82, 118, 0.12);
  border: 1px solid rgba(26, 82, 118, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', Menlo, monospace;
  transition: all 0.3s ease;
}

.donate-total.bump {
  animation: total-bump 0.4s ease;
}

@keyframes total-bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.donate-total__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #3a7a9a;
}

.donate-total__sum {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0d4a7a;
  transition: color 0.2s;
}

.donate-total__sum.pop {
  animation: sum-pop 0.35s ease;
}

@keyframes sum-pop {
  0%   { transform: scale(1); color: #0d4a7a; }
  50%  { transform: scale(1.2); color: #2196f3; }
  100% { transform: scale(1); color: #0d4a7a; }
}

/* ── Donate Section ── */
.donate-section {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.donate-title {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #1a5276;
}

@media (min-width: 640px) {
  .donate-title { font-size: 1.9rem; }
}

.donate-subtitle {
  margin: 0;
  font-family: 'JetBrains Mono', Menlo, monospace;
  font-size: 0.78rem;
  color: #5a8a9a;
}

.donate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 400px;
  width: 100%;
}

@media (min-width: 480px) {
  .donate-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.donate-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 8px;
  border: 1.5px solid rgba(160, 210, 240, 0.6);
  border-radius: 16px;
  background: rgba(214, 238, 248, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  font-family: 'JetBrains Mono', Menlo, monospace;
  transition: all 0.3s ease;
  overflow: hidden;
}

.donate-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.6) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.donate-card:hover::before {
  opacity: 1;
}

.donate-card:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: #5aacd4;
  box-shadow:
    0 6px 20px rgba(90, 172, 212, 0.35),
    inset 0 0 20px rgba(255, 255, 255, 0.15);
}

.donate-card:active {
  transform: translateY(0) scale(0.97);
  transition: transform 0.1s;
}

.donate-card.pulse {
  animation: ice-pulse 0.5s ease;
}

@keyframes ice-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(90, 172, 212, 0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(90, 172, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(90, 172, 212, 0); }
}

.donate-amount {
  font-size: 1rem;
  font-weight: 600;
  color: #1a5276;
}

@media (min-width: 480px) {
  .donate-amount { font-size: 1.1rem; }
}

.donate-flake {
  font-size: 1.4rem;
  transition: transform 0.3s;
}

.donate-card:hover .donate-flake {
  transform: rotate(15deg) scale(1.2);
}

/* Hot tier cards */
.donate-card--hot {
  border-color: rgba(120, 180, 220, 0.7);
  background: linear-gradient(135deg, rgba(214, 238, 248, 0.65) 0%, rgba(180, 220, 245, 0.45) 100%);
}

.donate-card--hot:hover {
  border-color: #3a9cd4;
  box-shadow:
    0 6px 24px rgba(58, 156, 212, 0.4),
    inset 0 0 24px rgba(255, 255, 255, 0.2);
}

.donate-card--hot .donate-amount {
  color: #0d3f6a;
}

/* Feedback toast */
.donate-feedback {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 14px 28px;
  border-radius: 14px;
  background: rgba(26, 82, 118, 0.92);
  color: #d6eef8;
  font-family: 'JetBrains Mono', Menlo, monospace;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
  z-index: 500;
  box-shadow: 0 4px 20px rgba(26, 82, 118, 0.45);
}

.donate-feedback.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
