﻿@font-face {
  font-family: '28DayZ';
  src: url('/assets/fonts/28 Days Later.ttf');
  font-weight: normal;
  font-style: normal;
}

:root {
  /* Site colors */
  --bg: #040404;
  --navbarbg: #050505;
  --hamburgerbg: rgb(10, 10, 10);
  --a2green: #547f37;
  --a2greentransparency: rgba(84, 127, 55, 0.75);
  --remnant-red: #740000;
  --text: #f4f7fb;
  --muted: #bcc5cf;
  --border: rgba(54, 54, 54, 0.75);

  /* Layout and typography */
  --shadow: 0 4px 24px rgba(0, 0, 0, .40);
  --radius: 6px;
  --container: 900px;
  --transition: .25s ease; 
  --font-remnant: '28DayZ';
  --font-text:    'Roboto', sans-serif;
  --nav-height: 64px;
  --container-wide: 1100px;
  --containerbg: rgb(35, 35, 35);
  --containerincontainerbg: rgb(25, 25, 25);
  --focus-ring: 0 0 0 3px rgba(84, 127, 55, 0.45);
}

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Roboto', sans-serif;
  background:var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-y: scroll;
  padding-top: var(--nav-height);
}

body.nav-open {
  overflow: hidden;
}

a,
button {
  -webkit-tap-highlight-color: rgba(84, 127, 55, 0.25);
}

a:focus-visible,
button:focus-visible,
.js-open-image:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  user-select: none;
  object-fit: cover;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
}

picture,
svg {
  max-width: 100%;
}

video {
  max-width: 100%;
  max-height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  object-fit: contain;
  display: block;
  overflow:  clip;
  overflow-clip-margin: content-box;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
}

iframe {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--container), 92%);
  margin: auto;
}

/* Reusable utilities for common page-level layout tweaks. */
.text-center {
  text-align: center;
}

.stack-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mt-sm {
  margin-top: 0.5rem;
}

.mb-md {
  margin-bottom: 1rem;
}

.mb-lg {
  margin-bottom: 1.5rem;
}

.strong-green {
  color: var(--a2green);
}

.text-link {
  color: var(--text);
  text-decoration: underline;
}

.text-link:hover {
  color: var(--a2green);
}

.webmap-link {
  color: var(--text);
  font-family: var(--font-text);
  font-size: 12px;
  text-decoration: underline;
}

.webmap-link:hover {
  color: var(--a2green);
}

.webmap-note {
  font-size: 1rem;
  margin-top: 1rem;
}

/* Image modal */
.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.image-modal.active {
  opacity: 1;
  visibility: visible;
  cursor: zoom-out;
}
.image-modal img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
}

/* ==========================
   REMNANT NAVHEADER
   ========================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  height: var(--nav-height);


  background: var(--navbarbg);
  backdrop-filter: blur(10px);

  border-bottom: 1px solid var(--border);

  z-index: 1000;
}

.header-inner {
  max-width: var(--container-wide);
  height: 100%;

  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-text {
  font-family: var(--font-remnant);
  font-size: 28px;
  color: var(--text);
  transition: var(--transition);
  white-space: nowrap;
}

.site-logo:hover .logo-text {
  color: var(--a2green);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 14px;
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font-text);
  transition: var(--transition);
  text-transform: uppercase;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.main-nav a:hover {
  color: var(--a2green);
}

.mobile-nav a.active {
  background: var(--a2green);
  border-radius: var(--radius);
}

.main-nav a.active {
  border-bottom: 2px solid var(--a2green);
}


.hamburger {
  display: none;

  width: 48px;
  height: 48px;

  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;

  cursor: pointer;

  position: relative;

  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
}

.hamburger span {
  position: absolute;

  left: 50%;
  top: 50%;

  width: 22px;
  height: 2px;

  background: var(--text);

  transform-origin: center;

  transition:
    transform .3s ease,
    opacity .25s ease,
    background .25s ease;
}

.hamburger span:nth-child(1) {
  transform: translate(-50%, -7px);
}

.hamburger span:nth-child(2) {
  transform: translate(-50%, 0);
}

.hamburger span:nth-child(3) {
  transform: translate(-50%, 7px);
}

.hamburger.active span:nth-child(1) {
  transform: translate(-50%, 0) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translate(-50%, 0);
}

.hamburger.active span:nth-child(3) {
  transform: translate(-50%, 0) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--hamburgerbg);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 12px;
  max-height: calc(100dvh - var(--nav-height));
  overflow-y: auto;

}

.mobile-nav.open {
  display: flex;
  z-index: 1000;
}

.mobile-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 12px;
  font-family: var(--font-text);
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-nav a:hover {
  color: var(--a2green);
}

@media (max-width: 1100px) {

  .main-nav {
    display: none;
  }

  .hamburger {
    display: block;
  }
}

@media (max-width: 420px) {
  .header-inner {
    padding: 0 12px;
  }

  .logo-text {
    font-size: clamp(20px, 7vw, 26px);
    max-width: calc(100vw - 92px);
    overflow-wrap: anywhere;
    white-space: normal;
    line-height: 1;
  }
}

/* ==========================
   REMNANT FOOTER
   ========================== */


footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  margin-top: 10rem;
  display: block;
  font-family: 'Roboto', sans-serif;
  background: var(--navbarbg);
}

.footer-note {
  font-size: 12px;
  color: var(--muted);
}

.footer-copyright {
  color: var(--text);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.privacy {
  color: var(--text);
  text-decoration: underline;
  font-size: 14px;
}


.privacy:hover {
    color: var(--a2green);
}


/* =========================
   UNDER CONSTRUCTION NOTICE
   ========================= */

.construction-banner {
  background: var(--containerincontainerbg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 0.75rem 0;
  z-index: 999;
}

.construction-content {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  padding: 0 1rem;
}

.construction-title {
  color: var(--remnant-red);
  font-family: var(--font-text);
  font-size: 2rem;
  text-transform: uppercase;
  line-height: 1.1;
}

.construction-text {
  font-family: var(--font-text);
  color: var(--muted);
  font-size: 1rem;
}

@media (max-width: 768px) {
  .construction-title {
    font-size: 1.2rem;
  }

  .construction-text {
    font-size: 0.85rem;
    padding: 0 1rem;
  }
}

/* =========================
   MAIN HERO (HOME PAGE)
   ========================= */

.hero {
  min-height: calc(100dvh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background:
    linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)),
    url('../images/home1.jpg');

  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .hero {
    min-height: calc(100dvh - var(--nav-height));
    height: auto;
    background-attachment: scroll;
    padding: 3rem 0;
  }

  .hero-logo {
    width: 180px;
    height: 180px;
  }
}


/* =========================
   SHARED HERO STYLES
   ========================= */

.infohero,
.lorehero,
.ruleshero,
.servershero,
.donatehero,
.contacthero,
.howtojoinhero,
.errorhero,
.a2infohero,
.a2howtojoinhero {
width: 100%;
aspect-ratio: 2560 / 400;
min-height: 120px;
background-position: center;
background-size: cover;
background-repeat: no-repeat;
background-attachment: scroll;
display: flex;
align-items: center;
justify-content: center;
text-align: center;

}


/* =========================
   INDIVIDUAL HERO IMAGES
   ========================= */

.infohero {
  background-image:
    linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)),
    url('../images/heroimages/info.png');
  background-position: center 20%;
}

.lorehero {
  background-image:
    linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)),
    url('../images/heroimages/lore.png');
  background-position: center 30%;
}

.ruleshero {
  background-image:
    linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)),
    url('../images/heroimages/rules.png');
  background-position: center 30%;
}

.servershero {
  background-image:
    linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)),
    url('../images/heroimages/servers.png');
  background-position: center 40%;
}

.donatehero {
  background-image:
    linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)),
    url('../images/heroimages/donate.png');
  background-position: center 10%;
}

.contacthero {
  background-image:
    linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)),
    url('../images/heroimages/contact.png');
  background-position: center 40%;
}

.howtojoinhero {
  background-image:
    linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)),
    url('../images/heroimages/howtojoin.png');
  background-position: center 5%;
}

.errorhero {
  background-image:
    linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)),
    url('../images/heroimages/error.png');
  background-position: center 5%;
}

.a2infohero {
  background-image:
    linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)),
    url('../images/heroimages/a2info.png');
  background-position: center 10%;
}

.a2howtojoinhero {
  background-image:
    linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)),
    url('../images/heroimages/a2howtojoin.png');
  background-position: center 90%;
}


@media (max-width: 768px) {
  .infohero,
  .lorehero,
  .ruleshero,
  .servershero,
  .donatehero,
  .contacthero,
  .howtojoinhero,
  .errorhero,
  .a2infohero,
  .a2howtojoinhero {
    display: flex;
    height: clamp(120px, 32vw, 180px);
    background-attachment: scroll;
  }
}

@media (min-width: 769px) {
  .infohero,
  .lorehero,
  .ruleshero,
  .servershero,
  .donatehero,
  .contacthero,
  .howtojoinhero,
  .errorhero,
  .a2infohero,
  .a2howtojoinhero {
    min-height: 180px;
  }
}

.hero-content {
  max-width: 720px;
  padding: 4rem 0;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
}


.social-heading,
.donate-heading {
  font-family: var(--font-remnant);
  font-size: 28px;
  font-weight: normal;
}

.terms-heading {
  padding-top: 1rem;
  font-family: var(--font-text);
  font-size: 28px;
  font-weight: normal;
  text-decoration: underline;
}

.rules-heading{
  font-family: '28DayZ';
  font-size: 30px;
  font-weight: normal;
  text-decoration: underline;
}

.section-kicker {
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.25rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  display: block;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.brand-kicker {
  color: var(--text);
  font-family: var(--font-remnant);
  font-size: 1.25rem;
  letter-spacing: 0.05rem;
  display: block;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.content-kicker {
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1rem;
}

.server-map-label {
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1rem;
}

.page-title {
  color: var(--text);
  font-family: var(--font-text);
  font-size: 2rem;
  text-transform: uppercase;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.page-header {
  flex-direction: column;
  margin-bottom: 0.5rem;
}

.content-heading{
  font-family: var(--font-remnant);
  font-size: 20px;
  font-weight: normal;
  line-height: 1;
  text-transform: uppercase;
}


.hero p {
  color: var(--muted);
  font-size: 1.0rem;
  margin-bottom: 0.5rem;
}

strong {
  color: var(--text);
  font-weight: 575; /* semibold */
}

.feature-card strong {
  color: var(--text);
  font-weight: 600;
}

.hero-logo {
  width: 250px;
  height: 250px;
  object-fit: contain;
}

.js-open-image {
  cursor: pointer;
}

.lore-image {
  width: 80%;
  height: 80%;
  margin-top: 1rem;
  margin-bottom: 1rem;
  height: auto;
}

.donate-image {
  width: 50%;
  height: auto;
}

.info-image {
  width: 30%;
  height: auto;
  padding-bottom: 1rem;
  object-fit: contain;
}

.image-offset-top {
  padding-top: 1rem;
}

.content-heading--spaced {
  padding-top: 1rem;
}

.info-image-large {
  width: 10%;
  height: auto;
  padding-bottom: 1rem;
  object-fit: contain;
}

.join-image {
  width: 20%;
  height: auto;
  border: 1px solid var(--border);
  object-fit: contain;
}

.join-image-large {
  width: 50%;
  height: auto;
  border: 1px solid var(--border);
  object-fit: contain;
}

.map-image {
  width: 50%;
  height: auto;
  border: 1px solid var(--border);
  object-fit: contain;
}

.server-map-image {
  width: 25%;
  height: auto;
  border: 1px solid var(--border);
  margin-top: 1rem;
  margin-bottom: 1rem;
  object-fit: contain;
}

.button-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  align-items: center;
  justify-content: center;
}


.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .95rem 1.3rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
  border: 1px solid transparent;
  min-height: 44px;
  text-align: center;
}

.button--primary {
  background: var(--a2green);
  color: var(--text);
  border-color: var(--border);
}

.button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(84,127,55,.5);
}

.button--server {
  background: var(--remnant-red);
  color: var(--text);
  border-color: var(--border);
}

.button--server:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(84,127,55,.5);
  background: var(--a2green);
}

.button--kofi {
  background: var(--a2green);
  color: var(--text);
  border-color: var(--border);
}

.button--kofi:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(84,127,55,.5);
  background: #416c29;
}

.button--instagram {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
  color: var(--text);
  border-color: var(--border);
}

.button--tiktok {
  background: #000000;
  color: var(--text);
  border-color: var(--border);
}

.button--youtube {
  background: #FF0000;
  color: var(--text);
  border-color: var(--border);
}


.button--instagram:hover,
.button--tiktok:hover,
.button--youtube:hover
 {
  background: var(--a2green);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(84,127,55,.5);
}

.section {
  padding: 1.5rem 0;
}

.text-muted {
  color: var(--muted);
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
}



.server-details {
  color: var(--muted);
  margin-bottom: 0rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}

.server-ip {
  background: rgb(0, 0, 0);
  color: var(--a2green);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  margin-top: 1rem;
  margin-bottom: 1rem;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.feature-card:hover {
  background:var(--a2green);
  transform: translateY(-2px);
}

.feature-card,
.content-panel {
  background: var(--containerbg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: block;
  flex-direction: column;
  height: 100%;
  margin-bottom: 1.5rem;
  min-width: 0;
}

.feature-card {
  background: var(--containerincontainerbg);
}

.panel-accent {
  border-left: 3px solid var(--a2green);
}

.server-panel {
  background: var(--containerbg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: block;
  flex-direction: column;
  height: 100%;
  border-left: 3px solid var(--a2green);
  margin-bottom: 1.5rem;
}

.server-widget-card {
  background: var(--containerincontainerbg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin-bottom: 1rem;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.server-widget-card iframe {
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  transition: var(--transition);
}

.server-panel-title {
  font-family: var(--font-text);
  font-size: 28px;
  font-weight: normal;
}

.server-widget-title {
  font-size: 20px;
  font-weight: 400;
  font-family: var(--font-text);
  text-align: center;
}

.feature-card h2 {
  margin-bottom: .75rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.feature-card p,
.faq-content p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.server-widget-card p
{
  text-align: center;
  margin-bottom: 1rem;
}

.content-panel p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.server-panel p{
  font-size: 12px;
}

.server-widget-card p{
  font-size: 12px;
}

.server-panel h2{
  align-items: left;
  text-align: left;
}

.server-widget-card h2{
  align-items: left;
  text-align: left;
}

.content-stack {
  gap: 1.5rem;
  align-items: left;
  text-align: left;
  min-width: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-weight: 700;
  user-select: none;
  align-items: center;
  font-family: '28DayZ';
  font-size: 28px;
  font-weight: normal;
  border-bottom: 1px solid #aab5c3;
  line-height: 1.2;
}

.faq-header:hover {
    color: var(--a2green);
    border-bottom: 1px solid var(--a2green);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: var(--transition);
  padding-top: 5px;
}

.faq-item {
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active .faq-content {
  opacity: 1;
  transform: translateY(0);
  max-height: 100%;
  padding-top: 0.1rem;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-icon {
  transition: var(--transition);
}


@media (max-width: 768px) {
  body {
    line-height: 1.55;
  }

  .container {
    width: min(100% - 24px, var(--container));
  }

  .section {
    padding: 1rem 0;
  }

  .content-panel,
  .server-panel,
  .server-widget-card,
  .feature-card {
    padding: 1rem;
  }

  .page-title {
    font-size: clamp(1.45rem, 8vw, 2rem);
  }

  .section-kicker,
  .brand-kicker {
    font-size: 1.05rem;
  }

  .faq-header {
    font-size: clamp(1.25rem, 7vw, 1.75rem);
  }

  .lore-image,
  .donate-image,
  .info-image,
  .info-image-large,
  .join-image,
  .join-image-large,
  .map-image,
  .server-map-image {
    width: 100%;
    max-height: 70dvh;
    margin-left: auto;
    margin-right: auto;
  }

  .info-image,
  .info-image-large {
    max-width: 420px;
  }

  .button-row,
  .button-row {
    gap: 0.75rem;
  }

  .button {
    flex: 1 1 160px;
    padding: 0.85rem 1rem;
  }

  .server-widget-card iframe {
    width: 100% !important;
    min-height: 80px;
  }

  .carousel-button {
    width: 44px;
    height: 44px;
  }

  .carousel-slide figcaption {
    font-size: 0.9rem;
    padding: 10px 12px 28px;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    width: 160px;
    height: 160px;
  }

  .construction-banner {
    padding: 0.55rem 0;
  }

  .mobile-nav {
    padding: 8px 12px 14px;
  }

  .button {
    flex-basis: 100%;
  }

  .carousel-dots {
    bottom: 10px;
  }
}

/* Input output table */
.table-scroll {
  margin-bottom: 1rem;
  max-width: 50%;
  overflow-x: auto;
}

@media (max-width:768px){
  .table-scroll{
    max-width: 100%;
  }
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #1f1f1f;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Header */
.data-table thead {
  background: #141414;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-family: '28DayZ';
  font-weight: normal;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
}

/* Cells */
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--muted);
}

/* Row hover */
.data-table tbody tr {
  transition: 0.2s ease;
}

.data-table tbody tr:hover {
  background: rgba(84, 127, 55, 0.15);
}

/* Ingredient highlight */
.table-input {
  color: var(--muted);
  font-weight: 600;
}

/* Result highlight */
.table-result {
  color: var(--muted);
  font-weight: 700;
}

/* Mobile scroll hint */
.table-scroll::-webkit-scrollbar {
  height: 6px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: var(--a2green);
  border-radius: var(--radius);
}

.table-note {
  margin-bottom: 0rem;
}

.humanity-table {
  width: 100%;
  border-collapse: collapse;
  background: #1f1f1f;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.humanity-table thead {
  background: #141414;
}

.humanity-table th {
  text-align: left;
  padding: 12px 16px;
  font-family: '28DayZ';
  font-weight: normal;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
}

.humanity-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.humanity-table tbody tr:hover {
  background: rgba(84, 127, 55, 0.15);
  transition: 0.2s ease;
}

.humanity-neutral {
  color: var(--muted);
  font-weight: 700;
}

.humanity-positive {
  color: #00cc00;
  font-weight: 700;
}

.humanity-negative {
  color: #e60000;
  font-weight: 700;
}

/* Carousel */
.carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  margin: 0;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Caption */
.carousel-slide figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  font-size: 1.0rem;
  color: var(--text);
  text-shadow: 1px 1px 1px #00000091;   
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.50),
    rgba(0,0,0,0)
  );
}

/* Buttons */
.carousel-button {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  color: var(--text);
  border: 1px solid #444;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  z-index: 2;
}

.carousel-button:hover {
  background: rgba(0,0,0,0.75);
}

.carousel-button.prev { 
  left: 12px;
 }
.carousel-button.next { 
  right: 12px;
 }

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: white;
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.carousel-dot.active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
