/* dexn.online: what every page shares (the black bar, buttons, page text). Each page's own bits are in it. */
:root { --fg: #f2f2f2; --bg: #1e1e1e; --bar: #000000; --card: #16181d; --muted: #9a9a9a; --line: #2c2f36;
  --accent: #3fe07d; --play: #22c55e; --bad: #ff6b81; --warn: #f5c542; }
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.45 system-ui, sans-serif; }
a { color: var(--accent); }
button { font: inherit; color: var(--fg); background: transparent; border: 1px solid #555; border-radius: 6px; padding: 4px 10px; cursor: pointer; }
button:hover { border-color: var(--accent); color: var(--accent); }
button:disabled { opacity: 0.5; cursor: default; }

/* The bar: the owner's logo (img/logo_long.svg), Play!, then About + Login on the right. */
header.top { position: sticky; top: 0; z-index: 5; background: var(--bar); }
.bar { max-width: 1400px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 12px; }
.bar .logo { display: block; line-height: 0; }
.bar .logo img { height: 44px; width: auto; display: block; }
.bar .btn { font-weight: 700; border: 0; border-radius: 4px; padding: 6px 14px; text-decoration: none; display: inline-block; line-height: 1.3; }
.bar .play { background: var(--play); color: #000; font-size: 20px; padding: 6px 30px; margin-left: 8px; }
.bar .play:hover { background: #4ade80; }
.bar .right { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.bar .light { background: #fff; color: #000; font-size: 17px; }
.bar .light:hover { background: #ddd; }
.bar .light.who { font-size: 11px; line-height: 1.15; padding: 4px 10px; text-align: center; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }

/* Text pages (About, Child Safety). */
.page { max-width: 900px; margin: 0 auto; padding: 24px 16px 60px; }
.page h1 { font-size: 30px; font-weight: 500; margin: 8px 0 24px; }
.page h2 { font-size: 19px; font-weight: 600; margin: 36px 0 8px; }
.page p { margin: 8px 0; }
.page .big { font-weight: 700; }

footer.bottom { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer.bottom div { max-width: 1400px; margin: 0 auto; padding: 14px 16px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
footer.bottom .s87 { line-height: 0; }
footer.bottom .s87 img { height: 34px; width: auto; display: block; }  /* the owner's Studio 87 logo (white), links to studio87.online */
footer.bottom a { color: var(--muted); }

.toast { position: fixed; left: 50%; top: 70px; transform: translateX(-50%); background: #000; border: 2px solid var(--fg);
  border-radius: 8px; padding: 8px 16px; z-index: 9; font-weight: 600; }
.hidden { display: none !important; }

/* The server issues box (site.js showNotice): the owner's red box under the bar, text word for word. */
.notice { background: #ee1c25; color: #fff; font-size: 22px; line-height: 1.35; white-space: pre-line; overflow-wrap: anywhere;
  margin: 12px; padding: 10px 8px; }

@media (max-width: 600px) {
  .bar { gap: 8px; padding: 8px; flex-wrap: wrap; }
  .bar .logo img { height: 30px; }
  .bar .play { font-size: 16px; padding: 5px 16px; margin-left: 0; }
  .bar .right { gap: 6px; }
  .bar .light { font-size: 14px; padding: 5px 10px; }
  .page h1 { font-size: 24px; }
  .notice { font-size: 17px; margin: 8px; }
}
