:root {
  color-scheme: light;
  --ink: #0f1923;
  --ink-soft: #4a5560;
  --muted: #7c858d;
  --page: #ece8e1;
  --band-a: #cfccc6;
  --band-b: #fbfaf8;
  --tile: #1c2833;
  --accent: #ff4655;
  --grey: #8d9399;
  --green: #2e9e66;
  --red: #e0414f;
  --line: rgba(15, 25, 35, 0.14);
  --slot: clamp(40px, 5.2vw, 76px);
  --ban: clamp(22px, 2.6vw, 34px);
  --radius: 4px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 14px/1.4 "Inter", system-ui, sans-serif;
}

button, input, select { font: inherit; color: inherit; }

/* Header */
.top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 24px 12px;
}
.title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
h1 {
  margin: 0;
  font: 400 clamp(36px, 5vw, 64px)/0.95 "Anton", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.sub { color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn {
  border: 1px solid var(--ink);
  background: transparent;
  padding: 7px 14px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-danger { border-color: var(--accent); color: var(--accent); }
.btn-danger:hover { background: var(--accent); color: #fff; }

main { padding: 0 24px 32px; }

/* Board */
.board {
  display: flex;
  background: var(--band-b);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(15, 25, 35, 0.4);
}
.map-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 1; min-width: 0; }

.col { display: flex; flex-direction: column; min-width: 0; }
.col + .col, .map-cols .col { border-left: 1px solid var(--line); }

.col-head {
  height: 92px;
  position: relative;
  padding: 12px 14px;
  background: var(--ink) center / cover no-repeat;
  background-image: var(--banner, none);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.col-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 25, 35, 0.92) 0%, rgba(15, 25, 35, 0.55) 70%, rgba(15, 25, 35, 0.35) 100%);
}
.col-head > * { position: relative; }
.col-labels .col-head { background: var(--ink); }
.col-labels .col-head::before { display: none; }
.map-title { display: flex; align-items: baseline; gap: 10px; }
.map-no { font: 400 26px/1 "Anton", Impact, sans-serif; text-transform: uppercase; }
.map-role { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.map-select {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  border-radius: var(--radius);
  padding: 4px 8px;
  font-weight: 600;
  cursor: pointer;
}
.map-select option { color: var(--ink); }

.band { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.band-a { background: var(--band-a); height: 196px; justify-content: flex-end; }
.band-b { background: var(--band-b); height: 196px; justify-content: flex-start; }

.col-labels { width: 124px; flex: none; }
.col-labels .band { align-items: center; justify-content: center; gap: 6px; padding: 8px; }
.team-letter { font: 400 54px/1 "Anton", Impact, sans-serif; }
.team-name {
  width: 100%;
  text-align: center;
  border: 1px solid transparent;
  background: transparent;
  border-radius: var(--radius);
  padding: 3px 4px;
  font-weight: 600;
  font-size: 12px;
}
.team-name:hover { border-color: var(--line); }
.team-name:focus { outline: none; border-color: var(--ink); background: #fff; }

/* Comp */
.comp {
  border-radius: 6px;
  padding: 6px;
  margin: -6px;
  cursor: pointer;
  outline: 2px solid transparent;
  transition: outline-color 0.12s;
}
.comp:hover { outline-color: var(--line); }
.comp.active { outline-color: var(--accent); background: rgba(255, 70, 85, 0.06); }
.comp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 8px; margin-bottom: 6px; min-height: 20px; }
.comp-name { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comp-count { color: var(--muted); font-weight: 500; }
.comp.active .comp-name { color: var(--accent); }
.tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 3px;
  color: #fff;
  white-space: nowrap;
}
.tag-grey { background: var(--grey); }
.tag-green { background: var(--green); }
.tag-red { background: var(--red); }

.slots { display: grid; grid-template-columns: repeat(5, minmax(0, var(--slot))); gap: 6px; }
.slot {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: rgba(15, 25, 35, 0.08);
  border: 1.5px dashed rgba(15, 25, 35, 0.25);
  position: relative;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  flex: none;
}
.slot.filled { background: var(--tile); border: 0; }
.slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot.filled::after {
  content: "×";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 70, 85, 0.7);
  opacity: 0;
  transition: opacity 0.12s;
}
.slot.filled:hover::after { opacity: 1; }
.comp[data-tint="grey"] .slot.filled { box-shadow: inset 0 -4px 0 var(--grey); }
.comp[data-tint="green"] .slot.filled { box-shadow: inset 0 -4px 0 var(--green); }
.comp[data-tint="red"] .slot.filled { box-shadow: inset 0 -4px 0 var(--red); }
.slot.conflict { outline: 3px solid var(--accent); outline-offset: -3px; }
.slot.conflict img { opacity: 0.45; }
.slot.conflict::before {
  content: "!";
  position: absolute;
  top: 3px;
  right: 3px;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* Bans */
.bans { display: flex; align-items: center; gap: 10px; min-height: var(--ban); }
.ban-slots { display: grid; grid-template-columns: repeat(5, minmax(0, var(--ban))); gap: 4px; flex: 0 1 auto; min-width: 0; }
.ban {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 25, 35, 0.35);
}
.band-b .ban { background: var(--ink); border-color: var(--ink); }
.ban::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px));
  color: var(--ink);
}
.band-b .ban::after { color: #fff; }
.ban img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.1); }
.ban.has { border: 0; }
.ban.has::before { content: ""; position: absolute; inset: 0; mix-blend-mode: color; }
.ban.tint-grey { background: #6f757b; }
.ban.tint-green { background: var(--green); }
.ban.tint-green::before { background: var(--green); }
.ban.tint-red { background: var(--red); }
.ban.tint-red::before { background: var(--red); }
.ban.has::after { color: rgba(255, 255, 255, 0.9); }
.ban-label { font-size: 11px; color: var(--ink-soft); font-weight: 500; line-height: 1.25; }
.ban-label b { color: var(--ink); }

/* Pool */
.pool { margin-top: 20px; }
.pool-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 12px; }
.pool-target { font-size: 15px; }
.pool-target b { font-weight: 700; }
.pool-target .hl { color: var(--accent); font-weight: 700; }
.pool-target .muted { color: var(--muted); }
.pool-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 4px 11px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}
.chip img { width: 14px; height: 14px; filter: invert(1); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.on img { filter: none; }
.search {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 6px 10px;
  width: 170px;
}
.search:focus { outline: none; border-color: var(--ink); }

.pool-grid { display: flex; flex-direction: column; gap: 10px; }
.role-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: start; }

.role-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  padding-top: 10px;
  color: var(--ink-soft);
}
.role-name img { width: 16px; height: 16px; filter: invert(1) brightness(0.3); }
.agents { display: flex; flex-wrap: wrap; gap: 8px; }

.agent {
  width: 76px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;
}
.agent .pic {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: var(--radius);
  background: var(--tile);
  overflow: hidden;
  position: relative;
  transition: transform 0.1s;
}
.agent .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.agent .label { display: block; font-size: 11.5px; font-weight: 600; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent:hover .pic { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--ink); }
.agent:focus-visible { outline: none; }
.agent:focus-visible .pic { box-shadow: 0 0 0 2px var(--accent); }

.agent.picked .pic { box-shadow: 0 0 0 3px var(--accent); }
.agent.picked .pic::after {
  content: "✓";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.agent.banned { cursor: not-allowed; }
.agent.banned .pic img { filter: grayscale(1); opacity: 0.35; }
.agent.banned .pic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, transparent calc(50% - 1.5px), var(--accent) calc(50% - 1.5px), var(--accent) calc(50% + 1.5px), transparent calc(50% + 1.5px));
}
.agent.banned .label { color: var(--muted); text-decoration: line-through; }
.agent.banned:hover .pic { transform: none; box-shadow: none; }
.agent.full:not(.picked) .pic img { opacity: 0.5; }
.agent.full:not(.picked) { cursor: default; }
.agent.full:not(.picked):hover .pic { transform: none; box-shadow: none; }

/* Desktop: Duelist/Initiator on the left, Controller/Sentinel on the right; tiles shrink to fit */
@media (min-width: 1001px) {
  .pool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    gap: 14px 40px;
  }
  .role-row { grid-template-columns: 1fr; gap: 6px; }
  .role-name { padding-top: 0; }
  .agents { display: grid; grid-template-columns: repeat(8, minmax(0, 72px)); gap: 8px; }
  .agent, .agent .pic { width: 100%; }
  .agent .pic { height: auto; aspect-ratio: 1; }
}

/* Rules dialog */
.rules {
  border: 0;
  border-radius: 8px;
  padding: 24px 26px;
  max-width: 520px;
  width: calc(100% - 32px);
  color: var(--ink);
  background: #fff;
}
.rules::backdrop { background: rgba(15, 25, 35, 0.55); }
.rules h2 { margin: 0 0 10px; font: 400 28px/1.1 "Anton", Impact, sans-serif; text-transform: uppercase; }
.rules ul { padding-left: 0; list-style: none; display: grid; gap: 8px; }
.rules li { display: flex; gap: 10px; align-items: baseline; }
.dot { width: 10px; height: 10px; border-radius: 2px; flex: none; transform: translateY(1px); }
.dot-grey { background: var(--grey); }
.dot-green { background: var(--green); }
.dot-red { background: var(--red); }
.muted { color: var(--muted); }
.rules a { color: inherit; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  padding: 9px 16px;
  border-radius: 6px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Map select row in each column head */
.head-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* People climbing out of the board's top edge: the board sits in front and hides their lower part */
.board-wrap { position: relative; }
.board { position: relative; z-index: 1; }
.peekers { display: none; }

/* Desktop: actions live in the board's empty top-left cell, so the header row only holds the title */
.corner-actions { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 6px; padding: 12px; }
.corner-actions button {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  border-radius: var(--radius);
  padding: 5px 0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.corner-actions button:hover { background: #fff; color: var(--ink); }
.corner-actions .danger { grid-column: 1 / -1; border-color: var(--accent); color: var(--accent); }
.corner-actions .danger:hover { background: var(--accent); color: #fff; }

@media (min-width: 1001px) {
  .top .actions { display: none; }
}

/* Stickers are sized and placed purely relative to the board width, so they stay put at any zoom level */
@media (min-width: 1340px) {
  .board-wrap { container-type: inline-size; }
  .top {
    padding-top: 28px;
    /* Keep room above the board for the visible part of the stickers */
    min-height: calc((100vw - 48px) * 0.062);
  }
  .title { flex-direction: column; align-items: flex-start; gap: 6px; }
  .peekers {
    --peek-h: 9.3cqw;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
  }
  .peek {
    position: absolute;
    --scale: 1;
    bottom: calc(var(--peek-h) * var(--scale) * -0.3);
    height: calc(var(--peek-h) * var(--scale));
    width: auto;
    transform: translateX(-50%);
    filter: drop-shadow(0 6px 10px rgba(15, 25, 35, 0.25));
    transition: translate 0.2s ease;
    animation: peek-up 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.15) backwards;
  }
  .peek:hover { translate: 0 -8px; }
  /* 1 and 3 have less headroom in their image than 2; scale them so all three tops line up */
  .peek-1 { --scale: 0.89; left: 33%; animation-delay: 0.1s; }
  .peek-2 { left: 64.5%; animation-delay: 0.25s; }
  .peek-3 { --scale: 0.945; left: 78%; animation-delay: 0.4s; }
}

@keyframes peek-up {
  from { transform: translate(-50%, 65%); }
  to { transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .peek { animation: none; }
}

/* Narrow screens: stack maps, show team letter inline */
@media (max-width: 1000px) {
  :root { --slot: clamp(44px, 14vw, 72px); --ban: clamp(24px, 7vw, 34px); }
  .col-labels { display: none; }
  .board { background: transparent; box-shadow: none; overflow: visible; }
  .map-cols { grid-template-columns: 1fr; gap: 14px; }
  .map-cols .col { border-left: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 8px 24px -16px rgba(15, 25, 35, 0.5); }
  .band-a, .band-b { height: auto; }
  main, .top { padding-left: 16px; padding-right: 16px; }
  .role-row { grid-template-columns: 1fr; gap: 6px; }
  .role-name { padding-top: 0; }
  .agent, .agent .pic { width: 64px; }
  .agent .pic { height: 64px; }
}

/* Mobile-only elements, hidden on larger screens */
.m-bar, .map-tabs, .sheet-head, .sheet-comp, .backdrop, .m-cta { display: none; }

.m-names { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-names label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2px 4px 2px 10px;
}
.m-names span { font: 400 20px/1 "Anton", Impact, sans-serif; }
.m-names .team-name { text-align: left; font-size: 14px; padding: 6px 4px; min-width: 0; }
.m-names .team-name:focus { border-color: transparent; }

@media (max-width: 1000px) {
  .m-bar { display: block; margin-bottom: 14px; }
}

/* Phones: one map at a time, agent pool as a bottom sheet */
@media (max-width: 700px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .top { padding-top: 14px; padding-bottom: 10px; gap: 10px; }
  h1 { font-size: 40px; }
  .sub { display: none; }
  .btn { padding: 6px 11px; font-size: 12.5px; }

  .m-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--page);
    margin: 0 -16px 12px;
    padding: 8px 16px 10px;
    box-shadow: 0 6px 12px -10px rgba(15, 25, 35, 0.45);
  }
  .map-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
  .tab {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius);
    padding: 6px 4px;
    text-align: center;
    cursor: pointer;
    line-height: 1.15;
  }
  .tab b { display: block; font: 400 17px/1.1 "Anton", Impact, sans-serif; text-transform: uppercase; }
  .tab small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
  .tab.on small { color: rgba(255, 255, 255, 0.7); }
  .tab .prog { color: var(--accent); font-weight: 700; }
  .tab.done .prog { color: var(--green); }

  .map-cols .col { display: none; }
  .map-cols .col.shown { display: flex; }
  .col-head { height: 84px; }
  .band { padding: 14px; }
  .comp { padding: 8px; margin: -8px; }
  .comp.active { outline-color: transparent; background: transparent; }
  .slots { gap: 5px; }
  .slot.filled::after { display: none; }

  /* Bottom sheet */
  .pool {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    margin: 0;
    max-height: 82vh;
    max-height: 82dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--page);
    border-radius: 16px 16px 0 0;
    padding: 0 16px calc(16px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 32px rgba(15, 25, 35, 0.3);
    transform: translateY(105%);
    visibility: hidden;
    transition: transform 0.22s ease, visibility 0s linear 0.22s;
  }
  body.sheet-open .pool { transform: none; visibility: visible; transition: transform 0.22s ease; }
  body.sheet-open { overflow: hidden; }

  .pool-top { position: sticky; top: 0; z-index: 1; background: var(--page); padding-bottom: 10px; margin-bottom: 4px; }
  .sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; position: relative; padding: 18px 0 2px; }
  .grab { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; border-radius: 2px; background: rgba(15, 25, 35, 0.25); }
  .sheet-teams { display: flex; gap: 4px; min-width: 0; }
  .sheet-teams button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 13px;
    max-width: 40vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
  }
  .sheet-teams button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
  .sheet-teams small { font-weight: 600; opacity: 0.75; }
  .sheet-close {
    flex: none;
    border: 0;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    border-radius: 999px;
    padding: 6px 14px;
    cursor: pointer;
  }
  .pool-head { margin: 14px 0 10px; gap: 10px; }
  .pool-target { font-size: 14px; }
  .pool-tools { width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; padding: 6px 12px; }
  .search { display: none; }
  .sheet-comp { display: grid; --slot: calc((100vw - 32px - 4 * 6px) / 5); gap: 6px; }

  .role-name { margin-top: 6px; }
  .agents { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 6px; }
  .agent, .agent .pic { width: 100%; }
  .agent .pic { height: auto; aspect-ratio: 1; }
  .agent:hover .pic { transform: none; box-shadow: none; }
  .agent.picked:hover .pic { box-shadow: 0 0 0 3px var(--accent); }
  .agent .label { font-size: 11px; }

  .backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(15, 25, 35, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }
  body.sheet-open .backdrop { opacity: 1; pointer-events: auto; }

  .m-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 30;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    padding: 13px 16px;
    font-weight: 700;
    font-size: 15px;
    text-align: left;
    box-shadow: 0 8px 20px -6px rgba(255, 70, 85, 0.6);
    cursor: pointer;
  }
  .m-cta span { opacity: 0.85; font-weight: 600; font-size: 13px; white-space: nowrap; }
  .m-cta.all-done { background: var(--green); box-shadow: 0 8px 20px -6px rgba(46, 158, 102, 0.6); }
  body.sheet-open .m-cta { display: none; }

  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 50; width: max-content; max-width: calc(100% - 32px); text-align: center; }
}
