:root {
  --paper: #fbf8ef;
  --grid: rgba(70, 120, 190, .15);
  --margin: #e58f8f;
  --pencil: #3b3a36;
  --pencil-soft: #8a867b;
  --ink0: #2350b8;
  --ink1: #c5332b;
  --marker: #fff09a;
  --font: 'Varela Round', system-ui, sans-serif;
  --title: 'Amatic SC', 'Varela Round', cursive;
  --hand: 'Playpen Sans Hebrew', 'Varela Round', cursive;
  --sq: 24px;
  --wobble: 255px 14px 225px 14px / 14px 225px 14px 255px;
  --wobble2: 14px 225px 14px 255px / 255px 14px 225px 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { overflow-x: hidden; }
#app { overflow-x: hidden; overflow-x: clip; }
body {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--sq) var(--sq);
  color: var(--pencil);
  font-family: var(--font);
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

#app {
  position: relative;
  max-width: 560px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 10px 16px 110px; padding-inline-start: 40px;
}
/* the red margin line of a notebook, on the starting side (right in Hebrew, left in English) */
#app::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; inset-inline-start: 26px;
  width: 2px;
  background: var(--margin);
  opacity: .75;
  pointer-events: none;
}

h1, h2, h3 { font-family: var(--title); font-weight: 700; margin: .2em 0; line-height: 1; }
h1 { font-size: 46px; }
h2 { font-size: 34px; }
h3 { font-size: 27px; }
small, .soft { color: var(--pencil-soft); }
.ink0 { color: var(--ink0); }
.ink1 { color: var(--ink1); }

button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .45; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent;
  border: 2px solid var(--pencil);
  border-radius: var(--wobble);
  padding: 9px 18px;
  font-size: 18px; font-weight: 600;
  transition: transform .08s;
  min-height: 46px;
}
.btn:active:not(:disabled) { transform: scale(.96) rotate(-1deg); }
.btn.big { font-size: 22px; padding: 12px 24px; width: 100%; }
.btn.marker { background: linear-gradient(100deg, transparent 2%, var(--marker) 4%, var(--marker) 95%, transparent 98%); }
.btn.ghost { border-style: dashed; border-color: var(--pencil-soft); }
.btn.small { font-size: 15px; padding: 5px 12px; min-height: 36px; }
.link-btn { background: none; border: 0; text-decoration: underline wavy var(--pencil-soft); text-underline-offset: 5px; padding: 6px 4px; color: var(--pencil-soft); font-size: 15px; }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.center { justify-content: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spacer { height: 14px; }

input.paper {
  font: inherit; font-size: 20px; color: var(--ink0);
  background: transparent;
  border: 0; border-bottom: 2px solid var(--pencil);
  padding: 6px 4px; width: 100%;
  outline: none;
}
input.paper::placeholder { color: var(--pencil-soft); opacity: .7; }
input.code { font-size: 34px; letter-spacing: 12px; text-align: center; direction: ltr; }

.card {
  background: rgba(255, 255, 255, .55);
  border: 2px solid var(--pencil);
  border-radius: var(--wobble2);
  padding: 14px 16px;
  margin: 12px 0;
}
.note {
  font-family: var(--hand);
  background: #fff9c9;
  box-shadow: 2px 3px 0 rgba(0,0,0,.08);
  padding: 10px 14px;
  margin: 10px 0;
  transform: rotate(-.6deg);
  border-radius: 2px;
}
.note.warn { background: #ffe1d6; }

/* ---------- header ---------- */
header.top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--pencil);
  border-radius: 0 0 50% 40% / 0 0 4px 6px;
  margin-bottom: 8px;
}
.logo { font-family: var(--title); font-size: 30px; font-weight: 700; }
.icon-btn { background: none; border: 0; font-size: 17px; padding: 6px 4px; font-weight: 600; }
.players { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.ptag { font-family: var(--hand); display: flex; align-items: center; gap: 4px; font-weight: 700; max-width: 120px; }
.ptag .pname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptag.p0 { color: var(--ink0); }
.ptag.p1 { color: var(--ink1); }
.ptag.me .pname { text-decoration: underline; text-underline-offset: 4px; }
.ptot { font-size: 13px; border: 1.5px solid currentColor; border-radius: 50%; min-width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; }
.vs { color: var(--pencil-soft); font-size: 13px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #bbb; display: inline-block; flex: none; }
.dot.on { background: #3a9b4a; }

.turn {
  font-family: var(--hand); font-size: 18px; font-weight: 600;
  padding: 6px 12px; margin: 6px 0 10px;
  text-align: center;
}
.turn.mine {
  background: linear-gradient(100deg, transparent 1%, var(--marker) 3%, var(--marker) 96%, transparent 99%);
  animation: wiggle 1.6s ease-in-out 1;
}
@keyframes wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-1.2deg); } 75% { transform: rotate(1.2deg); } }

/* ---------- menu ---------- */
.menu .title { text-align: center; font-size: 50px; margin-top: 10px; }
.game-row {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px;
  width: 100%; text-align: start;
  background: none; border: 0; border-bottom: 1.5px dashed var(--pencil-soft);
  padding: 12px 2px;
}
.game-row .num { font-family: var(--title); font-size: 34px; font-weight: 700; }
.game-row b { font-size: 21px; display: block; }
.game-row small { font-size: 13px; }
.game-row.next b { background: linear-gradient(100deg, transparent 1%, var(--marker) 3%, var(--marker) 96%, transparent 99%); padding: 0 6px; }

.tallies { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; min-width: 64px; }
.tally { display: block; }
.code-big { font-family: var(--title); font-size: 72px; letter-spacing: 10px; text-align: center; direction: ltr; line-height: 1; color: var(--ink0); }
.menu-foot { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; }

/* ---------- result ---------- */
.result { text-align: center; position: relative; overflow: hidden; }
.result .stamp {
  display: inline-block; font-family: var(--title); font-size: 52px; font-weight: 700;
  border: 3px solid currentColor; border-radius: 12px; padding: 0 16px;
  transform: rotate(-4deg);
  animation: stamp .45s cubic-bezier(.2,1.6,.4,1) 1;
}
@keyframes stamp { from { transform: scale(1.6) rotate(-12deg); opacity: 0; } to { transform: scale(1) rotate(-4deg); opacity: 1; } }

/* ---------- keypads ---------- */
.keys { display: grid; gap: 6px; margin: 10px 0; }
.key {
  background: rgba(255,255,255,.6);
  border: 2px solid var(--pencil);
  border-radius: var(--wobble);
  font-size: 21px; font-weight: 600;
  min-height: 46px; padding: 2px;
  position: relative;
}
.key:active:not(:disabled) { transform: scale(.93); }
.key.used-good { color: var(--pencil-soft); }
.key.used-good::after { content: ''; position: absolute; inset: 5px 14%; border: 2px solid #3a9b4a; border-radius: 50%; opacity: .7; }
.key.used-bad { color: var(--pencil-soft); }
.key.used-bad::after { content: ''; position: absolute; left: 12%; right: 12%; top: 50%; height: 2.5px; background: var(--ink1); transform: rotate(-28deg); opacity: .8; }
.key.wide { grid-column: span 2; }
.key.action { background: var(--marker); }

.slots { display: flex; gap: 8px; justify-content: center; margin: 8px 0; direction: ltr; }
.slot {
  width: 48px; height: 56px;
  border-bottom: 3px solid var(--pencil);
  font-size: 34px; font-weight: 700; text-align: center; line-height: 56px;
}

/* ---------- tables ---------- */
table.paper { border-collapse: collapse; width: 100%; font-size: 18px; }
table.paper th { font-weight: 600; font-size: 14px; color: var(--pencil-soft); border-bottom: 2px solid var(--pencil); padding: 4px; }
table.paper td { padding: 4px; text-align: center; border-bottom: 1px solid rgba(0,0,0,.08); }
table.paper td.code { letter-spacing: 6px; direction: ltr; font-weight: 700; font-size: 21px; }
table.paper tr.win td { background: var(--marker); }
.cols { display: grid; grid-template-columns: 1fr; gap: 10px; }

.scratch { display: flex; gap: 4px; justify-content: center; direction: ltr; flex-wrap: wrap; }
.scratch button {
  width: 32px; height: 38px; background: none; border: 0; font-size: 22px; font-weight: 700; position: relative; padding: 0;
}
.scratch button.x { color: var(--pencil-soft); }
.scratch button.x::after { content: ''; position: absolute; left: 3px; right: 3px; top: 50%; height: 2.5px; background: var(--pencil); transform: rotate(-35deg); }
.scratch button.o::after { content: ''; position: absolute; inset: 2px 0; border: 2.5px solid #3a9b4a; border-radius: 50%; }

/* ---------- hangman ---------- */
.word { display: flex; flex-wrap: wrap; gap: 6px 7px; justify-content: center; margin: 10px 0; }
.word .ch { width: 30px; height: 42px; border-bottom: 2.5px solid var(--pencil); text-align: center; font-family: var(--title); font-size: 38px; font-weight: 700; line-height: 42px; }
.word .ch.sp { border: 0; width: 16px; }
.word .ch.ghost { color: var(--pencil-soft); opacity: .55; font-weight: 400; }
.word.small .ch { width: 22px; height: 30px; font-size: 27px; line-height: 30px; }
.hint { text-align: center; font-size: 16px; }
.gallows { display: block; margin: 0 auto; }

/* ---------- ships ---------- */
.board {
  display: grid;
  grid-template-columns: 22px repeat(6, 1fr);
  gap: 0;
  max-width: 340px; margin: 6px auto;
  user-select: none;
}
.board.small { max-width: 220px; }
.board .lbl { text-align: center; font-size: 14px; color: var(--pencil-soft); display: flex; align-items: center; justify-content: center; }
.board .cell {
  border: 1.5px solid var(--pencil);
  margin: -0.75px;
  position: relative;
  background: rgba(255,255,255,.35);
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
/* square cells without relying on aspect-ratio */
.board .cell::before { content: ''; display: block; padding-top: 100%; }
.board .cell svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.board .cell.ship { background: repeating-linear-gradient(45deg, rgba(60,60,60,.35) 0 2px, transparent 2px 7px), rgba(255,255,255,.35); }
.board .cell.sunk { background: repeating-linear-gradient(45deg, rgba(60,60,60,.5) 0 2px, transparent 2px 5px), repeating-linear-gradient(-45deg, rgba(60,60,60,.35) 0 2px, transparent 2px 5px); }
.board .cell.sel { background: var(--marker); }
.board .cell.last { box-shadow: inset 0 0 0 3px var(--marker); }
.board .cell.hot { cursor: pointer; }
.fleet { display: flex; gap: 8px 14px; flex-wrap: wrap; justify-content: center; font-size: 15px; }
.fleet .sunk { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--pencil-soft); }
.tray { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tray button { background: none; border: 2px dashed transparent; border-radius: 10px; padding: 4px 6px; }
.tray button.on { border-color: var(--pencil); background: var(--marker); }
.tray button.placed { opacity: .4; }

/* ---------- dots ---------- */
.dots-svg { width: 100%; max-width: 360px; display: block; margin: 0 auto; touch-action: manipulation; }
.dots-score { display: flex; justify-content: center; gap: 22px; font-size: 20px; font-weight: 700; }

/* ---------- five in a row ---------- */
.five-wrap {
  overflow: auto; direction: ltr;
  max-height: 62vh;
  border: 2px solid var(--pencil);
  border-radius: var(--wobble2);
  margin: 6px 0;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}
.five-board { position: relative; }
.five-board svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.zoom { display: flex; gap: 6px; justify-content: center; }

/* ---------- chat ---------- */
.fab {
  position: fixed; bottom: 18px; left: 18px; z-index: 30;
  background: #fff9c9; border: 2px solid var(--pencil); border-radius: var(--wobble);
  font-size: 18px; font-weight: 700; padding: 10px 16px;
  box-shadow: 3px 4px 0 rgba(0,0,0,.12);
  transform: rotate(-3deg);
  font-family: var(--hand);
}
.fab .badge { background: var(--ink1); color: #fff; border-radius: 12px; padding: 0 7px; font-size: 14px; margin-inline-start: 4px; }
.sheet-bg { position: fixed; inset: 0; background: rgba(40,40,30,.25); z-index: 40; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  max-width: 560px; margin: 0 auto;
  background: #fffbe0;
  background-image: linear-gradient(rgba(70,120,190,.18) 1px, transparent 1px);
  background-size: 100% 30px;
  border-top: 2px solid var(--pencil);
  border-radius: 18px 18px 0 0;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  max-height: 78vh; display: flex; flex-direction: column;
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);
}
.msgs { overflow-y: auto; flex: 1; min-height: 120px; display: flex; flex-direction: column; gap: 6px; padding: 6px 0; }
.msg { max-width: 82%; font-family: var(--hand); font-size: 18px; line-height: 1.35; }
.msg.mine { align-self: flex-start; }
.msg.theirs { align-self: flex-end; text-align: end; }
.msg b { font-size: 13px; display: block; opacity: .75; }
.quick { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0; }
.quick button { flex: none; background: #fff; border: 1.5px solid var(--pencil-soft); border-radius: 16px; padding: 4px 10px; font-size: 15px; }

/* ---------- toast / modal ---------- */
.toast {
  position: fixed; top: 14px; left: 50%; z-index: 60;
  transform: translate(-50%, -140%) rotate(-2deg);
  background: #fff9c9; border: 1.5px solid var(--pencil-soft);
  box-shadow: 3px 4px 0 rgba(0,0,0,.12);
  padding: 10px 16px; font-size: 17px; max-width: 86vw; font-family: var(--hand);
  transition: transform .3s cubic-bezier(.2,1.4,.4,1);
}
.toast.show { transform: translate(-50%, 0) rotate(-2deg); }
.toast b { display: block; font-size: 13px; }
.modal-bg { position: fixed; inset: 0; background: rgba(40,40,30,.3); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--paper); max-width: 340px; width: 100%; text-align: center; font-size: 19px; }

.center { text-align: center; }
.mt { margin-top: 14px; }
.pencil-line { border: 0; height: 2px; background: var(--pencil-soft); opacity: .5; border-radius: 50%; margin: 16px 0; }

/* ---------- connection help ---------- */
.conn { transform: none; text-align: start; font-family: var(--font); }
a.btn { color: inherit; text-decoration: none; }
.conn-title { font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.conn-line { font-family: var(--font); font-size: 15px; margin-top: 4px; }
.conn-actions { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 8px; }
.spin {
  width: 16px; height: 16px; flex: none; display: inline-block;
  border: 2.5px solid var(--pencil-soft); border-top-color: transparent; border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
ol.help { text-align: start; margin: 8px 0; padding-inline-start: 22px; font-size: 15px; line-height: 1.5; }
.wait-line { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; color: var(--pencil-soft); }
.wait-line.bad { color: var(--ink1); font-weight: 700; }
.tech { text-align: start; max-height: 86vh; overflow: auto; }
.tech-box { font-size: 13px; background: rgba(0,0,0,.04); border-radius: 8px; padding: 8px; margin: 8px 0; line-height: 1.6; }
.tech-log { font-size: 10px; direction: ltr; text-align: left; white-space: pre-wrap; word-break: break-all; color: var(--pencil-soft); max-height: 150px; overflow: auto; margin: 10px 0 0; }

/* ---------- series ---------- */
div.game-row { cursor: default; }
.game-row.later { opacity: .5; }
.game-row.done b:first-child { text-decoration: none; }
.row-mark { min-width: 76px; text-align: end; font-size: 15px; }
.next-arrow { font-weight: 700; background: var(--marker); padding: 1px 6px; white-space: nowrap; }
.series-line { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 8px 0 4px; font-size: 18px; flex-wrap: wrap; }
.series-line .sc { font-family: var(--title); font-size: 34px; line-height: 1; display: inline-flex; gap: 6px; }
.series-line.big { margin-top: 16px; font-size: 21px; }
.series-line.big .sc { font-size: 52px; }
.verdict { font-family: var(--title); font-size: 34px; font-weight: 700; line-height: 1.1; margin: 4px 0; }
.note.tip { font-family: var(--font); font-size: 15px; line-height: 1.45; transform: rotate(.4deg); }
.evening { text-align: center; }
.ev-row { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; margin-top: 4px; }
.five-sel { animation: selpulse 1s ease-in-out infinite; }
@keyframes selpulse { 50% { fill-opacity: .28; } }

/* ---------- top bar buttons ---------- */
.top-btns { display: flex; align-items: center; gap: 6px; min-width: 0; }
.icon-btn { white-space: nowrap; }
.chat-btn { background: #fff9c9; border: 1.5px solid var(--pencil); border-radius: var(--wobble); padding: 4px 9px; font-size: 15px; position: relative; }
.chat-btn .badge { background: var(--ink1); color: #fff; border-radius: 12px; padding: 0 6px; font-size: 12px; margin-inline-start: 4px; }
.ptag { font-family: var(--font); max-width: 27vw; }
.turn { font-family: var(--font); }
@media (max-width: 400px) {
  header.top .logo { font-size: 24px; }
  .players { font-size: 13px; gap: 4px; }
  .ptot { min-width: 21px; height: 21px; font-size: 12px; }
}
@media (max-width: 345px) {
  .top-btns .lbl { display: none; }
  .vs { display: none; }
}
#app { padding-bottom: 48px; }
.top-btns .icon-btn { min-width: 40px; min-height: 36px; }

/* ---------- nothing moves under the finger ---------- */
.turn { min-height: 58px; display: flex; align-items: center; justify-content: center; line-height: 1.3; }
.word-entry { min-height: 66px; display: flex; align-items: center; justify-content: center; }
.word-entry .word { margin: 0; }

/* ---------- whose turn: the pencil goes from hand to hand ---------- */
.turn { position: relative; padding-inline-end: 44px; padding-inline-start: 12px; gap: 8px; border-radius: 6px; transition: background .25s, color .25s; }
.turn .turn-txt { min-width: 0; }
.turn.mine {
  font-size: 20px; font-weight: 700; color: var(--me-ink, var(--pencil));
  background: linear-gradient(100deg, transparent 1%, var(--marker) 3%, var(--marker) 96%, transparent 99%);
  box-shadow: inset 0 0 0 2.5px var(--me-ink, var(--pencil));
  animation: wiggle 1.6s ease-in-out 1, turnpop .45s cubic-bezier(.2,1.6,.4,1) 1;
}
.turn.mine .turn-ico { font-size: 22px; flex: none; }
@keyframes turnpop { from { transform: scale(.92); } to { transform: scale(1); } }
.turn.wait { color: var(--pencil-soft); font-weight: 400; background: rgba(0,0,0,.035); box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.12); }
.turn-pencil { display: inline-block; font-size: 20px; flex: none; animation: scribble 1.1s ease-in-out infinite; transform-origin: 30% 80%; }
@keyframes scribble { 0%,100% { transform: translate(0,0) rotate(-8deg); } 25% { transform: translate(3px,-1px) rotate(4deg); } 50% { transform: translate(-2px,1px) rotate(-4deg); } 75% { transform: translate(2px,1px) rotate(6deg); } }
.help-btn {
  position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; padding: 0;
  border: 2px solid currentColor; background: rgba(255,255,255,.7);
  font-weight: 700; font-size: 17px; color: var(--pencil); line-height: 1;
}
/* while the other player thinks, the board steps back a little */
.body-slot.wait { opacity: .62; transition: opacity .3s; }
.body-slot { transition: opacity .3s; }
/* a frame around the whole page in my pen colour while it is my turn */
body.my-turn::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 25;
  border: 4px solid var(--me-ink, var(--pencil)); opacity: .55;
  animation: framein .9s ease-out 1;
}
@keyframes framein { 0% { opacity: 0; border-width: 12px; } 40% { opacity: .9; } 100% { opacity: .55; border-width: 4px; } }
.ptag.holder { background: linear-gradient(100deg, transparent 2%, var(--marker) 6%, var(--marker) 94%, transparent 98%); padding: 0 3px; border-radius: 3px; }
.holder-ico { font-size: 13px; }
.sound-btn { font-size: 17px; }
/* how to play */
.help-card { text-align: start; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; }
@media (max-height: 480px) { .help-card h3 { margin: 4px 0; } .help-list { font-size: 14px; line-height: 1.4; margin: 4px 0 8px; } .help-list li { margin-bottom: 2px; } }
.help-card h3 { text-align: center; }
.help-list { margin: 8px 0 14px; padding-inline-start: 20px; font-size: 16px; line-height: 1.55; }
.help-list li { margin-bottom: 6px; }
.help-card .btn { display: flex; margin: 0 auto; }
.help-foot { font-size: 13px; text-align: center; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) {
  .turn.mine, .turn-pencil, body.my-turn::after { animation: none; }
}
/* phones: the top bar shows icons only (☰ ✉️ 🔔), so the names keep their room */
@media (max-width: 480px) {
  .top-btns .lbl { display: none; }
  .top-btns { gap: 4px; }
  .top-btns .icon-btn { min-width: 38px; padding: 4px 6px; }
}
/* the banner always has the same height (two lines at most), so the board below never moves */
.turn { height: 64px; min-height: 64px; overflow: hidden; margin: 6px 0 10px; }
.turn .turn-txt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
@media (max-width: 380px) {
  .turn.mine { font-size: 17px; }
  .turn.wait { font-size: 15px; }
  .turn .turn-ico, .turn-pencil { font-size: 17px; }
}

/* language switch on the home screen */
.lang-switch { display: flex; justify-content: flex-end; margin: 4px 0 -14px; }
.lang-switch .link-btn { font-size: 15px; }

/* add to home screen */
.install-card { margin-top: 12px; }
.install-row { display: flex; gap: 12px; align-items: center; text-align: start; }
.install-row img { border-radius: 11px; flex: none; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.install-row .soft { font-size: 14px; }
.install-link { margin-top: 4px; font-size: 15px; }
/* reassurance for a first-time visitor */
.trust { text-align: center; color: var(--pencil-soft); font-size: 14px; margin-top: 6px; }

/* the friend is here, the inviter is not: message them */
.nudge-row { justify-content: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
/* coming from an ad */
.landing-pitch { font-size: 19px; line-height: 1.45; margin: 6px 4px 2px; }

/* the pair's own room */
.our-room { margin-top: 12px; text-align: start; background: #fffbe0; }
.our-room .soft { font-size: 15px; margin: 4px 0 8px; }
.our-room .row { align-items: center; gap: 10px; }
