:root {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --text: #16302b;
  --muted: #4d675f;
  --accent: #1e7a62;
  --border: #d7e3de;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #e6f1ec 0%, var(--bg) 50%, #eef4f1 100%);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1 {
  margin: 0;
  color: var(--accent);
}

.subtitle {
  margin: 0.5rem 0 2rem;
  color: var(--muted);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  align-items: start;
}

.action-unavailable {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.action-link {
  display: block;
  width: 100%;
  min-height: 140px;
  border-radius: 16px;
  text-decoration: none;
  color: #ffffff;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 700;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.1;
  box-shadow: 0 16px 30px rgba(22, 48, 43, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.action-note {
  font-size: clamp(0.72rem, 1.6vw, 0.9rem);
  font-weight: 500;
  opacity: 0.92;
}

.action-link:hover,
.action-link:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 20px 34px rgba(22, 48, 43, 0.2);
  filter: saturate(1.05);
}

.action-link:focus-visible {
  outline: 3px solid #0d4c3d;
  outline-offset: 2px;
}

.donate {
  background: linear-gradient(135deg, #f06f4f 0%, #df3f56 100%);
}

.tune {
  background: linear-gradient(135deg, #2f7bc7 0%, #115f8a 100%);
}

.tune-disabled {
  position: relative;
  overflow: hidden;
  cursor: not-allowed;
  pointer-events: none;
}

.tune-disabled::before,
.tune-disabled::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160%;
  height: 8px;
  border-radius: 999px;
  background: rgba(220, 25, 25, 0.96);
  transform-origin: center;
  z-index: 2;
}

.tune-disabled::before {
  transform: translate(-50%, -50%) rotate(27deg);
}

.tune-disabled::after {
  transform: translate(-50%, -50%) rotate(-27deg);
}

.tune-hint {
  display: block;
  font-size: 0.7rem;
  font-weight: normal;
  opacity: 0.75;
  margin-top: 0.3rem;
  line-height: 1.3;
  white-space: normal;
}

.tune-down-note {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--muted);
  text-align: left;
}

.challenge-note {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  text-align: left;
}

.challenge-note p {
  margin: 0;
  line-height: 1.5;
}

.challenge-note p + p {
  margin-top: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.social-footer {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.78;
  transition: opacity 140ms ease;
}

.social-footer a:hover,
.social-footer a:focus-visible {
  opacity: 1;
  text-decoration: underline;
}
