/* EarthOnline Bubbles: the page frame and the cards. Tokens, type sizes and every control (buttons, badges, the dialog)
   are in ui.css, a copy of EarthOnline Chat's; this file only lays the page out. The frame (base, header, column,
   titles, the text to copy) is copied from Chat's public/style.css of 2026-10-02, so the two sites look the same.
   One theme, pure black; the only colour is the marks. Nothing moves: hover changes one step of ground or the text
   colour, at once. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font: var(--text-base)/var(--lh-base) var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--fg); text-decoration-color: var(--muted); text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
a, button { touch-action: manipulation; }
/* one focus ring for links and the rest, keyboard only (controls draw shadcn's own, ui.css) */
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
b, strong { font-weight: 600; }
button { font: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- page frame (Chat) ---- */
.wrap { max-width: 760px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
main.wrap { padding-bottom: 64px; min-height: 60vh; }
/* the header spans the window, the brand at its left and the one action at its right, 24px in. At the very top it is
   part of the page; scrolled at all, the page passes under dark glass with a hairline, at once. */
.top { position: sticky; top: 0; z-index: 10; overflow-x: clip; border-bottom: 1px solid transparent; }
@keyframes top-scrolled { to { border-bottom-color: rgb(255 255 255 / .1); background: rgb(0 0 0 / .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); } }
@supports (animation-timeline: scroll()) {
  .top { animation: top-scrolled steps(1, jump-end) both; animation-timeline: scroll(root block); animation-range: 0px 1px; }
}
@supports not (animation-timeline: scroll()) {
  .top { border-bottom-color: rgb(255 255 255 / .1); background: rgb(0 0 0 / .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 51px; gap: 16px; padding: 0 24px; }
/* brand lockup: mark + parent brand (semibold) + this site's name (regular). One line, one font, one colour. */
.brand { display: flex; align-items: center; gap: 8px; flex: none; font-size: 20px; font-weight: 400; line-height: 1; text-decoration: none; white-space: nowrap; }
.brand b { font-weight: 600; }
.logo { display: block; flex: none; width: 28px; height: 28px; }
.bar-start, .bar-end { flex: 1 1 0; display: flex; align-items: center; }
.bar-end { justify-content: flex-end; gap: 12px; }
/* narrower than 720px the brand is its mark alone, its name kept for screen readers (Chat) */
@media (max-width: 720px) { .bar-start .brand > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
@media (max-width: 640px) { .bar { padding: 0 16px; } }

/* ---- the title (Chat's .hero: a page's 36px) ---- */
.hero { padding: 48px 0 8px; }
.hero h1 { font-size: var(--text-4xl); line-height: var(--lh-4xl); margin: 0; letter-spacing: var(--tracking-tight); }
.hero p { margin: 12px 0 0; max-width: 640px; color: var(--muted); text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero .cta { margin-top: 24px; }
@media (max-width: 640px) { .hero { padding-top: 32px; } .hero h1 { font-size: var(--text-3xl); line-height: var(--lh-3xl); } }

/* ---- a text to copy (Chat's .prompt; in the dialog on the dialog's ground, a see-through step up) ---- */
.prompt { margin: 16px 0 0; padding: 20px; border-radius: var(--radius-box); background: var(--bg2); font: inherit; font-size: var(--text-sm); line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---- the sites: two columns of cards (one on a phone). A card is a panel one step up from the page; it is not a link
   itself (its two buttons are), so pointing at it changes nothing. The mark sits on the card's left edge by its drawing,
   not its box (taste: align to the edge that is seen): the drawing starts 4/96 of the box in. ---- */
.bubbles { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 40px 0 0; padding: 0; }
.bubble { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 24px; border-radius: var(--radius-card); background: var(--bg2); }
.bubble-mark { display: block; flex: none; margin-left: calc(-4 / 96 * 40px); }
.bubble-name { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; min-width: 0; }
.bubble-name h2 { margin: 0; font-size: var(--text-2xl); line-height: var(--lh-2xl); letter-spacing: var(--tracking-tight); }
.bubble-about { margin: 8px 0 0; color: var(--muted); text-wrap: pretty; overflow-wrap: anywhere; }
/* what a site holds, as it says itself: the one white line on a card */
.bubble-data { margin: 8px 0 0; color: var(--fg); font-size: var(--text-sm); line-height: var(--lh-sm); font-weight: 500; }
/* the two ways in sit at the card's foot, so the buttons of cards in a row line up */
.bubble-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding-top: 24px; }
@media (max-width: 640px) {
  .bubbles { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 32px; }
  .bubble { padding: 20px; }
}

/* ---- the foot: one grey line, centred (Chat's .login-links): the two files an agent reads first ---- */
.foot { display: flex; justify-content: center; gap: 16px; margin: 0; padding: 0 24px 32px; font-size: var(--text-sm); line-height: var(--lh-sm); }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--fg); }
