.cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.card-row {
  position: relative;
  width: 170px;
  height: 170px;
}

.card {
  background: #fff;
  border-radius: 4px;
  padding: 18px 20px;
  width: 170px;
  height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  cursor: default;
  position: relative;
  z-index: 2;
}

.card-date {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  text-align: right;
  position: absolute;
  top: 14px;
  right: 18px;
}

.card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #111;
  line-height: 1.15;
  margin-bottom: 10px;
}

.card-sub {
  font-size: 13px;
  color: #444;
  line-height: 1.4;
  margin-top: auto;
}

.card-number {
  font-size: 13px;
  color: #888;
  margin-top: 2px;
}

.card-author {
  font-size: 13px;
  color: #555;
  margin-top: auto;
}
.card-author-link {
  color: inherit;
  text-decoration: none;
}
.card-author-link:hover { color: #888; }

.vinyl {
  position: absolute;
  top: 50%;
  right: -50px;
  width: 170px;
  height: 170px;
  z-index: 1;
  transform: translateY(-50%) translateX(-15px);
  transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
  cursor: pointer;
}

.card-row:not(.card-row--locked):hover .vinyl {
  transform: translateY(-50%) translateX(80px);
}

.vinyl img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(-4px 4px 12px rgba(0,0,0,0.5));
}

/* Home page: prevent header overflow from blocking icon buttons */
header { pointer-events: none; }

/* --- Icon row (how-to, stats, auth) --- */
.icon-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.icon-btn {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}
.icon-btn:hover { color: #fff; }
.icon-btn--active { color: #fff; }
.icon-btn svg { display: block; }

/* --- How to Play modal content --- */
.how-to-content {
  font-family: 'Barlow', sans-serif;
  color: #ccc;
  font-size: 15px;
  line-height: 1.6;
}
.how-to-content p { margin: 0 0 14px; }
.how-to-content ul {
  margin: 0 0 14px;
  padding-left: 20px;
}
.how-to-content li { margin-bottom: 8px; }
.how-to-content strong { color: #fff; }
.how-to-tip {
  font-size: 13px;
  color: #888;
  margin-bottom: 0 !important;
}


/* --- Shared modal overlay --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 200;
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  color: #aaa;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 6px 10px;
  transition: color 0.15s, background 0.15s;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { color: #fff; background: rgba(255,255,255,0.15); }

/* --- Stats modal --- */
.stats-modal {
  position: relative;
  background: #1e2128;
  border-radius: 12px;
  padding: 32px 28px 28px;
  width: 100%;
  max-width: 380px;
  margin: auto;
}

.stats-modal-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 28px;
}

.stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stats-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.stats-label {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  color: #aaa;
  margin-top: 4px;
  line-height: 1.3;
}

.stats-dist-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.stats-dist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dist-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dist-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  width: 14px;
  text-align: right;
  flex-shrink: 0;
}

.dist-bar-wrap { flex: 1; }

.dist-bar {
  background: #ccc;
  border-radius: 3px;
  padding: 3px 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  min-width: 24px;
  text-align: right;
}

/* --- Auth modal --- */
.auth-modal {
  position: relative;
  background: #1e2128;
  border-radius: 12px;
  padding: 32px 28px 28px;
  width: 100%;
  max-width: 340px;
}

.auth-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 2px solid #333;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  color: #666;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.auth-tab.active { color: #fff; border-color: #fff; }
.auth-tab:hover:not(.active) { color: #ccc; }

.auth-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 6px;
  border: 2px solid #444;
  background: transparent;
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
}
.auth-input::placeholder { color: #555; }
.auth-input:focus { border-color: #888; }

.auth-error {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  color: #e07070;
  min-height: 18px;
}

.auth-submit {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: none;
  background: #fff;
  color: #111;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.15s;
}
.auth-submit:hover { opacity: 0.88; }

.auth-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.auth-user-label {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-user-email {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  word-break: break-all;
}

.auth-logout {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 2px solid #555;
  background: transparent;
  color: #aaa;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.auth-logout:hover { border-color: #fff; color: #fff; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #333;
}

.auth-google-btn {
  width: 100%;
  padding: 11px 14px;
  border-radius: 6px;
  border: 2px solid #444;
  background: transparent;
  color: #ccc;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: border-color 0.15s, color 0.15s;
}
.auth-google-btn:hover { border-color: #888; color: #fff; }
