:root { color-scheme: dark; }
html, body { margin: 0; height: 100%; background: #05070f; color: #e8f1ff; font: 15px/1.5 system-ui, sans-serif; }
body { display: flex; flex-direction: column; }
header { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid #1b2740; }
header a { display: inline-flex; align-items: center; gap: 8px; color: #46d5ff; text-decoration: none; font-weight: 600; }
header a img { display: block; width: auto; height: 24px; }
header a:hover { opacity: 0.85; }
h1 { margin: 0; font-size: 15px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Same actions as the in-app game view header: Copy link, Share, Fullscreen. */
.actions { display: flex; align-items: center; gap: 8px; }
.actions button { background: transparent; color: #e8f1ff; border: 1px solid #1b2740; border-radius: 6px; padding: 6px 12px; font: 600 13px system-ui, sans-serif; cursor: pointer; }
.actions button:hover { border-color: #46d5ff; color: #46d5ff; }
.share { position: relative; }
#share-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; min-width: 160px; display: flex; flex-direction: column; padding: 6px; background: #0b1220; border: 1px solid #1b2740; border-radius: 8px; }
#share-menu[hidden], #fullscreen[hidden] { display: none; }
#share-menu button { text-align: left; border: 0; border-radius: 6px; padding: 8px 10px; font-weight: 500; }
#share-menu button:hover { background: #121c33; }
@media (max-width: 520px) { header { gap: 8px; padding: 6px 10px; } .actions { gap: 6px; } .actions button { padding: 6px 8px; font-size: 12px; } }
#frame { flex: 1; width: 100%; border: 0; }
#msg { margin: auto; max-width: 34rem; padding: 2rem; text-align: center; }
/* Column, or the img/pre/link flow inline and end up side by side. An ID rule
   beats the UA [hidden] rule, so restore it explicitly or this screen shows on
   every page - it once sat on top of a perfectly healthy game. */
#down[hidden] { display: none; }
#down { margin: auto; padding: 2rem; display: flex; flex-direction: column; align-items: center; }
#down-logo { width: 190px; max-width: 60vw; height: auto; }
#down-frog { margin: 1.5rem 0 0; color: #46d5ff; font: 13px/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace; text-align: left; }
#down-back { display: inline-block; margin-top: 1.5rem; padding: 10px 18px; border-radius: 8px; background: #46d5ff; color: #05070f; font-weight: 600; text-decoration: none; }
#down-back:hover { opacity: 0.9; }
