/* Member profile — game_tgn_0047 Flight Board */

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

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

.g47-btn-remove,
.g47-btn-clear,
.g47-btn-load-more,
.g47-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(255,176,0,0.18);
  border-radius: 0;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.g47-btn-clear {
  color: #00d4c8;
  background: transparent;
  border-color: rgba(255,176,0,0.18);
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.78rem;
}
.g47-btn-clear:hover {
  color: #fff;
  background: #00d4c8;
  border-color: #00d4c8;
}

.g47-btn-load-more {
  width: 100%;
  margin-top: 1rem;
  color: #1a1200;
  background: #ffb000;
  border-color: #ffb000;
}
.g47-btn-load-more:hover {
  filter: brightness(1.06);
}

.g47-btn-secondary {
  color: #e6edf2;
  background: transparent;
}
.g47-btn-secondary:hover {
  border-color: #ffb000;
  color: #ffb000;
}

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

.g47-game-grid .special-card,
.g47-game-grid .g47-profile-game-card,
.g47-game-grid .g47-ranked-card,
.g47-game-grid .g47-game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #0d141c;
  border: 1px solid rgba(255,176,0,0.18);
  border-radius: 0;
  overflow: hidden;
  color: #e6edf2;
  transition: transform 0.15s ease;
  min-width: 0;
}
.g47-game-grid .g47-ranked-card:hover,
.g47-game-grid .g47-game-card:hover {
  transform: translateY(-2px);
  border-color: #ffb000;
}
.g47-game-grid a {
  color: #e6edf2;
}
.g47-game-grid a:hover {
  color: #e6edf2;
}
.g47-game-grid .g47-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: #1a1200;
  background: #ffb000;
  line-height: 1.25;
}
.g47-game-grid .g47-ranked-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #16202a;
}
.g47-game-grid .g47-ranked-thumb img,
.g47-game-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #16202a;
}
.g47-game-grid .g47-ranked-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px 12px;
}
.g47-game-grid .game-title,
.g47-game-grid .card-title {
  display: block;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #e6edf2;
}
.g47-game-grid .game-title a {
  color: #e6edf2;
  text-decoration: none;
}
.g47-game-grid .brief-comment-game {
  margin: 0;
  color: #8b9aab;
  font-size: 0.75rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.g47-game-grid .g47-card-tags,
.g47-game-grid .g47-tag-chip {
  display: none;
}
.g47-game-grid .g47-btn-remove {
  align-self: flex-start;
  margin-top: 4px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.75rem;
}

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

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

.g47-avatar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.g47-avatar-actions .g47-btn-secondary,
.g47-avatar-actions label.g47-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(5,8,12,0.75);
  padding: 16px;
}

.g47-confirm-modal {
  width: 100%;
  max-width: 380px;
  padding: 1.5rem;
  background: #111a24;
  color: #e6edf2;
  border: 1px solid rgba(255,176,0,0.18);
  border-radius: 0;
  text-align: center;
}
.g47-confirm-title {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 800;
  color: #e6edf2;
}
.g47-confirm-desc {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: #8b9aab;
}
.g47-confirm-actions { display: flex; gap: 10px; }
.g47-confirm-cancel,
.g47-confirm-ok {
  flex: 1;
  min-height: 44px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255,176,0,0.18);
  border-radius: 0;
}
.g47-confirm-cancel {
  background: transparent;
  color: #e6edf2;
}
.g47-confirm-cancel:hover {
  border-color: #ffb000;
  color: #ffb000;
}
.g47-confirm-ok {
  background: #ffb000;
  color: #1a1200;
  border-color: #ffb000;
}
.g47-confirm-ok:hover { filter: brightness(1.06); }
