/* WEB-001: the public ATLAS site. The game's look (dark, indigo, Inter) for the web. */
@font-face { font-family: "Inter"; src: url("/site/fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/site/fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("/site/fonts/InterDisplay-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0b0c12;
  --surface: #141620;
  --raised: #1b1e2b;
  --raised-hover: #232737;
  --line: #212433;
  --line-strong: #2d3144;
  --text: #f0f1f7;
  --text-2: #a8adc2;
  --text-3: #767c93;
  --accent: #7c5cff;
  --accent-hover: #8d71ff;
  --accent-soft: rgba(124, 92, 255, 0.16);
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 14px;
  --page: min(1200px, 100% - 32px);
  color-scheme: dark;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); line-height: 1.55; }
main { flex: 1; width: var(--page); margin: 0 auto; padding: 32px 0 64px; }
a { color: #c3b6ff; text-decoration: none; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: "Inter Display", "Inter", system-ui, sans-serif; line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 18px; font-family: "Inter", system-ui, sans-serif; font-weight: 600; }
p { margin: 0 0 12px; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }

/* ---------------------------------------------------------------- header and footer */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(11, 12, 18, 0.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.site-header .bar { width: var(--page); margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { font-family: "Inter Display", "Inter", sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 6px; color: var(--text); }
.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a { color: var(--text-2); padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--text); background: var(--raised); }
.nav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }
.site-header .menu-button { display: none; }
.site-footer { border-top: 1px solid var(--line); color: var(--text-3); font-size: 14px; }
.site-footer .bar { width: var(--page); margin: 0 auto; padding: 24px 0; display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--text-2); }

.who { display: flex; gap: 8px; }
.who .button { min-height: 38px; padding: 0 16px; }

/* ---------------------------------------------------------------- controls */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--raised); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.button:hover { background: var(--raised-hover); color: var(--text); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-hover); }
.button.big { min-height: 52px; padding: 0 26px; font-size: 17px; }
input, select { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; min-height: 44px; padding: 0 14px; }
input::placeholder { color: var(--text-3); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.toolbar input { flex: 1; min-width: 200px; }
.message { min-height: 1.5em; color: var(--text-2); margin: 0 0 16px; }
.message.error { color: var(--bad); }

/* ---------------------------------------------------------------- home */
.hero { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--line-strong); padding: clamp(32px, 6vw, 72px);
  background: radial-gradient(120% 140% at 0% 0%, #4a37b8 0%, rgba(74, 55, 184, 0) 55%), radial-gradient(90% 120% at 100% 100%, #7a2f62 0%, rgba(122, 47, 98, 0) 60%), var(--surface); }
.hero h1 { max-width: 14em; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: #dcd8f2; max-width: 36em; margin-bottom: 28px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .invite { color: #dcd8f2; font-size: 15px; }
/* WEB-010: the home's hero is a picture of the game, darkened where the words are. */
.hero.photo { min-height: min(760px, 86vh); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(28px, 5vw, 64px);
  background: #0b0c12; isolation: isolate; }
.hero-picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: drift 28s ease-in-out infinite alternate; }
.hero.photo::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8, 9, 16, 0.92) 0%, rgba(8, 9, 16, 0.72) 38%, rgba(8, 9, 16, 0.15) 75%), linear-gradient(0deg, rgba(8, 9, 16, 0.85) 0%, rgba(8, 9, 16, 0) 40%); }
.hero.photo h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.02em; max-width: 11em; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.hero-body { max-width: 640px; }
.hero .invite { display: block; margin-top: 14px; color: #c9c6dc; font-size: 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; font-size: 14px; font-weight: 600;
  background: rgba(20, 22, 32, 0.6); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(8px); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse 2.2s infinite; }
.button.glass { background: rgba(20, 22, 32, 0.55); border-color: rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px); }
.button.glass:hover { background: rgba(35, 39, 55, 0.75); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0 56px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat strong { display: block; font-family: "Inter Display", sans-serif; font-size: 30px; }
.stat span { color: var(--text-2); font-size: 14px; }
.stats.glass-row { margin: 0; }
.glass-row .stat { background: rgba(14, 15, 24, 0.55); border-color: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); }
.glass-row .stat span { color: #c9c6dc; }
.showcase { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin: 96px 0; }
.showcase.flip .shot { order: 2; }
.shot { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px -30px rgba(124, 92, 255, 0.45); }
.shot img { display: block; width: 100%; height: auto; transition: transform 0.8s ease; }
.shot:hover img { transform: scale(1.03); }
.kicker { display: inline-block; color: #c3b6ff; font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.showcase h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; margin: 0 0 14px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px var(--accent); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 6px; height: 9px; border: solid #c3b6ff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mosaic { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.mosaic a { position: relative; display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.mosaic a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.mosaic a:hover img { transform: scale(1.06); }
.mosaic .label { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 10px; font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(0deg, rgba(8, 9, 16, 0.85), rgba(8, 9, 16, 0)); opacity: 0; transition: opacity 0.25s ease; }
.mosaic a:hover .label, .mosaic a:focus-visible .label { opacity: 1; }
.band { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin: 0 0 72px; padding: clamp(28px, 4vw, 48px); border-radius: 24px;
  background: radial-gradient(120% 160% at 100% 0%, rgba(124, 92, 255, 0.45), rgba(124, 92, 255, 0) 60%), linear-gradient(135deg, #1b1840, #141620);
  border: 1px solid rgba(124, 92, 255, 0.35); }
.band h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 34px); }
.band p { margin: 0; color: #d6d2ee; max-width: 40em; }
.finale { text-align: center; padding: clamp(40px, 6vw, 80px) 16px; margin: 24px 0 40px; border-radius: 24px; border: 1px solid var(--line);
  background: radial-gradient(80% 120% at 50% 0%, rgba(124, 92, 255, 0.28), rgba(124, 92, 255, 0) 70%), var(--surface); }
.finale h2 { font-size: clamp(30px, 4vw, 48px); margin: 0 0 10px; }
.finale .cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes drift { from { transform: scale(1.02) translateX(0); } to { transform: scale(1.1) translateX(-2%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); } 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
@media (prefers-reduced-motion: reduce) {
  .hero-picture, .eyebrow .dot { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .shot img, .mosaic img { transition: none; }
}
.section { margin: 0 0 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .mark { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: #c3b6ff; display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; margin: 0; list-style: none; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 70px; position: relative; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 22px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: var(--text); }
.card:hover { border-color: rgba(124, 92, 255, 0.55); background: var(--raised); color: var(--text); }
.card .cover { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; display: block; background: linear-gradient(135deg, #2b2257, #4a2343); }
.card .cover.square { aspect-ratio: 1 / 1; }
.card .initial { aspect-ratio: 16 / 9; display: grid; place-items: center; font-family: "Inter Display", sans-serif; font-size: 44px; color: rgba(255, 255, 255, 0.85); }
.card .initial.square { aspect-ratio: 1 / 1; }
.card .body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.card .name { font-weight: 600; overflow-wrap: anywhere; }
.card .meta { color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
.card .about { color: var(--text-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--raised); color: var(--text-2); border: 1px solid var(--line); }
.pill.live { color: var(--good); border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.1); }
.pill.tag { color: #c3b6ff; border-color: rgba(124, 92, 255, 0.3); background: var(--accent-soft); }
.empty { color: var(--text-2); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 32px; text-align: center; }

/* ---------------------------------------------------------------- profile */
.profile-head { display: flex; gap: 24px; align-items: center; margin-bottom: 32px; flex-wrap: wrap; }
.avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: var(--accent); display: grid; place-items: center;
  font-family: "Inter Display", sans-serif; font-size: 48px; color: #fff; flex-shrink: 0; }
.profile-head h1 { margin: 0 0 4px; font-size: clamp(28px, 4vw, 40px); overflow-wrap: anywhere; }
.profile-head .title { color: #c3b6ff; font-weight: 600; margin-bottom: 8px; }
.bio { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 44em; margin-bottom: 36px; color: var(--text-2); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--text-2); font-size: 15px; margin: 8px 0 0; }

/* ---------------------------------------------------------------- long pages */
.prose { max-width: 46em; }
.prose h2 { margin-top: 40px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose code { background: var(--raised); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 0.92em; }
.limits { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 15px; }
.limits th, .limits td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.limits th { color: var(--text-2); font-weight: 600; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; margin: 0 0 10px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--text-3); font-weight: 400; }
details[open] summary::after { content: "–"; }
details > p, details > ul { color: var(--text-2); padding-bottom: 8px; }
.downloads { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.callout { background: var(--accent-soft); border: 1px solid rgba(124, 92, 255, 0.35); border-radius: var(--radius); padding: 16px 20px; margin: 16px 0; }

/* ---------------------------------------------------------------- sign in and account */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 460px; }
.panel label { display: grid; gap: 6px; margin: 0 0 16px; font-weight: 600; font-size: 15px; }
.panel input { width: 100%; }
.check { display: flex !important; grid-template-columns: none; align-items: center; gap: 10px; font-weight: 400 !important; }
.check input { width: auto; min-height: 0; }
.account-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 32px; }
.account-grid .stat strong { font-size: 20px; overflow-wrap: anywhere; }
.list { display: grid; gap: 8px; margin-bottom: 32px; }
.panel.inline { max-width: none; margin: 0 0 32px; }
.panel label + p.small { margin: -10px 0 16px; }
.row.event { align-items: flex-start; }
/* WEB-013: friends, messages, notifications and groups. */
.who { display: flex; align-items: center; gap: 6px; }
.icon-button { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--text-2); }
.icon-button:hover { background: var(--raised); color: var(--text); }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ec4899; color: #fff;
  font-size: 11px; font-weight: 700; }
.icon-button .badge { position: absolute; top: 2px; right: 0; }
.badge.inline { justify-self: start; }
.button.small { min-height: 32px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.social { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.people { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.people-title { font-size: 15px; color: var(--text-2); margin: 18px 0 8px; font-weight: 600; }
.people-list { display: grid; gap: 2px; }
.person { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; width: 100%; text-align: left;
  padding: 8px 10px; border-radius: 10px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; }
.person:hover, .person.active { background: var(--raised); }
.person .dot { grid-row: span 2; }
.person .name { font-weight: 600; overflow-wrap: anywhere; }
.person .small { grid-column: 2; }
.person .badge, .person .person-actions, .person > .button { grid-column: 3; grid-row: 1 / span 2; }
#requests .person { grid-template-columns: 1fr auto; cursor: default; }
#requests .person .small { grid-column: 1; }
#requests .person .person-actions, #requests .person > .button { grid-column: 2; }
.person-actions { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); }
.dot.online { background: var(--good); } .dot.busy { background: var(--bad); } .dot.away { background: var(--warn); }
.add-friend { display: flex; gap: 8px; }
.add-friend input { flex: 1; min-width: 0; }
.chat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-height: 480px; display: flex; flex-direction: column; overflow: hidden; }
.chat > div:not([hidden]) { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat-empty { align-items: center; justify-content: center; text-align: center; padding: 32px; }
.chat-head { display: flex; align-items: baseline; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-head .name { font-weight: 700; color: var(--text); }
.messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; max-height: 60vh; min-height: 320px; }
.bubble { max-width: 75%; align-self: flex-start; background: var(--raised); border-radius: 16px 16px 16px 4px; padding: 8px 12px; overflow-wrap: anywhere; }
.bubble.mine { align-self: flex-end; background: var(--accent); color: #fff; border-radius: 16px 16px 4px 16px; }
.bubble .time { font-size: 12px; opacity: 0.7; margin-top: 2px; }
.bubble .quote { font-size: 13px; opacity: 0.75; border-left: 2px solid currentColor; padding-left: 8px; margin-bottom: 4px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; }
.row.notice.unread { border-color: rgba(124, 92, 255, 0.5); background: linear-gradient(90deg, var(--accent-soft), var(--surface) 40%); }
.row.notice .name { color: var(--text); }
.group-card .group-top { aspect-ratio: 16 / 6; display: grid; place-items: center; font-family: "Inter Display", sans-serif; font-size: 40px; color: rgba(255, 255, 255, 0.9); }
.group-head { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: start; margin: 0 0 24px; }
.group-head h1 { margin: 0 0 4px; }
.group-mark { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; font-family: "Inter Display", sans-serif; font-size: 32px; color: #fff; }
.group-body { grid-template-columns: 1fr 300px; }
@media (max-width: 820px) {
  .social, .group-body { grid-template-columns: 1fr; }
  .group-head { grid-template-columns: auto 1fr; }
  .group-head > .button { grid-column: 1 / -1; justify-self: start; }
}
/* WEB-012: a profile's banner (a picture of one of their public rooms). */
.profile-banner { display: none; }
.profile-banner.shown { display: block; position: relative; height: clamp(160px, 24vw, 260px); border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line-strong); margin: 0 0 -56px; }
.profile-banner > * { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 12, 18, 0.95), rgba(11, 12, 18, 0) 70%); }
.profile-banner.shown + .profile-head { position: relative; z-index: 1; padding-left: 24px; }
.grid.small { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
/* WEB-011: a room's own page. */
.crumbs { color: var(--text-3); font-size: 14px; margin: 0 0 12px; }
.crumbs a { color: var(--text-2); }
.room-hero { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-strong); margin: 0 0 32px; aspect-ratio: 16 / 7; min-height: 280px; }
.room-cover, .room-cover > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.room-cover .initial { display: grid; place-items: center; font-size: 96px; font-weight: 700; color: rgba(255, 255, 255, 0.85); }
.room-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 9, 16, 0.92) 0%, rgba(8, 9, 16, 0.2) 55%, rgba(8, 9, 16, 0) 100%); }
.room-title { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(20px, 4vw, 40px); }
.room-title h1 { margin: 0 0 6px; font-size: clamp(30px, 5vw, 56px); }
.room-title .muted a { color: #fff; text-decoration: underline; }
.room-columns { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; margin: 0 0 48px; }
.room-about { font-size: 18px; line-height: 1.6; margin: 0 0 28px; white-space: pre-line; overflow-wrap: anywhere; }
.howto { padding-left: 22px; margin: 0 0 20px; display: grid; gap: 8px; }
.panel.side { max-width: none; }
.panel.side h2 { margin-top: 0; font-size: 20px; }
.rules ul { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 6px; overflow-wrap: anywhere; }
a.pill { text-decoration: none; }
a.card { color: inherit; text-decoration: none; }
.row .when { color: var(--accent-hover); font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.row .when::first-letter { text-transform: uppercase; }
.row .when.live { color: var(--good); }
.row .about { color: var(--text-2); font-size: 14px; margin: 6px 0 0; overflow-wrap: anywhere; }
.row.event .meta a { color: var(--text-2); text-decoration: underline; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.row .name { font-weight: 600; color: var(--text); }
.row .meta { color: var(--text-2); font-size: 14px; }
.row .amount { color: var(--good); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row .amount.minus { color: var(--text-2); }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; margin: 56px 0; }
  .room-columns { grid-template-columns: 1fr; }
  .room-hero { aspect-ratio: 4 / 3; }
  .showcase.flip .shot { order: 0; }
  .mosaic { grid-template-columns: repeat(3, 1fr); }
  .band { flex-direction: column; align-items: flex-start; }
  .hero.photo::before { background: linear-gradient(0deg, rgba(8, 9, 16, 0.95) 0%, rgba(8, 9, 16, 0.6) 55%, rgba(8, 9, 16, 0.35) 100%); }
  .features, .steps, .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-header .bar { height: auto; min-height: 60px; flex-wrap: wrap; padding: 10px 0; gap: 8px; }
  .site-header .menu-button { display: inline-flex; margin-left: auto; min-height: 40px; padding: 0 14px; }
  .who { order: 2; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; }
  .nav.open { display: flex; }
  main { padding-top: 20px; }
  .hero { border-radius: 18px; }
}
