/* Alphaland Custom Enhancements & Modern <dialog> Modal Compliance */

dialog.alphaland-dialog {
  padding: 0;
  border: 1px solid #343434;
  border-radius: 0.25rem;
  background-color: #0d0d0d;
  color: #c6c6c6;
  max-width: 520px;
  width: calc(100% - 2rem);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
}

body.light-theme dialog.alphaland-dialog {
  background-color: #ffffff;
  color: #212529;
  border-color: rgba(0, 0, 0, 0.2);
}

dialog.alphaland-dialog:modal {
  overscroll-behavior: contain;
}

dialog.alphaland-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.65);
  overscroll-behavior: contain;
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
}

.nav-link {
  cursor: pointer;
}

/* Ensure game cards and catalog cards align cleanly in flex/grid lists */
#games-container,
#recents-container,
#catalogitems,
#itemsDiv,
#curWear {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#games-container li,
#recents-container li {
  list-style: none;
}

.game-card img,
.game-card-index img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid #343434;
}

body.light-theme .game-card img,
body.light-theme .game-card-index img {
  border-bottom: 1px solid #ced4da;
}

.game-thumb {
  max-height: 380px;
  object-fit: cover;
  width: 100%;
  border-radius: 0.25rem;
}

/* Body Color Dummy Picker (from Alphaland stylesheet.css) */
.bodyc-container {
  position: relative;
  width: 180px;
  height: 220px;
  margin: 0 auto;
}

.bodyc-part {
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.35);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.bodyc-part:hover {
  transform: scale(1.04);
  box-shadow: 0 0 0 2px #dc3545;
}

/* Color palette grid inside Pick Body Color dialog */
.color-palette ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}

.color-palette ul li div {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.4);
  transition: transform 0.1s ease;
}

.color-palette ul li div:hover {
  transform: scale(1.12);
  border-color: #dc3545;
}

/* Landing Hero Video Overlay */
.landing-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.25rem;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid #343434;
}

.landing-hero-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.landing-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.landing-hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.console-box {
  background: #080808;
  color: #e5e7eb;
  font-family: monospace;
  font-size: 12px;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #343434;
  max-height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
}
