/* HSC night city. Navy is the backdrop and light means a room is open.
   Text is orange and warm peach on navy. Nothing on the page is white. */
/* Fredoka and Nunito are served from this folder, never from another site.
   Both are free under the SIL Open Font License; the licenses sit beside the files. */
@font-face {
  font-family: 'Fredoka'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(fonts/fredoka-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Nunito'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/nunito-latin.woff2) format('woff2');
}
:root {
  --navy: #002461;
  --night: #00123a;
  --deep: #001a4d;
  --orange: #ff6200;
  --flame: #ff7a26;   /* orange for text, a touch lighter so it reads on navy */
  --peach: #ffd3a1;   /* body text */
  --amber: #ffd27a;
  --soft: #f0a868;    /* quieter second line */
  --line: #1d3f8c;
  /* type: one family for titles and place names, one for everything else */
  --font-display: 'Fredoka', 'Trebuchet MS', Arial, sans-serif;
  --font-text: 'Nunito', Arial, Helvetica, sans-serif;
  --display-weight: 600;
  --place-style: normal;
}
* { box-sizing: border-box; }
/* The page is never wider than the screen, on any phone. Nothing may slide it sideways: text keeps its size when
   a phone is turned, a quick second tap does not zoom the map, and nothing can spill past the right edge. */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  touch-action: manipulation;
  overflow-x: hidden; overflow-x: clip;
}
body {
  overflow-x: clip;
  margin: 0;
  background: var(--navy);
  color: var(--peach);
  font: 18px/1.5 var(--font-text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
a:focus-visible, button:focus-visible, .card:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: var(--night); padding: 12px 16px; z-index: 30; font-weight: 700; }
.skip:focus { left: 8px; top: 8px; }
/* header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 4%;
  background: linear-gradient(180deg, #00205a 0%, var(--deep) 100%);
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 1px 0 #ff8a3d inset, 0 10px 30px #00081f66;
  position: relative; z-index: 3;
}
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: 1.6px; font-size: 16px; line-height: 1.25; color: var(--flame); }
/* The star is drawn, not typed: a phone may swap a typed star for a wider picture of one. */
.wordmark .star { flex: none; width: 28px; height: 28px; margin: 0 6px 0 7px; fill: var(--orange); transform: rotate(-9deg); }
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a { text-decoration: none; font-size: 16px; }
.top nav a:hover { text-decoration: underline; }
.top .invite {
  background: var(--orange); color: var(--night); font-weight: 700; white-space: nowrap;
  padding: 10px 18px; border-radius: 12px; min-height: 44px; display: inline-flex; align-items: center;
  background: linear-gradient(180deg, #ff7a26 0%, var(--orange) 100%);
  box-shadow: 0 1px 0 #ffb27a inset, 0 6px 16px #00081f73;
  transition: transform .15s ease, box-shadow .15s ease;
}
.top .invite:hover { text-decoration: none; background: linear-gradient(180deg, #ff8a3d 0%, #ff6a0a 100%); transform: translateY(-1px); box-shadow: 0 1px 0 #ffc79d inset, 0 10px 22px #00081f8c; }

/* the map */
.world { position: relative; background: var(--night); }
.lead { position: absolute; left: 4%; top: 22px; z-index: 2; max-width: 30rem; pointer-events: none; }
.lead h1 { font: var(--display-weight) clamp(34px, 4.3vw, 62px)/1.04 var(--font-display); letter-spacing: -1px; margin: 0 0 12px; color: var(--orange); text-shadow: 0 2px 18px #000a28; }
.lead p { margin: 0 0 6px; font-size: 18px; text-shadow: 0 1px 10px #000a28; }
.lead .how { color: var(--amber); }
#city { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; }
#city .hit, #city .tag { cursor: pointer; }
#city .tag:focus { outline: none; }
/* room name plates: dark glass, edged in the room's own colour */
#city .tag .plate { fill: #001238; fill-opacity: .93; stroke: var(--room); stroke-width: 1.75; }
#city .tag .plate-shadow { fill: #00081f; opacity: .45; }
#city .tag .plate-sheen { pointer-events: none; }
#city .tag .name { font-family: var(--font-text); font-weight: 700; fill: var(--flame); }
#city .tag .sub { font-family: var(--font-text); fill: var(--peach); }
#city .tag .bean { stroke: #00123a; stroke-width: 1; }
#city .tag.dark .plate { stroke: #54699f; }
#city .tag.dark .name { fill: #d98a4f; }
#city .tag.dark .sub { fill: #c9b193; }
#city .tag.open .plate { stroke: var(--orange); stroke-dasharray: 6 4; }
#city .tag:focus-visible .plate { stroke: var(--amber); stroke-width: 4; }
#city .ring { opacity: 0; transition: opacity .15s; pointer-events: none; }
#city .ring.hover { opacity: .9; }
#city .ring.here { opacity: 1; animation: here 1.6s ease-in-out infinite; }
#city .lm { font-family: var(--font-display); font-style: var(--place-style); font-weight: 500; fill: var(--peach); paint-order: stroke; stroke: #00123a; stroke-width: 4px; stroke-linejoin: round; opacity: .95; }

/* lights come on, one room at a time, when the page opens */
#city.intro .lot.lit { animation: lightsOn .9s both; animation-delay: var(--d); }
@keyframes lightsOn { from { filter: brightness(.28) saturate(.3); } 60% { filter: brightness(1.25); } to { filter: none; } }
@keyframes here { 50% { opacity: .35; } }

#city .flowIn { animation: flowIn 1.5s linear infinite; }
#city .flowOut { animation: flowOut 1.5s linear infinite; }
@keyframes flowIn { to { stroke-dashoffset: -22; } }
@keyframes flowOut { to { stroke-dashoffset: 22; } }

/* the bayou: threads of light drift slowly downstream */
#city .drift { animation: drift 8s linear infinite; }
#city .drift.slow { animation-duration: 13s; }
@keyframes drift { to { stroke-dashoffset: var(--run); } }

/* open rooms breathe with light */
#city .pulse { opacity: .3; animation: pulse 4.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(.5); opacity: .75; } to { transform: scale(1.45); opacity: 0; } }
#city .aura { animation: aura 3.2s ease-in-out infinite alternate; }
@keyframes aura { from { opacity: .65; } to { opacity: 1; } }

#city .tw { animation: twinkle 7s infinite; }
@keyframes twinkle { 0%, 86%, 100% { opacity: 1; } 90%, 96% { opacity: .15; } }
#city .beam { animation: sweep 6s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
#city .spin { animation: spin 28s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#city .bulb { animation: bulb 2s infinite; }
@keyframes bulb { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
#city .steam { animation: steam 3.3s infinite ease-out; }
@keyframes steam { from { transform: translateY(0); opacity: .55; } to { transform: translateY(-22px) translateX(5px); opacity: 0; } }
#city .ballx { animation: ballx 1.3s linear infinite alternate; }
#city .bally { animation: bally .65s ease-out infinite alternate; }
@keyframes ballx { to { transform: translate(var(--bx), var(--by)); } }
@keyframes bally { to { transform: translateY(var(--lift)); } }
#city .jet { animation: bulb 1.1s infinite; }
#city .beacon { animation: bulb 3s infinite; }
#city .beacon.amber { animation-duration: 1.4s; }
#city .ripple { animation: bulb 4.5s infinite; }
#city .claim { animation: march 1.2s linear infinite; }
@keyframes march { to { stroke-dashoffset: -13; } }
#city .car { animation: drive linear infinite; }
@keyframes drive { from { transform: translate(var(--x0), var(--y0)); } to { transform: translate(var(--x1), var(--y1)); } }
/* the guide. He is drawn in his own units with his feet at 0,0, so the px here are his units, not screen pixels. */
#guide { pointer-events: none; }
#guide .g-bob { animation: breathe 3.6s ease-in-out infinite alternate; }
@keyframes breathe { to { transform: translateY(-.8px); } }
#guide .g-led { animation: bulb 4s infinite; }
#guide .leg, #guide .arm, #guide .g-rider { transition: transform .2s ease; }
#guide .leg.b { transform-origin: -2.55px -11.4px; }
#guide .leg.f { transform-origin: 2.55px -11.4px; }
#guide .arm.b { transform-origin: -5.3px -20.2px; }
#guide .arm.f { transform-origin: 5.65px -20.2px; }
#guide .g-rider { transform-origin: 0 -11px; }
/* a short hop: he walks, arms and legs swinging in turn */
#guide.walking .g-bob { animation: bob .095s ease-in-out infinite alternate; }
#guide.walking .g-rider { transform: rotate(5deg); }
#guide.walking .leg.f, #guide.walking .arm.b { animation: stride .19s ease-in-out infinite alternate; }
#guide.walking .leg.b, #guide.walking .arm.f { animation: stride .19s ease-in-out infinite alternate-reverse; }
@keyframes bob { to { transform: translateY(-1.3px); } }
@keyframes stride { from { transform: rotate(26deg); } to { transform: rotate(-26deg); } }
/* a long trip: the rocket appears under him and he rides it like a hobby horse */
#guide .g-rocket { opacity: 0; transform: scale(.3); transform-origin: 0 -7.7px; transition: transform .2s ease-out, opacity .16s ease-out; }
#guide.riding .g-rocket { opacity: 1; transform: none; }
#guide.riding .g-bob { animation: none; }
#guide.riding .g-rider { transform: translate(0, -3.4px) rotate(7deg); }
#guide.riding .leg { transform: rotate(-52deg); }
#guide.riding .arm { transform: rotate(-60deg); }
#guide .g-flame { transform-origin: -18.2px -7.7px; }
#guide.riding .g-flame { animation: flame .1s steps(2) infinite alternate; }
@keyframes flame { from { transform: scale(.7, .88); } to { transform: scale(1.12, 1); } }
/* he steps off with a small bend of the knees */
#guide.landed .g-bob { animation: land .36s ease-out 1, breathe 3.6s ease-in-out .36s infinite alternate; }
@keyframes land { 0% { transform: translateY(-2.5px); } 45% { transform: scale(1, .92); } 100% { transform: none; } }
/* now and then, when nothing else is going on, he waves */
#guide.waving .arm.f { animation: wave 1.7s ease-in-out 1; }
@keyframes wave { 0%, 100% { transform: rotate(0deg); } 18%, 46%, 74% { transform: rotate(-152deg); } 32%, 60% { transform: rotate(-122deg); } }
#puffs .puff { transform-box: fill-box; transform-origin: center; animation: puff .7s ease-out forwards; }
@keyframes puff { from { opacity: .95; transform: scale(.6); } 35% { opacity: .5; } to { opacity: 0; transform: translateY(-7px) scale(2.4); } }

/* paused: nothing plays, slides, lifts or eases, on the map or around it */
.still #city *, .still #guide * { animation-play-state: paused !important; transition: none !important; }
.still #city.intro .lot.lit { animation: none; }
.still .card, .still .news-panel { animation: none; }
.still .top .invite, .still .hud button, .still #room-list button, .still .card .go { transition: none; }
.still .top .invite:hover, .still #room-list button:hover, .still .card .go:hover { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #city * { animation: none !important; transition: none !important; }
  .card, .news-panel { animation: none !important; }
  .top .invite, .hud button, #room-list button, .card .go { transition: none !important; }
  .top .invite:hover, #room-list button:hover, .card .go:hover { transform: none !important; }
}

/* the activity bean: green, yellow or red */
span.bean {
  flex: none; display: inline-block; width: 19px; height: 12px; border-radius: 7px;
  background: var(--bean); box-shadow: 0 0 9px var(--bean); transform: rotate(-18deg);
}

/* strip under the map */
.hud {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px;
  padding: 14px 4%;
  background: linear-gradient(180deg, #001f58 0%, var(--deep) 100%);
  border-top: 1px solid #2a52a8; border-bottom: 1px solid var(--line);
  box-shadow: 0 -18px 30px #00081f59;
  position: relative;
}
.hud p { margin: 0; }
.hud #legend { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hud .key { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.hud #status { color: var(--amber); flex: 1 1 12rem; min-height: 1.5em; }
.hud button {
  background: #0a2f7366; border: 1.5px solid var(--flame); color: var(--flame); border-radius: 12px;
  padding: 8px 16px; min-height: 44px; font-weight: 700;
  box-shadow: 0 1px 0 #ffffff14 inset, 0 4px 12px #00081f59;
  transition: background .15s ease;
}
.hud button:hover { background: #123d8c; }
.hud button:disabled { opacity: .7; cursor: default; }

/* What's new: a quiet glass tab on the bottom edge of the map. It opens a short dated list.
   It opens up over the map where that hides no room, and down over this strip where it would.
   It never covers Pause motion: see the tablet and phone rules at the foot of this file. */
.news { position: absolute; left: 4%; bottom: calc(100% + 12px); z-index: 4; }
.hud .news-tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 14px 0 12px; border-radius: 999px;
  background: #00123a8c; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid #9fb4e64d; color: var(--peach); font-size: 16px; font-weight: 600;
  box-shadow: 0 4px 14px #00081f66; opacity: .88;
  transition: opacity .15s ease, border-color .15s ease, background .15s ease;
}
/* the tab looks small and still gives a thumb a full 44px */
.hud .news-tab::after { content: ""; position: absolute; inset: -4px 0; }
.hud .news-tab::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.hud .news-tab:hover, .hud .news-tab[aria-expanded="true"] { opacity: 1; border-color: var(--amber); background: #001a4dd9; }
/* short on purpose: the newest update shows at once, and older ones are a scroll away */
.news-panel {
  position: absolute; left: 0; bottom: calc(100% + 8px); display: flex; flex-direction: column;
  width: min(332px, calc(100vw - 32px)); max-height: min(56vh, 280px);
  padding: 10px 6px 12px 14px; border-radius: 16px;
  background: #001238cc; -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid #9fb4e640; box-shadow: 0 1px 0 #ffffff14 inset, 0 18px 44px #00081fa6;
  color: var(--peach); font-size: 16px; line-height: 1.4;
  animation: newsIn .16s ease-out;
}
.news-panel.down { bottom: auto; top: calc(100% + 8px); }
.news-panel[hidden] { display: none; }
@keyframes newsIn { from { opacity: 0; transform: translateY(6px); } }
.news-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 6px 4px 0; }
.news-head h2 { font-size: 20px; margin: 0; }
.hud .news-close {
  position: relative; background: transparent; border: 1px solid #9fb4e666; color: var(--peach); border-radius: 10px; box-shadow: none;
  min-height: 32px; padding: 0 12px; font-size: 16px;
}
.hud .news-close::after { content: ""; position: absolute; inset: -6px -2px; }
.hud .news-close:hover { background: #123d8c80; border-color: var(--amber); }
.news-list, .news-list ul { list-style: none; margin: 0; padding: 0; }
.news-list { overflow-x: hidden; overflow-y: auto; overflow-wrap: break-word; overscroll-behavior: contain; padding-right: 6px; scrollbar-width: thin; scrollbar-color: #9fb4e680 transparent; }
.news-list:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
.news-list > li + li { margin-top: 12px; padding-top: 12px; border-top: 1px solid #9fb4e62e; }
.news-list time { display: block; margin-bottom: 4px; color: var(--amber); font-weight: 700; }
.news-list ul li { position: relative; padding-left: 14px; }
.news-list ul li + li { margin-top: 4px; }
.news-list ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--flame); }

/* list of rooms */
.rooms, .what { padding: 44px 4% 12px; }
h2 { font: var(--display-weight) 34px/1.15 var(--font-display); margin: 0 0 8px; color: var(--flame); }
.rooms > p { margin: 0 0 22px; color: var(--soft); max-width: 36rem; }
#room-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
#room-list li { display: flex; }
#room-list button {
  width: 100%; text-align: left; display: flex; align-items: center; gap: 14px;
  background: linear-gradient(180deg, #0d3680 0%, #0a2c6c 100%); border: 1.5px solid #23479a; border-radius: 16px;
  padding: 14px 18px; min-height: 76px;
  box-shadow: 0 1px 0 #ffffff12 inset, 0 8px 20px #00081f4d;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
#room-list button:hover { border-color: var(--room); transform: translateY(-2px); box-shadow: 0 1px 0 #ffffff1f inset, 0 14px 28px #00081f80; }
#room-list button.open { border-style: dashed; border-color: var(--orange); }
#room-list .what { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 0; max-width: none; }
#room-list .what strong { color: var(--flame); }
#room-list .what span { color: var(--soft); font-size: 16px; }
#room-list .state { flex: none; font-size: 16px; color: var(--peach); text-align: right; white-space: nowrap; }

/* what is HSC */
.what { padding-bottom: 56px; max-width: 46rem; }
.what p { margin: 0 0 18px; }
.what .flag {
  display: inline-block; margin-bottom: 18px; padding: 6px 12px;
  border: 2px dashed var(--orange); border-radius: 6px; font-size: 16px; color: var(--amber);
}
.foot { padding: 22px 4% 130px; border-top: 1px solid var(--line); color: var(--soft); font-size: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot span:first-child { font: var(--place-style) 18px var(--font-display); color: var(--flame); }

/* Keep the reading area centered while the section backgrounds run full width. */
@media (min-width: 1801px) {
  .shell { --content-gutter: max(4%, calc((100% - 1656px) / 2)); }
  .top, .hud, .rooms, main > .what, .foot { padding-inline: var(--content-gutter); }
  .lead, .news { left: var(--content-gutter); }
  main > .what { max-width: none; }
  main > .what p { max-width: calc(46rem - 144px); }
}

/* the room card, like a game dialogue box: orange against the navy page, navy text */
.card {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20;
  width: min(580px, calc(100% - 24px));
  transform: translateX(-50%);
  background: linear-gradient(180deg, #ff7a26 0%, #ff6200 100%); color: var(--night);
  border: 2px solid var(--night); border-radius: 20px;
  box-shadow: 0 1px 0 #ffc79d inset, 0 0 0 3px var(--orange), 0 0 40px color-mix(in srgb, var(--room, #ff6200) 45%, transparent), 0 8px 18px #00081f80, 0 28px 64px #00081fb3;
  padding: 18px 20px 20px;
  max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-x: hidden; overflow-y: auto; overflow-wrap: break-word;
  animation: rise .22s ease-out;
}
.card[hidden] { display: none; }
@keyframes rise { from { transform: translate(-50%, 18px); opacity: 0; } }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-head > div { min-width: 0; }
.card h2 { font-size: 30px; margin: 0 0 8px; color: var(--night); }
.card:focus-visible { outline-color: var(--night); }
.card .state {
  display: inline-flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; margin: 0 0 12px; background: var(--night); color: var(--peach);
}
.card .state::before {
  content: ""; width: 19px; height: 12px; border-radius: 7px; background: var(--bean);
  box-shadow: 0 0 9px var(--bean); transform: rotate(-18deg);
}
.card p { margin: 0 0 10px; }
.card #card-host { font-weight: 700; }
.card #card-soon { border-left: 4px solid var(--night); padding-left: 10px; }
.card .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.card .go {
  background: var(--night); color: var(--flame); text-decoration: none; font-weight: 700;
  padding: 12px 20px; border-radius: 14px; min-height: 48px; display: inline-flex; align-items: center;
  box-shadow: 0 1px 0 #ffffff1f inset, 0 6px 14px #00081f66;
  transition: transform .15s ease, background .15s ease;
}
.card .go:hover { background: var(--navy); transform: translateY(-1px); }
.card .go[hidden] { display: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.card .x {
  flex: none; background: transparent; border: 2px solid var(--night); color: var(--night); border-radius: 14px;
  min-width: 48px; min-height: 48px; padding: 0 14px; font-weight: 700;
}
.card .x:hover { background: #ff8f47; }

/* wide screens: the card sits in the corner so it hides less of the map */
@media (min-width: 1100px) {
  .card { left: auto; right: 24px; bottom: 24px; transform: none; animation-name: riseWide; }
  @keyframes riseWide { from { transform: translateY(18px); opacity: 0; } }
}

/* a phone or folding phone held sideways: little height, so the card
   moves to the side and stays small enough to leave the map in view */
@media (orientation: landscape) and (max-height: 560px) {
  .card {
    left: auto; right: calc(12px + env(safe-area-inset-right)); bottom: 12px; transform: none;
    width: min(400px, 52%); padding: 12px 14px 14px; animation-name: riseWide;
  }
  .card h2 { font-size: 24px; margin-bottom: 4px; }
  .card .state { margin-bottom: 6px; }
  .card p { margin-bottom: 6px; font-size: 16px; }
  .card .actions { margin-top: 8px; }
  .foot { padding-bottom: 40px; }
}

/* tablets and unfolded phones */
@media (max-width: 1099px) {
  .top, .hud, .rooms, .what, .foot { padding-left: 24px; padding-right: 24px; }
  .lead { left: 24px; right: 24px; }
  .news { left: 24px; }
  /* Here the strip wraps and the open What's new list drops over it. So Pause motion leaves the strip and sits
     on the bottom edge of the map, across from the What's new tab, where the list can never cover it. */
  .hud #pause {
    position: absolute; right: 24px; bottom: calc(100% + 12px); z-index: 4;
    min-height: 36px; padding: 0 14px; border-radius: 999px;
    background: #00123a8c; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border: 1px solid #9fb4e64d; color: var(--peach); font-size: 16px; font-weight: 600;
    box-shadow: 0 4px 14px #00081f66; opacity: .88;
  }
  .hud #pause::after { content: ""; position: absolute; inset: -4px 0; }
  .hud #pause:hover, .hud #pause[aria-pressed="true"] { opacity: 1; border-color: var(--amber); background: #001a4dd9; }
  .hud #pause:disabled { opacity: .6; }
}

/* phones, and the outer screen of a folding phone */
@media (max-width: 599px) {
  /* The name and the invite button share one row while they fit. If a phone draws its letters wider than expected,
     the button drops under the name. It never pushes the page wider than the screen. */
  .top { padding: 12px 16px; flex-wrap: wrap; row-gap: 8px; }
  .top nav { flex: none; }
  .wordmark { font-size: 13px; letter-spacing: 1px; gap: 8px; flex: 1 1 0%; min-width: min-content; }
  .wordmark .star { width: 23px; height: 23px; margin: 0 5px 0 6px; }
  .top nav .plain { display: none; }
  .top .invite { padding: 10px 12px; }
  .lead { left: 16px; right: 16px; top: 16px; }
  .news { left: 16px; }
  .hud #pause { right: 16px; }
  .lead h1 { font-size: 36px; }
  .hud, .rooms, .what, .foot { padding-left: 16px; padding-right: 16px; }
  h2 { font-size: 30px; }
  #room-list { grid-template-columns: minmax(0, 1fr); }
  #room-list .state { max-width: 6.5rem; white-space: normal; }
}
@media (max-width: 359px) {
  .lead h1 { font-size: 31px; }
  .lead p { font-size: 16px; }
}
/* the smallest phones, and phones set to larger text: a little less air, so the name and the button keep one row */
@media (max-width: 339px) {
  .top { padding-left: 12px; padding-right: 12px; column-gap: 8px; }
}
/* narrower than any phone at its normal setting: a page zoomed in the browser */
@media (max-width: 319px) {
  .top { padding: 10px 12px; }
  .lead { left: 12px; right: 12px; }
  .lead h1 { font-size: 27px; }
  .hud, .rooms, .what, .foot { padding-left: 12px; padding-right: 12px; }
  .news { left: 12px; }
  .hud #pause { right: 12px; }
  .card { padding: 14px 14px 16px; }
  .card h2 { font-size: 24px; }
  .card .state { white-space: normal; }
}
