/* CombinACTION! in the browser. The table is the rules cards' table; the colors are the cards' own: three
   primaries, and each suit the color its recipe mixes to. One light look, as the cards are printed. */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/AtkinsonHyperlegibleNext-wght.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --table: #E7E5EA;
  --felt: #DCD9E1;
  --paper: #FFFFFF;
  --ink: #221F26;
  --muted: #6E6A77;
  --line: #CBC7D2;
  --yellow: #F6C915;
  --red: #E0303A;
  --blue: #2D4BB4;
  --club: #2E7341;
  --heart: #EE5528;
  --diamond: #7766BE;
  --spade: #221F26;
  --go: #2E7341;
  --shadow: 0 1px 2px rgba(34, 31, 38, .14), 0 3px 10px rgba(34, 31, 38, .12);
  --sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* a card in your hand: six across on a phone (the page's sides, your area's, five gaps), up to 104px */
  --hand: clamp(44px, calc((min(100vw, 980px) - 82px) / 6 - 1px), 104px);
  --mid: clamp(44px, 11vw, 70px);        /* a card on the table */
  --mini: clamp(30px, 7.4vw, 44px);      /* a card in an area */
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--table);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.frame { height: 8px; background: linear-gradient(90deg, var(--red) 0 33.34%, var(--yellow) 0 66.67%, var(--blue) 0); }
#app {
  max-width: 980px;
  margin: 0 auto;
  padding-block: 10px 40px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
img { display: block; max-width: 100%; }
.noscript { text-align: center; padding: 40px 16px; }

/* ---- the name, as on the rules cards: Com·bin·ACT·ION! in the four suits' colors ---- */
.logo { font-weight: 800; letter-spacing: -.01em; line-height: 1; white-space: nowrap; margin: 0; }
.logo .c { color: var(--club); } .logo .h { color: var(--heart); } .logo .d { color: var(--diamond); } .logo .s { color: var(--spade); }

/* ---- the start ---- */
.start { display: grid; gap: 22px; padding-top: 18px; max-width: 640px; margin: 0 auto; }
.start .logo { font-size: clamp(40px, 11vw, 64px); }
.lede { font-size: 18px; color: var(--muted); margin: 0; text-wrap: balance; }
.fan { display: flex; justify-content: center; padding: 6px 0 2px; }
.fan img { width: clamp(64px, 18vw, 96px); border-radius: 7%; box-shadow: var(--shadow); margin-left: -18px; }
.fan img:first-child { margin-left: 0; }
.fan img:nth-child(1) { transform: rotate(-10deg) translateY(8px); }
.fan img:nth-child(2) { transform: rotate(-4deg); }
.fan img:nth-child(3) { transform: rotate(3deg); }
.fan img:nth-child(4) { transform: rotate(10deg) translateY(8px); }
.options { display: grid; gap: 14px; background: var(--paper); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; user-select: none; min-width: 44px; text-align: center; }
.seg input:checked + label { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.seg input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }
.hint { color: var(--muted); font-size: 14px; margin: 0; }
.big {
  border: 0; border-radius: 999px; padding: 14px 28px; font-size: 20px; font-weight: 800; cursor: pointer;
  background: var(--ink); color: var(--paper); box-shadow: var(--shadow); justify-self: start;
}
.big:hover { background: #3a3540; }
.howto { background: var(--paper); border-radius: 14px; padding: 4px 16px; box-shadow: var(--shadow); }
.howto summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.howto ul { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.recipes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 4px 24px; margin: 4px 0 14px; }
.recipes table { border-collapse: collapse; width: 100%; font-size: 15px; }
.recipes th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 700; padding: 2px 0; border-bottom: 2px solid var(--ink); }
.recipes td { padding: 4px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.recipes td:first-child { width: 88px; white-space: nowrap; }
.credit { color: var(--muted); font-size: 14px; margin: 0; }
.credit a { color: inherit; }

/* little marks: a color's dot, a suit */
.dot { display: inline-block; width: .8em; height: .8em; border-radius: 50%; vertical-align: -.05em; margin-right: .15em; }
.dot.yellow { background: var(--yellow); } .dot.red { background: var(--red); } .dot.blue { background: var(--blue); }
.sx { display: inline-block; width: 1em; height: 1em; vertical-align: -.15em; }
.nw { white-space: nowrap; }

/* ---- the table ---- */
.bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; padding-bottom: 8px; }
.bar .logo { font-size: 24px; }
.bar .tools { display: flex; gap: 6px; align-items: center; }
.chip { border: 2px solid var(--line); background: var(--paper); border-radius: 999px; padding: 4px 12px; cursor: pointer; font-size: 14px; font-weight: 700; }
.count { font-variant-numeric: tabular-nums; }
.status { font-size: 14px; color: var(--muted); }

.opps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.opp { background: rgba(255, 255, 255, .55); border-radius: 12px; padding: 8px 10px; display: grid; gap: 6px; min-width: 0; }
.opp header { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.opp .who { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; min-width: 0; }
.opp header .tag { flex: none; }
.opp .pts { white-space: nowrap; flex: none; }
.pts { font-weight: 800; font-variant-numeric: tabular-nums; }
.pts small { font-weight: 600; color: var(--muted); font-size: 12px; }
.facts { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); align-items: center; }
.facts b { color: var(--ink); font-variant-numeric: tabular-nums; }
.tiny-back { width: 14px; height: 19px; border-radius: 2px; background: url("cards/back.webp") center / cover; display: inline-block; vertical-align: -4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); margin-right: 3px; }
.made { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 13px; min-height: 22px; }
.made .ps { display: inline-flex; gap: 2px; align-items: center; font-variant-numeric: tabular-nums; }
.vchip { background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; font-weight: 800; font-size: 13px; }
.sweepable { display: flex; align-items: center; gap: 6px; }

.center { margin: 10px 0; background: var(--felt); border-radius: 18px; padding: 12px; display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-start; justify-content: center; }
.zone { display: grid; gap: 4px; justify-items: center; }
.zone .lbl { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.slots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.empty { color: var(--muted); font-size: 14px; padding: 8px 4px; max-width: 220px; text-align: center; }

/* a card on the table, as a button when it can be taken */
.tc { position: relative; border: 0; padding: 0; background: none; border-radius: 7%; width: var(--mid); cursor: default; -webkit-touch-callout: none; user-select: none; }
.tc > img { width: 100%; border-radius: 7%; box-shadow: var(--shadow); }
.tc .n { position: absolute; right: -6px; top: -6px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 800; border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 5px; font-variant-numeric: tabular-nums; }
.tc.ghost { width: var(--mid); aspect-ratio: 5 / 7; border: 2px dashed var(--line); border-radius: 7%; display: grid; place-items: center; }
.tc.ghost img { width: 46%; box-shadow: none; opacity: .35; border-radius: 0; }
button.tc:not(:disabled) { cursor: pointer; }
button.tc:not(:disabled) > img { box-shadow: 0 0 0 3px var(--go), var(--shadow); }
button.tc:not(:disabled):hover > img { transform: translateY(-2px); }
/* a card in the center you can only take, not play at once: no ring, as in your hand */
button.tc.take:not(:disabled) > img { box-shadow: var(--shadow); }
.pile { width: var(--mid); }
.tc.pile > img { box-shadow: 2px 2px 0 rgba(0, 0, 0, .12), 4px 4px 0 rgba(0, 0, 0, .08), var(--shadow); }
button.tc.pile:not(:disabled) > img { box-shadow: 0 0 0 3px var(--go), 2px 2px 0 rgba(0, 0, 0, .12), var(--shadow); }

.me { background: rgba(255, 255, 255, .55); border-radius: 16px; padding: 10px; display: grid; gap: 10px; }
.me header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.me .who { font-weight: 800; font-size: 18px; }
.mine { display: flex; gap: 14px 18px; flex-wrap: wrap; align-items: flex-start; }
.group { display: grid; gap: 4px; }
.group > .lbl { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.group .slots { justify-content: flex-start; }
.mc { position: relative; width: var(--mini); }
.mc img { border-radius: 7%; box-shadow: var(--shadow); width: 100%; }
.mc .n { position: absolute; right: -5px; top: -5px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 800; border-radius: 999px; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 4px; font-variant-numeric: tabular-nums; }
.mc.tucked img { box-shadow: 2px -3px 0 var(--paper), 2px -3px 0 1px var(--line), var(--shadow); }

.hand { display: grid; grid-template-columns: repeat(auto-fill, var(--hand)); gap: 12px 6px; min-height: calc(var(--hand) * 1.4 + 8px); align-items: start; padding-block: 6px; }
.hand .none { color: var(--muted); align-self: center; grid-column: 1 / -1; margin: 0; }
.hc { display: grid; gap: 4px; justify-items: center; width: var(--hand); }
.hc .play { border: 0; padding: 0; background: none; width: 100%; cursor: grab; border-radius: 7%; position: relative; -webkit-touch-callout: none; user-select: none; touch-action: none; will-change: transform; }
.hc .play:active { cursor: grabbing; }
.hc .play > img { width: 100%; border-radius: 7%; box-shadow: var(--shadow); }
.hc.ok .play > img { box-shadow: 0 0 0 3px var(--go), var(--shadow); }
.hc.ok .play:hover > img { transform: translateY(-3px); }
/* a point card in the center: big enough to read its corner suits */
.tc.point-card { width: clamp(58px, 15vw, 76px); }
/* a card on its way: down to your area to play, up to the center to discard */
.hc .play.dragging { z-index: 10; }
.hc .play[data-say]::after {
  content: attr(data-say); position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: 13px; font-weight: 800; padding: 2px 10px; border-radius: 999px; color: var(--paper); background: var(--ink); z-index: 2;
}
.hc .play.going-play::after { background: var(--go); bottom: -12px; }
.hc .play.going-discard::after { background: var(--red); top: -12px; }
.hc .play.going-no::after { background: var(--muted); top: 40%; }
.hc .play.going-play > img { box-shadow: 0 0 0 3px var(--go), 0 8px 18px rgba(34, 31, 38, .3); }
.hc .play.going-discard > img { box-shadow: 0 0 0 3px var(--red), 0 8px 18px rgba(34, 31, 38, .3); }
.hc .play.going-no > img { opacity: .9; }
.flick-hint { margin: 0; font-size: 14px; color: var(--muted); }
@media (pointer: coarse) { .flick-hint .kb { display: none; } }

.yell {
  border: 0; border-radius: 999px; padding: 12px 22px; font-size: 22px; font-weight: 800; cursor: pointer;
  background: var(--yellow); color: var(--ink); box-shadow: 0 0 0 3px var(--ink), var(--shadow);
  animation: pulse 1.1s ease-in-out infinite alternate;
}
@keyframes pulse { to { transform: scale(1.05); } }

.feed { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; font-size: 14px; min-height: 3.6em; }
.feed li { color: var(--muted); }
.feed li:first-child { color: var(--ink); }
.feed .big-news { font-weight: 800; }
.toast { min-height: 1.5em; font-weight: 700; color: var(--red); font-size: 15px; margin: 0; }

/* ---- Beat the Clock: the timer, and the leaderboard ---- */
.clock { font-weight: 800; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; padding: 5px 12px; border-radius: 999px; background: var(--paper); border: 2px solid var(--ink); min-width: 4.4ch; text-align: center; }
.clock.low { border-color: var(--red); color: var(--red); }
.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.board { list-style: none; margin: 0; padding: 0; display: grid; }
.board li { display: grid; grid-template-columns: 2em minmax(0, 1fr) auto 4.2em; gap: 2px 10px; padding: 7px 4px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; align-items: baseline; }
.board li.you { background: var(--felt); border-radius: 6px; }
.board .r { color: var(--muted); font-weight: 700; }
.board .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.board .p { font-weight: 800; text-align: right; }
.board .t { color: var(--muted); font-weight: 700; text-align: right; }
.board li.head { padding-block: 0 4px; font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.board li.head .p, .board li.head .t { font-weight: 700; color: var(--muted); }
.board .d { grid-column: 2 / -1; color: var(--muted); font-size: 13px; }
.deck-tabs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.deck-tabs .field { margin-right: 4px; }
.deck-tabs .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.post { display: grid; gap: 8px; }
.post .join-row .big { padding: 10px 20px; font-size: 17px; }

/* ---- 3, 2, 1, Go! at the start of a game: a big dot in each primary, over a table that can't be touched yet ---- */
.countdown { position: fixed; inset: 0; z-index: 7; display: grid; place-items: center; background: rgba(231, 229, 234, .6); }
.countdown[hidden] { display: none; }
.countdown.go { background: none; pointer-events: none; }
.countdown b {
  display: grid; place-items: center; width: clamp(140px, 42vw, 220px); aspect-ratio: 1; border-radius: 50%;
  font-size: clamp(76px, 24vw, 132px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
  color: var(--paper); background: var(--go); box-shadow: 0 0 0 6px var(--paper), 0 14px 40px rgba(34, 31, 38, .3);
  animation: count .9s ease-out both;
}
.countdown b.n3 { background: var(--red); }
.countdown b.n2 { background: var(--yellow); color: var(--ink); }
.countdown b.n1 { background: var(--blue); }
.countdown.go b { font-size: clamp(56px, 17vw, 96px); animation: gone .7s ease-in both; }
@keyframes count { from { transform: scale(1.5); opacity: 0; } 30% { transform: scale(1); opacity: 1; } to { transform: scale(.94); } }
@keyframes gone { from { transform: scale(1); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .countdown b, .countdown.go b { animation: none; } }

/* ---- the cards on the move (motion.js): a copy flies from where a card was to where it went, over the table, and
   the card in its new place shows when the copy lands ---- */
.flights { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 3; pointer-events: none; }
.flight {
  position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; border-radius: 7%;
  box-shadow: 0 6px 16px rgba(34, 31, 38, .28); will-change: transform, opacity;
}
.flight.under { box-shadow: var(--shadow); }
.landing { opacity: 0; }

/* ---- the end ---- */
.end { position: fixed; inset: 0; background: rgba(34, 31, 38, .45); display: grid; place-items: center; padding: 16px; z-index: 5; overflow-y: auto; }
.end .sheet { background: var(--paper); border-radius: 18px; padding: 22px; max-width: 560px; width: 100%; display: grid; gap: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
.end h2 { margin: 0; font-size: clamp(26px, 7vw, 36px); line-height: 1.1; text-wrap: balance; }
.end .why { margin: 0; color: var(--muted); }
.ranks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ranks li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.ranks .nm { font-weight: 800; }
.ranks .tot { font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; text-align: right; }
.ranks .won .nm::after { content: " ★"; color: var(--yellow); }
.ranks .cards { grid-column: 1 / -1; display: flex; gap: 4px; flex-wrap: wrap; }
.ranks .cards img { width: 34px; border-radius: 7%; box-shadow: var(--shadow); }
.ranks .cards .none { color: var(--muted); font-size: 14px; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ghost-btn { border: 2px solid var(--ink); background: var(--paper); border-radius: 999px; padding: 12px 22px; font-size: 18px; font-weight: 800; cursor: pointer; }

.sheet-recipes { background: var(--paper); border-radius: 14px; padding: 10px 14px 2px; box-shadow: var(--shadow); margin-bottom: 10px; }

@media (prefers-reduced-motion: reduce) {
  .yell { animation: none; }
  button.tc:not(:disabled):hover > img, .hc.ok .play:hover > img { transform: none; }
}

.opp .tc { width: var(--mini); }

/* ---- playing with friends ---- */
.sub { margin: 0; font-size: 20px; font-weight: 800; }
.field { font-weight: 700; display: block; }
.options input[type="text"], .options input:not([type]), .share input {
  font: inherit; border: 2px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--paper); color: var(--ink); width: 100%; max-width: 320px;
}
.options input:not([type]):focus-visible, .share input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.join-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.join-row input { max-width: 160px !important; }
.join-row .ghost-btn { padding: 8px 18px; font-size: 16px; }
.toast.ok { color: var(--go); }
.lobby { display: grid; gap: 14px; max-width: 640px; margin: 0 auto; }
.lobby h2 { margin: 6px 0 0; font-size: clamp(26px, 7vw, 34px); }
.lobby .code { font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.share input { max-width: 420px; flex: 1 1 220px; min-width: 0; color: var(--muted); }
.share .big { justify-self: auto; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.people li { background: var(--paper); border-radius: 10px; padding: 8px 12px; box-shadow: var(--shadow); }
.people li.bot { color: var(--muted); background: rgba(255, 255, 255, .5); box-shadow: none; border: 2px dashed var(--line); }
.people li.away { opacity: .6; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; vertical-align: 2px; }
.tag.warn { color: var(--red); border-color: var(--red); }
.stepper { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stepper .chip { min-width: 40px; font-size: 18px; padding: 2px 10px; }
.stepper .chip:disabled { opacity: .4; cursor: default; }
.facts-line { margin: 0; font-weight: 700; }
.banner { background: var(--paper); border-radius: 12px; padding: 10px 14px; font-weight: 700; margin: 0 0 8px; box-shadow: var(--shadow); }


/* ---- the center's point cards, close up ---- */
.zone-head { display: flex; align-items: center; gap: 8px; }
.chip.tiny { font-size: 12px; padding: 2px 10px; }
body.viewing { overflow: hidden; }
.viewer {
  position: fixed; inset: 0; z-index: 6; background: rgba(34, 31, 38, .72); display: flex; flex-direction: column;
  justify-content: center; gap: 10px; padding-block: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-bottom, 0px));
  --slide: min(62vw, 46vh * 5 / 7, 300px);
}
.viewer-head { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 640px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.viewer-head h2 { flex: 1; margin: 0; font-size: 20px; color: var(--paper); }
.carousel {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 8px calc(50% - var(--slide) / 2); scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.slide { flex: 0 0 var(--slide); scroll-snap-align: center; margin: 0; display: grid; gap: 10px; justify-items: center; }
.slide > img { width: 100%; border-radius: 7%; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.slide .big { justify-self: center; font-size: 18px; padding: 10px 22px; background: var(--paper); color: var(--ink); }
.viewer-nav { display: flex; justify-content: center; align-items: center; gap: 14px; color: var(--paper); font-weight: 700; }
.viewer-nav .count { min-width: 5em; text-align: center; font-variant-numeric: tabular-nums; }
@media (pointer: coarse) { .viewer-nav .chip { display: none; } }

/* ---- the table after the game, the results put away ---- */
.link-btn { justify-self: center; border: 0; background: none; color: var(--muted); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 4px; }
.over-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  background: var(--ink); color: var(--paper); font-size: 15px;
  padding-block: 10px max(10px, env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.over-bar .chip { color: var(--ink); }
#app:has(.over-bar) { padding-bottom: 80px; }
