/* Catalogue pages and the game player (not loaded on the home page) */
.game-head { text-align: center; margin-bottom: 10px; }
.game-head h1 { color: #fff; font-size: clamp(1.3rem, 3vw, 2rem); margin: 4px 0 2px; }
.game-head p { margin: 0 auto; color: #d4ecdf; font-size: .95rem; max-width: 70ch; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0 0 6px; padding: 0; font-size: .85rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.game-head .breadcrumb ol { justify-content: center; color: #d4ecdf; }
.game-head .breadcrumb a { color: #fff; }

/* listing */
.listing h1 { margin: 0 0 12px; }
.listing .intro { max-width: 75ch; margin: 0 0 16px; color: var(--muted); }
.search-form { display: flex; gap: 8px; max-width: 480px; margin: 0 0 16px; }
.search-form input { flex: 1; min-width: 0; min-height: 42px; padding: 8px 14px; border: 1px solid #8d978f; border-radius: 999px; font: inherit; }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 20px 0; }
.pager a { display: inline-flex; align-items: center; min-height: 42px; }
.tags { margin: 0 0 20px; }

/* player */
/* The bar sits under the game, so the game starts higher; in full screen it moves to the top. */
.player { display: flex; flex-direction: column; width: min(1240px, 100% - 16px); margin-inline: auto; }
.player-bar { order: 2; display: flex; justify-content: flex-end; align-items: center; gap: 8px; min-height: 38px; margin-top: 8px; }
.player-none .player-bar { min-height: 0; }
.player-name { display: none; margin-right: auto; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-rotate { margin: 0 0 8px; text-align: center; color: var(--gold-soft); font-size: .9rem; }
.player-stage { position: relative; order: 1; width: 100%; }
.player-frame .player-stage {
  margin: 0 auto; background: #04170f; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; max-height: calc(100vh - 190px); min-height: 300px; max-width: 100%;
}
.player-frame.player-landscape .player-stage { aspect-ratio: 16 / 9; }
.player-frame.player-portrait .player-stage { aspect-ratio: 9 / 16; max-width: 480px; }
.player-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #04170f; }
.player-poster { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.player-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.player-play { position: relative; min-height: 56px; padding: 10px 30px; font-size: 1.1rem; max-width: 90%; }
.player-message { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; padding: 12px; border-radius: var(--radius); background: rgba(4, 23, 15, .92); color: #fff; text-align: center; }
.player-message p { flex: 1 1 100%; margin: 0; }
.player-none .player-message { position: static; display: block; }
.player-none .player-message a { color: var(--gold-soft); }

/* immersive: the bar with Exit always sits above the stage and never covers the game */
.has-immersive, .has-immersive body { overflow: hidden; }
.keeps-place { overflow-anchor: none; }
.player.is-immersive {
  position: fixed; inset: 0; z-index: 1000; width: 100%; height: 100vh; height: 100dvh; margin: 0;
  background: #04170f;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.is-immersive .player-bar { order: 0; flex: none; margin: 0; padding: 4px 8px; min-height: 46px; background: var(--jade-900); }
.is-immersive .player-name { display: block; }
.player.is-immersive .player-stage { flex: 1 1 auto; width: 100%; max-width: none; min-height: 0; max-height: none; aspect-ratio: auto; border-radius: 0; }
.player-internal.is-immersive { background: radial-gradient(ellipse at 50% 30%, var(--felt-1), var(--felt-2) 70%, var(--jade-900)); }
.player-internal.is-immersive .player-stage { overflow: auto; }

/* Admin preview */
.preview-bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 8px 16px; background: #fff3cd; color: #493900; }
.preview-bar p, .preview-bar form { margin: 0; }
.preview-bar .btn { color: #2b2205; border-color: #8a6d1d; }
