/* Member profile — game_tgn_0048 Card Index */

.g48-profile-page {
  flex: 1;
}

.g48-profile-panel { display: none; }
.g48-profile-panel.active { display: block; width: 100%; }

.g48-btn-remove,
.g48-btn-clear,
.g48-btn-load-more,
.g48-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid rgba(190,24,93,0.16);
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.g48-btn-remove {
  color: #3b1f2b;
  background: transparent;
}
.g48-btn-remove:hover {
  color: #fff;
  background: #dc2626;
  border-color: #dc2626;
}
.g48-btn-remove--inline {
  width: auto;
  margin-top: 0;
  margin-left: 8px;
}

.g48-btn-clear {
  color: #be185d;
  background: transparent;
  border-color: rgba(190,24,93,0.16);
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.78rem;
}
.g48-btn-clear:hover {
  color: #fff;
  background: #be185d;
  border-color: #be185d;
}

.g48-btn-load-more {
  position: relative;
  width: 100%;
  margin-top: 1rem;
  color: #fff;
  background: #db2777;
  border-color: #db2777;
}
.g48-btn-load-more:hover {
  filter: brightness(1.06);
}

.g48-btn-load-more.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.g48-btn-load-more:disabled {
  cursor: not-allowed;
  opacity: 0.85;
  filter: none;
}

.g48-btn-load-more.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: profile-load-more-spin 0.7s linear infinite;
}

@keyframes profile-load-more-spin {
  to { transform: rotate(360deg); }
}


.g48-btn-secondary {
  color: #3b1f2b;
  background: transparent;
}
.g48-btn-secondary:hover {
  border-color: #db2777;
  color: #db2777;
}

.g48-loading[hidden],
.g48-empty-state[hidden],
.g48-btn-load-more[hidden],
.g48-btn-remove--inline[hidden] {
  display: none !important;
}

.g48-game-grid .special-card,
.g48-game-grid .g48-profile-game-card,
.g48-game-grid .g48-ranked-card,
.g48-game-grid .g48-game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(190,24,93,0.16);
  border-radius: 6px;
  overflow: hidden;
  color: #3b1f2b;
  transition: transform 0.15s ease;
  min-width: 0;
}
.g48-game-grid .g48-ranked-card:hover,
.g48-game-grid .g48-game-card:hover {
  transform: translateY(-2px);
  border-color: #db2777;
}
.g48-game-grid a {
  color: #3b1f2b;
}
.g48-game-grid a:hover {
  color: #3b1f2b;
}
.g48-game-grid .g48-card-index {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  min-width: 22px;
  padding: 2px 6px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  background: #db2777;
  line-height: 1.25;
  border-radius: 4px;
}
.g48-game-grid .g48-ranked-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f8d0dc;
}
.g48-game-grid .g48-ranked-thumb img,
.g48-game-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f8d0dc;
}
.g48-game-grid .g48-ranked-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px 12px;
}
.g48-game-grid .game-title,
.g48-game-grid .card-title {
  display: block;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #3b1f2b;
}
.g48-game-grid .game-title a {
  color: #3b1f2b;
  text-decoration: none;
}
.g48-game-grid .brief-comment-game {
  margin: 0;
  color: #9a6474;
  font-size: 0.75rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.g48-game-grid .g48-card-tags,
.g48-game-grid .g48-tag-chip {
  display: none;
}
.g48-game-grid .g48-btn-remove {
  align-self: flex-start;
  margin-top: 4px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.75rem;
}

@media (max-width: 767px) {
  .g48-game-grid .special-card,
  .g48-game-grid .g48-profile-game-card,
  .g48-game-grid .g48-ranked-card,
  .g48-game-grid .g48-game-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 0 10px;
    align-items: stretch;
    transform: none;
  }
  .g48-game-grid .g48-ranked-card:hover,
  .g48-game-grid .g48-game-card:hover {
    transform: none;
  }
  .g48-game-grid .g48-card-index {
    top: 4px;
    left: 4px;
    min-width: 20px;
    padding: 1px 5px;
    font-size: 0.65rem;
  }
  .g48-game-grid .g48-ranked-thumb {
    grid-column: 1;
    grid-row: 1;
    width: 88px;
    min-height: 55px;
    aspect-ratio: 16 / 10;
    align-self: stretch;
  }
  .g48-game-grid .g48-ranked-body {
    grid-column: 2;
    grid-row: 1;
    padding: 6px 8px;
    gap: 2px;
    justify-content: center;
  }
  .g48-game-grid .game-title,
  .g48-game-grid .card-title {
    font-size: 0.82rem;
  }
  .g48-game-grid .brief-comment-game {
    display: none;
  }
  .g48-game-grid .g48-btn-remove {
    min-height: 26px;
    padding: 0 8px;
    font-size: 0.68rem;
    margin-top: 2px;
  }
}

.g48-profile-form .g48-btn-primary {
  margin-top: 8px;
}

.g48-avatar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.g48-avatar-actions .g48-btn-secondary,
.g48-avatar-actions label.g48-btn {
  cursor: pointer;
  margin: 0;
}

#confirmOverlay[aria-hidden="true"] { display: none; }
#confirmOverlay[aria-hidden="false"] {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 210;
  align-items: center;
  justify-content: center;
  background: rgba(59,31,43,0.45);
  padding: 16px;
}

.g48-confirm-modal {
  width: 100%;
  max-width: 380px;
  padding: 1.5rem;
  background: #fffafc;
  color: #3b1f2b;
  border: 1px solid rgba(190,24,93,0.16);
  border-radius: 6px;
  text-align: center;
}
.g48-confirm-title {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 800;
  color: #3b1f2b;
}
.g48-confirm-desc {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: #9a6474;
}
.g48-confirm-actions { display: flex; gap: 10px; }
.g48-confirm-cancel,
.g48-confirm-ok {
  flex: 1;
  min-height: 44px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(190,24,93,0.16);
  border-radius: 6px;
}
.g48-confirm-cancel {
  background: transparent;
  color: #3b1f2b;
}
.g48-confirm-cancel:hover {
  border-color: #db2777;
  color: #db2777;
}
.g48-confirm-ok {
  background: #db2777;
  color: #fff;
  border-color: #db2777;
}
.g48-confirm-ok:hover { filter: brightness(1.06); }


.g48-confirm-ok {
  position: relative;
}

.g48-confirm-ok:disabled,
.g48-confirm-cancel:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.g48-confirm-ok.is-loading {
  color: transparent;
  pointer-events: none;
}

.g48-confirm-ok.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: g48-confirm-spin 0.7s linear infinite;
}

@keyframes g48-confirm-spin {
  to { transform: rotate(360deg); }
}
