:root {
  --bg: #c0c0c0;
  --surface: #dfdfdf;
  --ink: #000000;
  --muted: #808080;
  --primary: #000080;
  --accent: #0000ff;
  --warning: #ff8000;
  --error: #ff0000;
  --teal: #008080;
  --radius: 0px;
  --shadow: none;
  --space: 16px;
  --highlight: #dfdfdf;
  --shadow-dark: #808080;
  --shadow-light: #ffffff;
}

body:not(.light-mode) {
  --bg: #0d0f14;
  --surface: #1a1d24;
  --ink: #f0f2f5;
  --muted: #8b919e;
  --primary: #6366f1;
  --accent: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --teal: #14b8a6;
  --shadow-dark: #0a0c10;
  --shadow-light: #30363d;
}

body.light-mode {
  --bg: #c0c0c0;
  --surface: #dfdfdf;
  --ink: #000000;
  --muted: #808080;
  --primary: #000080;
  --accent: #0000ff;
  --warning: #ff8000;
  --error: #ff0000;
  --teal: #008080;
  --shadow-dark: #808080;
  --shadow-light: #ffffff;
}

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

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: 'MS Sans Serif', 'Microsoft Sans Serif', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background 200ms ease, color 200ms ease;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  background: var(--surface);
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  padding: 2px;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 200ms ease, border-color 200ms ease;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 2px;
}

.logo {
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0;
  transition: color 200ms ease;
  text-transform: none;
  text-shadow: none;
  padding: 2px 4px;
  background: var(--surface);
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
}

.logo:hover {
  color: var(--ink);
  text-shadow: none;
}

.nav {
  display: flex;
  gap: 2px;
  flex: 1;
}

.nav-link {
  font-size: 11px;
  color: var(--ink);
  text-decoration: none;
  transition: background 200ms ease, border-color 200ms ease;
  padding: 4px 6px;
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  background: var(--surface);
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
  border-color: var(--shadow-dark) var(--shadow-light) var(--shadow-light) var(--shadow-dark);
  background: var(--surface);
}

.theme-toggle {
  background: var(--surface);
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  color: var(--ink);
  width: 32px;
  height: 32px;
  border-radius: 0px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 200ms ease, border-color 200ms ease;
  flex-shrink: 0;
  padding: 0;
}

.theme-toggle:hover {
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  color: var(--ink);
}

.theme-toggle:active {
  border-color: var(--shadow-dark) var(--shadow-light) var(--shadow-light) var(--shadow-dark);
}

.theme-toggle:focus-visible {
  outline: 1px dotted var(--ink);
  outline-offset: -4px;
}

.hero {
  position: relative;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
  overflow: hidden;
  transition: background 200ms ease;
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  margin: 4px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 2px,
    rgba(0,0,0,0.1) 2px 3px
  );
  pointer-events: none;
  opacity: 0.3;
  z-index: 0;
}

body.light-mode .hero::before {
  background: repeating-linear-gradient(
    0deg,
    transparent 0 2px,
    rgba(0,0,0,0.05) 2px 3px
  );
  opacity: 0.2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.brand {
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0;
  transition: color 200ms ease;
  text-transform: none;
  text-shadow: none;
}

.tagline {
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: 0;
  transition: color 200ms ease, text-shadow 200ms ease;
  text-transform: none;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  color: var(--ink);
}

.hero-subtitle {
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  letter-spacing: 0;
  font-weight: 400;
  text-transform: none;
  transition: color 200ms ease;
}

.search-box {
  position: relative;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.search-input {
  flex: 1;
  height: 24px;
  background: white;
  border: 2px solid;
  border-color: var(--shadow-dark) var(--shadow-light) var(--shadow-light) var(--shadow-dark);
  border-radius: 0px;
  padding: 2px 4px;
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 11px;
  color: var(--ink);
  transition: border-color 200ms ease, box-shadow 200ms ease;
  box-shadow: inset 1px 1px 0 rgba(0,0,0,0.25);
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
}

.search-input:focus {
  outline: none;
  border-color: var(--shadow-dark) var(--shadow-light) var(--shadow-light) var(--shadow-dark);
  box-shadow: inset 1px 1px 0 rgba(0,0,0,0.25);
  animation: none;
}

.search-input.flash-success {
  border-color: var(--shadow-dark) var(--shadow-light) var(--shadow-light) var(--shadow-dark);
  box-shadow: inset 1px 1px 0 rgba(0,0,0,0.25);
  animation: none;
}

.search-button {
  height: 24px;
  padding: 2px 12px;
  background: var(--surface);
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  border-radius: 0px;
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  box-shadow: none;
  flex-shrink: 0;
}

.search-button:hover {
  background: var(--surface);
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  box-shadow: none;
  transform: none;
}

.search-button:active {
  border-color: var(--shadow-dark) var(--shadow-light) var(--shadow-light) var(--shadow-dark);
  box-shadow: inset 1px 1px 0 rgba(0,0,0,0.25);
}

.autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  border-radius: 0px;
  margin-top: 2px;
  box-shadow: none;
  max-height: 320px;
  overflow-y: auto;
  z-index: 10;
  display: none;
  transition: background 200ms ease, border-color 200ms ease;
}

.autocomplete.visible {
  display: block;
}

.autocomplete-item {
  padding: 2px 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  transition: background 200ms ease;
}

.autocomplete-item:hover {
  background: var(--primary);
  color: white;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-cover {
  width: 32px;
  height: 32px;
  border-radius: 0px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: white;
  background-size: cover;
  background-position: center;
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  transition: border-color 200ms ease;
}

.autocomplete-item:hover .autocomplete-cover {
  border-color: white;
}

.autocomplete-info {
  flex: 1;
}

.autocomplete-title {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0;
  text-transform: none;
  font-size: 11px;
  letter-spacing: 0;
  transition: color 200ms ease;
}

.autocomplete-item:hover .autocomplete-title {
  color: white;
}

.autocomplete-meta {
  font-size: 9px;
  color: var(--muted);
  transition: color 200ms ease;
}

.autocomplete-item:hover .autocomplete-meta {
  color: white;
}

.trending {
  margin-top: 16px;
  position: relative;
}

.trending::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 180px;
  font-weight: 700;
  color: transparent;
  line-height: 1;
  pointer-events: none;
  -webkit-text-stroke: none;
  text-stroke: none;
  z-index: 0;
  letter-spacing: 0;
}

.trending-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 8px;
  position: relative;
  padding-left: 0;
  z-index: 1;
  font-weight: 700;
  transition: color 200ms ease;
}

.trending-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 0;
  font-weight: 700;
  color: transparent;
  opacity: 0;
  letter-spacing: 0;
  border: none;
  padding: 0;
  line-height: 1;
}

.trending-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag {
  padding: 2px 6px;
  background: var(--surface);
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  border-radius: 0px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  position: relative;
  clip-path: none;
  text-transform: none;
  letter-spacing: 0;
}

.tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: transparent;
}

.tag:hover {
  background: var(--surface);
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  transform: none;
  box-shadow: none;
}

.tag:active {
  border-color: var(--shadow-dark) var(--shadow-light) var(--shadow-light) var(--shadow-dark);
  box-shadow: inset 1px 1px 0 rgba(0,0,0,0.25);
}

.main-content {
  flex: 1;
  padding: 20px var(--space);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.info-section {
  margin-bottom: 24px;
}

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

.info-card {
  background: var(--surface);
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  padding: 12px;
  border-radius: 0px;
  text-align: center;
  transition: background 200ms ease, border-color 200ms ease;
}

.info-card:hover {
  border-color: var(--shadow-dark) var(--shadow-light) var(--shadow-light) var(--shadow-dark);
  transform: none;
  box-shadow: none;
}

.info-icon {
  font-size: 32px;
  margin-bottom: 8px;
  display: block;
}

.info-card h3 {
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  transition: color 200ms ease;
}

.info-card p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
  transition: color 200ms ease;
}

.featured-section {
  margin-bottom: 24px;
  padding: 12px;
  background: var(--surface);
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  border-radius: 0px;
  transition: background 200ms ease, border-color 200ms ease;
}

.featured-section h2 {
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  transition: color 200ms ease;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.how-it-works {
  margin-bottom: 24px;
  padding: 12px;
  background: var(--surface);
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  border-radius: 0px;
  transition: background 200ms ease, border-color 200ms ease;
}

.how-it-works h2 {
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  transition: color 200ms ease;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.step {
  background: var(--bg);
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  padding: 12px;
  border-radius: 0px;
  text-align: center;
  transition: background 200ms ease, border-color 200ms ease;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  margin-bottom: 8px;
  text-transform: none;
  letter-spacing: 0;
  transition: background 200ms ease, border-color 200ms ease;
}

.step h4 {
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  transition: color 200ms ease;
}

.step p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
  transition: color 200ms ease;
}

.history-section {
  margin-bottom: 24px;
  padding: 12px;
  background: var(--surface);
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  border-radius: 0px;
  transition: background 200ms ease, border-color 200ms ease;
}

.history-section h2 {
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  transition: color 200ms ease;
}

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

.history-card {
  background: var(--bg);
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  padding: 12px;
  border-radius: 0px;
  transition: background 200ms ease, border-color 200ms ease;
}

.history-card h3 {
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  transition: color 200ms ease;
}

.history-card p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 8px;
  text-transform: none;
  letter-spacing: 0;
  transition: color 200ms ease;
}

.history-card ul {
  list-style: none;
  padding-left: 0;
}

.history-card li {
  font-size: 10px;
  color: var(--ink);
  line-height: 1.3;
  padding: 2px 0 2px 12px;
  position: relative;
  text-transform: none;
  letter-spacing: 0;
  transition: color 200ms ease;
}

.history-card li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--ink);
}

.history-resources {
  background: var(--bg);
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  padding: 12px;
  border-radius: 0px;
  transition: background 200ms ease, border-color 200ms ease;
}

.history-resources h3 {
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  transition: color 200ms ease;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.resource-item h4 {
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  transition: color 200ms ease;
}

.resource-item ul {
  list-style: none;
  padding-left: 0;
}

.resource-item li {
  font-size: 10px;
  color: var(--ink);
  line-height: 1.3;
  padding: 2px 0 2px 12px;
  position: relative;
  text-transform: none;
  letter-spacing: 0;
  transition: color 200ms ease;
}

.resource-item li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--ink);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty-state p {
  font-size: 16px;
  line-height: 1.6;
}

.empty-state a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.empty-state a:hover {
  text-decoration: underline;
}

.browse-hero {
  background: var(--surface);
  padding: 8px;
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  transition: background 200ms ease, border-color 200ms ease;
  margin: 4px;
}

.browse-hero-content {
  max-width: 1200px;
  margin: 0 auto;
}

.browse-hero-content h1 {
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: none;
  transition: color 200ms ease;
}

.browse-hero-content p {
  font-size: 11px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  transition: color 200ms ease;
}

.filter-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  max-width: 100%;
  padding: 4px;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--surface);
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  border-radius: 0px;
  transition: background 200ms ease, border-color 200ms ease;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filter-group label {
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
  color: var(--ink);
  letter-spacing: 0;
  transition: color 200ms ease;
}

.filter-select {
  padding: 2px 4px;
  background: white;
  border: 2px solid;
  border-color: var(--shadow-dark) var(--shadow-light) var(--shadow-light) var(--shadow-dark);
  border-radius: 0px;
  color: var(--ink);
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 11px;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
  min-width: 120px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.filter-select:hover {
  border-color: var(--shadow-dark) var(--shadow-light) var(--shadow-light) var(--shadow-dark);
  background: white;
}

.filter-select:focus {
  outline: none;
  border-color: var(--shadow-dark) var(--shadow-light) var(--shadow-light) var(--shadow-dark);
  box-shadow: none;
}

.filter-reset {
  padding: 2px 6px;
  background: var(--surface);
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  border-radius: 0px;
  color: var(--ink);
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  letter-spacing: 0;
}

.filter-reset:hover {
  background: var(--surface);
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  color: var(--ink);
}

.filter-reset:active {
  border-color: var(--shadow-dark) var(--shadow-light) var(--shadow-light) var(--shadow-dark);
  box-shadow: inset 1px 1px 0 rgba(0,0,0,0.25);
}

.browse-stats {
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--ink);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  transition: color 200ms ease;
}

.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 4px;
  margin-bottom: 20px;
}

.game-card {
  background: var(--surface);
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  border-radius: 0px;
  overflow: hidden;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  clip-path: none;
}

.game-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: transparent;
  z-index: 1;
}

.game-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--shadow-dark) var(--shadow-light) var(--shadow-light) var(--shadow-dark);
}

.game-card-cover {
  width: 100%;
  height: 120px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: white;
  flex-shrink: 0;
  border-bottom: 2px solid;
  border-bottom-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  text-transform: none;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  transition: border-color 200ms ease;
}

.game-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.game-card-info {
  padding: 4px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.game-card-title {
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  word-break: break-word;
  text-transform: none;
  letter-spacing: 0;
  transition: color 200ms ease;
}

.game-card-meta {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  transition: color 200ms ease;
}

.game-card-availability {
  display: flex;
  gap: 2px;
  margin-top: auto;
  flex-wrap: wrap;
}

.availability-badge {
  font-size: 8px;
  padding: 1px 3px;
  border-radius: 0px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.game-header {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding: 4px;
  background: var(--surface);
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  border-radius: 0px;
  position: relative;
  overflow: hidden;
  transition: background 200ms ease, border-color 200ms ease;
}

.year-watermark {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 180px;
  font-weight: 700;
  color: transparent;
  line-height: 1;
  pointer-events: none;
  letter-spacing: 0;
}

.game-cover-large {
  width: 120px;
  height: 150px;
  border-radius: 0px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: white;
  position: relative;
  z-index: 1;
  background-size: cover;
  background-position: center;
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  text-transform: none;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
  transition: border-color 200ms ease;
}

.game-cover-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.game-info {
  flex: 1;
  position: relative;
  z-index: 1;
}

.game-title {
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: none;
  transition: color 200ms ease;
}

.game-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  transition: color 200ms ease;
}

.availability-bar {
  height: 4px;
  background: white;
  border-radius: 0px;
  overflow: hidden;
  display: flex;
  margin-top: 8px;
  border: 1px solid;
  border-color: var(--shadow-dark) var(--shadow-light) var(--shadow-light) var(--shadow-dark);
  transition: background 200ms ease, border-color 200ms ease;
}

.availability-segment {
  height: 100%;
  transition: all 200ms ease;
}

.availability-segment.official {
  background: var(--primary);
}

.availability-segment.abandonware {
  background: var(--warning);
}

.availability-segment.physical {
  background: var(--teal);
}

.availability-segment.emulation {
  background: var(--muted);
}

.availability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4px;
  margin-bottom: 16px;
}

.availability-card {
  background: var(--surface);
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  border-radius: 0px;
  padding: 4px;
  position: relative;
  transition: background 200ms ease, border-color 200ms ease;
}

.availability-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--shadow-dark) var(--shadow-light) var(--shadow-light) var(--shadow-dark);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 2px solid;
  border-bottom-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  transition: border-color 200ms ease;
}

.card-title {
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  transition: color 200ms ease;
}

.status-badge {
  padding: 1px 4px;
  border-radius: 0px;
  font-size: 9px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  border: 1px solid;
  background: var(--surface);
  color: var(--ink);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.listing-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  font-size: 11px;
  transition: border-color 200ms ease;
}

.listing-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  width: 0;
  height: 0;
  background: transparent;
  border-radius: 0px;
  transform: translateY(-50%);
}

.listing-name {
  font-size: 11px;
  color: var(--ink);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  transition: color 200ms ease;
}

.listing-price {
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  transition: color 200ms ease;
}

.listing-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  border-radius: 0px;
  font-size: 11px;
  font-weight: 700;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  margin-top: 4px;
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  text-transform: none;
  letter-spacing: 0;
}

.listing-link:hover {
  background: var(--surface);
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  box-shadow: none;
  transform: none;
}

.listing-link:active {
  border-color: var(--shadow-dark) var(--shadow-light) var(--shadow-light) var(--shadow-dark);
  box-shadow: inset 1px 1px 0 rgba(0,0,0,0.25);
}

.listing-link.secondary {
  background: var(--surface);
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  color: var(--ink);
}

.listing-link.secondary:hover {
  background: var(--surface);
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  color: var(--ink);
}

.emulation-card {
  background: var(--surface);
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  transition: background 200ms ease, border-color 200ms ease;
}

.difficulty-rating {
  display: flex;
  gap: 2px;
  margin-top: 4px;
}

.difficulty-dot {
  width: 8px;
  height: 8px;
  border-radius: 0px;
  background: white;
  border: 1px solid;
  border-color: var(--shadow-dark) var(--shadow-light) var(--shadow-light) var(--shadow-dark);
  transition: background 200ms ease, border-color 200ms ease;
}

.difficulty-dot.filled {
  background: var(--ink);
  border-color: var(--ink);
}

.footer {
  background: var(--surface);
  border-top: 2px solid;
  border-top-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  padding: 8px var(--space);
  margin-top: auto;
  transition: background 200ms ease, border-color 200ms ease;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-size: 11px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  transition: color 200ms ease;
}

.footer-content a {
  color: var(--primary);
  text-decoration: underline;
  transition: color 200ms ease;
}

.footer-content a:hover {
  text-decoration: none;
}

.ad-slot {
  margin: 12px auto;
  max-width: 728px;
  min-height: 90px;
  background: var(--surface);
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.ad-slot:empty {
  display: none;
}

.guide-container {
  max-width: 800px;
  margin: 0 auto;
}

.guide-section {
  margin-bottom: 12px;
  padding: 4px;
  background: var(--surface);
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  border-radius: 0px;
  transition: background 200ms ease, border-color 200ms ease;
}

.guide-section h2 {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--ink);
  font-family: 'MS Sans Serif', Arial, sans-serif;
  text-transform: none;
  letter-spacing: 0;
  text-shadow: none;
  font-weight: 700;
  transition: color 200ms ease;
}

.guide-section h3 {
  font-size: 12px;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: 'MS Sans Serif', Arial, sans-serif;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  transition: color 200ms ease;
}

.guide-section p {
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 8px;
  font-size: 11px;
  transition: color 200ms ease;
}

.guide-section ul {
  list-style: none;
  padding-left: 0;
}

.guide-section li {
  padding: 2px 0 2px 12px;
  position: relative;
  color: var(--ink);
  line-height: 1.4;
  font-size: 11px;
  transition: color 200ms ease;
}

.guide-section li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--ink);
  font-weight: normal;
}

.guide-section ol {
  list-style: decimal;
  padding-left: 20px;
}

.guide-section ol li {
  padding: 2px 0;
  color: var(--ink);
  line-height: 1.4;
  font-size: 11px;
  transition: color 200ms ease;
}

.guide-section code {
  background: white;
  padding: 1px 3px;
  border-radius: 0px;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: var(--ink);
  border: 1px solid;
  border-color: var(--shadow-dark) var(--shadow-light) var(--shadow-light) var(--shadow-dark);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.guide-section a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 400;
  transition: color 200ms ease;
}

.guide-section a:hover {
  text-decoration: none;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-section {
  margin-bottom: 12px;
  padding: 4px;
  background: var(--surface);
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  border-radius: 0px;
  transition: background 200ms ease, border-color 200ms ease;
}

.faq-section h2 {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--ink);
  font-family: 'MS Sans Serif', Arial, sans-serif;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  transition: color 200ms ease;
}

.faq-accordion {
  margin-bottom: 4px;
  border: 1px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  border-radius: 0px;
  transition: border-color 200ms ease;
}

.faq-summary {
  padding: 4px 6px;
  cursor: pointer;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  background: var(--surface);
  user-select: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 200ms ease;
}

.faq-summary::before {
  content: "▶";
  display: inline-block;
  transition: none;
  color: var(--ink);
  font-size: 9px;
}

details[open] .faq-summary::before {
  transform: none;
}

.faq-answer {
  padding: 4px 6px;
  border-top: 1px solid;
  border-top-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  color: var(--ink);
  line-height: 1.4;
  font-size: 11px;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.faq-answer p {
  margin-bottom: 4px;
}

.faq-answer a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 400;
  transition: color 200ms ease;
}

.faq-answer a:hover {
  text-decoration: none;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
    gap: 2px;
  }

  .nav {
    width: auto;
    gap: 2px;
    font-size: 11px;
  }

  .tagline {
    font-size: 18px;
  }

  .hero-subtitle {
    font-size: 11px;
  }

  .search-box {
    flex-direction: row;
  }

  .search-input,
  .search-button {
    height: 24px;
  }

  .browse-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 2px;
  }

  .featured-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 6px;
  }

  .game-card-cover {
    aspect-ratio: 3 / 4;
  }

  .game-header {
    flex-direction: column;
    gap: 8px;
  }

  .game-cover-large {
    width: 100px;
    height: 120px;
  }

  .availability-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    flex-direction: row;
    align-items: flex-end;
    width: 100%;
    flex-wrap: wrap;
  }

  .filter-group {
    width: auto;
    min-width: 0;
  }

  .filter-select,
  .filter-reset {
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
  }

  .info-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .history-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .resources-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .tagline {
    font-size: 16px;
  }

  .hero-subtitle {
    font-size: 10px;
  }

  .browse-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 2px;
  }

  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }

  .game-card-cover {
    aspect-ratio: 3 / 4;
  }

  .game-card-title {
    font-size: 9px;
  }

  .game-card-meta {
    font-size: 8px;
  }

  .availability-badge {
    font-size: 7px;
    padding: 1px 2px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .info-card {
    padding: 8px;
  }

  .info-card h3 {
    font-size: 11px;
  }

  .info-card p {
    font-size: 9px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .step {
    padding: 8px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .step h4 {
    font-size: 11px;
  }

  .step p {
    font-size: 9px;
  }

  .history-card {
    padding: 8px;
  }

  .history-card h3 {
    font-size: 11px;
  }

  .history-card p {
    font-size: 9px;
  }

  .history-card li {
    font-size: 9px;
  }

  .history-resources {
    padding: 8px;
  }

  .history-resources h3 {
    font-size: 11px;
  }

  .resource-item h4 {
    font-size: 10px;
  }

  .resource-item li {
    font-size: 9px;
  }
}