
:root {
  
  --md-sys-color-primary: #f5c800;
  --md-sys-color-on-primary: #3a2e00;
  --md-sys-color-primary-container: #544500;
  --md-sys-color-on-primary-container: #ffe17a;

  
  --md-sys-color-secondary: #d4c98a;
  --md-sys-color-on-secondary: #38320a;
  --md-sys-color-secondary-container: #504900;
  --md-sys-color-on-secondary-container: #f1e5a1;

  
  --md-sys-color-tertiary: #a8d4a4;
  --md-sys-color-on-tertiary: #143b11;
  --md-sys-color-tertiary-container: #2b5227;
  --md-sys-color-on-tertiary-container: #c4f0be;

  
  --md-sys-color-error: #ffb4ab;
  --md-sys-color-on-error: #690005;
  --md-sys-color-error-container: #93000a;
  --md-sys-color-on-error-container: #ffdad6;

  
  --md-sys-color-background: #13110a;
  --md-sys-color-on-background: #e8e2d0;
  --md-sys-color-surface: #13110a;
  --md-sys-color-surface-variant: #4a4639;
  --md-sys-color-on-surface: #e8e2d0;
  --md-sys-color-on-surface-variant: #ccc6a8;
  --md-sys-color-surface-container-lowest: #0d0c07;
  --md-sys-color-surface-container-low: #1b1910;
  --md-sys-color-surface-container: #1f1d14;
  --md-sys-color-surface-container-high: #2a2719;
  --md-sys-color-surface-container-highest: #35321f;

  
  --md-sys-color-outline: #978e6f;
  --md-sys-color-outline-variant: #4a4639;

  
  --md-sys-color-inverse-surface: #e8e2d0;
  --md-sys-color-inverse-on-surface: #34311e;
  --md-sys-color-inverse-primary: #6e5d00;

  
  --md-sys-color-scrim: #000000;
  --md-sys-color-shadow: #000000;

  
  --md-filled-button-container-color: var(--md-sys-color-primary);
  --md-filled-button-label-text-color: var(--md-sys-color-on-primary);
  --md-filled-button-hover-state-layer-color: var(--md-sys-color-on-primary);
  --md-filled-button-pressed-state-layer-color: var(--md-sys-color-on-primary);

  --md-filled-tonal-button-container-color: var(--md-sys-color-secondary-container);
  --md-filled-tonal-button-label-text-color: var(--md-sys-color-on-secondary-container);

  --md-filled-tonal-icon-button-container-color: var(--md-sys-color-secondary-container);
  --md-filled-tonal-icon-button-icon-color: var(--md-sys-color-on-secondary-container);

  --md-primary-tab-active-indicator-color: var(--md-sys-color-primary);
  --md-primary-tab-active-label-text-color: var(--md-sys-color-primary);
  --md-primary-tab-active-icon-color: var(--md-sys-color-primary);
  --md-primary-tab-label-text-color: var(--md-sys-color-on-surface-variant);
  --md-primary-tab-icon-color: var(--md-sys-color-on-surface-variant);
  --md-tabs-divider-color: var(--md-sys-color-outline-variant);

  --md-filled-field-container-color: var(--md-sys-color-surface-container-highest);
  --md-filled-field-label-text-color: var(--md-sys-color-on-surface-variant);
  --md-filled-field-focus-active-indicator-color: var(--md-sys-color-primary);
  --md-filled-field-focus-label-text-color: var(--md-sys-color-primary);

  --md-outlined-field-focus-outline-color: var(--md-sys-color-primary);
  --md-outlined-field-focus-label-text-color: var(--md-sys-color-primary);

  
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  color-scheme: dark;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--md-sys-color-background);
  color: var(--md-sys-color-on-background);
  min-height: 100vh;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  overflow-x: hidden;
}


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

.site-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.25;
}


.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 64px;
  background: color-mix(in srgb, var(--md-sys-color-surface) 92%, transparent);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.wordmark {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--md-sys-color-on-surface);
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-actions md-filled-button,
.top-actions md-filled-tonal-button {
  --md-filled-button-container-height: 40px;
  --md-filled-tonal-button-container-height: 40px;
}


.donate-wrap {
  position: relative;
}

.donate-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 280px;
  background: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: 12px;
  padding: 8px;
  display: none;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
}

.donate-menu.open { display: block; }

.dlink {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  margin: 2px 0;
  border-radius: 8px;
  font-size: .9375rem;
  font-weight: 500;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  text-decoration: none;
  color: #fff;
  background: var(--c);
  transition: filter .15s;
}

.dlink:hover { filter: brightness(1.12); }

.dthanks {
  margin-top: 8px;
  padding: 8px 16px;
  border-top: 1px solid var(--md-sys-color-outline-variant);
  text-align: center;
  font-size: .75rem;
  opacity: .6;
  color: var(--md-sys-color-on-surface-variant);
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}


main {
  position: relative;
  z-index: 1;
  padding-top: 64px;
}


.hero {
  text-align: center;
  padding: 72px 20px 48px;
}

.hero-name {
  
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--md-sys-color-primary);
  margin-bottom: 16px;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

.hero-desc {
  
  font-size: 1rem;
  line-height: 1.6;
  color: var(--md-sys-color-on-surface-variant);
  max-width: 480px;
  margin: 0 auto 28px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.sub-count-wrap {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}


.tabs-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

md-tabs {
  width: 100%;
  margin-bottom: 32px;
}

md-primary-tab {
  --md-primary-tab-container-height: 48px;
}

md-primary-tab [slot="icon"],
md-primary-tab .tab-icon-img {
  width: 20px;
  height: 20px;
  display: block;
}

.panel { display: block; }
.panel.hidden { display: none; }


.sec-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
  color: var(--md-sys-color-on-surface);
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}


.loading-txt {
  text-align: center;
  color: var(--md-sys-color-on-surface-variant);
  padding: 40px 0;
  font-size: .9375rem;
}


.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}


.proj-card {
  background: var(--md-sys-color-surface-container);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--md-sys-color-outline-variant);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .2s, background .2s;
}

.proj-card:hover {
  background: var(--md-sys-color-surface-container-high);
  box-shadow: 0 1px 6px rgba(0,0,0,.35);
}

.proj-title {
  
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  letter-spacing: .009em;
}

.proj-desc {
  
  font-size: .875rem;
  line-height: 1.6;
  color: var(--md-sys-color-on-surface-variant);
  flex: 1;
}

.proj-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.proj-btns md-filled-button,
.proj-btns md-outlined-button {
  --md-filled-button-leading-space: 20px;
  --md-filled-button-trailing-space: 20px;
  --md-outlined-button-leading-space: 20px;
  --md-outlined-button-trailing-space: 20px;
  flex: 1 1 auto;
}


.gd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}


.gd-card {
  background: var(--md-sys-color-surface-container);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  border: 2px solid;
  transition: background .2s;
}

.gd-card:hover {
  background: var(--md-sys-color-surface-container-high);
}

.gd-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 10px;
}


.gd-icon.material-symbols-outlined {
  font-size: 2.5rem;
}

.gd-text-icon {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 10px;
  font-size: .9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

.gd-val {
  
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

.gd-lbl {
  
  font-size: .75rem;
  color: var(--md-sys-color-on-surface-variant);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}


.geode-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--md-sys-color-error-container);
  color: var(--md-sys-color-on-error-container);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: .9375rem;
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 0;
}

.geode-banner .material-symbols-outlined {
  font-size: 1.375rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.geode-banner a {
  color: var(--md-sys-color-on-error-container);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}


.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  padding-top: 48px;
}


.mod-card {
  background: var(--md-sys-color-surface-container);
  border-radius: 12px;
  padding: 56px 20px 20px;
  border: 1px solid var(--md-sys-color-outline-variant);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: background .2s;
}

.mod-card:hover {
  background: var(--md-sys-color-surface-container-high);
}

.mod-logo {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--md-sys-color-outline);
  background: var(--md-sys-color-surface-container-lowest);
}

.mod-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--md-sys-color-primary);
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

.mod-desc {
  font-size: .875rem;
  line-height: 1.6;
  color: var(--md-sys-color-on-surface-variant);
  flex: 1;
}

.mod-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}


.mod-card-yellow {
  border-color: rgba(245,200,0,.4);
  background: color-mix(in srgb, var(--md-sys-color-primary-container) 30%, var(--md-sys-color-surface-container));
}

.mod-card-yellow .mod-logo {
  border-color: var(--md-sys-color-primary);
}

.mod-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

.mod-downloads {
  font-size: .8125rem;
  color: var(--md-sys-color-on-surface-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.mod-downloads .material-symbols-outlined {
  font-size: 1rem;
}


.mod-card-error {
  border-color: rgba(255, 180, 171, .3);
  background: color-mix(in srgb, var(--md-sys-color-error-container) 25%, var(--md-sys-color-surface-container));
  padding: 20px;
}

.mod-error-icon {
  font-size: 2rem;
  color: var(--md-sys-color-error);
  display: block;
  margin-bottom: 8px;
}

.mod-card-error .mod-title {
  color: var(--md-sys-color-error);
}

.mod-debug {
  margin-top: 12px;
  text-align: left;
  width: 100%;
}

.mod-debug summary {
  cursor: pointer;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--md-sys-color-error);
  text-decoration: underline;
}

.mod-debug pre {
  margin-top: 10px;
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(0,0,0,.4);
  border-radius: 8px;
  padding: 12px;
  font-size: .75rem;
  line-height: 1.5;
  color: var(--md-sys-color-on-error-container);
}


.embeds-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.embeds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
}

.embed-card {
  background: var(--md-sys-color-surface-container);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--md-sys-color-outline-variant);
}

.embed-lbl {
  
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

.embed-lbl .material-symbols-outlined {
  font-size: 1.25rem;
}

.embed-box {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  min-height: 200px;
}

.embed-box iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 8px;
  display: block;
}


footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px 20px;
  background: var(--md-sys-color-surface-container-lowest);
  font-size: .875rem;
  color: var(--md-sys-color-on-surface-variant);
  border-top: 1px solid var(--md-sys-color-outline-variant);
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}


.proj-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: .875rem;
  font-weight: 500;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: filter .15s, box-shadow .15s;
  letter-spacing: .00625em;
}

.proj-btn:not(.secondary) {
  color: var(--md-sys-color-on-primary);
  background: var(--md-sys-color-primary);
}

.proj-btn:not(.secondary):hover {
  filter: brightness(0.9);
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
}

.proj-btn.secondary {
  color: var(--md-sys-color-on-surface-variant);
  background: transparent;
  border: 1px solid var(--md-sys-color-outline);
}

.proj-btn.secondary:hover {
  background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
}

.proj-btn .material-symbols-outlined {
  font-size: 1.125rem;
}


@media (max-width: 600px) {
  .top-bar { padding: 0 12px; }
  .hero { padding: 56px 16px 36px; }
  .embeds-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .mod-grid { grid-template-columns: 1fr; }
  .gd-grid { grid-template-columns: repeat(2, 1fr); }
}
