/* NIGHTSHIFT — PREMIUM DARK UI */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #070d0b;
  --mint: #72edbd;
  --text: #edf5f0;
  --muted: #82948a;
  --border: rgba(151, 196, 169, 0.13);
}

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

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  padding: 25px 20px 50px;
  background: radial-gradient(ellipse at 50% 0%, #163426, transparent 45%), var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 900px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(12, 24, 18, 0.85);
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 3px;
}

.logo span,
.footer-dot {
  color: var(--mint);
}

.status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px #72edbd70;
}

.library {
  max-width: 620px;
  margin: 82px auto 0;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--mint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
}

h1 {
  font-size: clamp(32px, 5vw, 43px);
  font-weight: 800;
  letter-spacing: -1.8px;
}

.subtitle {
  margin-top: 10px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0d1914;
}

.search-wrap:focus-within {
  border-color: #72edbd80;
  box-shadow: 0 0 0 3px #72edbd0c;
}

.search-icon {
  color: var(--mint);
  font-size: 25px;
}

#game-search {
  flex: 1;
  width: 0;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

#game-search::placeholder {
  color: #718278;
}

.search-hint {
  color: #62746a;
  font-size: 9px;
  letter-spacing: 1px;
}

.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 25px 0 14px;
}

.filters {
  display: flex;
  gap: 7px;
}

.filter {
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.filter:hover {
  color: var(--text);
  background: #ffffff08;
}

.filter.active {
  border-color: #72edbd22;
  background: #72edbd12;
  color: var(--mint);
}

#game-count {
  color: #718278;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: linear-gradient(110deg, #101d16, #0b1511);
  color: var(--text);
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.item:hover {
  border-color: #72edbd55;
  background: #14271c;
}

.item-icon {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border: 1px solid #ffffff0c;
  border-radius: 12px;
  font-size: 19px;
  font-weight: 800;
}

.truffling {
  background: #18382a;
  color: #8cf0b9;
}

.morrow {
  background: #1b302d;
  color: #a1e8d8;
}

.cinera {
  background: #263326;
  color: #d2e9a6;
}

.item-info {
  flex: 1;
  min-width: 0;
}

.item-info h3 {
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 700;
}

.item-info p {
  color: var(--muted);
  font-size: 12px;
}

.item-tag {
  color: #72857a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
}

.arrow {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: #a0b9aa;
  font-size: 17px;
}

.item:hover .arrow {
  border-color: var(--mint);
  background: var(--mint);
  color: #07130d;
}

#empty-state {
  padding: 40px 15px;
  text-align: center;
}

.empty-icon {
  margin-bottom: 12px;
  color: var(--mint);
  font-size: 30px;
}

#empty-state h3 {
  margin-bottom: 8px;
}

#empty-state p {
  color: var(--muted);
  font-size: 13px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: #6e8176;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

@media (max-width: 500px) {
  body {
    padding: 14px 12px 30px;
  }

  .topbar {
    padding: 15px 13px;
  }

  .logo {
    font-size: 15px;
    letter-spacing: 2px;
  }

  .status {
    font-size: 8px;
    letter-spacing: 0.7px;
  }

  .library {
    margin-top: 58px;
  }

  .item {
    gap: 11px;
    padding: 12px;
  }

  .item-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .item-tag {
    display: none;
  }

  .footer {
    font-size: 8px;
    letter-spacing: 1px;
  }
}

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