/* ============================================
   GRATIS-ONLINE-SPIELE.CH — minimal grid
   ============================================ */

:root {
  --bg:         #0a0410;
  --bg-2:       #14082a;
  --surface:    #160930;
  --line:       rgba(255, 255, 255, .08);
  --ink:        #f5edff;
  --ink-soft:   #b8a8d6;
  --ink-mute:   #847596;
  --accent:     #ff2e93;

  --font-display: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
  --font-body:    "Manrope", "Helvetica Neue", system-ui, sans-serif;

  --gutter: clamp(16px, 3vw, 40px);
  --radius: 12px;
}

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

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

body {
  min-height: 100vh;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(177, 70, 255, .15), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(255, 46, 147, .08), transparent 60%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===== HEADER ===== */

.site-header {
  padding: clamp(20px, 3vw, 32px) var(--gutter);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-block;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 32, "wght" 700;
  font-size: clamp(22px, 2.5vw, 30px);
  letter-spacing: -.025em;
  color: var(--ink);
}
.logo-dot {
  background: linear-gradient(90deg, #ff2e93, #b146ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== GRID ===== */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(12px, 1.5vw, 18px);
  padding: clamp(20px, 3vw, 32px) var(--gutter) clamp(40px, 6vw, 60px);
}

/* ===== CARDS ===== */

.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .18);
}
.card.is-playable:hover {
  border-color: rgba(196, 255, 61, .45);
}

.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 12, "wght" 700;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: #c4ff3d;
  color: #0a0410;
}
.card-thumb { position: relative; }

.card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg);
}
.card-thumb svg {
  width: 100%;
  height: 100%;
}

.card-info {
  padding: 12px 14px 14px;
}
.card-name {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 20, "wght" 700;
  font-size: 15px;
  letter-spacing: -.015em;
  line-height: 1.15;
  color: var(--ink);
}
.card-renamed {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-mute);
  font-style: italic;
}
.card-renamed::before { content: " · "; }

/* ===== RESPONSIVE ===== */

@media (max-width: 520px) {
  :root { --gutter: 14px; }
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .card-name { font-size: 14px; }
  .card-renamed { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .001ms !important;
  }
}
