/* Joined by the server from the files named below, in page order (static-delivery.mjs). */

/* Source: css/dress-up-page.css */
/* Dress up's game page: the other games' frame, start card and Expand control around the owner's game,
   which plays in a frame (dress-up-game.html). There is no sidebar, so the game takes the full width. */
.topic-layout { grid-template-columns: minmax(0, 1fr); max-width: 1280px; }
.topic-player .topic-stage { position: absolute; inset: 0; z-index: 1; margin: 0; padding: 0; }
.topic-player #topicFrame { display: block; width: 100%; height: 100%; border: 0; background: #eef2f0; }
/* Before Play, the game waits behind the start card and cannot be tapped. */
.topic-player[data-phase="start"] #topicFrame { pointer-events: none; }
.topic-player #screenStart { position: absolute; inset: 0; z-index: 6; }
.topic-player[data-phase="play"] #screenStart { display: none; }
/* While the game downloads: a sky and meadow. Once it is ready, the game itself shows through, dimmed. */
.topic-player .player-start { background: transparent; }
.topic-player .topic-artwork { position: absolute; inset: 0; opacity: 1; background: radial-gradient(circle at 18% 22%, #fff3b8 0 7%, transparent 7.2%), linear-gradient(#bfe3f5, #e3f3e0 62%, #b8dca8); }
.topic-player[data-media-loading="false"] .topic-artwork { background: linear-gradient(#0d2f4a2e, #0d2f4a6b); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
/* The game shows its own speech and buttons; the frame's Expand control floats neatly in the top-right corner without adding a blank footer strip. */
#activityPlayer.game-shell.topic-player[data-phase="play"] { --player-utility-height: 0px; }
#activityPlayer.topic-player[data-phase="play"] .topic-stage { inset: 0; }
#activityPlayer.topic-player[data-phase="play"] .player-controls { inset: 10px 12px auto auto; width: auto; height: auto; padding: 0; border: 0; background: none; box-shadow: none; pointer-events: none; z-index: 8; }
#activityPlayer.topic-player[data-phase="play"] .player-controls > span { display: none; }
#activityPlayer.topic-player[data-phase="play"] .player-controls > button { pointer-events: auto; display: inline-flex; flex: 0 0 auto; flex-direction: row; align-items: center; gap: 6px; width: auto !important; height: auto !important; min-width: 0; min-height: 34px; padding: 6px 13px !important; border: 1px solid #c6d7d2; border-radius: 999px; background: rgba(255, 253, 249, .94); color: #173b43; box-shadow: 0 2px 8px rgba(23, 59, 67, .14); backdrop-filter: blur(4px); white-space: nowrap; filter: none; }
#activityPlayer.topic-player[data-phase="play"] .player-controls button:hover { background: #fffdf9; border-color: #155f69; color: #155f69; }
#activityPlayer.topic-player[data-phase="play"] .player-controls button svg { width: 15px; height: 15px; flex: 0 0 15px; }
.topic-details p { margin: 4px 0 0; color: #52696d; }
.topic-details .resource-actions a { font-weight: 700; }
.topic-player { --tw-c: #1f746b; }
#activityPlayer.topic-player .start-card .start-template { background: #e6f0ec; color: #155f69; border: 1px solid #c6dad3; box-shadow: none; }
/* How to play, under the game (5.246.0). The line about missions shows only where missions do (the owner, for now). */
.topic-howto { display:block; }
.topic-howto h2 { margin:0 0 6px; font-size:18px; }
.topic-howto ul { margin:0; padding-left:20px; color:#52696d; line-height:1.55; }
.topic-howto .missions-only { display:none; }
body.dress-up-missions .topic-howto .missions-only { display:list-item; }
/* Visitors (no game behind the card): the game's own picture. */
.topic-player[data-visitor="true"] .topic-artwork { background: linear-gradient(#0d2f4a2e, #0d2f4a6b), url(../assets/dress-up-cover.webp) center / cover no-repeat; }

/* Source: css/cafe-page.css */
/* Marsh Cafe launcher artwork accent (extends css/dress-up-page.css). */
.cafe-page .topic-player .topic-artwork {
  background: radial-gradient(circle at 18% 22%, #fff5cc 0 8%, transparent 8.2%), linear-gradient(#fae7dc, #fdf4e7 58%, #e4c6a4);
}
.cafe-page .topic-player[data-media-loading="false"] .topic-artwork {
  background: linear-gradient(#2d1b1033, #2d1b106e);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
/* Visitors (no game behind the card): the game's own picture. */
.cafe-page .topic-player[data-visitor="true"] .topic-artwork {
  background: linear-gradient(#2d1b1033, #2d1b106e), url(../assets/cafe/cover.webp) center / cover no-repeat;
}
