:root {
  color-scheme: dark;
  --bg: #05070a;
  --panel: #0b0e14;
  --panel-light: #121620;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --line: #1e293b;
  --line-hover: #334155;
  --accent: #ffd23f; /* Premium Gold */
  --accent-rgb: 255, 210, 63;
  --accent-2: #00f0ff; /* Neon Cyber Cyan */
  --accent-2-rgb: 0, 240, 255;
  --glow-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
  --glow-gold: 0 0 20px rgba(255, 210, 63, 0.15);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, SF Mono, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background-color: var(--bg);
  /* Tactical grid background */
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(0, 240, 255, 0.04), transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(255, 210, 63, 0.02), transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.008) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.008) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0; /* No negative letter-spacing allowed */
}

a, button, input, select {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.02em;
}

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

h1, h2, h3, h4, .brand, .tier-badge {
  font-family: var(--font-sans);
  letter-spacing: 0.02em; /* Ensure non-negative letter spacing */
}

/* Page Shell Layout */
.page-shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 100px 0 64px;
}

/* Header Component */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  color: #fff;
}

.brand img {
  border-radius: 6px;
  border: 1px solid var(--accent);
  box-shadow: 0 0 10px rgba(255, 210, 63, 0.2);
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 0;
  position: relative;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.discord-button {
  background: #5865f2;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.2);
}

.discord-button:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(88, 101, 242, 0.35);
}

main {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 108px 0 64px;
}

/* Homepage Hero Dashboard Grid */
.dashboard-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
  padding: 64px 0 56px;
  position: relative;
  min-height: 620px;
}

.dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0 34% 92px -6%;
  background:
    linear-gradient(90deg, rgba(5, 7, 10, 0.5), rgba(5, 7, 10, 0.82) 56%, rgba(5, 7, 10, 0.98)),
    linear-gradient(0deg, rgba(5, 7, 10, 0.95), rgba(5, 7, 10, 0.15) 42%, rgba(5, 7, 10, 0.78)),
    url("/assets/roblox/media-01-640.webp");
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  opacity: 0.88;
  pointer-events: none;
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  inset: 0 34% 92px -6%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  border-radius: 8px;
  pointer-events: none;
}

.dashboard-hero > * {
  position: relative;
  z-index: 1;
}

.hero-left {
  display: flex;
  flex-direction: column;
  padding: 6px 0 0 0;
}

.stacked-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 20px 0;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.stacked-title .line {
  display: block;
  color: #fff;
}

.stacked-title .slash {
  color: var(--accent-2);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  margin-left: 4px;
}

.stacked-title .highlight {
  color: var(--accent);
  text-shadow: 0 0 15px rgba(255, 210, 63, 0.3);
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 32px 0;
  max-width: 580px;
}

/* Status Chips */
.status-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.status-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
}

.status-chips .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

.status-chips .chip-update {
  border-color: rgba(0, 240, 255, 0.25);
  color: var(--accent-2);
}

.status-chips .chip-update .pulse-dot {
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
}

.status-chips .chip-codes {
  border-color: rgba(255, 210, 63, 0.25);
  color: var(--accent);
}

.status-chips .chip-codes .pulse-dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.status-chips .chip-checked .pulse-dot {
  background: var(--muted);
  animation: none;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.5; }
}

/* Quick Links Strip */
.quick-links-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  flex-wrap: wrap;
}

.quick-links-strip .strip-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.quick-links-strip .strip-items {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-links-strip a {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  background: var(--panel);
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.quick-links-strip a:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background: var(--panel-light);
}

/* Dashboard Grid & Cards */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dash-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  min-height: 185px;
  text-decoration: none;
  color: inherit;
}

.dash-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-hover, var(--line));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), var(--glow-effect, none);
}

.dash-card .card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.dash-card .card-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dash-card .card-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  width: max-content;
  margin-bottom: 12px;
}

.tag-blue { background: rgba(0, 240, 255, 0.1); color: var(--accent-2); }
.tag-yellow { background: rgba(255, 210, 63, 0.1); color: var(--accent); }
.tag-pink { background: rgba(255, 75, 114, 0.1); color: #ff4b72; }
.tag-cyan { background: rgba(0, 240, 255, 0.1); color: var(--accent-2); }

.dash-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 8px 0;
  color: #fff;
}

.dash-card p {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 16px 0;
}

.dash-card .card-action {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--action-color, var(--text));
}

.dash-card .card-action::after {
  content: "→";
  transition: transform 0.2s;
}

.dash-card:hover .card-action::after {
  transform: translateX(4px);
}

/* Card Specific Theme Highlight */
.card-update-13 {
  grid-column: 1 / -1;
  min-height: 190px;
  --line-hover: #3b82f6;
  --glow-effect: 0 0 25px rgba(59, 130, 246, 0.15);
  --action-color: var(--accent-2);
}

.card-working-codes {
  --line-hover: var(--accent);
  --glow-effect: var(--glow-gold);
  --action-color: var(--accent);
}

.card-tier-snapshot {
  --line-hover: #ff4b72;
  --glow-effect: 0 0 25px rgba(255, 75, 114, 0.15);
  --action-color: #ff4b72;
}

.card-roblox-stats {
  --line-hover: var(--accent-2);
  --glow-effect: var(--glow-shadow);
  --action-color: var(--accent-2);
}

/* Codes item on Dashboard */
.dash-codes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.dash-code-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--panel-light);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
}

.code-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

.dash-copy-btn {
  background: var(--accent-2);
  color: #05070a;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.dash-copy-btn:hover {
  background: #fff;
  transform: scale(1.03);
}

/* Tier list on Dashboard */
.dash-tier-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-tier-list li {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  padding-left: 14px;
  position: relative;
}

.dash-tier-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: #ff4b72;
  border-radius: 50%;
  box-shadow: 0 0 6px #ff4b72;
}

/* Roblox Stats layout */
.dash-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item strong {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.stat-item span {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--muted);
}

/* Explore Section / Bottom Cards */
.explorer-section {
  margin-top: 48px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 28px 0;
  border-bottom: 2px solid var(--line);
  padding-bottom: 8px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.guide-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-hover-border, var(--line));
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4), var(--card-glow, none);
}

.card-thumb-wrapper {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 24px auto 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-thumb {
  width: 46px;
  height: 46px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.guide-card:hover .card-thumb-wrapper {
  border-color: var(--card-hover-border, var(--line));
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.06), var(--card-glow, none);
}

.guide-card:hover .card-thumb {
  transform: scale(1.1);
}

.card-content {
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
}

.guide-card h2 {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 8px 0;
  color: #fff;
  transition: color 0.2s ease;
}

.guide-card:hover h2 {
  color: var(--card-accent, var(--accent));
}

.guide-card p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 16px 0;
  flex-grow: 1;
}

.guide-card span {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--card-accent, var(--accent));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.guide-card span::after {
  content: "→";
  transition: transform 0.2s;
}

.guide-card:hover span::after {
  transform: translateX(4px);
}

/* Bottom Card Specific Accents */
.guide-card[href="/codes/"] { --card-hover-border: var(--accent-2); --card-glow: 0 0 25px rgba(0, 240, 255, 0.12); --card-accent: var(--accent-2); }
.guide-card[href="/tier-list/"] { --card-hover-border: #ff4b72; --card-glow: 0 0 25px rgba(255, 75, 114, 0.12); --card-accent: #ff4b72; }
.guide-card[href="/units/"] { --card-hover-border: #22c55e; --card-glow: 0 0 25px rgba(34, 197, 94, 0.12); --card-accent: #22c55e; }
.guide-card[href="/damage-calculator/"] { --card-hover-border: #38bdf8; --card-glow: 0 0 25px rgba(56, 189, 248, 0.12); --card-accent: #38bdf8; }
.guide-card[href="/value-list/"] { --card-hover-border: var(--accent); --card-glow: 0 0 25px rgba(255, 210, 63, 0.12); --card-accent: var(--accent); }
.guide-card[href="/trading-calculator/"] { --card-hover-border: #a855f7; --card-glow: 0 0 25px rgba(168, 85, 247, 0.12); --card-accent: #a855f7; }
.guide-card[href="/update-13/"] { --card-hover-border: #3b82f6; --card-glow: 0 0 25px rgba(59, 130, 246, 0.12); --card-accent: #3b82f6; }
.guide-card[href="/beginner-guide/"] { --card-hover-border: #10b981; --card-glow: 0 0 25px rgba(16, 185, 129, 0.12); --card-accent: #10b981; }

/* Article Layout Skin */
.article-hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
  padding: 24px 0 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.article-hero .eyebrow {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 8px 0;
}

.article-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0 0 16px 0;
  color: #fff;
}

.article-hero .lede {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 24px 0;
}

.article-hero .status-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.article-hero .status-row span {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--muted);
}

.article-hero picture img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}

/* Article Content Elements */
.content-band {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  margin: 32px 0;
}

.content-band h2 {
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 16px;
}

.content-band p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.content-band p:last-child {
  margin-bottom: 0;
}

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

.unit-database-summary article,
.unit-stat-card,
.damage-calculator {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.unit-database-summary strong {
  display: block;
  color: var(--accent-2);
  font-size: 2rem;
  line-height: 1;
}

.unit-database-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.unit-browser {
  display: grid;
  gap: 18px;
}

.unit-filter-bar {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: 12px;
  background: rgba(11, 14, 20, 0.62);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.unit-filter-bar label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.unit-filter-bar input,
.unit-filter-bar select {
  min-width: 0;
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font: inherit;
  padding: 0 12px;
}

.unit-result-line {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

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

.unit-stat-card {
  display: grid;
  gap: 18px;
}

.unit-stat-card[hidden] {
  display: none;
}

.unit-stat-card span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.unit-stat-card h2 {
  margin: 6px 0 8px;
  color: #fff;
  font-size: 1.25rem;
}

.unit-stat-card p {
  margin: 0;
  color: var(--muted);
}

.unit-stat-card dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.unit-stat-card dl div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.unit-stat-card dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.unit-stat-card dd {
  margin: 2px 0 0;
  color: #fff;
  font-weight: 900;
}

.unit-stat-card a {
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.damage-calculator {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 20px;
  margin-bottom: 28px;
}

.calc-control-panel,
.calc-grid {
  display: grid;
  gap: 14px;
}

.calc-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.damage-calculator label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.damage-calculator input,
.damage-calculator select {
  min-width: 0;
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font: inherit;
  padding: 0 12px;
}

.damage-output {
  align-self: stretch;
  display: flex;
  align-items: center;
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.08);
  color: #dffbff;
  font-size: 1.1rem;
  font-weight: 850;
  line-height: 1.5;
  padding: 22px;
}

.content-band ol.steps {
  padding-left: 20px;
  margin: 0;
  color: var(--muted);
}

.content-band ol.steps li {
  margin-bottom: 10px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.content-band ol.steps li::marker {
  color: var(--accent-2);
  font-weight: 800;
}

/* Codes Cards Skin */
.code-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.code-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.code-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-2);
}

.code-card div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.code-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(0, 240, 255, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  width: max-content;
}

.code-card h2 {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.code-card p {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text);
  margin: 0;
}

.code-card small {
  font-size: 0.72rem;
  color: var(--muted);
}

.copy-code {
  background: var(--accent);
  color: #05070a;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
}

.copy-code:hover {
  background: #fff;
  transform: translateY(-1px);
}

/* Tier List Rows Skin */
.tier-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.tier-row {
  display: flex;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.tier-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  min-height: 100px;
  font-size: 2.2rem;
  font-weight: 900;
  color: #05070a;
  flex-shrink: 0;
}

.tier-row:nth-child(1) .tier-badge { background: #ff4b72; }
.tier-row:nth-child(2) .tier-badge { background: var(--accent); }
.tier-row:nth-child(3) .tier-badge { background: var(--accent-2); }

.tier-row > div:nth-child(2) {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.tier-row h2 {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
}

.tier-row p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.chip-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-list li {
  background: var(--panel-light);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.note-grid p {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.note-grid strong {
  color: var(--accent-2);
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* Value List and Update Grid Skins */
.factor-table, .update-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.factor-table article, .update-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.factor-table h2, .update-grid h2 {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.factor-table p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.watch-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px;
}

.watch-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 18px;
}

.watch-list strong {
  font-size: 0.88rem;
  color: #fff;
}

.watch-list span {
  font-size: 0.72rem;
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-2);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Trading Calculator CSS */
.calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 36px;
}

.calc-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-side h2 {
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.calc-side label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
}

.calc-side label:has(input[type="checkbox"]) {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 0;
}

.calc-side select {
  background: var(--panel-light);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #fff;
  padding: 12px;
  font-size: 0.9rem;
  outline: none;
}

.calc-side select:focus {
  border-color: var(--accent-2);
}

.calc-side input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  outline: none;
  margin: 8px 0;
}

.calc-side input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-2);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.calc-side input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-2);
  cursor: pointer;
}

.calc-result {
  grid-column: 1 / -1;
  background: var(--panel-light);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

/* Timeline Layout Skin */
.guide-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 36px;
  position: relative;
}

.guide-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: var(--line);
}

.guide-timeline article {
  display: flex;
  gap: 20px;
  position: relative;
}

.guide-timeline span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--panel-light);
  border: 2px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(255, 210, 63, 0.2);
}

.guide-timeline article > div {
  margin-top: 6px;
}

.guide-timeline article h2 {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 6px 0;
}

.guide-timeline article p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.bullet-list {
  padding-left: 20px;
  margin: 0;
  color: var(--muted);
}

.bullet-list li {
  margin-bottom: 10px;
  line-height: 1.55;
  font-size: 0.92rem;
}

.bullet-list li::marker {
  color: var(--accent);
}

/* Unit and Links grids */
.unit-grid, .link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.unit-grid article, .link-list article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
}

.unit-grid h2, .link-list h2 {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  margin-top: 0;
  margin-bottom: 10px;
}

.unit-grid p, .link-list p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 16px 0;
}

.unit-grid a, .link-list a {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.unit-grid a:hover, .link-list a:hover {
  color: var(--accent);
}

/* Source strip footer skin */
.source-strip {
  background: rgba(11, 14, 20, 0.4);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 24px;
  margin-top: 56px;
}

.source-strip h2 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 16px;
}

.source-strip ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.source-strip li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
}

.source-strip li a {
  color: var(--accent-2);
  font-weight: 700;
}

.source-strip li a:hover {
  text-decoration: underline;
}

.source-strip li span {
  color: var(--muted);
}

/* Footer Styling */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  padding: 48px 40px;
  background: rgba(5, 7, 10, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.site-footer div {
  max-width: 480px;
}

.site-footer strong {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  display: block;
  margin-bottom: 12px;
}

.site-footer p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer nav a {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer nav a:hover {
  color: var(--accent);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .site-header {
    padding: 0 24px;
  }
  .dashboard-hero, .article-hero {
    gap: 32px;
  }

  .damage-calculator {
    grid-template-columns: 1fr;
  }

  .unit-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    height: auto;
    padding: 16px 20px;
    gap: 16px;
    position: relative;
  }
  
  .site-nav {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .discord-button {
    width: 100%;
    text-align: center;
  }
  
  main {
    padding-top: 40px;
  }
  
  .dashboard-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 0;
    padding-top: 36px;
  }

  .dashboard-hero::before,
  .dashboard-hero::after {
    inset: 0 -12px auto -12px;
    height: 420px;
  }
  
  .article-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .unit-database-summary,
  .unit-filter-bar,
  .unit-stat-grid,
  .calc-grid {
    grid-template-columns: 1fr;
  }

  .unit-stat-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .site-footer {
    padding: 40px 20px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
  }
  
  .site-footer nav {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  main {
    width: min(100% - 24px, 1200px);
  }
  
  .brand {
    font-size: 0.95rem;
  }
  
  .site-nav a,
  .discord-button {
    font-size: 0.72rem;
  }
  
  .stacked-title {
    font-size: 2.2rem;
  }
  
  .code-card {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .copy-code {
    width: 100%;
    text-align: center;
  }
  
  .watch-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .tier-row {
    flex-direction: column;
  }
  
  .tier-badge {
    width: 100%;
    min-height: 50px;
    font-size: 1.8rem;
  }
}

@media (max-width: 390px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
