/* Couch Critters: game night in a cartoon living room. Everything is a "sticker": cream fill, thick navy outline,
   a solid navy drop shadow, like the games' art. One set of tokens, used everywhere. */
:root {
  --ink: #1d1838;
  --ink-soft: #4b4270;
  --cream: #fff8ec;
  --paper: #ffffff;
  --lilac: #efe6ff;
  --lilac-deep: #ddcdff;
  --violet: #6b4fd8;
  --violet-deep: #4f37b3;
  --yellow: #ffc93c;
  --cyan: #2ec4f1;
  --pink: #ff5fa8;
  --lime: #6bd54a;
  --orange: #ff8a3d;
  --p1: #ffc300;
  --p2: #2ec4f1;
  --p3: #ff5fa8;
  --p4: #6bd54a;
  --display: "Lilita One", "Arial Black", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --line: 3px;
  --lift: 0 6px 0 var(--ink);
  --lift-sm: 0 4px 0 var(--ink);
  --r: 22px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 700 17px/1.5 var(--body);
  /* the wallpaper of the room continues down the page */
  background-color: var(--lilac);
  background-image: radial-gradient(var(--lilac-deep) 3px, transparent 3.5px);
  background-size: 34px 34px;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 4px solid var(--violet); outline-offset: 3px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: 0.01em; }

kbd {
  display: inline-block;
  font: 400 0.9em/1 var(--display);
  padding: 0.3em 0.6em 0.36em;
  margin: 0 0.1em;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  border: var(--line) solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  vertical-align: 0.05em;
}
kbd.pad { border-radius: 50%; width: 1.9em; height: 1.9em; padding: 0; display: inline-grid; place-items: center; }
kbd.pad.a { background: var(--lime); color: #fff; text-shadow: 0 2px 0 var(--ink); }

/* the sticker look, shared by chips, cards and buttons */
.chip, .card, .status, .sticker-title, .play, .room-buttons button, .seat-tag, .bubble {
  border: var(--line) solid var(--ink);
  box-shadow: var(--lift);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--cream);
  font: 400 17px/1 var(--display);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--lift-sm);
  transition: transform .12s, box-shadow .12s;
}
.chip:hover { transform: translateY(-2px) rotate(-2deg); box-shadow: 0 6px 0 var(--ink); }
.chip:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.sound[aria-pressed="false"] { background: var(--lilac-deep); }

/* ======================= the living room ======================= */
.room {
  position: relative;
  min-height: min(100vh, 980px);
  padding: 0 var(--gutter) 34px;
  background: #3b2a66 url(assets/hub/room.webp) center bottom / cover no-repeat;
  border-bottom: var(--line) solid var(--ink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.top {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 16px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 3;
}
.brand img { width: clamp(130px, 15vw, 210px); height: auto; filter: drop-shadow(0 5px 0 rgba(29, 24, 56, .35)); transition: transform .2s; }
.brand:hover img { transform: rotate(-3deg) scale(1.04); }
.nav { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; padding-top: 10px; }

.hello {
  position: relative;
  z-index: 3;
  max-width: var(--max);
  width: 100%;
  margin: clamp(4px, 2vw, 18px) auto 0;
  text-align: center;
}
/* the headline is a big sticker banner, like every other title on the page */
.hello h1 {
  display: inline-block;
  font-size: clamp(36px, 5.6vw, 76px);
  line-height: 1;
  padding: 0.12em 0.45em 0.2em;
  color: var(--yellow);
  background: var(--pink);
  border: var(--line) solid var(--ink);
  border-radius: 24px;
  box-shadow: var(--lift);
  -webkit-text-stroke: 0.05em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.07em 0 var(--ink);
  transform: rotate(-2deg);
}
.how {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  margin: 16px 0 0;
  padding: 10px 18px;
  transform: rotate(1deg);
  background: var(--cream);
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--lift);
  font-size: clamp(15px, 1.7vw, 19px);
}
.how .or { color: var(--ink-soft); }

/* shared couch: invite friends far away, or hop onto their sofa with a code */
.couch-panel { margin: 14px auto 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.couch-solo, .couch-shared {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  padding: 8px 10px 8px 16px;
  background: var(--yellow);
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--lift-sm);
  transform: rotate(-1deg);
}
.couch-shared { background: var(--lime); }
.couch-solo[hidden], .couch-shared[hidden] { display: none; }
.couch-q { font: 400 18px/1 var(--display); }
.couch-or { font-size: 15px; color: var(--ink-soft); }
.couch-join { display: inline-flex; gap: 6px; align-items: center; }
#couch-code {
  width: 92px;
  font: 400 20px/1 var(--display);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-align: center;
  padding: 6px 4px 6px 8px;
  border-radius: 12px;
  border: var(--line) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}
#couch-code::placeholder { color: #cbbfe8; }
#couch-code:focus { outline: none; box-shadow: 0 0 0 3px var(--violet); }
.couch-btn {
  appearance: none;
  font: 400 16px/1 var(--display);
  padding: 8px 14px;
  border-radius: 999px;
  border: var(--line) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
}
.couch-btn.invite { background: var(--pink); color: #fff; text-shadow: 0 2px 0 var(--ink); }
.couch-btn.ghost { background: transparent; box-shadow: none; border-color: transparent; text-decoration: underline; }
.couch-btn:hover { transform: translateY(-2px); }
.couch-btn:active { transform: translateY(2px); box-shadow: none; }
.couch-code-big { font-size: 22px; letter-spacing: .12em; background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; padding: 2px 6px; }
.couch-homes { font-size: 14px; }
.couch-msg { margin: 0; min-height: 1.2em; font-size: 14px; background: var(--cream); border-radius: 8px; padding: 0 8px; }
.couch-msg:empty { background: none; }
/* a friend's critter, playing from another home */
.seat.remote .critter::after {
  content: '🌍';
  position: absolute;
  right: 4%;
  top: 6%;
  font-size: clamp(14px, 1.8vw, 24px);
  filter: drop-shadow(0 2px 0 var(--ink));
}
.seat.remote .name { background: rgba(255, 255, 255, .5); }
.seat.remote .seat-tag { padding: 5px 10px; font-size: 13px; }

/* the sofa and its seats. Seat positions are fractions of the sofa picture (see --seat-* below). */
.scene {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: clamp(34px, 4vw, 56px);
  z-index: 2;
}
.sofa {
  /* where the four cushions sit inside sofa.webp, as fractions of its box */
  --seat-left: 10.8%;
  --seat-right: 10.8%;
  --seat-top: 0%;
  --seat-bottom: 27%;
  position: relative;
  /* as big as fits: never wider than the screen, never taller than what is left below the headline */
  width: min(1000px, 94vw, max(560px, calc((100svh - 560px) * var(--sofa-aspect, 1.9))));
  aspect-ratio: var(--sofa-aspect, 1.9);
}
.sofa-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.cat {
  position: absolute;
  width: 15%;
  left: -1%;
  top: var(--cat-top, 21%);
  z-index: 4;
  transform: rotate(-4deg);
  cursor: pointer;
  /* asleep or awake, the picture keeps its box (bottom-aligned), so swapping it does not jump */
  aspect-ratio: var(--cat-aspect, auto);
  object-fit: contain;
  object-position: 50% 100%;
}
.cat:hover { animation: purr .5s ease-in-out 2; }
@keyframes purr { 50% { transform: rotate(-4deg) scale(1.05, .95); } }

.seats {
  position: absolute;
  left: var(--seat-left);
  right: var(--seat-right);
  top: var(--seat-top);
  bottom: var(--seat-bottom);
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2%;
  z-index: 3;
}
.seat {
  --c: var(--p1);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}
.seat[data-i="1"] { --c: var(--p2); }
.seat[data-i="2"] { --c: var(--p3); }
.seat[data-i="3"] { --c: var(--p4); }

/* empty: a bobbing invitation and a dotted "someone sits here" outline */
.seat.empty .ghost {
  width: 62%;
  aspect-ratio: 1;
  margin-bottom: 4%;
  border: 4px dashed rgba(255, 255, 255, .55);
  border-radius: 50% 50% 40% 40%;
  background: rgba(255, 255, 255, .08);
}
.bubble {
  position: absolute;
  left: 50%;
  top: 6%;
  translate: -50% 0;
  width: max-content;
  max-width: 120%;
  padding: 8px 12px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  font: 400 clamp(13px, 1.4vw, 17px)/1.15 var(--display);
  text-align: center;
  cursor: pointer;
  box-shadow: var(--lift-sm);
  animation: bob 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.6s);
}
.bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -11px;
  width: 16px;
  height: 16px;
  background: inherit;
  border-right: var(--line) solid var(--ink);
  border-bottom: var(--line) solid var(--ink);
  transform: translateX(-50%) rotate(45deg);
}
.bubble small { display: block; font: 700 12px/1.2 var(--body); color: var(--ink-soft); margin-top: 3px; }
.bubble:hover { background: var(--cream); }
@keyframes bob { 50% { transform: translateY(-7px) rotate(1.5deg); } }

/* taken: the critter sits up against the backrest, hugging a pillow with their name on it */
.critter {
  position: relative;
  width: 86%;
  margin-bottom: -26%;
  z-index: 1;
  filter: drop-shadow(0 6px 0 rgba(29, 24, 56, .25));
}
.critter img { width: 100%; height: auto; transform-origin: 50% 100%; }
.pillow {
  position: relative;
  width: 74%;
  aspect-ratio: 1 / .78;
  z-index: 2;
  display: grid;
  place-items: center;
  transform: rotate(var(--tilt, -3deg));
}
.seat[data-i="1"] .pillow { --tilt: 2deg; }
.seat[data-i="2"] .pillow { --tilt: -2deg; }
.seat[data-i="3"] .pillow { --tilt: 3deg; }
.pillow > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.badge {
  position: absolute;
  top: -6%;
  left: -4%;
  z-index: 2;
  font: 400 clamp(12px, 1.3vw, 16px)/1 var(--display);
  background: var(--c);
  border: var(--line) solid var(--ink);
  border-radius: 10px;
  padding: 4px 7px 5px;
  box-shadow: 0 3px 0 var(--ink);
  transform: rotate(-8deg);
}
.name {
  position: relative;
  z-index: 1;
  width: 78%;
  min-width: 0;
  margin-top: 4%;
  font: 400 clamp(12px, 1.6vw, 21px)/1 var(--display);
  color: var(--ink);
  text-align: center;
  background: rgba(255, 255, 255, .72);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 5px 4px;
}
.name:hover { background: #fff; }
.name:focus { outline: none; background: #fff; box-shadow: 0 0 0 3px var(--violet); }
.seat-tag {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: var(--cream);
  white-space: nowrap;
  font: 800 15px/1 var(--body);
  box-shadow: var(--lift-sm);
  z-index: 4;
}
.round {
  appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1 var(--display);
  cursor: pointer;
  box-shadow: 0 2px 0 var(--ink);
  display: grid;
  place-items: center;
}
.round:hover { background: var(--yellow); }
.round:active { transform: translateY(2px); box-shadow: none; }
.round.leave:hover { background: var(--pink); color: #fff; }
.seat-tag .device { padding: 0 3px 0 5px; cursor: help; }

/* sitting down: drop in with a squash, and a puff of dust off the cushion */
.seat.just-joined .critter img { animation: plop 620ms cubic-bezier(.3, 1.5, .5, 1); }
.seat.just-joined .pillow { animation: squish 620ms ease-out; }
.seat.just-joined::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 18%;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0));
  animation: puff 650ms ease-out forwards;
  pointer-events: none;
  z-index: 3;
}
@keyframes plop {
  0% { transform: translateY(-90%) scale(.7, 1.2); opacity: 0; }
  55% { transform: translateY(6%) scale(1.15, .85); opacity: 1; }
  78% { transform: translateY(-4%) scale(.96, 1.05); }
  100% { transform: none; }
}
@keyframes squish { 40% { transform: rotate(var(--tilt)) scale(1.12, .86); } }
@keyframes puff { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6, 1.1); opacity: 0; } }
.seat.leaving .critter img { animation: hopoff 380ms ease-in forwards; }
@keyframes hopoff { 40% { transform: translateY(-20%) rotate(-8deg); } 100% { transform: translateY(-120%) rotate(14deg) scale(.6); opacity: 0; } }

.floor-prop { position: absolute; bottom: -10px; z-index: 3; filter: drop-shadow(0 5px 0 rgba(29, 24, 56, .3)); }
.popcorn { width: clamp(70px, 9vw, 120px); left: max(0px, calc(50% - min(520px, 48vw) - 30px)); transform: rotate(-6deg); }
.soda { width: clamp(50px, 6vw, 84px); right: max(10px, calc(50% - min(520px, 48vw) - 10px)); bottom: 6px; transform: rotate(5deg); }
.pad { width: clamp(70px, 8vw, 110px); right: max(70px, calc(50% - min(520px, 48vw) + 70px)); bottom: -18px; transform: rotate(-12deg); }

.status {
  position: relative;
  z-index: 3;
  align-self: center;
  margin: 26px auto 0;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--cream);
  font-size: clamp(14px, 1.6vw, 17px);
  text-align: center;
  box-shadow: var(--lift-sm);
  max-width: min(720px, 100%);
}

/* ======================= the channels ======================= */
.steps, .channels, .roster, .door-section, .foot { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.channels { padding-top: clamp(50px, 7vw, 90px); }
.sticker-title {
  display: table;
  margin: 0 auto 34px;
  padding: 10px 26px 12px;
  border-radius: 18px;
  background: var(--pink);
  color: #fff;
  font-size: clamp(30px, 4.4vw, 50px);
  text-shadow: 0 3px 0 var(--ink);
  transform: rotate(-2deg);
}
.game {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(18px, 4vw, 48px);
  align-items: center;
  margin-bottom: clamp(40px, 6vw, 70px);
}
.game.soccer, .game.rascals, .game.rocks, .game.flock { grid-template-columns: 1fr 1.15fr; }
.game.soccer .tv, .game.rascals .tv, .game.rocks .tv, .game.flock .tv { order: 2; }

/* a retro TV: the game's poster shows through the transparent screen of tv.webp */
.tv {
  /* the transparent screen inside tv.webp (measured with tools/measure.cjs), with a little bleed under the frame */
  --screen-l: 7.6%;
  --screen-t: 27%;
  --screen-w: 67%;
  --screen-h: 59.6%;
  position: relative;
  aspect-ratio: var(--tv-aspect, 1.45);
  transform: rotate(-1.5deg);
  transition: transform .25s;
}
.game.soccer .tv, .game.rascals .tv, .game.rocks .tv, .game.flock .tv { transform: rotate(1.5deg); }
.tv:hover { transform: rotate(0deg) scale(1.02); }
.screen {
  position: absolute;
  left: var(--screen-l);
  top: var(--screen-t);
  width: var(--screen-w);
  height: var(--screen-h);
  overflow: hidden;
  border-radius: 12% / 16%;
  background: #111;
}
.screen .poster { width: 100%; height: 100%; object-fit: cover; transition: filter .3s, transform .4s; }
.tv:hover .poster { filter: saturate(1.2) brightness(1.06); transform: scale(1.04); }
.tv-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.static {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 4px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .8 0 0 0 0 .8 0 0 0 0 .85 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E") #444;
  animation: snow .25s steps(4) infinite;
}
.static span {
  font: 400 clamp(18px, 2.4vw, 30px)/1 var(--display);
  color: var(--ink);
  background: var(--yellow);
  border: var(--line) solid var(--ink);
  border-radius: 12px;
  padding: 8px 14px;
  box-shadow: var(--lift-sm);
  transform: rotate(-4deg);
}
@keyframes snow { 25% { background-position: 0 0, 40px 70px; } 50% { background-position: 0 0, 110px 20px; } 75% { background-position: 0 0, 60px 130px; } }
.game.down .static { display: grid; }
.game.down .poster { filter: grayscale(1) blur(2px); }

.card {
  position: relative;
  background: var(--cream);
  border-radius: var(--r);
  padding: clamp(18px, 2.4vw, 28px);
}
.game-logo { width: min(320px, 80%); margin: -70px auto 8px; filter: drop-shadow(0 6px 0 rgba(29, 24, 56, .3)); transform: rotate(-3deg); }
.game.soccer .game-logo { transform: rotate(2deg); }
.card > p { margin: 0 0 14px; color: var(--ink-soft); font-weight: 700; max-width: 34em; }
.facts { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 2px solid var(--ink);
  font-size: 14.5px;
}
.play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font: 400 clamp(22px, 2.4vw, 28px)/1 var(--display);
  color: #fff;
  text-shadow: 0 3px 0 var(--ink);
  background: var(--lime);
  padding: 14px 28px 16px;
  border-radius: 18px;
  transition: transform .12s, box-shadow .12s;
}
.play:hover { transform: translateY(-3px) rotate(-1.5deg); box-shadow: 0 9px 0 var(--ink); }
.play:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.play .dots { display: inline-flex; gap: 5px; }
.play .dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); }
.game.down .play { background: #b9b0d0; cursor: not-allowed; transform: none; }
.offline { margin: 14px 0 0; font-size: 14.5px; color: #b0306a; }

/* ======================= the front door ======================= */
.door-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 4vw, 44px);
  align-items: center;
  padding-top: 10px;
  padding-bottom: 20px;
}
/* the door: closed, or (a full room code typed) swung open with two critters waving. Both pictures share one box. */
.door-wrap { position: relative; width: clamp(140px, 22vw, 260px); aspect-ratio: var(--door-aspect, .8); filter: drop-shadow(0 6px 0 rgba(29, 24, 56, .3)); }
.door, .door-open {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  transition: opacity .25s, scale .35s cubic-bezier(.3, 1.6, .5, 1);
}
.door-open { opacity: 0; scale: .92; }
.door-section.open .door-open { opacity: 1; scale: 1.04; }
.door-section.open .door { opacity: 0; }
.door-card h2 { font-size: clamp(30px, 4vw, 44px); color: var(--violet); text-shadow: 0 3px 0 var(--ink); -webkit-text-stroke: 1px var(--ink); }
.door-card > p { margin: 6px 0 16px; color: var(--ink-soft); max-width: 34em; }
.room-form { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
#room-code {
  width: 200px;
  font: 400 40px/1 var(--display);
  letter-spacing: .25em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 6px 10px 16px;
  border-radius: 16px;
  border: var(--line) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 4px 0 rgba(29, 24, 56, .12);
}
#room-code::placeholder { color: #cbbfe8; }
#room-code:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(107, 79, 216, .3); }
.room-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.room-buttons button {
  appearance: none;
  font: 400 18px/1 var(--display);
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--cyan);
  color: #fff;
  text-shadow: 0 2px 0 var(--ink);
  cursor: pointer;
  box-shadow: var(--lift-sm);
}
.room-buttons button + button { background: var(--orange); }
.room-buttons button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.room-buttons button:disabled { filter: grayscale(.8); opacity: .55; cursor: default; }
.room-hint { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--ink-soft); }

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-top: 30px;
  padding-bottom: 40px;
  color: var(--ink-soft);
  font-size: 14px;
}
.foot .remote { width: 54px; transform: rotate(-20deg); }
.foot p { margin: 0; flex: 1 1 260px; }

/* confetti for a full sofa */
.confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.confetti-layer i {
  position: absolute;
  top: -40px;
  width: 30px;
  height: 30px;
  background: url(assets/hub/confetti.webp) 0 0 / 200% 200% no-repeat;
  animation: fall var(--d, 2.4s) cubic-bezier(.25, .6, .5, 1) forwards;
}
@keyframes fall { to { transform: translate(var(--x, 0), 110vh) rotate(var(--r, 540deg)); } }

/* ======================= smaller screens ======================= */
@media (max-width: 860px) {
  .game, .game.soccer, .game.rascals, .game.rocks, .game.flock { grid-template-columns: 1fr; }
  .game.soccer .tv, .game.rascals .tv, .game.rocks .tv, .game.flock .tv { order: 0; }
  .game-logo { margin-top: -50px; }
  .door-section { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .room-form { justify-content: center; }
  .facts { justify-content: center; }
  .card { text-align: center; }
}
@media (max-width: 640px) {
  .room { min-height: 0; }
  .scene { flex: 0 0 auto; margin-top: 64px; }
  .sofa { width: 100%; }
  .bubble { padding: 6px 7px; font-size: 12px; }
  .nav .chip:not(.sound) { display: none; }
  .seat-tag { gap: 2px; }
  .seat-tag .device { display: none; }
  .seat-tag .round { width: 24px; height: 24px; font-size: 12px; }
  .bubble small { display: none; }
  .floor-prop.pad, .floor-prop.soda { display: none; }
  .cat { width: 18%; }
}

/* ======================= phones and tablets (touch) ======================= */
.how-touch, .touch-note { display: none; }
.touch-note { margin: 12px 0 0; font-size: 14.5px; color: var(--ink-soft); }
.install { background: var(--cyan); color: #fff; text-shadow: 0 2px 0 var(--ink); }
.install[hidden] { display: none; }
@media (pointer: coarse) {
  .how-keys { display: none; }
  .how-touch { display: inline-flex; }
  .touch-note { display: block; }
  /* thumbs: everything you tap is at least 44 px */
  .chip, .couch-btn { min-height: 44px; }
  #couch-code { min-height: 44px; font-size: 20px; }
  .bubble { min-height: 44px; padding: 9px 12px; white-space: nowrap; }
  .bubble small { display: none; } /* "A, Space or Enter" is for keyboards and pads */
  /* the small tags give way to the seat sheet: tap your critter */
  .seat.taken:not(.remote) { cursor: pointer; }
  .seat.taken:not(.remote) .seat-tag { display: none; }
  .seat.taken:not(.remote) .pillow::after {
    content: '✎';
    position: absolute;
    right: -18%;
    top: -22%;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    font: 400 14px/1 var(--display);
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 50%;
    box-shadow: 0 2px 0 var(--ink);
  }
  .name { pointer-events: none; }
}

/* the seat sheet: slides up from the bottom */
.sheet {
  width: min(460px, 100vw);
  max-width: 100vw;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.sheet::backdrop { background: rgba(29, 24, 56, .55); }
.sheet[open] { animation: sheet-up .28s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes sheet-up { from { transform: translateY(40%); opacity: 0; } }
.sheet-card {
  background: var(--cream);
  border: var(--line) solid var(--ink);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  padding: 18px 20px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 0 var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sheet-card h2 { font-size: 26px; flex: 1; }
.sheet-card p { margin: 0; color: var(--ink-soft); }
.sheet-head { display: flex; align-items: center; gap: 10px; }
.sheet-head .badge { position: static; font-size: 18px; transform: rotate(-6deg); }
.sheet-critter { display: flex; align-items: center; justify-content: center; gap: 14px; }
.sheet-critter img { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 5px 0 rgba(29, 24, 56, .25)); }
.round.big { width: 52px; height: 52px; font-size: 22px; box-shadow: 0 4px 0 var(--ink); }
.round.close { width: 44px; height: 44px; }
.sheet-label { font: 400 15px/1 var(--display); }
#sheet-name {
  font: 400 22px/1 var(--display);
  padding: 12px 14px;
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
}
#sheet-name:focus { outline: none; box-shadow: 0 0 0 4px rgba(107, 79, 216, .35); }
.sheet-device { font-size: 15px; }
.sheet-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; }
.sheet-actions .couch-btn { min-height: 48px; padding: 10px 22px; font-size: 18px; }

/* phones turned sideways: a compact header so the sofa fits on the first screen */
@media (orientation: landscape) and (max-height: 520px) {
  .room { min-height: 100svh; padding-bottom: 10px; }
  .brand img { width: 108px; }
  .top { padding-top: 8px; }
  .nav .chip { min-height: 42px; padding: 6px 12px; font-size: 15px; }
  .hello { margin-top: -30px; padding-left: 120px; padding-right: 0; }
  .hello h1 { display: none; } /* the logo and the line below say it; the sofa gets the room */
  .bubble { white-space: nowrap; font-size: 13px; padding: 8px 10px; }
  .how { margin-top: 8px; padding: 6px 14px; font-size: 14px; }
  .couch-panel { margin-top: 8px; }
  .couch-solo, .couch-shared { padding: 4px 6px 4px 12px; gap: 6px; }
  .couch-q { font-size: 15px; }
  .couch-or { display: none; }
  .couch-btn, #couch-code { min-height: 42px; padding-top: 6px; padding-bottom: 6px; }
  .scene { margin-top: 26px; }
  .sofa { width: min(94vw, calc((100svh - 200px) * var(--sofa-aspect, 1.9))); min-width: 0; }
  .status { margin-top: 10px; padding: 5px 14px; font-size: 13px; }
  .floor-prop.pad, .floor-prop.soda { display: none; }
}

/* =====================================================================================================================
   EPIC MODE: everything that moves. Rule of thumb: animate only transform-ish properties (translate / scale / rotate,
   which compose with the rotate() many stickers already carry) and opacity. Offscreen sections get .paused.
   ===================================================================================================================== */
.paused, .paused * { animation-play-state: paused !important; }

/* ---------- scroll pop-ins (only when JS says the observer is there and motion is fine) ---------- */
.js-pop [data-pop]:not(.in) { opacity: 0; scale: .85; translate: 0 24px; }
.js-pop [data-pop].in {
  transition: opacity .35s, scale .5s cubic-bezier(.3, 1.6, .5, 1), translate .5s cubic-bezier(.3, 1.6, .5, 1);
  transition-delay: calc(var(--pop-i, 0) * 90ms);
}

/* ---------- the hero arrives (about a second, then hands over to the normal styles) ---------- */
@keyframes drop-in { from { opacity: 0; translate: 0 -70px; scale: .8; } }
@keyframes slap-in { from { opacity: 0; scale: 1.7; rotate: -10deg; } }
@keyframes rise-in { from { translate: 0 45%; scale: 1.08 .88; } }
@keyframes pop-in { from { opacity: 0; scale: .3; } }
.brand img { animation: drop-in .55s cubic-bezier(.3, 1.5, .5, 1) backwards; }
.hello h1 { animation: slap-in .45s cubic-bezier(.3, 1.5, .5, 1) .1s backwards; }
.how { animation: pop-in .4s cubic-bezier(.3, 1.6, .5, 1) .3s backwards; }
.couch-panel { animation: pop-in .4s cubic-bezier(.3, 1.6, .5, 1) .4s backwards; }
.sofa { animation: rise-in .6s cubic-bezier(.3, 1.4, .5, 1) .15s backwards; }
.floor-prop { animation: pop-in .4s cubic-bezier(.3, 1.6, .5, 1) .55s backwards; }
.floor-prop.soda { animation-delay: .65s; }
.floor-prop.pad { animation-delay: .75s; }
.status { animation: pop-in .4s cubic-bezier(.3, 1.6, .5, 1) .7s backwards; }

/* ---------- the room breathes. .room-fx copies the background's geometry (cover, centre bottom): JS sets --room-h ---------- */
.room-fx {
  position: absolute;
  left: 50%;
  bottom: 0;
  translate: -50% 0;
  width: max(100%, calc(var(--room-h, 0px) * 1.5));
  aspect-ratio: 3 / 2;
  pointer-events: none;
  z-index: 1;
}
.room-fx i { position: absolute; display: block; }
.lamp-glow {
  left: 7.2%;
  top: 19.5%;
  width: 40%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 228, 120, .55), rgba(255, 210, 90, .18) 55%, rgba(255, 210, 90, 0));
  animation: glow 5s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { opacity: .6; }
  50% { opacity: .95; }
  71% { opacity: .9; } 72% { opacity: .35; } 73% { opacity: .85; } 74% { opacity: .4; } 75% { opacity: .9; }
}
.sky { position: absolute; left: 82.2%; top: 9.3%; width: 14%; height: 25.7%; overflow: hidden; }
.star {
  width: 9%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: #fff;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: twinkle 2.4s ease-in-out infinite;
}
.star.s1 { left: 25.7%; top: 14.4%; }
.star.s2 { left: 57.9%; top: 8.6%; animation-delay: -.8s; }
.star.s3 { left: 60%; top: 35.4%; animation-delay: -1.5s; animation-duration: 3.1s; }
.star.s4 { left: 30%; top: 61.9%; animation-delay: -.4s; animation-duration: 2s; }
.star.s5 { left: 60.7%; top: 62.6%; animation-delay: -1.9s; }
@keyframes twinkle { 50% { opacity: .25; scale: .5; rotate: 45deg; } }
.moon-glow {
  left: 72.9%;
  top: 20.6%;
  width: 70%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 246, 190, .5), rgba(255, 246, 190, 0));
  animation: moon 6s ease-in-out infinite;
}
@keyframes moon { 50% { opacity: .45; } }
.shoot {
  left: 0;
  top: 10%;
  width: 40%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff);
  rotate: 25deg;
  opacity: 0;
  animation: shoot 14s linear 3s infinite;
}
@keyframes shoot {
  0% { opacity: 0; translate: -60% -40%; }
  1% { opacity: 1; }
  6% { opacity: 0; translate: 220% 260%; }
  100% { opacity: 0; translate: 220% 260%; }
}
.mote {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff3c4;
  opacity: 0;
  animation: drift 11s linear infinite;
}
.mote.m1 { left: 5%; top: 32%; }
.mote.m2 { left: 11%; top: 40%; animation-delay: -3s; animation-duration: 13s; }
.mote.m3 { left: 15%; top: 30%; animation-delay: -6s; animation-duration: 9s; }
.mote.m4 { left: 8%; top: 50%; animation-delay: -8s; }
.mote.m5 { left: 18%; top: 46%; animation-delay: -2s; animation-duration: 14s; }
.mote.m6 { left: 3%; top: 44%; animation-delay: -5s; animation-duration: 10s; }
@keyframes drift {
  0% { opacity: 0; translate: 0 0; }
  20% { opacity: .8; }
  80% { opacity: .6; }
  100% { opacity: 0; translate: 40px -90px; }
}

/* ---------- living critters: breathe, and now and then a hop or a wiggle with an emote (app.js) ---------- */
.seat.taken .critter { transform-origin: 50% 100%; animation: breathe 3.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.7s); }
@keyframes breathe { 50% { scale: 1.025 .97; } }
.emote {
  position: absolute;
  left: 50%;
  top: -4%;
  width: 34%;
  aspect-ratio: 1;
  z-index: 5;
  pointer-events: none;
  background: url(assets/hub/bits.webp) 0 0 / 200% 200% no-repeat;
  animation: emote 1.4s ease-out forwards;
}
@keyframes emote {
  0% { opacity: 0; scale: .2; translate: -50% 0; }
  20% { opacity: 1; scale: 1.15; translate: -50% -10%; }
  100% { opacity: 0; scale: .9; translate: -10% -80%; }
}
@media (hover: hover) and (pointer: fine) {
  .seat.taken:not(.remote) .critter { cursor: pointer; }
}

/* ---------- party mode: a full sofa (or the Konami code) dims the lights and drops a disco ball ---------- */
.party { position: absolute; inset: 0; pointer-events: none; }
.party::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(29, 24, 56, .5);
  opacity: 0;
  transition: opacity .4s;
}
.room.partying .party::before { opacity: 1; }
.disco {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  width: clamp(80px, 10vw, 150px);
  translate: -50% -110%;
  transform-origin: 50% 0;
  transition: translate .3s ease-in;
}
.room.partying .disco { translate: -50% 0; transition: translate .7s cubic-bezier(.3, 1.4, .5, 1); animation: swing 1.6s ease-in-out .7s infinite; }
@keyframes swing { 25% { rotate: 4deg; } 75% { rotate: -4deg; } }
.spot {
  position: absolute;
  z-index: 4;
  width: 40vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .4s;
  background: radial-gradient(closest-side, var(--spot), rgba(255, 255, 255, 0));
}
.spot.a { --spot: rgba(255, 95, 168, .35); left: -10%; top: 10%; }
.spot.b { --spot: rgba(46, 196, 241, .35); left: 30%; top: 30%; }
.spot.c { --spot: rgba(255, 201, 60, .35); right: -10%; top: 5%; }
.room.partying .spot { opacity: 1; animation: sweep 2.2s ease-in-out infinite alternate; }
.room.partying .spot.b { animation-duration: 1.7s; animation-direction: alternate-reverse; }
.room.partying .spot.c { animation-duration: 2.6s; }
@keyframes sweep { from { translate: -15vw 0; } to { translate: 15vw 8vh; } }

/* ---------- the TVs switch on when they scroll into view (and again when a game comes back online) ---------- */
.crt {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .13) 0 1px, transparent 1px 3px);
}
.crt::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 30%;
  left: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .22), rgba(255, 255, 255, 0));
  translate: -120% 0;
  rotate: 12deg;
  animation: glare 6s ease-in-out 1s infinite;
}
@keyframes glare { 0%, 70% { translate: -120% 0; } 100% { translate: 420% 0; } }
.crt::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; }
.game.on:not(.down) .poster { animation: tv-on .55s cubic-bezier(.2, .9, .3, 1) backwards, poster-drift 18s ease-in-out .6s infinite alternate; }
.game.on:not(.down) .crt::after { animation: flash .5s ease-out; }
@keyframes tv-on { 0% { scale: 1 .005; filter: brightness(3); } 45% { scale: 1 .03; } 100% { scale: 1 1; filter: none; } }
@keyframes poster-drift { to { scale: 1.08; translate: -2% -1%; } }
@keyframes flash { from { opacity: .9; } to { opacity: 0; } }
.osd {
  position: absolute;
  top: 8%;
  right: 9%;
  font: 400 clamp(16px, 2.2vw, 28px)/1 var(--display);
  color: var(--lime);
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  opacity: 0;
  pointer-events: none;
}
.game.on:not(.down) .osd { animation: osd 2.6s steps(1) .3s forwards; }
@keyframes osd { 0% { opacity: 1; } 60% { opacity: 0; } 70% { opacity: 1; } 80% { opacity: 0; } 90% { opacity: 1; } 100% { opacity: 0; } }
.game.down .osd, .game.down .crt::before { display: none; }
.play { position: relative; overflow: hidden; }
.game:not(.down) .play::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 26%;
  background: rgba(255, 255, 255, .3);
  transform: skewX(-20deg);
  translate: -150% 0;
  animation: shine 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine { 0%, 60% { translate: -150% 0; } 100% { translate: 500% 0; } }
@media (hover: hover) {
  .tv:hover { animation: wobble .45s ease-in-out; }
  @keyframes wobble { 25% { rotate: -2deg; } 50% { rotate: 1.5deg; } 75% { rotate: -.5deg; } }
}

/* ---------- how it works: a three-panel comic ---------- */
.steps { padding-top: clamp(56px, 7vw, 96px); }
.steps-row {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 3vw, 32px);
  counter-reset: none;
}
.step { text-align: center; padding-top: 4px; }
.step:nth-child(1) { rotate: -1.5deg; }
.step:nth-child(2) { rotate: 1deg; }
.step:nth-child(3) { rotate: -1deg; }
.step img { width: min(200px, 70%); height: auto; margin: -34px auto 4px; filter: drop-shadow(0 5px 0 rgba(29, 24, 56, .25)); }
.step:hover img { animation: bob 1s ease-in-out; }
.step h3 { font-size: clamp(22px, 2.6vw, 30px); color: var(--violet); -webkit-text-stroke: 1px var(--ink); text-shadow: 0 3px 0 var(--ink); }
.step p { margin: 4px 0 0; color: var(--ink-soft); }
.step-n {
  position: absolute;
  top: -14px;
  left: -10px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font: 400 26px/1 var(--display);
  background: var(--yellow);
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 3px 0 var(--ink);
  rotate: -10deg;
  z-index: 1;
}

/* ---------- meet the critters: tap one to sit it down ---------- */
.roster { padding-bottom: clamp(30px, 5vw, 60px); }
.roster .sticker-title { margin-bottom: 10px; background: var(--cyan); rotate: 1.5deg; transform: none; }
.roster-hint { text-align: center; color: var(--ink-soft); margin: 0 0 6px; }
.roster-row {
  list-style: none;
  margin: 0;
  padding: 30px 4px 18px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}
.roster-row > li { display: flex; }
.roster-card {
  --c: var(--cream);
  appearance: none;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px 10px;
  border: var(--line) solid var(--ink);
  border-radius: 18px;
  background: var(--c);
  box-shadow: var(--lift-sm);
  color: var(--ink);
  font: 400 18px/1.1 var(--display);
  cursor: pointer;
  animation: bob 2.8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.35s);
  transition: scale .15s, rotate .15s, background .2s;
}
.roster-card img { width: 100%; height: auto; margin-top: -24px; filter: drop-shadow(0 4px 0 rgba(29, 24, 56, .25)); }
.roster-card small { font: 700 12px/1.2 var(--body); color: var(--ink-soft); min-height: 2.4em; }
.roster-card:hover { scale: 1.07; rotate: -3deg; }
.roster-card:active { scale: .96; }
.roster-card.on-sofa small { color: var(--ink); }
.roster-card.away { opacity: .6; }
.roster-card .badge { top: -10px; left: -8px; }
.roster-card.boing { animation: boing .45s; }
@keyframes boing { 30% { scale: 1.25 .8; } 60% { scale: .9 1.12; } }

/* ---------- the door answers ---------- */
.door-wrap::after {
  content: "";
  position: absolute;
  left: 23%;
  top: 50%;
  width: 22%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 240, 150, .9), rgba(255, 240, 150, 0));
  animation: glow 2s ease-in-out infinite;
  pointer-events: none;
}
.door-section.open .door-wrap::after { display: none; }

/* ---------- props: tap them ---------- */
.floor-prop[data-egg] { cursor: pointer; }
.floor-prop.boing, .cat.boing { animation: boing .45s; }
.bit {
  position: fixed;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  background: url(assets/hub/bits.webp) 0 0 / 200% 200% no-repeat;
  animation: burst .9s cubic-bezier(.2, .8, .4, 1) forwards;
}
@keyframes burst {
  0% { opacity: 1; scale: .3; translate: 0 0; }
  70% { opacity: 1; }
  100% { opacity: 0; scale: 1; translate: var(--x, 0) var(--y, -80px); rotate: var(--r, 0deg); }
}

/* ---------- bunting between the room and the page, and critters peeking over the footer ---------- */
.bunting {
  position: relative;
  z-index: 1;
  height: clamp(44px, 7vw, 86px);
  margin-bottom: calc(-1 * clamp(44px, 7vw, 86px));
  background: url(assets/hub/bunting.webp) center top / auto 100% repeat-x;
  pointer-events: none;
  animation: flutter 4s ease-in-out infinite;
  transform-origin: 50% 0;
}
@keyframes flutter { 50% { scale: 1 1.06; } }
.peek {
  flex-basis: 100%;
  display: flex;
  justify-content: space-around;
  height: clamp(56px, 9vw, 92px);
  overflow: hidden;
  border-bottom: var(--line) solid var(--ink);
  margin-bottom: 6px;
}
.peek img {
  width: 11%;
  height: auto;
  align-self: flex-start;
  translate: 0 75%;
  cursor: pointer;
  animation: peek 8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -1.1s);
}
@keyframes peek { 0%, 55%, 100% { translate: 0 75%; } 65%, 90% { translate: 0 8%; } }
.foot .back { margin-left: auto; }

/* ---------- a light parallax that follows the mouse (desktop only) ---------- */
@media (hover: hover) and (pointer: fine) {
  .scene { translate: calc(var(--mx, 0) * -10px) 0; transition: translate .25s ease-out; }
  .floor-prop { translate: calc(var(--mx, 0) * -18px) 0; }
  .hello { translate: calc(var(--mx, 0) * 6px) 0; transition: translate .25s ease-out; }
}

/* ---------- epic mode on smaller screens ---------- */
@media (max-width: 860px) {
  .steps-row { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; gap: 40px; }
  .step img { width: 160px; }
  .roster-row { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 34px; }
}
@media (max-width: 640px) {
  .mote { display: none; }
  .roster-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-left: 10px;
    padding-right: 10px;
  }
  .roster-row > li { flex: 0 0 120px; scroll-snap-align: start; display: flex; }
  .roster-card { animation: none; }
  .foot .back { margin: 0 auto; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .mote, .disco { display: none; }
}

/* =====================================================================================================================
   ROUND 2: things to play with. The sofa is a toy while you wait: hop, catch popcorn, flair, lights, channels, stickers.
   ===================================================================================================================== */
/* the wide header and headline boxes let clicks through to the room behind them (the lamp chain, the window) */
.hello, .top { pointer-events: none; }
.hello > *, .top > * { pointer-events: auto; }
.couch-panel { pointer-events: none; }
.couch-panel > * { pointer-events: auto; }
.room-fx .lamp-pull, .room-fx .wish { pointer-events: auto; }
.lamp-pull, .wish, .knob { appearance: none; background: transparent; border: 0; padding: 0; cursor: pointer; }
.lamp-pull { position: absolute; left: 9.9%; top: 32%; width: 3.2%; aspect-ratio: 1 / 1.6; translate: -50% -50%; }
.lamp-pull:active { translate: -50% calc(-50% + 8px); }
.wish { position: absolute; inset: 0; }
.stickers.gold { background: var(--yellow); }
.lights[aria-pressed="false"] { background: var(--violet); }

/* ---------- popcorn catch: kernels fall into each seat's lane; hop to catch ---------- */
.snack-layer {
  position: absolute;
  left: var(--seat-left);
  right: var(--seat-right);
  top: var(--seat-top);
  bottom: var(--seat-bottom);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2%;
  z-index: 5;
  pointer-events: none;
}
.lane { position: relative; display: block; }
.score {
  --c: var(--p1);
  position: absolute;
  right: -2%;
  top: 4%;
  min-width: 2.2em;
  padding: 4px 8px 5px;
  text-align: center;
  font: 400 clamp(16px, 2vw, 26px)/1 var(--display);
  background: var(--c);
  border: var(--line) solid var(--ink);
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--ink);
  rotate: 6deg;
  opacity: 0;
  transition: opacity .2s;
}
.lane:nth-child(2) .score { --c: var(--p2); }
.lane:nth-child(3) .score { --c: var(--p3); }
.lane:nth-child(4) .score { --c: var(--p4); }
.score.show { opacity: 1; }
.score.bump { animation: boing .3s; }
.kernel {
  position: absolute;
  left: 50%;
  top: 0;
  width: 30%;
  aspect-ratio: 1;
  translate: -50% -150%;
  background: url(assets/hub/bits.webp) 0 0 / 200% 200% no-repeat;
  filter: drop-shadow(0 3px 0 rgba(29, 24, 56, .3));
}
.kernel.gold { background-image: url(assets/hub/bits2.webp); }
.kernel.poof { background-image: url(assets/hub/bits2.webp); background-position: 0 100%; transition: opacity .25s; opacity: 0; }
.sofa.snacking .seat.taken:not(.remote) .pillow::after { display: none; }
.playbar { position: relative; z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; margin: 12px auto 0; }
.playbar[hidden] { display: none; }
#snack-go { font-size: 18px; min-width: 190px; }
.sofa.snacking ~ * #snack-go, .room.snacking #snack-go { background: var(--yellow); color: var(--ink); text-shadow: none; }
.tips { font-size: 13px; color: var(--cream); background: rgba(29, 24, 56, .62); border-radius: 999px; padding: 4px 12px; }
.tips-touch { display: none; }
@media (pointer: coarse) { .tips-keys { display: none; } .tips-touch { display: inline; } }

/* ---------- flair: a party item in each critter's hand ---------- */
.flair {
  position: absolute;
  right: -6%;
  top: 22%;
  width: 38%;
  aspect-ratio: 1;
  z-index: 2;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--sheet) var(--pos) / 200% 200% no-repeat;
  rotate: 12deg;
  filter: drop-shadow(0 4px 0 rgba(29, 24, 56, .3));
  animation: bob 2.6s ease-in-out infinite;
  cursor: pointer;
}
button.flair { appearance: none; }
.flair.none {
  width: 22%;
  top: 30%;
  right: 2%;
  background: rgba(255, 255, 255, .7);
  border: 2px dashed var(--ink);
  opacity: 0;
  transition: opacity .2s;
  animation: none;
  font: 400 16px/1 var(--display);
  color: var(--ink);
}
.flair.none::before { content: "+"; }
.seat:hover .flair.none, .flair.none:focus-visible { opacity: 1; }
.emote.crown { background-image: url(assets/hub/bits2.webp); background-position: 100% 0; width: 46%; top: -14%; animation: crown 5s ease-out forwards; }
@keyframes crown {
  0% { opacity: 0; scale: .2; translate: -50% -40%; }
  10% { opacity: 1; scale: 1.2; translate: -50% 0; }
  16%, 85% { opacity: 1; scale: 1; translate: -50% 0; }
  100% { opacity: 0; scale: 1; translate: -50% 0; }
}

/* ---------- critters lean toward the mouse ---------- */
@media (hover: hover) and (pointer: fine) {
  .seat .critter img { rotate: calc((var(--mx, 0) - var(--sx, 0)) * 5deg); transition: rotate .3s ease-out; }
  .seat[data-i="0"] { --sx: -.3; }
  .seat[data-i="1"] { --sx: -.1; }
  .seat[data-i="2"] { --sx: .1; }
  .seat[data-i="3"] { --sx: .3; }
}

/* ---------- lights out: movie night ---------- */
.room.night .party::before { opacity: 1; background: rgba(16, 12, 48, .62); }
.room.night .lamp-glow { opacity: 0; animation: none; }
.room.night .star { scale: 1.6; }
.room.night .moon-glow { scale: 1.5; }
.room.night .mote { display: block; background: #d7ff7a; box-shadow: 0 0 8px #d7ff7a; }
.scene::after {
  content: "";
  position: absolute;
  inset: -10% -20% 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 120%, rgba(120, 200, 255, .38), rgba(120, 200, 255, 0) 62%);
  opacity: 0;
  transition: opacity .4s;
}
.room.night .scene::after { opacity: 1; animation: tvglow 3.7s steps(6) infinite; }
@keyframes tvglow { 0% { opacity: 1; } 30% { opacity: .7; } 50% { opacity: .95; } 70% { opacity: .6; } 100% { opacity: .9; } }

/* ---------- channel surfing: the TV knobs are buttons ---------- */
.knob { position: absolute; width: 14%; min-width: 44px; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; z-index: 2; }
.knob.next { left: 87%; top: 36.5%; }
.knob.prev { left: 87%; top: 56%; }
.knob:hover { background: rgba(255, 255, 255, .18); }
.knob:active { scale: .9; }
.chan { position: absolute; inset: 0; display: none; z-index: 1; }
.chan[data-ch="bars"] {
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, #fff 0 14.3%, #ffc93c 0 28.6%, #2ec4f1 0 42.9%, #6bd54a 0 57.2%, #ff5fa8 0 71.5%, #ff4d4d 0 85.8%, #6b4fd8 0);
}
.chan[data-ch="bars"]::after {
  content: "COUCH TV";
  font: 400 clamp(16px, 2.4vw, 30px)/1 var(--display);
  background: var(--cream);
  border: var(--line) solid var(--ink);
  border-radius: 12px;
  padding: 8px 14px;
  box-shadow: var(--lift-sm);
  rotate: -4deg;
}
.chan[data-ch="cat"] { display: block; background: var(--lilac-deep) url(assets/hub/cat_awake.webp) center 70% / 50% no-repeat; }
.game.down .chan { display: none; }
.screen.zap .static { display: grid; z-index: 2; }
.screen.zap .static span { display: none; }
.screen .osd { z-index: 3; }
.screen .crt { z-index: 2; }
.poster.zoom-a { transform-origin: 22% 60%; transform: scale(1.9); }
.poster.zoom-b { transform-origin: 78% 45%; transform: scale(1.9); }
.tv:hover .poster.zoom-a, .tv:hover .poster.zoom-b { transform: scale(1.95); }

/* ---------- the cat's purr meter ---------- */
.purr {
  position: absolute;
  left: -1%;
  top: 4%;
  width: 17%;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.purr.show { opacity: 1; }
.purr b { display: block; width: 20%; aspect-ratio: 1; background: url(assets/hub/bits.webp) 100% 0 / 200% 200% no-repeat; opacity: .25; scale: .8; transition: opacity .15s, scale .2s cubic-bezier(.3, 1.8, .5, 1); }
.purr b.on { opacity: 1; scale: 1.1; }

/* ---------- the game picker (gamepad Start) and the sticker book ---------- */
.sheet.picker, #stickers-sheet { margin: auto; }
.sheet.picker .sheet-card, #stickers-sheet .sheet-card { border-radius: 26px; border-bottom: var(--line) solid var(--ink); box-shadow: var(--lift); }
.sheet.picker { width: min(620px, 100vw - 24px); }
.sheet.picker[open], #stickers-sheet[open] { animation: pop-in .3s cubic-bezier(.3, 1.6, .5, 1); }
.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pick {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px 16px;
  border: var(--line) solid var(--ink);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--lift-sm);
  font: 400 22px/1 var(--display);
  color: var(--ink);
  cursor: pointer;
  transition: scale .15s, rotate .15s;
}
.pick img { width: 90%; height: auto; }
.pick:hover, .pick:focus-visible { scale: 1.05; rotate: -1.5deg; background: var(--yellow); }
.pick:focus-visible { outline: 5px solid var(--violet); }
.pick[aria-disabled="true"] { filter: grayscale(1); opacity: .5; }
.picker-hint { text-align: center; }
#stickers-sheet { width: min(640px, 100vw - 24px); }
.sticker-grid { list-style: none; margin: 0; padding: 4px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; max-height: 60vh; overflow-y: auto; }
.sticker-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  padding: 8px 6px 10px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 16px;
}
.sticker-grid .art { width: 64px; height: 64px; display: grid; place-items: center; font-size: 40px; background-size: contain; background-position: center; background-repeat: no-repeat; }
.sticker-grid .art.sheet2 { background-size: 200% 200%; }
.sticker-grid b { font: 400 15px/1.1 var(--display); }
.sticker-grid small { font-size: 11.5px; color: var(--ink-soft); line-height: 1.2; }
.sticker-grid li.locked .art { filter: brightness(0); opacity: .22; }
.sticker-grid li.got { background: #fff7d6; }

/* ---------- 3, 2, 1, GO! ---------- */
.launch { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(29, 24, 56, .84); cursor: pointer; }
.launch[hidden] { display: none; }
.launch-card { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--cream); }
#launch-logo { width: min(380px, 70vw); filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .35)); animation: drop-in .5s cubic-bezier(.3, 1.5, .5, 1); }
.crew { display: flex; gap: 6px; }
.crew img { width: clamp(64px, 9vw, 100px); animation: bob 1s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.25s); }
.count {
  font: 400 clamp(110px, 26vw, 260px)/1 var(--display);
  color: var(--yellow);
  -webkit-text-stroke: .05em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 .06em 0 var(--ink);
}
.count.tick { animation: slap-in .35s cubic-bezier(.3, 1.5, .5, 1); }
.count.go { color: var(--lime); }
#launch-hint { font-size: 14px; opacity: .8; }

/* ---------- toasts (a new sticker!) ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  translate: -50% 0;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 8px 18px 8px 10px;
  background: var(--cream);
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--lift);
  font: 400 18px/1.1 var(--display);
  animation: pop-in .35s cubic-bezier(.3, 1.6, .5, 1);
}
.toast[hidden] { display: none; }
.toast .art { width: 44px; height: 44px; flex: none; display: grid; place-items: center; font-size: 30px; background-size: contain; background-position: center; background-repeat: no-repeat; }
.toast .art.sheet2 { background-size: 200% 200%; }

@media (max-width: 860px), (pointer: coarse) {
  .lamp-pull { display: none; }
}
@media (pointer: coarse) {
  .wish { display: none; }
  .flair { cursor: default; }
}
@media (max-width: 640px) {
  .nav .chip.icon { display: inline-flex; padding: 8px 10px; }
  .nav { gap: 6px; flex-wrap: nowrap; }
  .picks { grid-template-columns: 1fr; }
  .pick img { width: 60%; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .playbar { display: none; }
  #stickers-n { display: none; }
}

/* ---------- BETA: every game is still in the workshop ---------- */
.beta {
  display: inline-block;
  font: 400 15px/1 var(--display);
  letter-spacing: .06em;
  color: var(--ink);
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 8px, #ffe07a 8px 16px);
  border: var(--line) solid var(--ink);
  border-radius: 10px;
  padding: 5px 9px 6px;
  box-shadow: 0 3px 0 var(--ink);
  rotate: -4deg;
  vertical-align: .1em;
}
.beta.tag {
  position: absolute;
  top: -14px;
  right: -12px;
  z-index: 2;
  font-size: 18px;
  rotate: 8deg;
  animation: beta-wiggle 4s ease-in-out infinite;
}
@keyframes beta-wiggle { 0%, 88%, 100% { rotate: 8deg; } 92% { rotate: -4deg; } 96% { rotate: 12deg; } }
.beta-note {
  max-width: 640px;
  margin: -14px auto 34px;
  padding: 10px 16px;
  text-align: center;
  font-size: 15px;
  color: var(--ink);
  background: var(--cream);
  border: 2px dashed var(--ink);
  border-radius: 16px;
}
.beta-note .beta { margin-right: 6px; }
.game.shred .game-logo { transform: rotate(-2deg); }
.room-buttons button[data-game="shred"] { background: var(--violet); }
.game.rascals .game-logo { transform: rotate(1.5deg); }
.room-buttons button[data-game="rascals"] { background: #1f9d6b; }
.game.dye .game-logo { transform: rotate(-2deg); }
.room-buttons button[data-game="dye"] { background: #e8237f; }
.game.rocks .game-logo { transform: rotate(1.5deg); }
.room-buttons button[data-game="rocks"] { background: #ff6a1f; }
.game.scally .game-logo { transform: rotate(-1.5deg); }
.room-buttons button[data-game="scally"] { background: #2f7fe0; }
.game.flock .game-logo { transform: rotate(2deg); }
.room-buttons button[data-game="flock"] { background: #e0a800; }
.picks { grid-template-columns: repeat(3, 1fr); }
.sheet.picker { width: min(760px, 100vw - 24px); }
@media (max-width: 640px) {
  .picks { grid-template-columns: 1fr; }
  .pick { flex-direction: row; justify-content: center; font-size: 18px; padding: 8px 10px; }
  .pick img { width: 42%; }
  .beta.tag { right: -4px; }
}

/* notches and rounded corners (full screen when installed) */
.room { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.top { padding-top: max(16px, env(safe-area-inset-top)); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- taunts: the games' 8 stickers (assets/taunts/), over a critter's head; the wheel picks one (app.js) ---------- */
.taunt-layer {
  /* the same box and columns as the seats, so slot i sits over seat i */
  position: absolute; left: var(--seat-left); right: var(--seat-right); top: var(--seat-top); bottom: var(--seat-bottom);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2%; z-index: 6; pointer-events: none;
}
.taunt-slot { position: relative; min-width: 0; }
.taunt-bubble { position: absolute; left: 50%; top: 0; width: 0; height: 0; }
.taunt-bubble > img, .taunt-bubble > .taunt-name { position: absolute; left: 0; transform: translateX(-50%); }
.taunt-bubble > img {
  bottom: 12px; width: clamp(64px, 11vmin, 112px); max-width: none; height: auto; filter: drop-shadow(0 4px 0 rgba(29, 24, 56, .45));
  animation: taunt-pop 2.2s cubic-bezier(.2, 1.6, .4, 1) both; transform-origin: 50% 100%;
}
.taunt-bubble > .taunt-name {
  bottom: -8px; white-space: nowrap; padding: 2px 9px; border-radius: 999px; background: var(--c, var(--p1)); color: var(--ink);
  font: 400 13px/1.2 var(--display); border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink); animation: taunt-fade 2.2s both;
}
.taunt-slot:nth-child(2) .taunt-name { --c: var(--p2); }
.taunt-slot:nth-child(3) .taunt-name { --c: var(--p3); }
.taunt-slot:nth-child(4) .taunt-name { --c: var(--p4); }
@keyframes taunt-pop {
  0% { transform: translateX(-50%) scale(0) rotate(-25deg); opacity: 0; }
  12% { transform: translateX(-50%) scale(1.25) rotate(8deg); opacity: 1; }
  22% { transform: translateX(-50%) scale(.95) rotate(-4deg); }
  30%, 80% { transform: translateX(-50%) scale(1) rotate(0deg); opacity: 1; }
  40% { transform: translateX(-50%) scale(1.06) rotate(3deg); }
  55% { transform: translateX(-50%) scale(1) rotate(-3deg); }
  100% { transform: translateX(-50%) translateY(-24px) scale(.85); opacity: 0; }
}
@keyframes taunt-fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }

.taunt-wheel { --tw: var(--yellow); --r: 108px; position: fixed; width: 0; height: 0; z-index: 45; pointer-events: none; }
.taunt-wheel[hidden] { display: none; }
.taunt-wheel::before {
  content: ''; position: absolute; left: calc(var(--r) * -1.42); top: calc(var(--r) * -1.42);
  width: calc(var(--r) * 2.84); height: calc(var(--r) * 2.84); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 248, 236, .95) 0 30%, rgba(29, 24, 56, .6) 31% 100%);
  border: 4px solid var(--ink); box-shadow: 0 8px 0 rgba(29, 24, 56, .45); animation: taunt-open .14s ease-out both;
}
.taunt-wheel.tap { pointer-events: auto; }
.taunt-wheel .taunt-item {
  --ts: min(76px, calc(var(--r) * .62)); /* shrinks with the ring so 8 stickers never overlap on a phone */
  position: absolute; left: 0; top: 0; width: var(--ts); height: var(--ts); margin: calc(var(--ts) / -2) 0 0 calc(var(--ts) / -2);
  padding: 6px; border-radius: 50%; appearance: none;
  background: var(--cream); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); pointer-events: auto; cursor: pointer;
  transform: translate(calc(var(--tx) * var(--r)), calc(var(--ty) * var(--r))); transition: transform .08s, background .08s;
  animation: taunt-open .16s ease-out both;
}
.taunt-wheel:not(.tap) .taunt-item { pointer-events: none; }
.taunt-wheel .taunt-item img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.taunt-wheel .taunt-item.on, .taunt-wheel.tap .taunt-item:hover, .taunt-wheel .taunt-item:focus-visible {
  background: var(--tw); transform: translate(calc(var(--tx) * var(--r) * 1.08), calc(var(--ty) * var(--r) * 1.08)) scale(1.28); z-index: 1;
  outline: none;
}
.taunt-wheel-label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font: 400 24px/1 var(--display); color: #fff;
  -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); white-space: nowrap; pointer-events: none;
}
@keyframes taunt-open { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
/* reduced motion: the global rule above stops every animation, so stickers and wheels just appear and go */
/* the 😜 buttons: one in each of this home's seat tags (mouse), one under the sofa and one in the seat sheet (touch) */
/* mouse: a little 😜 sticker on the top-right corner of your name pillow (the seat tag has no room left) */
.pillow .taunt-open { position: absolute; right: -16%; top: -30%; z-index: 3; padding: 1px; transform: rotate(8deg); background: var(--cream); }
.pillow .taunt-open:hover { background: var(--yellow); transform: rotate(-6deg) scale(1.12); }
.pillow .taunt-open:active { transform: rotate(-6deg) translateY(2px); }
@media (max-width: 640px) { .pillow .taunt-open { width: 24px; height: 24px; } }
@media (pointer: coarse) { .pillow .taunt-open { display: none; } } /* touch: the Taunt! buttons under the sofa and in the seat sheet */
.round.taunt-open img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.couch-btn.taunt-go { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--yellow); }
.couch-btn.taunt-go img { width: 26px; height: 26px; margin: -4px 0; object-fit: contain; }
.playbar .taunt-go { display: none; font-size: 18px; }
@media (pointer: coarse) { .playbar .taunt-go { display: inline-flex; } }
.sheet-row { display: flex; gap: 10px; }
.sheet-row .couch-btn { flex: 1; min-height: 44px; }

/* ======================= accounts: the Log in chip (members.css styles the members' pages) ======================= */
.chip.acct img { width: 26px; height: 26px; object-fit: contain; margin: -4px 0; }
.chip.acct.in img { border-radius: 50%; background: var(--lilac); border: 2px solid var(--ink); }
.chip.acct-test { background: var(--lime); color: #fff; text-shadow: 0 2px 0 var(--ink); }
.chip.acct-admin { background: var(--orange); color: #fff; text-shadow: 0 2px 0 var(--ink); }
.chip.acct[hidden] { display: none; }
@media (max-width: 640px) {
  /* phones hide most chips (see above): logging in stays reachable, as a key */
  .nav .chip.acct#acct { display: inline-flex; padding: 8px 10px; flex: none; }
  .nav .chip.acct#acct img { max-width: none; }
  .nav .chip.acct#acct span { display: none; }
  .nav .chip.acct#acct[hidden] { display: none; }
}
