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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Georgia', serif;
  color: #e8dcc8;
  background:
    radial-gradient(1200px 700px at 70% -10%, #241a2e 0%, transparent 60%),
    radial-gradient(900px 600px at 10% 110%, #2a1d12 0%, transparent 55%),
    #0c0a12;
}

.wrap {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 4vh, 3rem) clamp(1rem, 5vw, 4rem);
  gap: clamp(1rem, 3vh, 2rem);
}

header {
  flex: 0 0 auto;
  text-align: center;
}
header h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffe2aa;
  text-shadow: 0 2px 24px rgba(255,170,90,0.25);
}
header .sub {
  margin-top: 0.4rem;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(232,220,200,0.5);
}

.versions {
  list-style: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(0.8rem, 2vw, 1.4rem);
  align-content: start;
  padding-right: 0.4rem;
}

.card {
  background: rgba(24,20,32,0.6);
  border: 1px solid rgba(255,205,140,0.12);
  border-radius: 1rem;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  backdrop-filter: blur(8px);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,205,140,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.card.current {
  border-color: rgba(150,210,255,0.35);
  background: rgba(22,28,40,0.65);
}

.row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.card h2 {
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  color: #f3e7d2;
}
.card p {
  font-size: clamp(0.85rem, 1.8vw, 0.98rem);
  line-height: 1.5;
  color: rgba(232,220,200,0.78);
  flex: 1 1 auto;
}

.tag {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}
.tag-current  { color: #bfe2ff; background: rgba(60,110,160,0.3); border: 1px solid rgba(150,210,255,0.4); }
.tag-previous { color: #ffe2aa; background: rgba(120,90,40,0.3);  border: 1px solid rgba(255,200,120,0.4); }
.tag-broken   { color: #f0c4c4; background: rgba(120,50,50,0.3);  border: 1px solid rgba(220,120,120,0.4); }
.tag-original { color: #cfe9c0; background: rgba(60,100,50,0.3);  border: 1px solid rgba(150,210,130,0.4); }

.open {
  align-self: flex-start;
  margin-top: 0.2rem;
  color: #ffe2aa;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255,205,140,0.3);
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}
.open:hover {
  background: rgba(255,205,140,0.15);
  color: #fff2d8;
}
