/**
 * LFG Match — swipe deck (?page=lfg/match)
 */
.tw-lfg-match-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 12px 28px;
  box-sizing: border-box;
}

.tw-lfg-match-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.tw-lfg-match-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted, #888);
  margin: 0 0 4px;
}

.tw-lfg-match-title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-primary, #fff);
}

.tw-lfg-match-lead {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary, #bbb);
}

.tw-lfg-match-head-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.tw-lfg-match-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-secondary, #bbb);
  border: 1px solid var(--border, #333);
  padding: 8px 10px;
  background: var(--surface-2, #1a1a1a);
  border-radius: 0;
}

.tw-lfg-match-link--primary {
  border-color: rgba(39, 150, 242, 0.55);
  color: var(--primary, #2796f2);
}

.tw-lfg-match-stage {
  position: relative;
  min-height: 420px;
}

.tw-lfg-swipe-stack {
  position: relative;
  min-height: 400px;
}

.tw-lfg-swipe-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 16px;
  color: var(--text-muted, #777);
  font-size: 13px;
}

.tw-lfg-swipe-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--primary, #2796f2);
  border-radius: 50%;
  animation: tw-lfg-spin 0.8s linear infinite;
}

@keyframes tw-lfg-spin {
  to {
    transform: rotate(360deg);
  }
}

.tw-lfg-swipe-empty {
  text-align: center;
  padding: 24px 12px;
  color: var(--text-secondary, #bbb);
  font-size: 13px;
}

.tw-lfg-swipe-empty a {
  color: var(--primary, #2796f2);
}

.tw-lfg-swipe-card {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(100%, 420px);
  transform: translateX(-50%);
  border: 1px solid var(--border, #333);
  background: var(--surface-2, #1a1a1a);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  touch-action: none;
  cursor: grab;
  border-radius: 0;
  overflow: hidden;
  user-select: none;
}

.tw-lfg-swipe-card:active {
  cursor: grabbing;
}

.tw-lfg-swipe-card.is-exit-left {
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform: translateX(-140%) rotate(-12deg) !important;
  opacity: 0;
}

.tw-lfg-swipe-card.is-exit-right {
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform: translateX(40%) rotate(12deg) !important;
  opacity: 0;
}

.tw-lfg-card-media {
  position: relative;
  height: 200px;
  background: #0f0f0f;
}

.tw-lfg-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tw-lfg-card-rank {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.55);
}

.tw-lfg-card-body {
  padding: 14px 14px 16px;
}

.tw-lfg-card-name {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary, #fff);
  margin-bottom: 6px;
}

.tw-lfg-card-event {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary, #2796f2);
  border: 1px solid rgba(39, 150, 242, 0.45);
  background: rgba(39, 150, 242, 0.1);
}

.tw-lfg-card-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}

.tw-lfg-card-stats span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 6px;
  border: 1px solid var(--border, #2f2f2f);
  background: var(--surface-1, #121212);
  text-align: center;
}

.tw-lfg-card-stats strong {
  font-size: 14px;
  font-weight: 900;
  color: var(--text-primary, #fff);
}

.tw-lfg-card-stats small {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, #777);
}

.tw-lfg-card-msg {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary, #ccc);
}

.tw-lfg-card-tags span {
  display: inline-block;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted, #999);
  border: 1px solid var(--border, #333);
}

.tw-lfg-card-links {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.tw-lfg-card-links a {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary, #2796f2);
  text-decoration: none;
}

.tw-lfg-match-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.tw-lfg-match-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid var(--border, #333);
  background: var(--surface-1, #121212);
  color: var(--text-primary, #fff);
  cursor: pointer;
}

.tw-lfg-match-btn--pass {
  border-color: rgba(239, 68, 68, 0.55);
  color: #fecaca;
}

.tw-lfg-match-btn--like {
  border-color: rgba(34, 197, 94, 0.55);
  color: #bbf7d0;
}

.tw-lfg-match-btn--msg {
  border-color: rgba(39, 150, 242, 0.55);
  color: #dbeafe;
}

.tw-lfg-match-hint {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-muted, #777);
}

@media (max-width: 480px) {
  .tw-lfg-card-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tw-lfg-match-head {
    flex-direction: column;
  }
  .tw-lfg-match-head-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100%;
  }
}
