/* game_tgn_0049 — member profile · My Samples */

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

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

.g49-btn-remove,
.g49-btn-clear,
.g49-btn-load-more,
.g49-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 var(--g49-line, rgba(21, 32, 37, 0.12));
  border-radius: var(--g49-radius, 4px);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.g49-btn-remove {
  color: var(--g49-ink, #152025);
  background: transparent;
}
.g49-btn-remove:hover {
  color: #fff;
  background: #dc2626;
  border-color: #dc2626;
}
.g49-btn-remove--inline {
  width: auto;
  margin-top: 0;
  margin-left: 8px;
}

.g49-btn-clear {
  color: var(--g49-cta, #e85d4c);
  background: transparent;
  border-color: var(--g49-line, rgba(21, 32, 37, 0.12));
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.78rem;
}
.g49-btn-clear:hover {
  color: #fff;
  background: var(--g49-cta, #e85d4c);
  border-color: var(--g49-cta, #e85d4c);
}

.g49-btn-load-more {
  position: relative;
  width: 100%;
  margin-top: 1rem;
  color: var(--g49-ink, #152025);
  background: rgba(196, 216, 46, 0.28);
  border-color: rgba(90, 100, 8, 0.28);
}
.g49-btn-load-more:hover {
  filter: brightness(1.05);
}

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

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

.g49-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); }
}


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

.g49-game-grid .special-card,
.g49-game-grid .g49-profile-game-card,
.g49-game-grid .g49-ranked-card,
.g49-game-grid .g49-game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--g49-line, rgba(21, 32, 37, 0.12));
  border-radius: var(--g49-radius, 4px);
  overflow: hidden;
  color: var(--g49-ink, #152025);
  transition: transform 0.15s ease;
  min-width: 0;
}
.g49-game-grid .g49-ranked-card:hover,
.g49-game-grid .g49-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--g49-cta, #e85d4c);
}
.g49-game-grid a {
  color: var(--g49-ink, #152025);
}
.g49-game-grid a:hover {
  color: var(--g49-ink, #152025);
}
.g49-game-grid .g49-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: #152025;
  background: var(--g49-accent, #c4d82e);
  line-height: 1.25;
  border-radius: 3px;
}
.g49-game-grid .g49-ranked-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--g49-ph, #c5d0cb);
}
.g49-game-grid .g49-ranked-thumb img,
.g49-game-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--g49-ph, #c5d0cb);
}
.g49-game-grid .g49-ranked-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px 12px;
}
.g49-game-grid .game-title,
.g49-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: var(--g49-ink, #152025);
}
.g49-game-grid .game-title a {
  color: var(--g49-ink, #152025);
  text-decoration: none;
}
.g49-game-grid .brief-comment-game {
  margin: 0;
  color: var(--g49-muted, #5a6b68);
  font-size: 0.75rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.g49-game-grid .g49-card-tags,
.g49-game-grid .g49-tag-chip {
  display: none;
}
.g49-game-grid .g49-btn-remove {
  align-self: flex-start;
  margin-top: 4px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.75rem;
}

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

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

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

/* Confirm dialog visibility contract */
#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(26, 36, 40, 0.55);
  padding: 16px;
}
