.breadcrumb {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-muted); margin: 0 0.4rem; }

.hero-image {
  max-width: 960px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}

/* Scale the img ~2% and clip at the frame so a few boundary pixels are
   always hidden. Guards against stray edge artifacts on source images. */
.hero-frame {
  border-radius: 1rem;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.meta-item {
  color: var(--text-muted);
}

.play-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.play-btn:visited { color: var(--bg); }
.play-btn:hover {
  background: #a855f7;
  color: var(--bg);
  transform: translateY(-1px);
}

.tag-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 0.3rem;
}

.tag-default {
  background: var(--surface);
  color: var(--text-muted);
}

.tags-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.tags-label {
  color: var(--text-muted);
}

.tag-link {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 0.3rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.tag-link:hover {
  color: inherit;
  text-decoration: none;
}

.tags-none {
  color: var(--text-muted);
}

.tag-event-link {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.tag-event-link:hover {
  color: var(--accent-hover);
}

.synopsis {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.synopsis p { margin-bottom: 1em; }

.synopsis hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.synopsis a { color: var(--accent); }
.synopsis img { display: none; }

.gallery {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.gallery-1 { grid-template-columns: 1fr; }
.gallery-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-3 { grid-template-columns: repeat(3, 1fr); }

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 0 24px rgba(192, 132, 252, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.editor-mockup {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.editor-mockup h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.editor-mockup-frame {
  position: relative;
}

.editor-frame {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
}

.editor-preview {
  position: absolute;
  left: 13.7%;
  top: 13.7%;
  width: 50.0%;
  height: 52.1%;
  object-fit: contain;
  background: black;
}

.editor-preview-crop {
  position: absolute;
  left: 13.7%;
  top: 13.7%;
  width: 50.0%;
  height: 52.1%;
  background-position: right center;
  background-size: 300% auto;
  background-repeat: no-repeat;
  background-color: black;
}

.more-creator {
  margin-top: 1rem;
}

.more-creator:not(.more-creator + .more-creator) {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.more-creator h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.game-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.game-footer a {
  color: var(--accent);
  text-decoration: none;
}

.game-footer a:hover {
  color: var(--accent-hover);
}

@media (max-width: 640px) {
  .content h1 { font-size: 1.5rem; }
  .hero-image img { max-height: 240px; }
  .gallery { grid-template-columns: 1fr !important; }
}

/* Screenshot lightbox */
.hero-image img,
.gallery img,
.editor-preview {
  cursor: zoom-in;
}

/* Reserve the scrollbar gutter so locking the page (below) doesn't shift the
   centred content sideways when the overlay opens. */
html { scrollbar-gutter: stable; }
html.lightbox-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  background: rgba(5, 4, 8, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: lightbox-fade 0.2s ease;
}

/* `.lightbox { display: flex }` outranks the UA `[hidden]` rule, so restate it. */
.lightbox[hidden] {
  display: none;
}

@keyframes lightbox-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}

.lightbox-prev,
.lightbox-next,
.lightbox-close {
  position: absolute;
  background: rgba(26, 23, 38, 0.7);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s, border-color 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.lightbox-prev:focus-visible,
.lightbox-next:focus-visible,
.lightbox-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
}

.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox { animation: none; }
}
