/* Bluffy screens beyond the board: the main menu, a set's score page (daily or challenge), the tutorial's
   coach card, and the bits the board gains for them (back to the menu, the set's chip). Phones first. */

/* ---------- full pages scroll; the board doesn't ---------- */
.lp-root[data-screen=home], .lp-root[data-screen=summary], .lp-root[data-screen=duels], .lp-root[data-screen=duel], .lp-root[data-screen=lb], .lp-root[data-screen=profile], .lp-root[data-screen=hands] { display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; height: 100vh; height: 100dvh; }
.page { min-height: 100%; display: flex; flex-direction: column; }
.pg-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line);
  background: rgba(10, 44, 32, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pg-top .brand { font-size: 22px; margin: 0; }
.pg-main { width: 100%; max-width: 860px; margin: 0 auto; padding: 18px 16px max(28px, env(safe-area-inset-bottom)); box-sizing: border-box; }
.pg-foot { color: var(--soft); font-size: 13px; text-align: center; margin: 22px 0 0; }
.pg-foot a { color: var(--you); }
.acct-chip { display: inline-flex; align-items: center; height: 34px; max-width: 190px; padding: 0 14px; box-sizing: border-box; border-radius: 999px;
  border: 1px solid var(--you); background: transparent; color: var(--you); font: 700 13px/1 var(--font-ui); white-space: nowrap; cursor: pointer; }
.acct-chip.in { border-color: var(--line); background: var(--btn-bg); color: var(--ink); padding: 0 14px 0 4px; }
.acct-chip .av-sm { width: 26px; height: 26px; margin-right: 8px; vertical-align: 0; font-size: 15px; }
.acct-chip .nm { overflow: hidden; text-overflow: ellipsis; }
.streak-pg { font-size: 18px; }

/* ---------- the main menu ---------- */
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 7vw, 50px); line-height: 1; letter-spacing: .01em; margin: 4px 0 8px; }
.hero h1 span, .hero h1 em { color: var(--you); font-style: normal; }
.hero p { margin: 0 0 18px; color: var(--soft); font-size: 15px; line-height: 1.4; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; min-height: 116px; padding: 14px; box-sizing: border-box;
  text-align: left; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); font: inherit; cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease; }
.tile:hover { border-color: rgba(245, 197, 66, .6); background: rgba(0, 0, 0, .3); }
.tile:active { transform: scale(.98); }
.tile:focus-visible { outline: 3px solid var(--you); outline-offset: 2px; }
.t-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); color: var(--you); }
.t-ic svg { width: 22px; height: 22px; }
.t-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; max-width: 100%; }
.t-body b { font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 1.05; letter-spacing: .01em; }
.t-body small { font-size: 13px; color: var(--soft); line-height: 1.3; }
.t-badge { position: absolute; top: 12px; right: 12px; font: 800 11px/1 var(--font-ui); letter-spacing: .03em; padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
.t-badge.new { background: var(--bot); color: #fff; }
.t-badge.live { background: rgba(245, 197, 66, .18); color: var(--you); }
.t-badge.done { background: rgba(47, 181, 122, .22); color: #7be0ae; }
.t-av { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: var(--you); color: #14110a; font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.tile.daily.fresh { background: linear-gradient(160deg, rgba(245, 197, 66, .14), rgba(0, 0, 0, .24) 60%); }
.tile.daily.done .t-ic { color: #7be0ae; }
.tile.learn.fresh { border-color: rgba(255, 111, 91, .5); }
/* Play: the big gold one */
.tile.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; min-height: 90px; background: linear-gradient(135deg, #f7cf55, #e8a729);
  color: #14110a; border-color: transparent; box-shadow: 0 6px 0 #a87411, 0 14px 26px rgba(0, 0, 0, .3); margin-bottom: 4px; }
.tile.wide:hover { background: linear-gradient(135deg, #ffd864, #efb033); border-color: transparent; }
.tile.wide:active { transform: translateY(3px); box-shadow: 0 3px 0 #a87411, 0 8px 18px rgba(0, 0, 0, .3); }
.tile.wide .t-ic { width: 54px; height: 54px; border-radius: 50%; background: rgba(20, 17, 10, .12); color: #14110a; }
.tile.wide .t-ic svg { width: 28px; height: 28px; }
.tile.wide .t-body b { font-size: 31px; }
.tile.wide .t-body small { color: rgba(20, 17, 10, .74); font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-go { margin-left: auto; font-size: 44px; line-height: 1; font-weight: 300; opacity: .55; padding-right: 4px; }

@media (min-width: 700px) {
  .pg-main { padding-top: 26px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .tile { min-height: 132px; padding: 16px; }
  .tile.wide { min-height: 100px; padding: 18px 20px; }
  .tile.wide .t-body b { font-size: 36px; }
}
/* short laptop windows: tighter, so the whole menu fits without scrolling */
@media (min-width: 700px) and (max-height: 680px) {
  .pg-main { padding-top: 12px; padding-bottom: 12px; }
  .hero h1 { font-size: 44px; margin: 2px 0 12px; }
  .tile { min-height: 0; padding: 14px 16px; gap: 8px; }
  .t-ic { width: 34px; height: 34px; }
  .tile.wide { min-height: 0; padding: 14px 20px; }
  .tile.wide .t-ic { width: 50px; height: 50px; }
  .pg-foot { margin-top: 12px; }
}
/* phones on their side: shorter tiles, three across */
@media (max-height: 520px) and (orientation: landscape) {
  .hero h1 { font-size: 30px; } .hero p { margin-bottom: 12px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .tile { min-height: 96px; padding: 12px; gap: 8px; }
  .tile.wide { min-height: 0; padding: 12px 16px; }
  .tile.wide .t-ic { width: 44px; height: 44px; }
  .tile.wide .t-body b { font-size: 28px; }
}
@media (max-width: 380px) {
  .pg-main { padding-left: 12px; padding-right: 12px; }
  .tiles { gap: 10px; }
  .tile { padding: 12px; }
  .t-body b { font-size: 20px; }
  .t-badge { top: 10px; right: 10px; }
  .acct-chip.in .nm { max-width: 80px; }
}

/* ---------- the menu's three cards (Daily, Showdown, Quick hand): a side one, tapped, turns to the middle ---------- */
.hring { --w: 150px; --dx: 112px; position: relative; height: 262px; margin-top: 2px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }   /* swiped sideways, scrolled up and down */
.hc { --acc: #d9574a; position: absolute; top: 24px; left: 50%; width: var(--w); aspect-ratio: 5 / 7; padding: 0; border: 0; border-radius: calc(var(--w) * .1); cursor: pointer;
  color: #1d1d1d; font: inherit; text-align: center; box-shadow: 0 5px 0 rgba(0,0,0,.26), 0 12px 24px rgba(0,0,0,.3);
  background: radial-gradient(circle at 50% 46%, rgba(255,255,255,.7), transparent 62%),
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--acc) 7%, transparent) 0 1.5px, transparent 1.5px 9px),
    repeating-linear-gradient(-45deg, color-mix(in srgb, var(--acc) 7%, transparent) 0 1.5px, transparent 1.5px 9px), var(--card-bg);
  transition: transform .34s cubic-bezier(.25, .8, .3, 1), box-shadow .34s ease; }
.hc.qh { --acc: #b5820f; } .hc.dy { --acc: #1d6b49; }
.hc.c { transform: translateX(-50%) translateX(var(--drag, 0px)) translateY(-6px); z-index: 3; box-shadow: 0 0 0 3px var(--you), 0 14px 30px rgba(0,0,0,.45); }
.hc.l { transform: translateX(-50%) translateX(var(--drag, 0px)) translateX(calc(-1 * var(--dx))) translateY(16px) rotate(-8deg) scale(.8); z-index: 2; }
.hc.r { transform: translateX(-50%) translateX(var(--drag, 0px)) translateX(var(--dx)) translateY(16px) rotate(8deg) scale(.8); z-index: 2; }
.hc:focus-visible { outline: 3px solid var(--you); outline-offset: 3px; }
/* the card going from one side to the other: round the back, under both the others */
.hring.drag .hc { transition: none; }   /* following the finger */
.hc.wrap { z-index: 0; transition: none; }
.hc.wrap.r { animation: hcWrapR .34s cubic-bezier(.25, .8, .3, 1); } .hc.wrap.l { animation: hcWrapL .34s cubic-bezier(.25, .8, .3, 1); }
@keyframes hcWrapR {
  from { transform: translateX(-50%) translateX(var(--drag0, 0px)) translateX(calc(-1 * var(--dx))) translateY(16px) rotate(-8deg) scale(.8); }
  50% { transform: translateX(-50%) translateY(10px) scale(.62); }
  to { transform: translateX(-50%) translateX(var(--dx)) translateY(16px) rotate(8deg) scale(.8); } }
@keyframes hcWrapL {
  from { transform: translateX(-50%) translateX(var(--drag0, 0px)) translateX(var(--dx)) translateY(16px) rotate(8deg) scale(.8); }
  50% { transform: translateX(-50%) translateY(10px) scale(.62); }
  to { transform: translateX(-50%) translateX(calc(-1 * var(--dx))) translateY(16px) rotate(-8deg) scale(.8); } }
.hc-fr { position: absolute; inset: calc(var(--w) * .045); border-radius: calc(var(--w) * .07); border: 1.5px solid color-mix(in srgb, var(--acc) 45%, transparent);
  box-shadow: inset 0 0 0 3px var(--card-bg), inset 0 0 0 4px color-mix(in srgb, var(--acc) 22%, transparent); pointer-events: none; }
.hc-ix { position: absolute; z-index: 1; left: calc(var(--w) * .085); top: calc(var(--w) * .075); display: flex; flex-direction: column; align-items: center; padding: 2px 1px;
  border-radius: 4px; background: var(--card-bg); color: var(--acc); font: 800 calc(var(--w) * .17)/1 var(--font-display); }
.hc-ix > svg { width: calc(var(--w) * .14); height: calc(var(--w) * .14); }
.hc-ix i { font: 800 calc(var(--w) * .052)/1.35 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; font-style: normal; white-space: nowrap; }
.hc-sym { display: block; margin-top: 2px; } .hc-sym svg { display: block; width: calc(var(--w) * .07); height: calc(var(--w) * .07); }
.hc-ix.b { left: auto; top: auto; right: calc(var(--w) * .085); bottom: calc(var(--w) * .075); transform: rotate(180deg); }
.hc-body { position: absolute; inset: calc(var(--w) * .2) 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--w) * .03); padding: 0 calc(var(--w) * .1); }
.hc-body > b { margin-top: calc(var(--w) * .02); font: 800 calc(var(--w) * .14)/1 var(--font-display); white-space: nowrap; }
.hc-body > small { font-size: calc(var(--w) * .075); line-height: 1.25; color: #55645a; font-weight: 600; }
.hc-rule { display: flex; align-items: center; gap: 5px; } .hc-rule i { width: calc(var(--w) * .13); height: 1.5px; background: color-mix(in srgb, var(--acc) 55%, transparent); }
.hc-rule em { width: 6px; height: 6px; background: var(--acc); transform: rotate(45deg); }
.hc-pic { display: flex; flex-direction: column; align-items: center; justify-content: center; height: calc(var(--w) * .3); }
.hc-mc { display: inline-grid; place-items: center; box-sizing: border-box; background: #fff; color: #1d1d1d; font: 800 calc(var(--w) * .064)/1 var(--font-display); font-style: normal;
  border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.15), 0 2px 0 rgba(0,0,0,.15); }
.hc-six { display: flex; gap: calc(var(--w) * .014); }
.hc-six .hc-mc, .hc-sp { width: calc(var(--w) * .082); height: calc(var(--w) * .115); }
.hc-sp { box-sizing: border-box; border-radius: 3px; border: 1.5px dashed rgba(20,17,10,.35); }
.hc-sp.x { display: grid; place-items: center; border-color: rgba(168,50,31,.6); color: #a8321f; font: 800 calc(var(--w) * .06)/1 var(--font-ui); font-style: normal; }
.hc-pair { position: relative; display: flex; }
.hc-pair .hc-mc { width: calc(var(--w) * .2); height: calc(var(--w) * .28); font-size: calc(var(--w) * .14); border-radius: 5px; }
.hc-pair .hc-mc:first-child { transform: rotate(-10deg) translateX(4px); } .hc-pair .hc-mc:nth-child(2) { transform: rotate(8deg) translateX(-4px); }
.hc-zap { position: absolute; right: calc(var(--w) * -.06); bottom: calc(var(--w) * -.03); display: grid; place-items: center; width: calc(var(--w) * .13); height: calc(var(--w) * .13);
  border-radius: 50%; background: var(--you); color: #14110a; box-shadow: 0 0 0 2px var(--card-bg); }
.hc-zap svg { width: 60%; height: 60%; }
.hc-seal { display: flex; flex-direction: column; align-items: center; justify-content: center; width: calc(var(--w) * .25); height: calc(var(--w) * .25); border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--acc) 60%, transparent); color: var(--acc); }
.hc-seal b { font: 800 calc(var(--w) * .1)/1 var(--font-display); } .hc-seal small { font: 800 calc(var(--w) * .045)/1.2 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }
.hc-pips { display: flex; gap: 3px; margin-top: calc(var(--w) * .03); }
.hc-pips i { width: calc(var(--w) * .04); height: calc(var(--w) * .04); box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--acc); } .hc-pips i.on { background: var(--acc); }
.hc .t-badge { top: calc(var(--w) * .07); right: calc(var(--w) * .07); z-index: 2; }
.hc .t-badge.done { background: #1d6b49; color: #fff; } .hc .t-badge.live { background: var(--you); color: #14110a; }
.hc-stick, .hc-soon { position: absolute; z-index: 2; top: -10px; right: -12px; padding: 4px 7px; border-radius: 7px; background: var(--you); color: #14110a; transform: rotate(9deg);
  font: 800 10px/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 3px 8px rgba(0,0,0,.35); }
.hc.soon .hc-body, .hc.soon .hc-ix { filter: grayscale(1); opacity: .55; }
.hc-soon { right: auto; left: -12px; transform: rotate(-9deg); background: #e9e3d2; color: #55645a; }   /* top left: Showdown sits on the left */
.hdots { display: flex; justify-content: center; gap: 6px; margin: -6px 0 14px; }
.hdots i { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.25); transition: width .3s ease, background .3s ease; } .hdots i.on { width: 20px; background: var(--you); }
@media (prefers-reduced-motion: reduce) { .hc, .hdots i { transition: none; } .hc.wrap { animation: none; } }
/* something new: a ticket under the cards */
.hticket { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; margin-bottom: 14px; padding: 0 16px 0 0; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--card-bg); color: #1d1d1d; font: inherit; text-align: left; box-shadow: 0 4px 0 rgba(0,0,0,.25);
  -webkit-mask: radial-gradient(circle 9px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 9px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat; }
.ht-l { align-self: stretch; display: grid; place-items: center; width: 62px; border-right: 2px dashed rgba(0,0,0,.22); color: #d9574a; font: 800 18px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.ht-r { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .ht-r b { font: 800 22px/1 var(--font-display); } .ht-r small { color: #55645a; font-size: 13px; font-weight: 600; }
.ht-go { margin-left: auto; font-size: 30px; font-weight: 300; color: #55645a; line-height: 1; }
.hticket:focus-visible { outline: 3px solid var(--you); outline-offset: 3px; }
/* the rest of the menu: a list */
.tiles.hl { display: flex; flex-direction: column; gap: 0; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.tiles.hl .tile.hl-row { flex-direction: row; align-items: center; gap: 12px; min-height: 0; padding: 12px 14px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.tiles.hl .tile.hl-row:first-child { border-top: 0; }
.tiles.hl .tile.hl-row:hover { background: rgba(255,255,255,.04); }
.tiles.hl .t-body b { font-size: 20px; }
.tiles.hl .t-badge { position: static; margin-left: auto; }
.hl-go { margin-left: auto; font-size: 26px; font-weight: 300; color: var(--soft); line-height: 1; } .t-badge + .hl-go { margin-left: 4px; }
/* small phones */
@media (max-width: 380px) { .hring { --w: 136px; --dx: 100px; height: 240px; } }
/* phones on their side */
@media (max-height: 520px) and (orientation: landscape) { .hring { --w: 116px; --dx: 150px; height: 206px; } .hdots { margin-bottom: 10px; } }
@media (min-width: 700px) {
  .hring { --w: 200px; --dx: 230px; height: 340px; } .hc-stick, .hc-soon { font-size: 12px; padding: 5px 8px; }
  .hticket, .hdots { max-width: 720px; margin-left: auto; margin-right: auto; }
  .tiles.hl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tiles.hl .tile.hl-row { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; border-top: 0; border-left: 1px solid var(--line); }
  .tiles.hl .tile.hl-row:first-child { border-left: 0; }
  .tiles.hl .t-badge { position: absolute; margin: 0; } .tiles.hl .hl-go { display: none; }
}
@media (min-width: 1000px) { .hring { --w: 230px; --dx: 270px; height: 380px; } }
@media (min-width: 700px) and (max-height: 680px) { .hring { --w: 170px; --dx: 200px; height: 292px; } }

/* ---------- Showdown boards (only the admins): the opener's chance on each board, one board's numbers ---------- */
.bd-only { display: inline-block; margin-left: 10px; padding: 4px 8px; border-radius: 8px; background: rgba(255,111,91,.16); color: var(--bot); vertical-align: middle;
  font: 800 11px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; }
.bd-grid { display: grid; grid-template-columns: 56px repeat(4, 1fr); gap: 5px; align-items: center; margin-top: 12px; }
.bd-corner { display: flex; flex-direction: column; font: 800 9.5px/1.3 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.bd-corner small:last-child { align-self: flex-end; }
.bd-h { text-align: center; font: 800 17px/1 var(--font-display); color: var(--soft); } .bd-h.r { text-align: right; padding-right: 8px; }
.bd-c { height: 54px; padding: 0; border: 0; border-radius: 10px; cursor: pointer; font: inherit; color: var(--ink); text-shadow: 0 1px 2px rgba(0,0,0,.45); background: #33463e; }
.bd-c b { font: 800 19px/1 var(--font-display); } .bd-c.train { outline: 1.5px dashed rgba(255,255,255,.4); outline-offset: -4px; }
.bd-c.none { background: rgba(255,255,255,.04); color: var(--soft); } .bd-c.none i { font-style: normal; }
.bd-c.huge { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; } .bd-c.huge small { font: 800 9px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--you); }
.bd-c.sel { box-shadow: 0 0 0 3px var(--ink); }
.bd-key { display: flex; align-items: center; gap: 8px; margin: 10px 0; color: var(--soft); font-size: 11.5px; }
.bd-key i { flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgb(198, 99, 84), #33463e, rgb(196, 160, 66)); }
.bd-det { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(0,0,0,.22); border: 1px solid var(--line); }
.bd-deth { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .bd-deth b { font: 800 26px/1 var(--font-display); }
.bd-st { padding: 4px 9px; border-radius: 8px; background: rgba(255,255,255,.1); font: 800 11px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.bd-st.none { color: var(--soft); background: rgba(255,255,255,.05); }
.bd-num { display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 8px; } .bd-num span { display: flex; flex-direction: column; gap: 3px; }
.bd-num small { color: var(--soft); font-size: 11px; line-height: 1.2; } .bd-num b { font: 700 16px/1 var(--font-ui); font-variant-numeric: tabular-nums; }
.bd-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .bd-acts .acct-btn { min-height: 46px; }
@media (min-width: 700px) { .bd-c { height: 62px; } .lp-modal-card.bdsheet { width: min(560px, 92vw); } }
/* a Showdown match: its button on the sheet; the tug on the tag (S3c), your cards from the left, Bluffy's from the right */
.bd-match { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-top: 10px; } .bd-match .acct-btn { min-height: 46px; }
/* during a match: Carry on across the top, the two new matches (out at 5, out at 6) side by side under it */
.bd-match:has(.full) { grid-auto-flow: row; grid-template-columns: 1fr 1fr; } .bd-match .full { grid-column: 1 / -1; }
.mode-tag.board.tug { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.mt-bar { display: flex; gap: 2px; } .mt-bar.bot { flex-direction: row-reverse; }
.mt-bar i { width: 8px; height: 8px; border-radius: 2px; background: rgba(255,255,255,.14); }
.mt-bar i.on { background: var(--you); } .mt-bar.bot i.on { background: var(--bot); }
.mt-bar i.out { box-shadow: inset 0 0 0 1.5px var(--bot); }
/* after a round: who takes a card (on the ribbon); the pip just taken pops on the tug */
.rbn .mt-took { margin-top: 6px; padding: 3px 10px; border-radius: 9px; background: rgba(0, 0, 0, .16); font: 800 11px/1.4 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }
@media (prefers-reduced-motion: no-preference) {
  .mt-bar i.new { animation: mtNew .7s cubic-bezier(.3, 1.6, .5, 1) backwards; animation-delay: calc(var(--mt-t, 0ms) + 900ms); }
  .result.end.fx .rbn .mt-took { animation: fadeUp .3s ease-out both; animation-delay: calc(var(--fx-t) + 750ms); }
  /* a round starting: your cards come up from below, Bluffy's down from above, one after another */
  .hands.deal .card { animation: dealIn .45s cubic-bezier(.2, .8, .3, 1.15) backwards; animation-delay: calc(var(--dl-t) + var(--dl, 0ms)); }
  .hands.deal .seat.bot .card { animation-name: dealInBot; --dl: 40ms; }
  .hands.deal .card:nth-child(2) { --dl: 90ms; } .hands.deal .seat.bot .card:nth-child(2) { --dl: 130ms; }
  .hands.deal .card:nth-child(3) { --dl: 180ms; } .hands.deal .seat.bot .card:nth-child(3) { --dl: 220ms; }
  .hands.deal .card:nth-child(4) { --dl: 270ms; } .hands.deal .seat.bot .card:nth-child(4) { --dl: 310ms; }
}
@keyframes mtNew { 0% { transform: scale(0); } 55% { transform: scale(1.7); } 100% { transform: none; } }
@keyframes dealIn { from { opacity: 0; transform: translateY(30px) scale(.7) rotate(-6deg); } }
@keyframes dealInBot { from { opacity: 0; transform: translateY(-30px) scale(.7) rotate(6deg); } }

/* between rounds: a card over the board (outside it, so it brings the board's colours) */
.rc-back { --ink: #f3efe3; --soft: #9fc1ae; --you: #f5c542; --bot: #ff6f5b; --font-ui: 'Inter', system-ui, sans-serif; --font-display: 'Barlow Condensed', sans-serif;
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box;
  background: rgba(2, 12, 8, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: var(--ink); font-family: var(--font-ui);
  animation: pop-fade .22s ease-out both; transition: opacity .3s ease-in; }
.rc-back.out { opacity: 0; pointer-events: none; }
.rc { width: min(330px, 100%); box-sizing: border-box; padding: 22px 20px 20px; border-radius: 22px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(245, 197, 66, .14), transparent 60%), linear-gradient(180deg, #164a36, #0d3325);
  border: 1px solid rgba(245, 197, 66, .4); box-shadow: 0 24px 50px rgba(0, 0, 0, .5); animation: pop-rise .4s cubic-bezier(.2, .9, .3, 1.15) both;
  transition: transform .3s ease-in; }
.rc-back.out .rc { transform: scale(.94); }
.rc-k { margin: 0; font: 800 40px/1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; }
.rc-hands { display: flex; align-items: flex-end; justify-content: center; gap: 18px; margin: 18px 0 14px; }
.rc-v { padding-bottom: 26px; color: var(--soft); font: 800 15px/1 var(--font-display); text-transform: uppercase; }
.rc-side { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rc-side b { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; } .rc-side.you b { color: var(--you); } .rc-side.bot b { color: var(--bot); }
.rc-fan, .mp-fan { position: relative; display: block; width: 104px; height: 74px; }
.rc-fan i, .mp-fan i { position: absolute; left: 50%; top: 4px; width: 44px; height: 62px; margin-left: -22px; border-radius: 7px; box-sizing: border-box;
  background: repeating-linear-gradient(45deg, #8a2c22 0 5px, #a8392c 5px 10px); border: 2.5px solid #fbf8ef; box-shadow: 0 6px 12px rgba(0, 0, 0, .35);
  transform: translateX(calc(var(--k) * 15px)) rotate(calc(var(--k) * 9deg)); transform-origin: 50% 130%;
  animation: pop-deal .4s cubic-bezier(.2, .8, .3, 1.15) backwards; animation-delay: calc(.12s + var(--i) * 70ms + var(--t, 0ms)); }
.rc-side.you .rc-fan i.new { box-shadow: 0 0 0 2.5px var(--you), 0 0 18px rgba(245, 197, 66, .6); }
.rc-side.bot .rc-fan i.new { box-shadow: 0 0 0 2.5px var(--bot), 0 0 18px rgba(255, 111, 91, .6); }
.rc-open { display: inline-block; padding: 7px 15px; border-radius: 999px; font: 800 15px/1 var(--font-ui); animation: pop-up .35s ease-out backwards; animation-delay: .4s; }
.rc-open.you { background: var(--you); color: #14110a; } .rc-open.bot { background: var(--bot); color: #fff; }
.rc-wait { display: none; margin-top: 12px; color: var(--soft); font-size: 13px; font-style: normal; }
.rc-back.slow .rc-wait { display: block; }
@media (prefers-reduced-motion: reduce) { .rc, .rc-back, .rc-fan i, .rc-open { animation: none; } }

/* the match's end: the pop-up (as the welcome's), coral when Bluffy won */
.pop.mp.lost { border-color: rgba(255, 111, 91, .45); box-shadow: 0 0 40px rgba(255, 111, 91, .14), 0 24px 50px rgba(0, 0, 0, .5);
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 111, 91, .15), transparent 60%), linear-gradient(180deg, #164a36, #0d3325); }
.pop-art.mp-art { display: flex; align-items: flex-start; justify-content: center; gap: 40px; height: 100px; margin-bottom: 10px; }
.mp-fan { height: 100px; }
.mp-fan i { transform: translateX(calc(var(--k) * 11px)) rotate(calc(var(--k) * 8deg)); animation-delay: calc(.3s + var(--i) * 70ms + var(--t, 0ms)); }
.mp-fan b { position: absolute; left: 0; right: 0; bottom: 0; font: 800 12px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }
.mp-fan.you b { color: var(--you); } .mp-fan.bot b { color: var(--bot); }
.mp-fan.win i { box-shadow: 0 0 0 2px var(--you), 0 0 22px rgba(245, 197, 66, .45), 0 6px 12px rgba(0, 0, 0, .35); }
.mp.lost .mp-fan.win i { box-shadow: 0 0 0 2px var(--bot), 0 0 22px rgba(255, 111, 91, .45), 0 6px 12px rgba(0, 0, 0, .35); }
.mp-fan.out i { filter: saturate(.35) brightness(.6); }
.mp-log { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; margin: -8px 0 18px; }
.mp-log i { width: 11px; height: 11px; border-radius: 3px; background: var(--bot); animation: pop-up .3s ease-out backwards; animation-delay: calc(.5s + var(--i) * 45ms + var(--t, 0ms)); }
.mp-log i.w { background: var(--you); }

/* Bluffy v3 waiting for its fetched move */
.tbl-wait { position: fixed; z-index: 40; top: max(12px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); padding: 8px 14px; border-radius: 12px;
  background: var(--modal-bg); border: 1px solid rgba(245, 197, 66, .6); color: var(--ink); font: 600 14px var(--font-ui); box-shadow: 0 8px 24px rgba(0, 0, 0, .4); white-space: nowrap; }

/* ---------- a finished set ---------- */
.sum-card { text-align: center; padding: 22px 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.sum-kicker { font: 800 12px/1.2 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--you); }
.sum-score { font-family: var(--font-display); font-weight: 800; margin: 10px 0 4px; line-height: .9; }
.sum-score b { font-size: clamp(68px, 18vw, 100px); }
.sum-score span { font-size: 30px; color: var(--soft); margin-left: 6px; }
.sum-sub { color: var(--soft); font-size: 15px; }
.sum-sq { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; margin: 14px 0 2px; }
.sum-sq i { width: 22px; height: 22px; border-radius: 5px; background: hsl(calc(var(--wc) * 120) 60% 46%); }
.sum-pts { display: flex; align-items: center; gap: 16px; text-align: left; max-width: 540px; margin: 16px auto 0; padding: 12px 16px; box-sizing: border-box;
  border-radius: 14px; background: rgba(245, 197, 66, .1); border: 1px solid rgba(245, 197, 66, .4); }
.sum-pts .pts { flex: none; display: flex; flex-direction: column; align-items: center; }
.sum-pts .pts b { font-family: var(--font-display); font-size: 46px; font-weight: 800; color: var(--you); line-height: 1; }
.sum-pts .pts small { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.pts-why { font-size: 14px; line-height: 1.45; }
.pts-state { margin-top: 8px; }
.pts-state .acct-btn { padding: 8px 14px; font-size: 14px; }
.sum-ok { color: #7be0ae; }
.sum-ok b { color: var(--ink); }
.sum-note { color: var(--soft); font-size: 14px; margin: 14px 0 0; }
.sum-vs { max-width: 380px; margin: 16px auto 0; display: flex; flex-direction: column; gap: 6px; }
.sum-vs > div { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 14px; border-radius: 10px; background: var(--btn-bg); text-align: left; }
.sum-vs > div.me { box-shadow: inset 0 0 0 2px var(--you); }
.sum-vs span { color: var(--soft); font-weight: 700; font-size: 13px; }
.sum-vs b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sum-vs em { font-style: normal; font-family: var(--font-display); font-size: 26px; font-weight: 800; }
.share-name { display: flex; flex-direction: column; gap: 6px; max-width: 320px; margin: 14px auto 0; font-size: 13px; color: var(--soft); text-align: left; }
.share-name input { font: inherit; font-size: 16px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .07); color: var(--ink); }
.sum-acts { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sum-acts .acct-btn, .sum-acts .tbtn { padding: 11px 18px; font-size: 15px; }
.sum-next { color: var(--soft); font-size: 13px; margin: 12px 0 0; }
.sum-missed { font-size: 13px; margin: 10px 0 0; }
.sum-hands { margin-top: 18px; }
.sum-hands h3 { font: 800 12px/1.3 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin: 0 0 10px; }
.sum-hands h3 small { letter-spacing: 0; text-transform: none; font-weight: 500; margin-left: 6px; }
.sh-item { margin-bottom: 6px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid; overflow: hidden; }
.sh-item.won { border-left-color: var(--you); } .sh-item.lost { border-left-color: var(--bot); }
/* the row is a button: tap it to see the hand */
.sh { display: grid; grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1.3fr) auto 14px; gap: 12px; align-items: center; width: 100%; padding: 10px 12px 10px 10px;
  box-sizing: border-box; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sh:hover { background: rgba(255, 255, 255, .03); }
.sh:focus-visible { outline: 2px solid var(--you); outline-offset: -2px; }
.sh-chev { width: 7px; height: 7px; border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: rotate(45deg); justify-self: center; margin-top: -4px;
  transition: transform .15s ease; }
.sh-item.open .sh-chev { transform: rotate(-135deg); margin-top: 3px; }
/* opened: the two hands, then the bids in order */
.sh-more { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 22px; padding: 12px 14px 14px 42px; border-top: 1px dashed var(--line); background: rgba(0, 0, 0, .12); }
.sh-more.just { animation: shIn .18s ease-out; }
@keyframes shIn { from { opacity: 0; transform: translateY(-4px); } }
.shm-hands { display: flex; flex-direction: column; gap: 8px; }
.shm-hands > div { display: flex; align-items: center; gap: 10px; }
.shm-hands small, .shm-bids small { width: 44px; flex: none; font: 800 10px/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--you); }
.shm-hands .bot small, .shm-bids .bot small { color: var(--bot); }
.shm-hands span { display: flex; gap: 4px; }
.mc { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 36px; border-radius: 5px; background: #fbf8ef; color: #1b2a22;
  font: 800 19px/1 var(--font-display); font-style: normal; box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.mc.hit { box-shadow: 0 0 0 2px var(--you), 0 2px 0 rgba(0, 0, 0, .25); }
.shm-bids { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.shm-bids li { display: flex; align-items: center; gap: 10px; padding: 3px 0; font-size: 14px; position: relative; }
.shm-bids li + li::before { content: ""; position: absolute; left: 3px; top: -6px; height: 8px; border-left: 1px solid var(--line); }
.shm-bids li.you span { color: var(--ink); } .shm-bids li.bot span { color: #ffd2ca; }
.shm-bids li.is-call span { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; padding: 2px 8px; border-radius: 6px; border: 1.5px solid; }
.shm-bids li.you.is-call span { color: var(--you); } .shm-bids li.bot.is-call span { color: var(--bot); }
.shm-why { margin: 8px 0 0; font-size: 13.5px; color: var(--soft); }
.shm-why b { color: var(--ink); }
/* ‹ day › on the daily's score page and its leaderboard */
.day-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 6px 0 2px; }
.day-nav span { min-width: 104px; text-align: center; font-weight: 700; font-size: 15px; }
.day-arr { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--btn-bg); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 0 3px; }
.day-arr:hover:not(:disabled) { border-color: var(--you); }
.day-arr:disabled { opacity: .3; cursor: default; }
.lb-card .day-nav { justify-content: flex-start; margin: -2px 0 10px; }
.lb-mine { margin-top: 10px; }
table.lb tr.late td { opacity: .45; }
table.lb tr.late.me td { opacity: .6; }
.sum-late { display: block; color: var(--soft); margin-top: 4px; }
.sum-empty .sum-note { margin: 18px 0 4px; font-size: 15px; }
.sh-n { color: var(--soft); font-weight: 700; font-size: 13px; text-align: center; }
.sh-cards b { font-family: var(--font-display); font-size: 21px; letter-spacing: .05em; color: var(--you); }
.sh-cards b.bot { color: var(--bot); }
.sh-cards i { font-style: normal; color: var(--soft); font-size: 12px; margin: 0 7px; }
.sh-cards small { display: block; color: var(--soft); font-size: 12px; }
.sh-end { font-size: 14px; }
.sh-res { text-align: right; }
.sh-res b { display: block; font-size: 14px; }
.sh.won .sh-res b { color: var(--you); } .sh.lost .sh-res b { color: var(--bot); }
.sh-res small { display: inline-block; margin-top: 3px; padding: 2px 7px; border-radius: 6px; font-size: 12px; font-weight: 700; background: hsl(calc(var(--wc) * 120) 55% 42% / .4); }
@media (max-width: 560px) {
  .sum-card { padding: 18px 14px; }
  .sum-pts { flex-direction: column; text-align: center; gap: 8px; }
  .sh { grid-template-columns: 20px minmax(0, 1fr) auto 12px; row-gap: 4px; }
  .sh-end { grid-column: 2 / 3; grid-row: 2; font-size: 13px; color: var(--soft); }
  .sh-res { grid-row: 1 / 3; grid-column: 3; }
  .sh-chev { grid-row: 1 / 3; grid-column: 4; }
  .sh-more { grid-template-columns: minmax(0, 1fr); padding: 12px 14px 14px 14px; }
}

/* ---------- the board, in a set ---------- */
.home-link { background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; display: inline-block; white-space: nowrap; }
.home-link .chev { display: inline-block; vertical-align: middle; position: relative; top: -3px; width: 8px; height: 8px; border-left: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor; transform: rotate(45deg); margin: 0 9px 0 4px; opacity: .65; }
.home-link:hover .chev { opacity: 1; }
.set-chip small { color: var(--you); }
.set-chip b .of { color: var(--soft); font-weight: 600; }
.set-chip b::after { content: none !important; }
.mode-tag.set { color: var(--you); border-color: var(--you); background: #0d3325; }
.acts.tut-done { display: none !important; }
.acct-btn.gold, .acct-btn.wide.gold { background: var(--you); color: #14110a; }

/* the tutorial: everything dimmed but the parts a step is about; the step's card beside them */
.tut-layer { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.tut-layer[hidden] { display: none; }
/* the layer sits outside the board (#lp), so it brings the board's fonts and colours with it */
.tut-layer { --ink: #f3efe3; --soft: #9fc1ae; --line: rgba(255,255,255,.12); --you: #f5c542; --bot: #ff6f5b; --btn-bg: rgba(255,255,255,.08);
  --font-ui: 'Inter', system-ui, sans-serif; --font-display: 'Barlow Condensed', sans-serif; font-family: var(--font-ui); }
.tut-dim { position: fixed; inset: 0; width: 100%; height: 100%; }
.tut-hole { transition: x .3s ease, y .3s ease, width .3s ease, height .3s ease; }
.tut-card { position: fixed; pointer-events: auto; box-sizing: border-box; padding: 14px 16px; border-radius: 14px; background: #fbf8ef; color: #1b2a22;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45); font: 15px/1.45 var(--font-ui); transition: left .3s ease, top .3s ease; }
.tut-card button { font-family: inherit; cursor: pointer; }
.tut-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font: 800 11px/1 var(--font-ui); letter-spacing: .12em;
  text-transform: uppercase; color: #94700c; }
.tut-head .linkbtn { color: #5d6b63; font: 600 13px/1 var(--font-ui); letter-spacing: 0; text-transform: none; text-decoration: none; }
.tut-text b { color: #000; }
.tut-text .dots i { background: var(--bot); }
.tut-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tut-card .tbtn { color: #1b2a22; background: rgba(0, 0, 0, .06); border: 1px solid rgba(0, 0, 0, .15); padding: 9px 14px; font-size: 14px; }
.tut-card .acct-btn { padding: 9px 16px; }
/* the order of claim types, low to high */
.ladder { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 8px 0; }
.ladder span { display: inline-flex; flex-direction: column; align-items: center; padding: 4px 8px; border-radius: 8px; background: rgba(0, 0, 0, .07);
  font-size: 11px; font-weight: 600; color: #4b5a52; line-height: 1.2; }
.ladder b { font: 800 17px/1.1 var(--font-display); color: #14261d; letter-spacing: .03em; }
.lad-sep { font-style: normal; color: #94a199; font-size: 13px; }
.lp-modal-card .ladder span { background: var(--btn-bg); color: var(--soft); }
.lp-modal-card .ladder b { color: var(--ink); }
.lp-modal-card .lad-sep { color: var(--soft); }
/* after the small hand: the bigger games to try next, each with a hand of its cards (the picker's, smaller) */
.tut-games { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.tut-game { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 6px 9px; border-radius: 12px; color: #1b2a22;
  background: rgba(0, 0, 0, .04); border: 1px solid rgba(0, 0, 0, .15); transition: border-color .15s, background .15s, transform .15s;
  animation: pop-up .4s ease-out backwards; animation-delay: calc(.06s * var(--g)); }
@media (hover: hover) { .tut-game:hover { border-color: #c79a17; background: rgba(245, 197, 66, .16); transform: translateY(-1px); } }
.tut-game .gm-art { width: 84px; height: 54px; --step: 11px; }
.tut-game .gm-c { top: 6px; width: 26px; height: 37px; margin-left: -13px; font-size: 17px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .22), 0 3px 6px rgba(0, 0, 0, .2); }
.tut-game b { font: 800 19px/1.1 var(--font-display); }
.tut-game small { font-size: 12px; color: #5d6b63; }
@media (max-width: 700px), (max-height: 520px) and (orientation: landscape) {
  .tut-card { font-size: 14px; padding: 12px 14px; }
  .home-link .chev { margin: 0 7px 0 2px; }
}

/* ---------- modals: points, leaderboard rows with pictures, the set's hands, challenges ---------- */
.acct-points { display: flex; align-items: center; gap: 14px; margin: 4px 0 10px; padding: 10px 14px; border-radius: 12px; background: rgba(245, 197, 66, .1); border: 1px solid rgba(245, 197, 66, .45); }
.pts-num { display: flex; flex-direction: column; align-items: center; font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--you); line-height: 1; }
.pts-num small { font: 700 10px/1.4 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.acct-points b { display: block; font-size: 16px; }
.acct-points small { color: var(--soft); font-size: 13px; }
.acct-h { font: 800 11px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); margin: 16px 0 6px; }
table.lb td.lb-who { white-space: nowrap; max-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; }
.lb-av { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; overflow: hidden; vertical-align: middle; margin-right: 9px; align-items: center; justify-content: center;
  background: var(--you); color: #14110a; font: 800 14px/1 var(--font-display); }
.lb-name { vertical-align: middle; }
table.lb td.lb-pts { font-weight: 800; }
table.lb tr.me .lb-av { box-shadow: 0 0 0 2px var(--you); }
.lb-empty { padding: 10px 0; }
/* phones: every column, as on a desktop, a little tighter (the name gives way, with an ellipsis) */
@media (max-width: 440px) {
  .lb-page table.lb { font-size: 13px; }
  table.lb th, table.lb td { padding-left: 4px; padding-right: 4px; }
  table.lb th { font-size: 11px; }
  table.lb .lb-av { width: 22px; height: 22px; margin-right: 6px; font-size: 12px; }
}
.sdots { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 6px; }
.sdot { min-width: 40px; height: 30px; padding: 0 6px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px;
  border: 1px solid var(--line); font: 700 12px/1 var(--font-ui); color: var(--soft); }
.sdot.won { background: rgba(245, 197, 66, .16); color: var(--you); border-color: rgba(245, 197, 66, .5); }
.sdot.lost { background: rgba(255, 111, 91, .14); color: var(--bot); border-color: rgba(255, 111, 91, .45); }
.sdot.now { border-color: var(--ink); color: var(--ink); }
.chal-games { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 4px; }
.chal-games label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); font-weight: 700; }
.chal-games .seg button { flex: 1; padding: 10px 6px; font-size: 14px; }
.chal-vs { text-align: center; margin: 6px 0 4px; font-family: var(--font-display); font-weight: 800; }
.chal-vs small { display: block; font: 600 13px var(--font-ui); color: var(--soft); }
.chal-vs b { font-size: 60px; line-height: 1; color: var(--you); }
.chal-vs span { font-size: 24px; color: var(--soft); margin-left: 4px; }
.share-text { width: 100%; box-sizing: border-box; font: 14px/1.4 var(--font-ui); background: rgba(255, 255, 255, .07); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px; resize: none; }

/* how points work */
.pts-explain ol { padding-left: 20px; margin: 6px 0 10px; }
.pts-explain li { font-size: 15px; line-height: 1.45; margin: 6px 0; }
.pts-eg { display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; padding: 10px; border-radius: 12px;
  background: rgba(245, 197, 66, .1); border: 1px solid rgba(245, 197, 66, .4); font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.pts-eg i { font-style: normal; color: var(--soft); }
.pts-eg b { color: var(--you); }
.sum-pts .linkbtn, .acct-body .linkbtn { font-size: inherit; }

/* ranked / coach are lobbies now: the tag on the board is a label, not a switch */
div.mode-tag { cursor: default; }
/* phones: the board's top bar keeps to the way back, the game, the score and the menu (account and streak are on the main menu) */
@media (max-width: 700px), (max-height: 520px) and (orientation: landscape) {
  .lp-root[data-screen=board] .acct-mini, .lp-root[data-screen=board] .streak-mini { display: none !important; }
  .lp-root[data-screen=board] .home-link .bt { display: none; }
  .lp-root[data-screen=board] .home-link { padding: 8px 6px 8px 2px; }
  .lp-root[data-screen=board] .home-link .chev { width: 11px; height: 11px; margin: 0 2px 0 6px; opacity: .85; }
}
.acct-rec div.all { border-color: rgba(245, 197, 66, .45); }
.luck-big .luck-row > span { display: block; font-size: 13px; color: var(--soft); margin-top: 2px; }
.pts-tiers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 4px 0 10px; }
.pts-tiers span { text-align: center; padding: 6px 2px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--you); }
.pts-tiers small { display: block; font-family: var(--font-ui); font-weight: 600; font-size: 11px; color: var(--soft); }
@media (max-width: 420px) { .pts-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* the daily and coach mode, signed out */
.tile.locked .t-body small { color: var(--you); }
.tile.locked .t-ic { opacity: .55; }
.acct-gate { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: rgba(245,197,66,.1); border: 1px solid rgba(245,197,66,.35); }

/* ---------- duels: the duels page, a duel's page, the add-friends sheet ---------- */
.dl-head { text-align: center; margin: 4px 0 6px; }
.dl-head h1 { font: 800 clamp(40px, 10vw, 54px)/1 var(--font-display); margin: 0; }
.dl-intro { color: var(--soft); margin: 8px 0 0; font-size: 15px; }
.dl-me { margin: 10px 0 0; font-size: 15px; }
.dl-board { font-size: 13px; margin-top: 4px; }
.dl-wait { text-align: center; }
.dl-sec { margin-top: 20px; }
.dl-sec h3 { font: 800 12px/1.3 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin: 0 0 8px; }
.dl-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; box-sizing: border-box; margin: 0 0 6px;
  padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: inherit; font: inherit; text-align: left; }
.dl-open { grid-template-columns: 40px minmax(0, 1fr) auto 12px; cursor: pointer; }
.dl-open:hover { border-color: rgba(245, 197, 66, .6); }
.dl-av { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: rgba(255, 255, 255, .08); flex: none; }
.dl-av .av-letter { font: 800 19px/1 var(--font-display); }
.dl-av.big { width: 64px; height: 64px; }
.dl-av.big .av-letter { font-size: 30px; }
.av-letter.av-bot { width: 100%; height: 100%; display: grid; place-items: center; background: var(--bot); color: #fff; font-family: var(--font-display); font-weight: 800; }
.lb-av .av-bot { border-radius: 50%; }
.dl-txt { min-width: 0; }
.dl-txt > b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-txt small { display: block; color: var(--soft); font-size: 13px; margin-top: 2px; line-height: 1.35; }
.dl-acts { display: flex; gap: 6px; align-items: center; }
.dl-acts .acct-btn, .dl-acts .tbtn { padding: 7px 12px; font-size: 14px; }
.dl-x { background: none; border: 0; color: var(--soft); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 4px 6px; }
.dl-x:hover { color: var(--bot); }
.dl-score { font: 800 26px/1 var(--font-display); }
.dl-score.won { color: var(--you); } .dl-score.lost { color: var(--bot); }
.dl-go { color: var(--soft); font-style: normal; font-size: 22px; }
.dl-turn { font-style: normal; color: var(--you); font-weight: 700; }
.dl-dim { opacity: .6; }
.dl-bluffy { border-color: rgba(255, 111, 91, .35); }
.dl-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.dl-add .modal-note { width: 100%; margin: 0 0 2px; }
.dl-add .acct-btn, .dl-add .tbtn { padding: 9px 14px; font-size: 14px; }
.cd { font-variant-numeric: tabular-nums; }
.cd.low { color: var(--bot); }
.pl-q { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 10px 12px; margin: 0 0 10px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .07); color: var(--ink); }
.pl-list { max-height: min(50vh, 420px); overflow-y: auto; }
.pl-row { background: rgba(255, 255, 255, .04); }
.pl-row[hidden] { display: none; }
.pl-st { color: var(--soft); font-size: 13px; }
.duel-card .di-av { display: flex; justify-content: center; margin: 14px 0 4px; }
.di-title { font: 800 clamp(26px, 7vw, 34px)/1.1 var(--font-display); margin: 6px 0 4px; }
.dd-res { font: 800 clamp(46px, 12vw, 66px)/1 var(--font-display); margin: 12px 0 10px; }
.dd-res.won { color: var(--you); } .dd-res.lost { color: var(--bot); }
.dd-score { display: flex; align-items: center; justify-content: center; gap: 14px; }
.dd-score b { font: 800 46px/1 var(--font-display); white-space: nowrap; }
.dd-score.small { margin: 6px 0; }
.dd-score.small b { font-size: 32px; }
.dd-p { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 40%; font-weight: 700; overflow-wrap: anywhere; }
.dd-p .dl-av { width: 34px; height: 34px; }
.dd-elo { margin: 14px 0 0; font-size: 15px; }
.sh-res small.sh-elo { background: rgba(255, 255, 255, .1); }
.duel-elo { cursor: default; }
.tbtn.danger-t { color: var(--bot); }
@media (max-width: 480px) {
  .dl-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; padding: 9px 10px; }
  .dl-open { grid-template-columns: 36px minmax(0, 1fr) auto 10px; }
  .dl-av { width: 36px; height: 36px; }
  .dl-acts .acct-btn, .dl-acts .tbtn { padding: 7px 10px; }
  .dd-score b { font-size: 38px; }
}

/* ---------- the leaderboard page ---------- */
.lb-h { font: 800 clamp(40px, 10vw, 54px)/1 var(--font-display); margin: 4px 0 14px; text-align: center; }
.lb-page .lb-sec { justify-content: center; margin-bottom: 6px; }
.lb-page .lb-sec .seg button { font-size: 15px; padding: 9px 16px; }
.lb-page .lb-tabs { justify-content: center; }
.lb-page .lb-card .day-nav, .lb-page .day-nav { justify-content: center; }
/* the three boards as tabs, underlined */
.lb-tabs2 { display: flex; justify-content: center; gap: 26px; border-bottom: 1px solid var(--line); margin: 0 0 14px; }
.lb-tabs2 button { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 10px 2px 11px; font: 700 15px var(--font-ui); color: var(--soft); cursor: pointer; }
.lb-tabs2 button.on { color: var(--ink); border-bottom-color: var(--you); }
@media (hover: hover) { .lb-tabs2 button:not(.on):hover { color: var(--ink); } }
/* a card for each game, with a hand of its cards (as in the game picker) */
.lb-games { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; max-width: 460px; margin: 0 auto 10px; }
.lb-g { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05); font: 700 13px var(--font-ui); color: var(--soft); cursor: pointer; transition: border-color .15s; }
.lb-g.on { border-color: var(--you); background: rgba(245, 197, 66, .12); color: var(--ink); }
@media (hover: hover) { .lb-g:not(.on):hover { border-color: rgba(245, 197, 66, .5); } }
.lb-fan { position: relative; width: 56px; height: 34px; display: flex; align-items: center; justify-content: center; }
.lb-fan b { font: 800 22px/1 var(--font-display); }
.lb-c { position: absolute; left: 50%; top: 2px; width: 20px; height: 28px; margin-left: -10px; border-radius: 4px; box-sizing: border-box; display: flex; align-items: center; justify-content: center;
  font: 800 13px/1 var(--font-display); color: #14261d; background: #fbf8ef; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15), 0 3px 6px rgba(0, 0, 0, .3);
  transform-origin: 50% 130%; transform: translateX(calc(var(--k) * 10px)) rotate(calc(var(--k) * 12deg)); }
/* lighter choices under the cards: which Bluffy, who opens (and the daily's today / week / all time) */
.lb-rows { display: flex; flex-direction: column; align-items: flex-start; width: fit-content; max-width: 100%; margin: 0 auto 10px; }
.lb-row { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.lb-k { min-width: 64px; font: 800 11px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.lb-row button { background: none; border: 0; border-radius: 8px; padding: 9px 10px; font: 600 13.5px var(--font-ui); color: var(--soft); cursor: pointer; }
.lb-row button.on { background: rgba(255, 255, 255, .1); color: var(--ink); }
@media (hover: hover) { .lb-row button:not(.on):hover { color: var(--ink); } }
.lb-page table.lb { font-size: 15px; margin-top: 4px; }
.lb-page .modal-note { text-align: center; }
.lb-page .lb-mine { display: block; margin: 14px auto 0; }

.lb-page table.lb th, .lb-page table.lb td:not(.lb-who) { white-space: nowrap; }

/* ---------- the account sheet: free play, Elo, trophies; and the greyed-out unranked rows on the boards ---------- */
.acct-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.acct-trio > div { padding: 10px 12px; border-radius: 12px; background: var(--btn-bg); border: 1px solid var(--line); min-width: 0; }
.acct-trio small { display: block; color: var(--soft); font-size: 12px; }
.acct-trio b { display: block; font: 800 24px/1.15 var(--font-display); }
.acct-trio .acct-sub { display: block; color: var(--soft); font-size: 12px; }
.acct-trophies { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(245, 197, 66, .1); border: 1px solid rgba(245, 197, 66, .4); }
.acct-trophies.none { background: var(--btn-bg); border-color: var(--line); }
.acct-trophies .tr-big { display: flex; align-items: center; gap: 6px; flex: none; }
.acct-trophies .tr-big i { font-style: normal; font-size: 28px; }
.acct-trophies .tr-big b { font: 800 34px/1 var(--font-display); color: var(--you); }
.acct-trophies.none .tr-big { opacity: .55; }
.acct-trophies small { display: block; color: var(--soft); font-size: 12px; margin-top: 2px; }
table.lb tr.unranked td { opacity: .5; }
table.lb tr.unranked.me td { opacity: .65; }
table.lb .lb-extra { color: var(--soft); font-weight: 500; font-size: 12px; }

/* ---------- profiles (tap a player on a leaderboard) and the Elo graph ---------- */
table.lb tr[data-prof] { cursor: pointer; }
table.lb tr[data-prof]:hover td { background: var(--btn-bg); }
/* the photo editor: the picture in a square, the circle is what shows */
.lp-modal-card.crop { width: min(420px, 92vw); }
.crop-stage { position: relative; width: min(320px, 100%); aspect-ratio: 1; margin: 6px auto 0; overflow: hidden; border-radius: 14px; background: #0a1c15;
  container-type: inline-size; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.crop-stage:active { cursor: grabbing; }
.crop-img { position: absolute; left: 50%; top: 50%; max-width: none; pointer-events: none; transform-origin: 50% 50%; }
.crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(4, 16, 11, .62); outline: 2px solid rgba(255, 255, 255, .85); outline-offset: -2px; pointer-events: none; }
.crop-hint { text-align: center; margin: 8px 0 4px !important; }
.crop-tools { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; }
.crop-zoom { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--soft); font-size: 13px; font-weight: 600; }
.crop-zoom input { flex: 1; accent-color: var(--you); }
.crop-rot { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; } .crop-rot svg { width: 20px; height: 20px; }
.av-big.av-static { cursor: default; }
.av-big.av-static::after { display: none; }
/* a profile picture: tap it to see it full size over the blurred page (the delays add --t so a redraw doesn't replay it) */
.av-big.av-zoom { padding: 0; border: 0; cursor: zoom-in; }
.av-big.av-zoom::after { display: none; }
.av-view { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; cursor: zoom-out;
  background: rgba(2, 12, 8, .4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overscroll-behavior: contain;
  animation: pop-fade .2s ease-out both; animation-delay: var(--t, 0ms); }
.av-view img { width: min(100%, 420px); aspect-ratio: 1; object-fit: cover; border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  animation: av-grow .3s cubic-bezier(.2, .9, .3, 1.1) both; animation-delay: var(--t, 0ms); }
.av-view .pop-x { position: fixed; top: max(14px, env(safe-area-inset-top)); right: 14px; }
@keyframes av-grow { from { opacity: 0; transform: scale(.35); } }
@media (prefers-reduced-motion: reduce) { .av-view, .av-view img { animation: none; } }
.acct-trio > button.elo-tile { padding: 10px 12px; border-radius: 12px; background: var(--btn-bg); border: 1px solid var(--line); min-width: 0;
  text-align: left; font: inherit; color: inherit; cursor: pointer; position: relative; }
.acct-trio > button.elo-tile::after { content: "›"; position: absolute; right: 10px; top: 8px; color: var(--soft); font-size: 16px; }
.acct-trio > button.elo-tile:hover { border-color: var(--soft); }
.acct-trio > button.elo-tile.on { border-color: var(--you); box-shadow: 0 0 0 1px var(--you) inset; }
.acct-trio > button.elo-tile.on::after { transform: rotate(90deg); color: var(--you); }
.eg { margin: 10px 0 4px; padding: 10px 10px 4px; border-radius: 12px; background: var(--btn-bg); border: 1px solid var(--line); }
.eg-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; min-height: 1.4em; }
.eg-info { color: var(--ink); }
.eg-peak { color: var(--soft); white-space: nowrap; }
.eg-svg { display: block; width: 100%; height: auto; touch-action: pan-y; user-select: none; }
.eg-grid { stroke: var(--line); stroke-width: 1; }
.eg-y, .eg-x { fill: var(--soft); font-size: 10px; font-family: var(--font-ui); }
.eg-y { text-anchor: end; }
.eg-area { fill: var(--you); opacity: .12; }
.eg-line { fill: none; stroke: var(--you); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.eg-dot { fill: var(--you); }
.eg-guide { stroke: var(--soft); stroke-width: 1; stroke-dasharray: 3 3; }
.eg-hot { fill: var(--panel); stroke: var(--you); stroke-width: 2; }
.eg .modal-note { margin: 4px 0 2px; }


/* ---------- daily points from 13 Oct: squares won or lost, three bonus tiers by hands won ---------- */
.sum-sq i.w { background: hsl(120 60% 46%); }
.sum-sq i.l { background: hsl(0 60% 46%); }
.pts-tiers.wins { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 360px; margin-left: auto; margin-right: auto; }

/* ---------- the profile page (#profile, #profile=<id>): head, three tiles, the games table ---------- */
.prof-card { max-width: 640px; }
.prof-head { gap: 12px; margin: 4px 0 14px; }
.prof-head .av-big { width: 64px; height: 64px; font-size: 32px; }
.prof-head .acct-who b { font: 800 26px/1.1 var(--font-display); overflow-wrap: anywhere; }
.pf-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pf-tile { padding: 10px 12px; border-radius: 12px; background: var(--btn-bg); border: 1px solid var(--line); min-width: 0; }
.pf-tile small { display: block; color: var(--soft); font: 700 10px/1.4 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; }
.pf-tile b { display: block; font: 800 26px/1.15 var(--font-display); white-space: nowrap; }
.pf-tile span { display: block; color: var(--soft); font-size: 12px; line-height: 1.3; }
.pf-tile.pf-pts b { color: var(--you); }
.pf-tile.pf-streak.risk { border-color: rgba(245, 197, 66, .55); }
.pf-tile.pf-trophies:not(.none) { background: rgba(245, 197, 66, .1); border-color: rgba(245, 197, 66, .4); }
.pg-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 18px 0 6px; }
.pg-h .acct-h { margin: 0; }
.pg-h .seg button { padding: 6px 10px; font-size: 13px; }
table.pg-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
table.pg-table th { text-align: right; color: var(--soft); font-weight: 600; font-size: 12px; padding: 4px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.pg-table td { text-align: right; padding: 9px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.pg-table th:first-child, table.pg-table td.pg-name { text-align: left; }
table.pg-table td.pg-name { font-weight: 700; width: 100%; }
table.pg-table td.pg-elo { font-weight: 800; color: var(--you); }
table.pg-table tr.all td { color: var(--soft); border-bottom: 0; }
table.pg-table tr.all td.pg-name { font-weight: 600; }
/* a game with more than one Bluffy: a smaller row for each, under the game's */
table.pg-table tr.pg-ver td { padding-top: 6px; padding-bottom: 6px; font-size: 13.5px; color: var(--soft); }
table.pg-table tr.pg-ver td.pg-name { padding-left: 22px; font-weight: 600; }
table.pg-table tr.pg-ver td.pg-elo { color: var(--you); }
table.pg-table tr.tap { cursor: pointer; }
table.pg-table tr.tap:hover td { background: rgba(255, 255, 255, .03); }
.pg-chev { display: inline-block; margin-left: 8px; color: var(--soft); font-style: normal; transition: transform .15s; }
.pg-chev::before { content: "›"; }
tr.on .pg-chev { transform: rotate(90deg); color: var(--you); }
tr.pg-more td { text-align: left; padding: 4px 0 12px; white-space: normal; }
.pg-seats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.pg-seats > div { padding: 8px 12px; border-radius: 12px; background: var(--btn-bg); border: 1px solid var(--line); }
.pg-seats small { display: block; color: var(--soft); font-size: 12px; }
.pg-seats b { display: block; font: 800 20px/1.2 var(--font-display); }
.pg-seats span { display: block; color: var(--soft); font-size: 12px; }
.pg-sub { font: 800 11px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); margin: 12px 0 0; }
.prof-page .modal-note { margin-top: 8px; }
@media (max-width: 420px) {
  .pf-tiles { gap: 6px; } .pf-tile { padding: 8px 9px; } .pf-tile b { font-size: 21px; }
  table.pg-table { font-size: 14px; } table.pg-table td, table.pg-table th { padding-left: 5px; padding-right: 5px; }
}

/* ---------- duel setup: a custom best-of (a stepper), rated or unrated ---------- */
.ds-step { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ds-step button { width: 36px; height: 36px; border-radius: 10px; background: var(--btn-bg); border: var(--btn-border); color: var(--ink); font: 700 20px/1 var(--font-ui); cursor: pointer; }
.ds-step button:disabled { opacity: .4; cursor: default; }
.ds-step input { width: 64px; height: 36px; box-sizing: border-box; text-align: center; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  font: 800 18px/1 var(--font-display); -moz-appearance: textfield; }
.ds-step input::-webkit-outer-spin-button, .ds-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ds-step small { color: var(--soft); font-size: 12px; }

/* ---------- friends on profiles; what's waiting for you on the menu ---------- */
.pf-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -4px 0 14px; }
.pf-rel { color: var(--soft); font-size: 14px; } .pf-rel.ok { color: var(--good); font-weight: 700; }
.pf-friends .dl-row { grid-template-columns: minmax(0, 1fr) auto; }
.pf-who { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; background: none; border: 0; padding: 0; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.pf-who .dl-txt { min-width: 0; } .pf-who:hover b { text-decoration: underline; text-underline-offset: 3px; }
.rq { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.rq-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(245, 197, 66, .08); border: 1px solid rgba(245, 197, 66, .45); }
.rq-card .dl-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rq-card .dl-txt b { font-weight: 600; } .rq-card .dl-txt small { color: var(--soft); font-size: 12px; }
.rq-card .dl-acts { display: flex; gap: 6px; flex: none; }
.rq-card .acct-btn, .rq-card .tbtn { padding: 7px 12px; font-size: 13px; }
.rq-more { align-self: center; font-size: 13px; }
@media (max-width: 420px) { .rq-card { flex-wrap: wrap; } .rq-card .dl-acts { width: 100%; justify-content: flex-end; } }


/* the profile's Daily tab: dailies played and points, over the table */
.pg-daily { margin: 2px 0 6px; color: var(--soft); font-size: 14px; }

/* the profile's hands-by-day chart: won (teal) from the baseline, lost (clay) on top. A teal/clay pair checked for
   colour-blind separation on this surface (dataviz validator: CVD dE 12.5); the clay's lower contrast is why the legend
   and the readout above the chart carry the numbers. */
.bd { margin: 10px 0 4px; padding: 10px 10px 4px; border-radius: 12px; background: var(--btn-bg); border: 1px solid var(--line); }
.bd-won { fill: #10a49e; } .bd-lost { fill: #b55f40; }
.bd-hot { fill: rgba(255, 255, 255, .07); }
.bd-key { display: inline-flex; align-items: center; gap: 5px; color: var(--soft); font-size: 12px; white-space: nowrap; }
.bd-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 6px; }
.bd-sw.won { background: #10a49e; } .bd-sw.lost { background: #b55f40; }
.bd-svg { touch-action: pan-y; }


/* ---------- the end of a hand: what made or broke the claim, and a little moment (arena.js, "after a hand") ---------- */
/* The animations take their start from --fx-t (a negative delay: how long ago the hand ended), so a redraw carries on. */
.hands.broke .card.hit { outline-color: var(--bot); outline-style: dashed; }
.cnt.need.ok { outline-color: var(--good); } .cnt.need.short { outline-color: var(--bot); outline-style: dashed; }
.result .big { position: relative; z-index: 0; }   /* the burst goes behind the words */
@media (prefers-reduced-motion: no-preference) {
  .hands.fx .card.hit { animation: hitPop .55s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--fx-t) + 180ms); }
  .hands.fx .seat.bot .card.hit { animation-delay: calc(var(--fx-t) + 300ms); }
  .result.fx .cnt.need { animation: hitPop .5s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--fx-t) + 420ms); }
  .result.fx.won .big { animation: bigWin .5s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: var(--fx-t); }
  .result.fx.lost .big { animation: bigLose .6s ease-out both; animation-delay: var(--fx-t); }
  .burst { position: absolute; left: 50%; top: 30%; width: 0; height: 0; pointer-events: none; z-index: -1; }
  .burst i { position: absolute; left: -3px; top: -4px; width: 6px; height: 9px; border-radius: 2px; background: var(--c); opacity: 0;
    animation: fleck 1s cubic-bezier(.15, .7, .4, 1) both; animation-delay: calc(var(--fx-t) + 120ms + var(--d)); }
}
@media (prefers-reduced-motion: reduce) { .burst { display: none; } }
@keyframes hitPop { 0% { transform: none; } 45% { transform: translateY(-3px) scale(1.06); } 100% { transform: none; } }
@keyframes bigWin { 0% { transform: scale(.8); opacity: .3; } 100% { transform: none; opacity: 1; } }
@keyframes bigLose { 0% { transform: translateY(-8px); opacity: .2; } 100% { transform: none; opacity: 1; } }
@keyframes fleck { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 70% { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 26px)) rotate(var(--rot)); } }
.result .elo-line { cursor: default; }

/* ---------- after a hand: the result as a ribbon, your chance and Elo, then every bid with Bluffy's view there ---------- */
/* One line a bid (arena.js endBidsHTML): a dot (yours gold, Bluffy's coral), the bid, a bar for how likely Bluffy was to
   make it there; tap one for Bluffy's options. Then Review and Share; Deal again is the bar below on a phone. */
.result.end { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 10px; width: 100%; max-width: 640px; align-self: center;
  padding: 0; background: none; border: 0; overflow: visible; text-align: left; }
.rbn { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 14px 9px; border-radius: var(--radius);
  background: var(--bot); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.rbn.you { background: var(--you); color: #14110a; }
.result.end .rbn .big { position: relative; color: inherit; font: 800 40px/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.result.end .rbn .why { font-size: 13px; font-weight: 600; margin-top: 3px; max-width: none; }
.res-facts { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; font-size: 13px; color: var(--soft); }
.res-facts .wc-line { font-size: 13px; } .res-facts .wc-line b { font: 800 17px var(--font-display); }
.res-facts .dot { opacity: .6; }
.res-box { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); overflow-y: auto; }
.eb-list { display: flex; flex-direction: column; }
.eb { position: relative; }
.eb::before { content: ""; position: absolute; left: 5px; top: 15px; bottom: -15px; width: 2px; background: var(--line); }
.eb:last-child::before { display: none; }
.eb-row { width: 100%; display: grid; grid-template-columns: 12px minmax(0, 1fr) 128px 14px; column-gap: 8px; align-items: center; min-height: 30px;
  padding: 0; background: none; border: 0; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.eb-list.roomy .eb-row { min-height: 36px; } .eb-list.roomy .eb::before { top: 18px; bottom: -18px; }
.eb-list.dense .eb-row { min-height: 25px; } .eb-list.dense .eb::before { top: 12px; bottom: -12px; }
.eb-dot { width: 10px; height: 10px; border-radius: 50%; justify-self: center; position: relative; z-index: 1; }
.eb.you .eb-dot { background: var(--you); } .eb.bot .eb-dot { background: var(--bot); }
.eb-bid { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eb-bar { display: grid; grid-template-columns: 1fr 36px; gap: 6px; align-items: center; }
.eb-bar i { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--bot) calc(var(--p) * 100%), var(--line) 0); }
.eb.you .eb-bar i { background: linear-gradient(90deg, var(--you) calc(var(--p) * 100%), var(--line) 0); }
.eb-bar em { font-style: normal; font-size: 12.5px; color: var(--soft); text-align: right; font-variant-numeric: tabular-nums; }
.eb-chev { color: var(--soft); opacity: .7; transition: transform .15s; } .eb.open .eb-chev { transform: rotate(180deg); opacity: 1; }
.eb-open { margin: 0 0 6px 20px; padding: 6px 10px; border-radius: 10px; background: var(--btn-bg); border: 1px solid var(--line); }
.eb-open small { display: block; font-size: 11px; color: var(--soft); margin-bottom: 2px; }
.eb-open .lp-review-row { font-size: 13px; padding: 1px 0; }
.eb.you .eb-open .lp-review-row.chosen span { color: var(--you); }
.eb.you .eb-open .lp-review-row i { background: linear-gradient(90deg, var(--you) calc(var(--p) * 100%), var(--line) 0); }
.res-acts { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.res-acts > button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; margin: 0; font-size: 15px; font-weight: 700; border-radius: 12px; }
.res-acts .again { flex: 1.4; background: var(--you); color: #14110a; border: 0; font-weight: 800; }
.result.end .saved-note { text-align: center; font-size: 12.5px; color: var(--soft); }
/* a desktop: the result across the room and the side panel away; every bid with Bluffy's options beside it (.all;
   .snug, without their headings, when that doesn't quite fit); Deal again across the foot, Review and Share under it
   (.end-row: all three on one row, when it still doesn't fit) */
.lp-root.wide-end .main { grid-template-columns: minmax(0, 1fr); }
.lp-root.wide-end .side { display: none; }
.lp-root.wide-end .acts .minr, .lp-root.wide-end .acts .call { visibility: hidden; }
.lp-root.wide-end .result.end { max-width: 1160px; }
.eb-list.all .eb { display: grid; grid-template-columns: minmax(180px, 30%) minmax(0, 1fr); column-gap: 20px; align-items: center; }
.eb-list.all .eb::before { display: none; }
.eb-list.all .eb-row { grid-column: 1; cursor: default; }
.eb-list.all .eb-open { grid-column: 2; grid-row: 1; margin: 4px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; gap: 2px 18px; }
.eb-list.all .eb-open small { grid-column: 1 / -1; margin: 0; }
.eb-list.all .eb-open .lp-review-row { min-width: 0; grid-template-columns: minmax(0, 1fr) 36px 34px; gap: 6px; }
.eb-list.all .eb-open .lp-review-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eb-list.all.snug .eb-open { margin: 2px 0; padding: 3px 10px; } .eb-list.all.snug .eb-open small { display: none; }
.lp-root.wide-end .res-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; }
.lp-root.wide-end .res-acts .again { grid-column: 1 / -1; order: -1; min-height: 64px; font-size: 20px; }
.lp-root.wide-end .res-acts .tbtn { min-height: 54px; font-size: 16px; }
.lp-root.wide-end .res-acts.one .tbtn { grid-column: 1 / -1; }
.lp-root.wide-end.end-row .res-acts { grid-template-columns: 1fr 1fr 1.4fr; } .lp-root.wide-end.end-row .res-acts.one { grid-template-columns: 1fr 1.4fr; }
.lp-root.wide-end.end-row .res-acts > button { grid-column: auto; order: 0; min-height: 50px; }
.lp-root.wide-end.end-row .eb-list.dense:not(.all) .eb-row { min-height: 23px; }
/* portrait phones: the cards in one row each (the Huge game's 2×2 blocks), the bids in the list rather than the ticker,
   and the ribbon edge to edge */
@media (max-width: 700px) {
  .lp-root.ended .tickrow { display: none; }
  .lp-root.ended .hands { padding-bottom: 12px; }
  .lp-root.ended .hands.n4 { --cw: 36px; gap: 22px; }
  .lp-root.ended .hands.n4 .cards { display: flex; gap: 5px; }
  .lp-root.ended .hands.n4 .card { border-radius: 6px; }
  .lp-root.ended .hands.n4 .vs { display: none; }
  .lp-root.ended .hands.n5 { --cw: 34px; gap: 18px; }
  .lp-root.ended .hands.n5 .cards, .lp-root.ended .hands.n5 .cards:has(> .card:nth-child(4)) { display: flex; gap: 4px; }
  .lp-root.ended .hands.n5 .card { border-radius: 6px; }
  .lp-root.ended .hands.n5 .vs { display: none; }
  .result.end { gap: 8px; }
  .result.end .rbn { margin: 0 -12px; border-radius: 0; }
  .result.end .big { font-size: 36px; }
}
/* a phone where the end still doesn't fit with the options folded: the ribbon, cards and rows a little smaller (endFit) */
.lp-root.end-tight .result.end { gap: 6px; }
.lp-root.end-tight .result.end .big { font-size: 28px; }
.lp-root.end-tight .result.end .rbn { padding-top: 6px; padding-bottom: 7px; }
.lp-root.end-tight .result.end .rbn .why { font-size: 12px; margin-top: 2px; }
.lp-root.end-tight .res-facts { font-size: 12px; }
.lp-root.end-tight .hands { padding-bottom: 6px; }
.lp-root.end-tight .hands.n2 { --cw: 40px; } .lp-root.end-tight .hands.n3 { --cw: 34px; } .lp-root.end-tight .hands.n4 { --cw: 31px; } .lp-root.end-tight .hands.n5 { --cw: 29px; }
.lp-root.end-tight .eb-list .eb-row { min-height: 27px; } .lp-root.end-tight .eb-list .eb::before { top: 13px; bottom: -13px; }
.lp-root.end-tight .eb-list.dense .eb-row { min-height: 22px; } .lp-root.end-tight .eb-list.dense .eb::before { top: 11px; bottom: -11px; }
.lp-root.end-tight .res-box { padding: 6px 10px 8px; gap: 5px; }
.lp-root.end-tight .res-acts .tbtn { min-height: 36px; }
.lp-root.end-tight .result.end .saved-note { display: none; }
/* the moment it ends: the hidden cards turn over where they were, then every card slides to its place (--dx, --dy, --s:
   from there to here, arena.js endMoves) as the ribbon stamps in, and the rest comes in one by one */
@media (prefers-reduced-motion: no-preference) {
  .hands.fx .card.mv, .hands.fx .seat.bot .card.mv { position: relative; z-index: 2; animation: cardMove .95s both; animation-delay: var(--fx-t); }
  .hands.fx .card.mv.flip, .hands.fx .seat.bot .card.mv.flip { animation-name: cardFlip; }
  .hands.fx .card.flip::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--card-back); border: var(--card-back-border);
    box-sizing: border-box; animation: backOff .95s step-end both; animation-delay: var(--fx-t); }
  .result.end.fx .big { animation: none; }
  .result.end.fx .rbn { animation: rbnIn .45s cubic-bezier(.2, .9, .3, 1.25) both; animation-delay: calc(var(--fx-t) + 430ms); }
  .result.end.fx .res-box { animation: fadeUp .3s ease-out both; animation-delay: calc(var(--fx-t) + 520ms); }
  .result.end.fx [style*="--i"] { animation: fadeUp .3s ease-out both; animation-delay: calc(var(--fx-t) + 600ms + var(--i) * 55ms); }
  .result.end.fx .burst i { animation-delay: calc(var(--fx-t) + 560ms + var(--d)); }
}
@keyframes cardMove { 0%, 45% { transform: translate(var(--dx), var(--dy)) scale(var(--s)); animation-timing-function: cubic-bezier(.5, 0, .2, 1); } 100% { transform: none; } }
@keyframes cardFlip {
  0% { transform: translate(var(--dx), var(--dy)) scale(var(--s)); outline-width: 0; animation-timing-function: ease-in; }
  21% { transform: translate(var(--dx), var(--dy)) scale(var(--s)) scaleX(0); outline-width: 0; animation-timing-function: ease-out; }
  42%, 45% { transform: translate(var(--dx), var(--dy)) scale(var(--s)); outline-width: 3px; animation-timing-function: cubic-bezier(.5, 0, .2, 1); }
  100% { transform: none; outline-width: 3px; } }
@keyframes backOff { 0% { opacity: 1; } 21%, 100% { opacity: 0; } }
@keyframes rbnIn { from { opacity: 0; transform: scale(1.25); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

/* ---------- pop-ups: achievements, and who won the Daily or the Weekly (outside the page, over everything) ---------- */
/* One look for all of them: the icon in a gold circle, a title and a line, a medal podium for a winner. The page's
   colours live on its root, which this sits outside, so it has its own. */
.ach-pop { --ink: #f3efe3; --soft: #9fc1ae; --line: rgba(255, 255, 255, .12); --you: #f5c542; --bot: #ff6f5b;
  position: fixed; z-index: 120; top: 14px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: stretch;
  width: min(420px, calc(100vw - 32px)); box-sizing: border-box; padding: 10px 12px; border-radius: 14px; text-align: left; overflow: hidden;
  background: #10271e; color: var(--ink); border: 1.5px solid var(--you); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); font: inherit; cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif; animation: achIn .35s cubic-bezier(.3, 1.4, .5, 1) both; transition: opacity .25s, transform .25s, translate .25s ease-out;
  touch-action: none; user-select: none; -webkit-user-select: none; }
.ach-pop.out { opacity: 0; transform: translate(-50%, -12px); }
.ach-pop.drag { transition: none; cursor: grabbing; }   /* (being swiped: it follows the finger) */
.ach-pop::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-110%);
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .18) 50%, transparent 65%); animation: achShine .8s ease-in-out .6s both; }
.ntf-row { display: flex; align-items: center; gap: 10px; }
.ntf-ic { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(245, 197, 66, .22); color: var(--you);
  font-size: 21px; line-height: 1; animation: achIc .45s cubic-bezier(.3, 1.5, .5, 1) .3s both; }
.ntf-ic svg { width: 22px; height: 22px; }
.ach-pop .ach-txt { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ach-pop b { font-size: 15px; line-height: 1.22; } .ach-pop em { font-style: normal; font-size: 12.5px; line-height: 1.3; color: var(--soft); }
.ntf-chips { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 8px; }
.ntf-chips span { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(245, 197, 66, .14); color: var(--you); }
.ntf-line { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--soft); }
.ntf-line svg { width: 14px; height: 14px; flex: none; color: var(--you); } .ntf-line b { font-size: inherit; color: var(--you); }
.ntf-pod { flex: none; align-self: flex-end; display: flex; align-items: flex-end; gap: 3px; }
.ntf-pod .pd { width: 38px; display: flex; flex-direction: column; align-items: center; gap: 2px; --m: #f5c542; }
.ntf-pod .pd.p1 { --m: #c9d3d9; } .ntf-pod .pd.p2 { --m: #d58f55; }
.ntf-pod .dl-av { width: 26px; height: 26px; box-shadow: 0 0 0 2px var(--m); }
.ntf-pod .dl-av .av-letter { font-size: 14px; } .ntf-pod .dl-av.me { background: rgba(245, 197, 66, .25); } .ntf-pod .dl-av.me .av-letter { color: var(--you); }
.ntf-pod small { max-width: 38px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; font-weight: 700; color: var(--soft); }
.ntf-pod .pd.p0 small { color: var(--ink); }
.ntf-pod i { display: flex; justify-content: center; width: 100%; border-radius: 5px 5px 0 0; font: 800 10.5px/14px 'Inter', system-ui, sans-serif; font-style: normal;
  color: #14110a; background: linear-gradient(180deg, var(--m), color-mix(in srgb, var(--m) 88%, #000)); transform-origin: bottom; animation: podUp .3s ease-out both; }
.ntf-pod .pd.p0 i { height: 28px; animation-delay: .75s; } .ntf-pod .pd.p1 i { height: 20px; animation-delay: .6s; } .ntf-pod .pd.p2 i { height: 15px; animation-delay: .45s; }
@keyframes achIn { from { opacity: 0; transform: translate(-50%, -16px); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes achShine { to { transform: translateX(110%); } }
@keyframes achIc { from { transform: scale(0) rotate(-20deg); } 60% { transform: scale(1.2) rotate(8deg); } }
@keyframes podUp { from { transform: scaleY(0); } }
@media (prefers-reduced-motion: reduce) { .ach-pop, .ach-pop::after, .ntf-ic, .ntf-pod i { animation: none; } .ach-pop::after { display: none; } }

/* ---------- achievements on a profile ---------- */
.ach-sec .acct-h small { font: 600 12px/1 var(--font-ui); letter-spacing: 0; text-transform: none; color: var(--soft); margin-left: 6px; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; text-align: left; }
.ach { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.ach.done { border-color: rgba(245, 197, 66, .55); background: rgba(245, 197, 66, .06); }
.ach .ach-ic { font-size: 22px; line-height: 1; width: 28px; text-align: center; flex: none; }
.ach:not(.done) .ach-ic { filter: grayscale(1); opacity: .45; }
.ach .ach-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ach b { font-size: 14px; } .ach:not(.done) b { color: var(--soft); }
.ach small { font-size: 12px; color: var(--soft); line-height: 1.3; }
.ach-bar { display: block; height: 4px; border-radius: 2px; margin: 3px 0 2px; width: 100%; max-width: 140px;
  background: linear-gradient(90deg, var(--you) calc(var(--f) * 100%), rgba(255, 255, 255, .12) 0); }
@media (max-width: 420px) { .ach-grid { grid-template-columns: 1fr 1fr; } .ach { padding: 8px 9px; gap: 8px; } .ach .ach-ic { font-size: 19px; width: 22px; } }

/* ---------- menu cards: yesterday's daily, notifications, install ---------- */
.rq-x { width: 28px; height: 28px; border-radius: 50%; border: 0; background: none; color: var(--soft); font-size: 20px; line-height: 1; cursor: pointer; flex: none; padding: 0; }
.rq-x:hover { color: var(--ink); background: rgba(255, 255, 255, .08); }
.nt-ic { color: var(--you); background: rgba(245, 197, 66, .12); }
.nt-ic svg { width: 21px; height: 21px; }
.nt-card.sum { margin: 14px 0 0; text-align: left; }
.nt-card .dl-txt b { font-weight: 500; font-size: 14px; } .nt-card .dl-txt b b { font-weight: 700; }
.nt-card .dl-txt > b, .rv-card .dl-txt > b { white-space: normal; overflow: visible; line-height: 1.35; }   /* these say a sentence: let it wrap */
.nt-prof { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; }
.nt-prof .mrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: 360px; }
.nt-prof .mrow label { font-size: 14px; }
.nt-prof .modal-note { margin: 0; }

/* ---------- a shared hand (#hand=…) ---------- */
.rp-card { text-align: left; }
.rp-card .sum-kicker { display: block; text-align: center; }
.rp-title { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; margin: 10px 0 14px; font: 800 26px/1.1 var(--font-display); }
.rp-title i { font-style: normal; color: var(--soft); font-size: 18px; }
.rp-title .dl-av { width: 34px; height: 34px; }
.rp-locked { text-align: center; }
.rp-hands { margin: 0 auto 12px; width: max-content; max-width: 100%; }
.rp-hands small, .rp-bids small { width: auto; min-width: 70px; text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.rp-hands em { font-style: normal; font-size: 11px; color: var(--soft); }
.rp-bids { max-width: 360px; margin: 0 auto; }
.rp-bids li { transition: opacity .2s; border-radius: 6px; padding: 3px 6px; }
.rp-bids li.later { opacity: .22; }
.rp-bids li.now { background: rgba(255, 255, 255, .07); }
.rp-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 6px; }
.rp-ctl .tbtn { min-width: 40px; padding: 7px 12px; }
.rp-ctl .tbtn:disabled { opacity: .35; }
.rp-at { min-width: 84px; text-align: center; font-size: 13px; color: var(--soft); }
.rp-why { margin: 10px auto 0; max-width: 360px; }
.rp-why .lp-review-move { width: 100%; box-sizing: border-box; }
.rp-why.you .lp-review-row i { background: linear-gradient(90deg, var(--you) calc(var(--p) * 100%), var(--line) 0); }
.rp-why.you .lp-review-row.chosen span { color: var(--you); }
.rp-end { text-align: center; margin: 14px 0 4px; }
.rp-end > b { font: 800 30px/1 var(--font-display); } .rp-end > b.you { color: var(--you); } .rp-end > b.bot { color: var(--bot); }
.rp-card .sum-acts { justify-content: center; }

/* ---------- how everyone played a daily (a hand opened on its score page) ---------- */
.tr-hint { margin: -4px 0 10px; font-size: 13px; color: var(--soft); }
.tr { padding: 12px 14px 14px 42px; border-top: 1px dashed var(--line); background: rgba(0, 0, 0, .18); text-align: left; }
.tr-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 8px; }
.tr-head b { font: 800 11px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.tr-head small { font-size: 12px; color: var(--soft); }
.tr-head .linkbtn { margin-left: auto; font-size: 13px; }
.tr ul { list-style: none; margin: 0; padding: 0; }
.tr li ul { margin-left: 10px; padding-left: 12px; border-left: 1px solid var(--line); }
.tr li { position: relative; }
.tr-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 4px 0 4px 14px; font-size: 13.5px; position: relative; }
.tr-row::before { content: ""; position: absolute; left: 1px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--you); }
.tr-bot > .tr-row::before { background: var(--bot); }
.tr-who { font: 800 10px/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--bot); }
.tr-bot > .tr-row .tr-c { color: #ffd2ca; }
.tr-n { font-size: 12px; color: var(--soft); padding: 1px 7px; border-radius: 6px;
  background: linear-gradient(90deg, rgba(245, 197, 66, .22) calc(var(--f) * 100%), rgba(255, 255, 255, .05) 0); }
.tr-n.none { background: none; padding: 0; font-style: italic; }
.tr-pk { font-size: 11.5px; color: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }
.tr-res { font: 800 10.5px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; padding: 3px 6px; border-radius: 5px; }
.tr-res.won { color: var(--you); border: 1px solid rgba(245, 197, 66, .5); } .tr-res.lost { color: var(--bot); border: 1px solid rgba(255, 111, 91, .5); }
.tr-me { font: 800 10.5px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: #12291f; background: var(--you); padding: 3px 6px; border-radius: 5px; }
.tr li.mine > .tr-row .tr-c { font-weight: 700; color: var(--ink); }
.tr li.mine > .tr-row::before { box-shadow: 0 0 0 3px rgba(245, 197, 66, .3); }
.tr li.mine > ul { border-left-color: rgba(245, 197, 66, .55); }
.tr-ghost .tr-row { opacity: .6; } .tr-ghost .tr-row::before { background: none; border: 1.5px dashed var(--you); box-sizing: border-box; }
@media (max-width: 560px) { .tr { padding: 12px 12px 14px; } .tr li ul { margin-left: 6px; padding-left: 9px; } }

/* ---------- the banner: your move in a duel (or an invite, a friend request) while you're elsewhere in Bluffy ---------- */
.bn { --ink: #f3efe3; --soft: #9fc1ae; --line: rgba(255,255,255,.12); --you: #f5c542; --bot: #ff6f5b;
  --font-ui: 'Inter', system-ui, sans-serif; --font-display: 'Barlow Condensed', sans-serif;
  position: fixed; z-index: 115; top: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center;
  width: max-content; max-width: calc(100vw - 32px); box-sizing: border-box; border-radius: 14px;
  background: #10271e; color: var(--ink); border: 1px solid rgba(245, 197, 66, .7); box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  font-family: var(--font-ui); animation: achIn .35s cubic-bezier(.3, 1.4, .5, 1) both; transition: opacity .25s, transform .25s; }
.bn.out { opacity: 0; transform: translate(-50%, -12px); }
.bn-go { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 6px 8px 10px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.bn .dl-av { width: 34px; height: 34px; }
.bn-txt { display: flex; flex-direction: column; min-width: 0; }
.bn-txt > b { font-weight: 600; font-size: 14.5px; }
.bn-txt small { color: var(--soft); font-size: 12px; }
.bn-cd { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.bn-cd.low { color: var(--bot); }
.bn-go .acct-btn { padding: 6px 12px; font-size: 13px; margin-left: 6px; flex: none; }
.bn-x { align-self: stretch; padding: 0 12px 0 6px; background: none; border: 0; color: var(--soft); font-size: 20px; line-height: 1; cursor: pointer; }
.bn-x:hover { color: var(--ink); }
@media (max-width: 420px) { .bn { width: calc(100vw - 32px); } .bn-go { flex: 1; } .bn-go .acct-btn { margin-left: auto; } .bn-set { display: none; } }
@media (prefers-reduced-motion: reduce) { .bn { animation: none; } }

/* Bluffy among the players: its own look on the boards (no place), a link to its profile wherever it's named */
table.lb tr.bot td { background: rgba(255, 111, 91, .07); }
table.lb tr.bot .lb-name { color: #ffd2ca; }
.lb-tag { display: inline-block; vertical-align: middle; margin-left: 7px; padding: 1px 6px 2px; border-radius: 999px; border: 1px solid rgba(255, 111, 91, .55);
  color: var(--bot); font: 800 10px/1.3 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }
.sum-bot { max-width: 540px; margin: 10px auto 0; color: var(--soft); font-size: 14px; }
.sum-bot b { color: var(--ink); }
.dl-avbtn { all: unset; display: block; width: 100%; height: 100%; cursor: pointer; }
.dl-name { all: unset; cursor: pointer; }
.dl-name:hover, .dl-name:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.dl-avbtn:focus-visible, .dl-name:focus-visible { outline: 2px solid var(--you); outline-offset: 2px; }
.pf-about { color: var(--soft); font-size: 14px; margin-top: 4px; line-height: 1.4; }
.bot-prof .prof-head .av-big { font-size: 32px; background: var(--bot); box-shadow: 0 0 0 2px var(--bot); }

/* privacy: the private / hidden tag (plain, not Bluffy's colour), hiding a daily on its score page, a private profile */
.lb-tag.soft { border-color: rgba(255, 255, 255, .22); color: var(--soft); }
.pv-prof { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; }
.pv-prof .modal-note { margin: 0; }
.sum-hide { display: block; margin-top: 6px; color: var(--soft); }
.pf-private { margin: 14px 0 4px; font-size: 15px; }

/* ---------- pop-ups: the newcomer welcome and the other games ---------- */
/* A card over the dimmed, blurred page. It opens with the card rising in, the art dealt onto it and the words fading up;
   then the sparkles twinkle, the art's glow breathes and a sheen runs over the button now and then. Every delay adds
   --t (minus how long it's been open, from openFor), so a redraw carries on where it got to. Taps outside do nothing. */
.pop-back { position: fixed; inset: 0; z-index: 55; display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box;
  background: rgba(2, 12, 8, .74); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); overscroll-behavior: contain;
  animation: pop-fade .3s ease-out both; animation-delay: var(--t, 0ms); }
.pop { position: relative; width: 100%; max-width: 380px; max-height: 100%; overflow-y: auto; box-sizing: border-box; padding: 26px 22px 18px; border-radius: 22px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(245, 197, 66, .16), transparent 60%), linear-gradient(180deg, #164a36, #0d3325);
  border: 1px solid rgba(245, 197, 66, .45); box-shadow: 0 0 40px rgba(245, 197, 66, .18), 0 24px 50px rgba(0, 0, 0, .5);
  animation: pop-rise .45s cubic-bezier(.2, .9, .3, 1.15) both; animation-delay: calc(.05s + var(--t, 0ms)); }
.pop-x { position: absolute; top: 12px; right: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .08); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.pop-art { position: relative; height: 140px; margin: 4px 0 14px; }
.pop-spark { position: absolute; z-index: 3; font-style: normal; color: var(--you); text-shadow: 0 0 10px rgba(245, 197, 66, .6); animation: pop-tw 2.4s ease-in-out infinite backwards; }
.pop-spark.s0 { left: 20%; top: 0; font-size: 18px; animation-delay: calc(.9s + var(--t, 0ms)); }
.pop-spark.s1 { right: 20%; top: -6px; font-size: 13px; animation-delay: calc(1.5s + var(--t, 0ms)); }
.pop-spark.s2 { right: 14%; top: 60px; font-size: 10px; animation-delay: calc(2.1s + var(--t, 0ms)); }
.pop h2 { font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1.02; letter-spacing: .01em; margin: 0 0 8px; }
.pop h2 em, .pop h2 span { color: var(--you); font-style: normal; }
.pop p { margin: 0 0 18px; color: var(--soft); font-size: 15px; line-height: 1.45; }
.pop h2, .pop p, .pop-go, .pop-no { animation: pop-up .4s ease-out backwards; }
.pop h2 { animation-delay: calc(.3s + var(--t, 0ms)); }
.pop p { animation-delay: calc(.36s + var(--t, 0ms)); }
.pop-go { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 15px 20px; border-radius: 14px;
  font-size: 17px; font-weight: 800; box-shadow: 0 5px 0 #a87411, 0 12px 24px rgba(0, 0, 0, .3); animation-delay: calc(.42s + var(--t, 0ms)); }
.pop-go span { font-size: 24px; line-height: 0; font-weight: 400; }
.pop-go::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: pop-sheen 4.5s ease-in-out infinite; animation-delay: calc(1.4s + var(--t, 0ms)); }
.pop-no { margin-top: 14px; color: var(--soft); font-size: 14px; animation-delay: calc(.48s + var(--t, 0ms)); }

/* the welcome's art: the app icon, with the four suits fanned behind it (the inner two in front of the outer two) */
.wl-card { position: absolute; top: 22px; left: 50%; width: 70px; height: 98px; margin-left: -35px; border-radius: 10px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; font-size: 30px; color: rgba(159, 193, 174, .6);
  background: linear-gradient(160deg, #1d5a42, #0f3a2a); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
  animation: pop-deal .45s cubic-bezier(.2, .8, .3, 1.15) backwards; }
.wl-card.c0 { transform: translateX(-112px) translateY(14px) rotate(-22deg); animation-delay: calc(.62s + var(--t, 0ms)); }
.wl-card.c1 { transform: translateX(-72px) rotate(-11deg); z-index: 1; animation-delay: calc(.5s + var(--t, 0ms)); }
.wl-card.c2 { transform: translateX(72px) rotate(11deg); z-index: 1; animation-delay: calc(.56s + var(--t, 0ms)); }
.wl-card.c3 { transform: translateX(112px) translateY(14px) rotate(22deg); animation-delay: calc(.68s + var(--t, 0ms)); }
.wl-icon { position: absolute; left: 50%; top: 4px; z-index: 2; width: 124px; height: 124px; margin-left: -62px; border-radius: 28px;
  box-shadow: 0 0 0 1px rgba(245, 197, 66, .4), 0 0 34px rgba(245, 197, 66, .3), 0 14px 30px rgba(0, 0, 0, .45);
  animation: pop-drop .5s cubic-bezier(.2, .9, .3, 1.25) backwards, pop-glow 2.8s ease-in-out infinite;
  animation-delay: calc(.2s + var(--t, 0ms)), calc(1.1s + var(--t, 0ms)); }

/* the other games' art: a card for each, with its number of claims; the Big game's in front, lit */
.gp-card { position: absolute; left: 50%; top: 18px; width: 74px; height: 102px; margin-left: -37px; border-radius: 11px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #1d5a42, #0f3a2a); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
  animation: pop-deal .45s cubic-bezier(.2, .8, .3, 1.15) backwards; }
.gp-card b { font: 800 34px/1 var(--font-display); color: rgba(243, 239, 227, .75); }
.gp-card small { font: 700 10px/1.2 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: rgba(159, 193, 174, .8); margin-top: 4px; }
.gp-card.c0 { transform: translateX(-80px) translateY(10px) rotate(-12deg); animation-delay: calc(.5s + var(--t, 0ms)); }
.gp-card.c2 { transform: translateX(80px) translateY(10px) rotate(12deg); animation-delay: calc(.58s + var(--t, 0ms)); }
.gp-card.c1 { top: 2px; z-index: 2; width: 86px; height: 118px; margin-left: -43px; background: #fbf8ef; border-color: transparent;
  box-shadow: 0 0 0 2px var(--you), 0 0 30px rgba(245, 197, 66, .4), 0 12px 24px rgba(0, 0, 0, .4);
  animation: pop-drop .5s cubic-bezier(.2, .9, .3, 1.25) backwards, pop-glow-card 2.8s ease-in-out infinite;
  animation-delay: calc(.2s + var(--t, 0ms)), calc(1.1s + var(--t, 0ms)); }
.gp-card.c1 b { color: #14261d; font-size: 44px; } .gp-card.c1 small { color: #94700c; }

@keyframes pop-fade { from { opacity: 0; } }
@keyframes pop-rise { from { opacity: 0; transform: translateY(24px) scale(.92); } }
@keyframes pop-drop { from { opacity: 0; transform: translateY(-18px) scale(.55) rotate(-10deg); } }
@keyframes pop-deal { from { opacity: 0; transform: translateY(18px) scale(.7); } }
@keyframes pop-up { from { opacity: 0; transform: translateY(8px); } }
@keyframes pop-tw { 0%, 100% { opacity: 0; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes pop-glow { 0%, 100% { box-shadow: 0 0 0 1px rgba(245, 197, 66, .4), 0 0 34px rgba(245, 197, 66, .3), 0 14px 30px rgba(0, 0, 0, .45); }
  50% { box-shadow: 0 0 0 1px rgba(245, 197, 66, .6), 0 0 54px rgba(245, 197, 66, .55), 0 14px 30px rgba(0, 0, 0, .45); } }
@keyframes pop-glow-card { 0%, 100% { box-shadow: 0 0 0 2px #f5c542, 0 0 30px rgba(245, 197, 66, .4), 0 12px 24px rgba(0, 0, 0, .4); }
  50% { box-shadow: 0 0 0 2px #f5c542, 0 0 52px rgba(245, 197, 66, .65), 0 12px 24px rgba(0, 0, 0, .4); } }
@keyframes pop-sheen { 0% { left: -60%; } 30%, 100% { left: 130%; } }

/* ---------- the game picker: a tile for each game, with a hand of its cards ---------- */
.lp-modal-card.gm { width: min(480px, 92vw); overflow-y: auto; }
.gm-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.gm-tile { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px 12px 10px; border-radius: 16px; text-align: left; cursor: pointer;
  font: inherit; color: var(--ink); background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid var(--line);
  animation: pop-up .4s ease-out backwards; animation-delay: calc(.06s * var(--g) + var(--t, 0ms)); transition: border-color .15s, transform .15s; }
.gm-tile:hover { border-color: rgba(245, 197, 66, .6); transform: translateY(-1px); }
.gm-tile.current { border-color: var(--you); background: radial-gradient(ellipse at 15% 50%, rgba(245, 197, 66, .14), transparent 70%), linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); }
.gm-art { position: relative; flex: none; width: 92px; height: 72px; }
.gm-c { position: absolute; left: 50%; top: 10px; width: 34px; height: 48px; margin-left: -17px; border-radius: 6px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; font: 800 22px/1 var(--font-display); color: #14261d; background: #fbf8ef;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 6px 12px rgba(0, 0, 0, .35); transform-origin: 50% 130%;
  transform: translateX(calc(var(--k) * var(--step, 13px))) rotate(calc(var(--k) * 9deg));
  animation: pop-deal .4s cubic-bezier(.2, .8, .3, 1.15) backwards; animation-delay: calc(.15s + .06s * var(--g) + .05s * var(--i) + var(--t, 0ms)); }
.gm-tile.current .gm-c { box-shadow: 0 0 0 2px var(--you), 0 6px 12px rgba(0, 0, 0, .35); }
.gm-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gm-name { font: 800 22px/1.05 var(--font-display); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gm-tag { font: 800 10px/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border-radius: 999px; background: rgba(245, 197, 66, .18); color: var(--you); }
.gm-tag.new { background: var(--bot); color: #fff; }
.gm-desc { color: var(--soft); font-size: 13px; line-height: 1.4; }
.gm-desc b { color: var(--ink); }
.gm-n { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 48px; }
.gm-n b { font: 800 30px/1 var(--font-display); color: var(--you); }
.gm-n small { font: 700 10px/1.2 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.lp-modal-card.gm .modal-note { margin-top: 14px; }
/* a game with more than one Bluffy: its tile, and a strip under it to pick which */
.gm-group .gm-tile { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.gm-group .gm-tile:hover { transform: none; }
.gm-vers { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px;
  background: rgba(255, 255, 255, .03); animation: pop-up .4s ease-out backwards; animation-delay: calc(.06s * var(--g) + var(--t, 0ms)); }
.gm-group.current .gm-vers { border-color: var(--you); }
.gm-vlab { font: 800 11px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.gm-seg { flex: 1; }
.gm-seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; font-size: 14px; cursor: pointer; }
/* Play (or, with nothing new picked, a quiet Keep playing): under the tiles, kept in view while the sheet scrolls */
.gm-play { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; min-height: 48px; font-size: 16px;
  box-shadow: 0 -10px 18px var(--modal-bg); transition: background-color .15s, color .15s; }
.gm-play.keep { background: var(--modal-bg); color: var(--soft); box-shadow: inset 0 0 0 1px var(--line), 0 -10px 18px var(--modal-bg); }
.gm-play.keep:hover { color: var(--ink); }
.lp-modal-card.still .gm-tile { transition: none; }
.gm-vnew {font: 800 9px/1 var(--font-ui); font-style: normal; letter-spacing: .06em; text-transform: uppercase; padding: 3px 5px; border-radius: 999px; background: var(--bot); color: #fff; }
@media (max-width: 420px) { .gm-art { width: 78px; --step: 11px; } .gm-c { width: 30px; height: 42px; margin-left: -15px; font-size: 19px; } .gm-tile { gap: 10px; } }

/* ---------- the tutorial's pointing hand: taps what a step wants pressed ---------- */
/* .tut-point sits at the fingertip; the hand hangs below it pointing up, or (.down) above it pointing down */
.tut-point { position: fixed; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.tut-point[hidden] { display: none; }
.tut-hand { position: absolute; left: -19px; top: -2px; transform-origin: 19px 2px; overflow: visible; filter: drop-shadow(0 0 8px rgba(245, 197, 66, .55)) drop-shadow(0 6px 8px rgba(0, 0, 0, .45));
  --rot: 0deg; animation: tut-tap 1.4s ease-in-out infinite; }
.tut-point.down .tut-hand { --rot: 180deg; }
.tut-hand .o { fill: #14261d; stroke: #14261d; stroke-width: 5; stroke-linejoin: round; }
.tut-hand .f { fill: #fbf8ef; }
.tut-hand .k { fill: none; stroke: #14261d; stroke-width: 1.6; stroke-linecap: round; opacity: .5; }
.tut-ripple { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--you); box-sizing: border-box; opacity: 0;
  animation: tut-ripple 1.4s ease-out infinite; }
.tut-point.wave .tut-hand { animation: tut-wave .5s ease-in-out 2, tut-tap 1.4s ease-in-out 1s infinite; }
@keyframes tut-tap {
  0%, 100% { transform: rotate(var(--rot)) translateY(14px); }
  35% { transform: rotate(var(--rot)) translateY(0) scale(1); }
  45% { transform: rotate(var(--rot)) translateY(1px) scale(.9); }
  60% { transform: rotate(var(--rot)) translateY(0) scale(1); } }
@keyframes tut-ripple { 0%, 38% { opacity: 0; transform: scale(.3); } 45% { opacity: .9; } 80%, 100% { opacity: 0; transform: scale(1.3); } }
@keyframes tut-wave { 0%, 100% { transform: rotate(var(--rot)) translateY(8px); } 25% { transform: rotate(calc(var(--rot) - 14deg)) translateY(8px); } 75% { transform: rotate(calc(var(--rot) + 14deg)) translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  .pop-back, .pop-back *, .gm-tile, .gm-vers, .gm-c, .tut-game { animation: none !important; } .pop-go::after { display: none; }
  .tut-hand { animation: none; transform: rotate(var(--rot)) translateY(4px); } .tut-ripple { display: none; } }

/* ---------- your hands (#hands) and its tile on your profile ---------- */
.pf-tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .pf-tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
button.pf-tile { font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pf-tile.pf-hands span { color: var(--you); font-weight: 700; }
.hs-main { max-width: 620px; }
.hs-head { margin: 2px 0 12px; }
.hs-head h2 { margin: 0; font: 800 30px/1 var(--font-display); }
/* a face: everyone, a Bluffy (its version tagged), a friend */
.hs-av { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #2c5a47; color: #f3efe3; }
.hs-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hs-av .av-letter { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 50%; font: 800 18px/1 var(--font-display); }
.hs-av.all { background: rgba(255, 255, 255, .12); }
.hs-av sup { position: absolute; right: -6px; bottom: -3px; padding: 2px 4px; border-radius: 6px; background: var(--you); color: #10271e; font: 800 9.5px/1 var(--font-ui); }
/* the bars a day */
.hs-card { padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); margin: 0 0 10px; }
.hs-ch { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 8px; font-size: 12.5px; color: var(--soft); }
.hs-ch b { font: 800 12px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; }
.hb { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 3px; align-items: end; height: 90px; }
.hb-c { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.hb-c[disabled] { cursor: default; }
.hb-c em { font-style: normal; font-size: 9.5px; color: var(--soft); margin-bottom: 2px; white-space: nowrap; }
.hb-s { display: flex; flex-direction: column-reverse; width: 100%; gap: 1.5px; }
.hb-s i { display: block; width: 100%; border-radius: 2px; }
.hb-c small { font-size: 10px; color: var(--soft); height: 12px; margin-top: 4px; }
.hb-c.on .hb-s { box-shadow: 0 0 0 2px var(--ink); border-radius: 3px; } .hb-c.on em { color: var(--ink); font-weight: 700; }
.hb-nw { background: #f5c542; } .hb-old { background: #d9d2bd; } .hb-fr { background: #ff6f5b; }
.hb-k { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 11.5px; color: var(--soft); }
.hb-k span { display: flex; align-items: center; gap: 5px; } .hb-k i { width: 10px; height: 10px; border-radius: 2px; }
/* a phone: the headline; a bar of the three filters that sticks as you scroll, each day's head sticking under it */
.hs-main.hs-phone { padding-left: 14px; padding-right: 14px; }
.hs-hero { text-align: center; margin: 2px 0 14px; }
.hs-hero small { display: block; font: 800 11px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.hs-hero b { display: block; font: 800 56px/1 var(--font-display); margin: 6px 0 8px; }
.hs-hs { display: flex; justify-content: center; gap: 20px; color: var(--soft); font-size: 13px; }
.hs-hs em { font: 800 19px/1 var(--font-display); font-style: normal; color: var(--ink); margin-right: 3px; }
.hs-bar { position: sticky; top: 0; z-index: 6; display: flex; gap: 6px; margin: 0 -14px 12px; padding: 8px 14px; background: #0f3326; border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none; }
.hs-bar::-webkit-scrollbar { display: none; }
.hs-pill { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 36px; padding: 0 12px 0 14px; border-radius: 18px; border: 1px solid var(--line);
  background: var(--btn-bg); color: var(--ink); font: 700 14px var(--font-ui); white-space: nowrap; cursor: pointer; }
.hs-pill:has(.hs-av) { padding-left: 4px; }
.hs-pill .hs-av { width: 28px; height: 28px; } .hs-pill .hs-av .av-letter { font-size: 14px; } .hs-pill .hs-av sup { display: none; } .hs-pill .hs-av svg { width: 16px; height: 16px; }
.hs-pill.set { border-color: var(--you); color: var(--you); }
.hs-caret { width: 6px; height: 6px; border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: rotate(45deg); margin: -4px 2px 0 1px; }
.hs-phone .hs-dh { position: sticky; top: 53px; z-index: 5; background: #0f3326; margin: 0 -14px 6px; padding: 10px 16px 8px; }
.hs-phone .hs-chart { margin-bottom: 4px; }
/* the hands, under their days; more as you scroll */
.hs-dh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 14px 2px 6px; }
.hs-list .hs-dh:first-child { margin-top: 2px; }
.hs-dh b { font: 800 12px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); white-space: nowrap; }
.hs-dh span { font-size: 12.5px; color: var(--soft); text-align: right; }
.hs-dayx { display: flex; justify-content: center; margin: 0 0 8px; }
.hs-loading { display: flex; justify-content: center; gap: 6px; padding: 14px 0 10px; }
.hs-loading i { width: 6px; height: 6px; border-radius: 50%; background: var(--soft); animation: hsDot 1s infinite; }
.hs-loading i:nth-child(2) { animation-delay: .15s; } .hs-loading i:nth-child(3) { animation-delay: .3s; }
@keyframes hsDot { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }
/* a hand: the two hands stacked on the left; how it ended, then when, the game and against whom; won or lost and your
   chance on the right. A phone leaves out "Small ·" from Small · Exact and "vs Bluffy" against the first Bluffy. */
.hh { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 3px 12px; align-items: center; width: 100%; margin-bottom: 6px;
  padding: 8px 11px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--bot); color: inherit; text-align: left; font: inherit; cursor: pointer; }
.hh.won { border-left-color: var(--you); } .hh[disabled] { cursor: default; }
.hh.on { box-shadow: 0 0 0 2px var(--ink); }
.hh-c { grid-column: 1; grid-row: 1 / 3; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; white-space: nowrap; font: 800 16px/1 var(--font-display); letter-spacing: .06em; }
.hh-c b { color: var(--you); } .hh-c b.bot { color: var(--bot); } .hh-c i { display: none; }
.hh-e { grid-column: 2; grid-row: 1; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hh-m { grid-column: 2; grid-row: 2; font-size: 11.5px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hh-m > span + span::before { content: " · "; }
.hh-m .gl, .hh-m .k.plain { display: none; }
.hh-w { grid-column: 3; grid-row: 1; font-weight: 800; font-size: 13.5px; text-align: right; } .hh.won .hh-w { color: var(--you); } .hh.lost .hh-w { color: var(--bot); }
.hh-p { grid-column: 3; grid-row: 2; font-size: 12px; color: var(--soft); text-align: right; white-space: nowrap; }
.hh-p i { font-style: normal; font-size: 10.5px; opacity: .75; }
.hh .hh-go { display: none; }
/* the filters with their numbers: who, game, day (a desktop's left; a phone's sheets) */
.hs-row { display: grid; grid-template-columns: minmax(0, 1fr) 54px 48px 64px; align-items: center; gap: 8px; width: 100%; min-height: 42px; padding: 6px 8px; box-sizing: border-box;
  border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; font-variant-numeric: tabular-nums; cursor: pointer; }
.hs-row.hs-who { grid-template-columns: 28px minmax(0, 1fr) 54px 48px 64px; }
.hs-row span { text-align: right; font-size: 14px; }
.hs-row b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-row .hs-av { width: 28px; height: 28px; } .hs-row .hs-av .av-letter { font-size: 14px; } .hs-row .hs-av svg { width: 16px; height: 16px; }
.hs-row .hs-av sup { right: -7px; font-size: 8px; padding: 1px 3px; }
.hs-row.on { background: rgba(245, 197, 66, .1); border-radius: 8px; } .hs-row.on b { color: var(--you); }
.hs-row:not(.hs-rhead):not(.on):hover { background: rgba(255, 255, 255, .04); }
.hs-rhead { min-height: 0; padding-top: 0; padding-bottom: 6px; cursor: default; }
.hs-rhead b, .hs-rhead span { font-size: 12px; font-weight: 600; color: var(--soft); }
.hs-sheet .hs-row:last-child { border-bottom: 0; }
/* a desktop: the filters on the left, the hands, and on a wide screen the one you picked, as its Review */
.hs-tiles .pf-tile span { line-height: 1.25; }
.hs-lab { font: 800 11px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin: 18px 2px 8px; }
.hs-note { font-size: 12px; color: var(--soft); margin: 8px 2px 0; }
.hs-side .hs-chart { margin-top: 16px; }
@media (min-width: 900px) {
  .hs-main.hs-desk { max-width: 1180px; display: grid; grid-template-columns: 330px minmax(0, 1fr); column-gap: 26px; align-items: start; }
  .hs-main.hs-three { max-width: 1460px; grid-template-columns: 320px minmax(0, 1fr) 420px; }
  .hs-mid { min-width: 0; }
  .hs-pane { position: sticky; top: 14px; max-height: calc(100vh - 28px); overflow-y: auto; scrollbar-width: thin; }
  .hs-pane .hs-lab { margin-top: 2px; } .hs-pane .rp-card { margin: 0; }
  .hh { grid-template-columns: 70px minmax(0, 1fr) auto 10px; }
  .hh-m .gl { display: inline; } .hh-m .k.plain { display: inline; }
  .hh .hh-go { display: block; grid-column: 4; grid-row: 1 / 3; align-self: center; transform: rotate(-45deg); margin-top: 0; }
}

/* ---------- reactions in a duel with a friend, and Bluffy's few words ---------- */
/* the face (by Bids, or on the result line after a hand) and its tray of six */
.rx-wrap { position: relative; display: inline-flex; }
.rx-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 30px; padding: 0; border-radius: 9px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06); color: var(--ink); cursor: pointer; }
.rx-btn.on { background: rgba(245, 197, 66, .2); color: var(--you); border-color: var(--you); }
.rx-tray { position: absolute; z-index: 40; right: 0; display: flex; gap: 4px; padding: 6px; border-radius: 16px; background: #10271e; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); animation: rxTray .16s ease-out both; }
.rx-wrap.mid .rx-tray { bottom: calc(100% + 8px); transform-origin: 90% 100%; }
.rx-wrap.end .rx-tray { top: calc(100% + 8px); transform-origin: 90% 0; }
.rx-e { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 25px; line-height: 1; cursor: pointer; }
.rx-e:hover { background: rgba(255, 255, 255, .14); }
.res-facts { position: relative; z-index: 5; }   /* (its tray opens over the bids below) */
.rx-wrap.end { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
/* mid-hand: over the cards (theirs big, with a burst; yours smaller) */
.seat { position: relative; }
.rx-x { position: absolute; z-index: 25; left: 50%; top: calc(50% + 8px); width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 20px; background: #fbf8ef;
  font-size: 56px; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); pointer-events: none;
  animation: rxPop 3s linear var(--rx-t, 0ms) both; }
.rx-x.you { width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 15px; font-size: 36px; }
/* after a hand: a small bubble by the name, off the cards */
.rx-at { position: relative; display: inline-block; width: 0; height: 0; vertical-align: middle; }
.rx-bub { position: absolute; z-index: 25; left: 10px; top: -22px; width: 34px; height: 34px; border-radius: 50%; background: #fbf8ef; font-size: 21px; line-height: 1;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); pointer-events: none; animation: rxPop 3s linear var(--rx-t, 0ms) both; }
.rx-bub::after { content: ""; position: absolute; left: -3px; top: 50%; width: 10px; height: 10px; margin-top: -5px; background: #fbf8ef; transform: rotate(45deg); border-radius: 2px; z-index: -1; }
/* the burst: quick, uneven */
.rx-ks { position: absolute; left: 50%; top: 50%; width: 0; height: 0; --r: 72px; }
.rx-bub .rx-ks { --r: 34px; }
.rx-k { position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); margin: calc(var(--s) / -2); border-radius: 50%; background: var(--c);
  animation: rxK .45s linear calc(var(--rx-t, 0ms) + 120ms) both; }
.rx-bub .rx-k { width: calc(var(--s) * .8); height: calc(var(--s) * .8); }
/* Bluffy's words, by its name: after its cards have turned over */
.bs-say { position: absolute; z-index: 25; left: 12px; top: -22px; display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 16px; background: #fbf8ef;
  color: #1b2a22; font: 700 13px/1.1 var(--font-ui); letter-spacing: 0; text-transform: none; white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  transform-origin: 0 50%; pointer-events: none; animation: bsSay 4.5s linear var(--rx-t, 0ms) both; }
.bs-say .em { font-size: 20px; line-height: 1; }
.bs-say::after { content: ""; position: absolute; left: -4px; top: 50%; width: 10px; height: 10px; margin-top: -5px; background: #fbf8ef; transform: rotate(45deg); border-radius: 2px; }
/* (no room after the name: a little smaller; then just before the name, its tail pointing at it) */
.bs-say.tight { gap: 5px; padding: 4px 8px 4px 5px; font-size: 12px; } .bs-say.tight .em { font-size: 17px; }
.bs-say.before { transform-origin: 100% 50%; }
.bs-say.before::after { left: auto; right: -4px; }
@keyframes rxTray { from { opacity: 0; transform: scale(.7); } }
@keyframes rxPop { 0% { opacity: 0; transform: scale(.1); } 7% { opacity: 1; transform: scale(1.25); } 12% { transform: scale(.95); } 16%, 86% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.6); } }
@keyframes rxK { 0% { opacity: 0; transform: none; } 2% { opacity: 1; transform: none; }
  27% { opacity: 1; transform: translate(calc(var(--x) * var(--r) * .6), calc(var(--y) * var(--r) * .6)); }
  67% { opacity: .9; transform: translate(calc(var(--x) * var(--r) * .92), calc(var(--y) * var(--r) * .92)); }
  100% { opacity: 0; transform: translate(calc(var(--x) * var(--r)), calc(var(--y) * var(--r))) scale(.4); } }
@keyframes bsSay { 0%, 20% { opacity: 0; transform: translateY(8px) scale(.6); } 26% { opacity: 1; transform: scale(1.08); } 30%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .rx-x, .rx-bub, .bs-say, .rx-tray { animation: none; } .rx-ks { display: none; } }

/* ---------- Exact (Small with Exact): its row on the board, its switch in the picker, the first-time sheet ---------- */
/* the row, under two pair: solid yellow, black text (B1) */
.cg-panel.cg-ex { flex-basis: 100%; }
.cc.x-ex { display: flex; align-items: center; justify-content: center; gap: 8px; width: auto; min-width: 0; border: 0; background: #f5c542; color: #14110a;
  box-shadow: 0 3px 0 #b8901f; }
.cc.x-ex b { font: 800 calc(var(--cc-fsk) * 1.05) / 1 var(--cc-font); letter-spacing: .03em; }
.cc.x-ex small { font: 700 13px/1 var(--font-ui); letter-spacing: 0; color: #14110a; white-space: nowrap; }
.cc.x-ex .cc-o { color: #14110a; opacity: .75; }
.cc.x-ex.ok:hover { background: #ffd457; }
.cc.x-ex.dead { background: rgba(245, 197, 66, .18); color: rgba(243, 239, 227, .55); box-shadow: none; }
.cc.x-ex.dead small { color: inherit; }
.cc.x-ex.armed { box-shadow: 0 0 0 3px #10271e, 0 0 0 5px #f5c542; animation: xArm 1s ease-in-out infinite alternate; }
.ct-cell.x-ct .cc.x-ex { width: 100%; }
@keyframes xArm { to { background: #ffe08a; } }
/* the picker: the switch under Small's cards (S6) */
.gm-xwrap { position: relative; }
.gm-tile.has-x .gm-art { margin-bottom: 34px; min-width: 84px; }
.gm-x { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px 4px 4px; border-radius: 999px; border: 0;
  background: rgba(0, 0, 0, .25); color: var(--ink); font: 700 12px/1 var(--font-ui); cursor: pointer; }
.gm-x i { position: relative; width: 30px; height: 18px; border-radius: 9px; background: rgba(255, 255, 255, .2); transition: background .15s; }
.gm-x i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #f3efe3; transition: left .15s; }
.gm-x.on i { background: var(--you); } .gm-x.on i::after { left: 14px; background: #10271e; }
/* the first time: what Exact is (X7) */
.xi-kick { display: block; margin-bottom: 4px; font: 800 11px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--you); }
.xi p { margin: 0 0 10px; }
.xi-ex { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 13px; }
.xi-ex em { font-style: normal; color: var(--soft); }
.xi-ex > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.xi-ex small { color: var(--soft); font-size: 12px; }
.xi-cards { display: flex; gap: 4px; }
.xi-card { width: 28px; height: 38px; border-radius: 6px; background: #fbf8ef; color: #10271e; display: grid; place-items: center; font: 800 18px/1 var(--font-display); }
.xi-card.hit { box-shadow: 0 0 0 2px var(--you); }
@media (prefers-reduced-motion: reduce) { .cc.x-ex.armed { animation: none; } }

/* ---------- a Showdown match (round 8: P1b between rounds, P1c at the match's end) ---------- */
/* The bar at the top: a tile each (cards held, 5 is out; it turns when a card is taken) with pips, this sitting's matches
   in the middle. Times from the call (--sd-t: minus the time since): the slap lands 900 ms, the tile turns 1250, Out
   1700; at a match's end the pile 2050, the Out card 2650, the winner lit 2900, the tally 3200 (arena.js SD.pile). The
   still look is the end state; the animations, only with motion, run up to it. */
.sdbar { display: flex; align-items: center; gap: 12px; margin: 0 auto; line-height: 1; }
.sdb-side { display: flex; align-items: center; gap: 7px; }
.sdb-lab { font: 800 10px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; }
.sdb-side.you .sdb-lab { color: var(--you); } .sdb-side.bot .sdb-lab { color: var(--bot); letter-spacing: .1em; }
.sdb-tw { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.sdb-tile { position: relative; width: 28px; height: 31px; border-radius: 7px; background: #0a1d15; perspective: 140px;
  box-shadow: inset 0 -15px 0 rgba(255, 255, 255, .04), 0 2px 0 rgba(0, 0, 0, .4); font: var(--display-weight, 800) 25px/1 var(--font-display); }
.sdb-tile::after { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 1px; background: rgba(0, 0, 0, .55); }
.sdb-tile b { position: absolute; inset: 0; display: grid; place-items: center; backface-visibility: hidden; }
.sdb-side.you .sdb-tile { color: var(--you); } .sdb-side.bot .sdb-tile { color: var(--bot); }
.sdb-tile .o { opacity: 0; }
.sdb-tile .x { inset: -2px -5px; border-radius: 7px; background: var(--bot); color: #fff; font-size: 15px; text-transform: uppercase; z-index: 2; box-shadow: 0 0 14px rgba(255, 111, 91, .7); }
.sdb-pips { display: flex; gap: 2px; }
.sdb-pips i { width: 4.5px; height: 4.5px; border-radius: 1px; background: rgba(255, 255, 255, .18); }
.sdb-side.you .sdb-pips i.on { background: var(--you); } .sdb-side.bot .sdb-pips i.on { background: var(--bot); }
.sdb-pips i.out:not(.on) { background: none; box-shadow: inset 0 0 0 1px var(--bot); }
.sdb-mid { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.sdb-mid small { font: 800 9px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.sdb-mid > b { display: flex; gap: 4px; font: var(--display-weight, 800) 21px/1 var(--font-display); }
.sdb-mid .y { color: var(--you); } .sdb-mid .b { color: var(--bot); } .sdb-mid i { font-style: normal; color: var(--soft); }
.sdb-n { position: relative; display: inline-grid; perspective: 140px; }
.sdb-n b { grid-area: 1 / 1; backface-visibility: hidden; } .sdb-n .o { opacity: 0; }

/* the end of a round: the slapped card (on the loser's hand), +1 */
.seat .sd-slap { position: absolute; right: -12px; bottom: 6px; z-index: 6; --r0: 12deg; transform: rotate(var(--r0)); box-shadow: 0 10px 24px rgba(0, 0, 0, .55); }
.seat.bot .sd-slap { --r0: -10deg; }
.seat .sd-plus { position: absolute; right: -10px; bottom: -8px; padding: 3px 7px; border-radius: 9px; background: var(--you); color: #14110a;
  font: var(--display-weight, 800) 15px/1 var(--font-display); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.seat.bot .sd-plus { background: var(--bot); color: #fff; }
/* the match's end: the loser's hand piled (arena.js sdAfter: --px, --py, --pr, --pi), the Out card on it, the winner lit */
.hands:not(.fx) .seat.sd-over.sd-lose .cards .card, .hands:not(.fx) .seat.sd-over.sd-lose .sd-slap { position: relative; z-index: calc(2 + var(--pi, 0)); transform: translate(var(--px, 0), var(--py, 0)) rotate(var(--pr, 0deg)); }
.hands:not(.fx) .seat.sd-over.sd-lose .sd-slap { position: absolute; z-index: 8; }
.seat.sd-over .sd-outc { position: absolute; z-index: 9; display: grid; place-items: center; border-radius: 8px; background: var(--bot); color: #fff;
  font-family: var(--font-display); font-weight: var(--display-weight, 800); text-transform: uppercase; box-shadow: 0 0 0 2px #fff, 0 10px 24px rgba(0, 0, 0, .5);
  transform: translate(-50%, -50%) rotate(-6deg); }
.seat.sd-over:not(.sd-lose) .sd-outc { display: none; }
.hands:not(.fx) .seat.sd-over.sd-win .cards .card { position: relative; transform: translateY(-2px); }
.hands:not(.fx) .seat.sd-over.sd-win .cards .card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 1.5px var(--sd-c, var(--you)), 0 4px 12px var(--sd-g, rgba(245, 197, 66, .55)); }
.seat.bot.sd-win { --sd-c: var(--bot); --sd-g: rgba(255, 111, 91, .5); }

/* Next: the layer the sweep and the deal run in (arena.js sweepNext), over the board; the board's own cards hidden */
.lp-root.sd-hide .hands .card, .lp-root.sd-hide .sd-slap, .lp-root.sd-hide .sd-plus, .lp-root.sd-hide .sd-outc { visibility: hidden; }
.sd-layer { position: fixed; inset: 0; z-index: 60; }
.sd-pc { position: absolute; }
.sd-pc.sw { transform: translate(var(--dx), var(--dy)) scale(var(--ds)) rotate(var(--rr)); }
.sd-pc.sw > .card:not(.back) { visibility: hidden; }
.sd-pc.dl.you > .card.back { visibility: hidden; }
.sd-wait { position: fixed; transform: translateX(-50%); font: 600 12px/1 var(--font-ui, sans-serif); font-style: normal; color: var(--soft); }

@media (prefers-reduced-motion: no-preference) {
  .sdb-tile.flip .o, .sdb-n.flip .o { animation: sdFlipOut .096s ease-in both; animation-delay: calc(var(--sd-t) + 750ms); }
  .sdb-tile.flip .n { animation: sdFlipIn .156s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--sd-t) + 846ms); }
  .sdb-n.flip .o { animation-delay: calc(var(--sd-t) + 1920ms); }
  .sdb-n.flip .n { animation: sdFlipIn .156s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--sd-t) + 2016ms); }
  .sdb-tile .x { animation: sdPop .15s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--sd-t) + 1020ms); }
  .sdb-pips i.new { animation: sdPip .27s ease-out both; animation-delay: calc(var(--sd-t) + 930ms); }
  .seat .sd-slap { animation: sdSlap .192s both; animation-delay: calc(var(--sd-t) + 390ms); }
  .seat .sd-plus { animation: sdPop .15s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--sd-t) + 600ms); }
  .seat.sd-j { animation: sdJolt .132s; animation-delay: calc(var(--sd-t) + 540ms); }
  .seat.sd-j.sd-over { animation: sdJolt .132s, sdJolt2 .132s; animation-delay: calc(var(--sd-t) + 540ms), calc(var(--sd-t) + 1590ms); }
  .hands:not(.fx) .seat.sd-over.sd-lose .cards .card { animation: sdPile .18s cubic-bezier(.5, 0, .3, 1) both; animation-delay: calc(var(--sd-t) + 1230ms + var(--pi, 0) * 24ms); }
  .hands:not(.fx) .seat.sd-over.sd-lose .sd-slap { animation: sdSlap .192s both, sdPileS .18s cubic-bezier(.5, 0, .3, 1) forwards;
    animation-delay: calc(var(--sd-t) + 390ms), calc(var(--sd-t) + 1230ms + var(--pi, 0) * 24ms); }
  .seat.sd-over .sd-outc { animation: sdSlapOut .192s both; animation-delay: calc(var(--sd-t) + 1440ms); }
  .hands:not(.fx) .seat.sd-over.sd-win .cards .card { animation: sdRise .21s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--sd-t) + 1740ms + var(--i, 0) * 36ms); }
  .hands:not(.fx) .seat.sd-over.sd-win .cards .card::after { animation: sdLit .21s ease-out both; animation-delay: calc(var(--sd-t) + 1740ms); }
  .sd-pc.sw { animation: sdSweep .144s cubic-bezier(.55, 0, .6, 1) both; animation-delay: calc(198ms + var(--j) * 15ms); }
  .sd-pc.sw > .card:not(.back) { animation: sdTurnOff .048s ease-in both; animation-delay: calc(var(--j) * 18ms); }
  .sd-pc.sw > .card.back.tb { animation: sdTurnOn .048s ease-out both; animation-delay: calc(var(--j) * 18ms + 48ms); }
  .sd-pc.dl { animation: sdDeal .132s cubic-bezier(.2, .8, .3, 1) both; animation-delay: calc(var(--k) * 48ms); }
  .sd-pc.dl.you > .card.back { visibility: visible; animation: sdTurnOff .042s ease-in both; animation-delay: calc(var(--k) * 48ms + 132ms); }
  .sd-pc.dl.you > .card:not(.back) { animation: sdTurnOn .048s ease-out both; animation-delay: calc(var(--k) * 48ms + 174ms); }
}
@keyframes sdFlipOut { from { opacity: 1; transform: none; } to { opacity: 1; transform: rotateX(90deg); } }
@keyframes sdFlipIn { from { transform: rotateX(-90deg); } }
@keyframes sdPop { from { opacity: 0; transform: scale(.4); } }
@keyframes sdPip { from { background: rgba(255, 255, 255, .18); } 45% { transform: scale(1.8); } }
@keyframes sdSlap { 0% { opacity: 0; transform: translate(-40px, -300px) scale(2.6) rotate(calc(var(--r0) - 40deg)); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  1% { opacity: 1; } 78% { transform: rotate(var(--r0)); } 88% { transform: rotate(var(--r0)) scale(1.06); } 100% { opacity: 1; transform: rotate(var(--r0)); } }
@keyframes sdSlapOut { 0% { opacity: 0; transform: translate(-50%, -50%) translate(30px, -280px) scale(2.4) rotate(-40deg); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  1% { opacity: 1; } 78% { transform: translate(-50%, -50%) rotate(-6deg); } 88% { transform: translate(-50%, -50%) rotate(-6deg) scale(1.08); } 100% { opacity: 1; transform: translate(-50%, -50%) rotate(-6deg); } }
@keyframes sdJolt { 18% { transform: translate(-5px, 3.5px); } 41% { transform: translate(4px, -3px); } 68% { transform: translate(-2px, 1.5px); } }
@keyframes sdJolt2 { 18% { transform: translate(-4px, 3px); } 41% { transform: translate(3px, -2px); } 68% { transform: translate(-1.5px, 1px); } }
@keyframes sdPile { from { transform: none; } }
@keyframes sdPileS { from { transform: rotate(var(--r0)); } to { transform: translate(var(--px, 0), var(--py, 0)) rotate(var(--pr, 0deg)); } }
@keyframes sdRise { from { transform: none; } }
@keyframes sdLit { from { opacity: 0; } }
@keyframes sdSweep { from { transform: rotate(var(--r0, 0deg)); } }
@keyframes sdTurnOff { from { visibility: visible; transform: none; } to { visibility: hidden; transform: scaleX(0); } }
@keyframes sdTurnOn { from { transform: scaleX(0); } }
@keyframes sdDeal { from { transform: translate(var(--dx), var(--dy)) scale(.7) rotate(-14deg); } }

/* ---------- the dailies (5 Nov 2026): the menu's dailies, their end screens, the day done, the Six's bar, the Showdown's
   walkthrough (arena.js: dlHome, sixEndHTML, sdEndHTML, dayEndHTML, sixBar, sdTutLayer). q- classes are these screens'.
   The results animate from when they were first shown: --q-t is minus the time since, so a redraw carries on. ---------- */
.lp-root { --gold: #f5c542; --gold-dk: #b58a12; --blue: #5cc8ff; --blue-dk: #2a7ea8; --win: #2fb57a; --loss: #e0503f; --card-soft: #5d6b63; }
.q-main { display: flex; flex-direction: column; gap: 14px; }
.home .hero { margin-bottom: 0; }
.home .pg-main > .q-cap { margin: 14px 0 -4px; }
.q-cap { font: 700 11px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); display: inline-flex; align-items: center; gap: 5px; }
.q-cap.six { color: var(--gold); } .q-cap.sd { color: var(--blue); }
.q-soft { color: var(--soft); } .q-small { font-size: 13px; } .q-tiny { font-size: 11.5px; color: var(--soft); margin: 0; }
.q-row { display: flex; align-items: center; gap: 10px; } .q-col { display: flex; flex-direction: column; gap: 8px; } .q-col.c { align-items: center; }
.q-sp { flex: 1; }
.q-i { width: 18px; height: 18px; flex: none; } .q-i.sm { width: 13px; height: 13px; } .q-i.lg { width: 26px; height: 26px; } .q-i.xl { width: 38px; height: 38px; }
.q-h1 { font: 800 38px/.95 var(--font-display); margin: 0; letter-spacing: .01em; color: var(--ink); }
.q-av { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; flex: none; background: #2c5a45; color: var(--ink); }
.q-av img { width: 100%; height: 100%; object-fit: cover; display: block; } .q-av .av-letter { font: 800 13px/1 var(--font-display); }
.q-av.sm { width: 22px; height: 22px; border: 2px solid var(--card-bg); } .q-av.sm .av-letter { font-size: 11px; }
.q-stack { display: flex; } .q-stack .q-av + .q-av { margin-left: -7px; }
.q-sq { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; } .q-sq i { width: 14px; height: 14px; border-radius: 4px; background: rgba(29,29,29,.1); }
.q-sq i.w { background: var(--win); } .q-sq i.l { background: var(--loss); } .q-sq.md i { width: 18px; height: 18px; border-radius: 5px; }
.q-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border: 0; border-radius: 14px; background: var(--gold); color: #14110a; cursor: pointer;
  font: 800 16px/1 var(--font-ui); box-shadow: 0 4px 0 var(--gold-dk); width: 100%; }
.q-btn.blue { background: var(--blue); color: #08202c; box-shadow: 0 4px 0 var(--blue-dk); }
.q-btn.quiet { background: rgba(29,29,29,.08); color: #1d1d1d; box-shadow: none; }
.q-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 12px; background: rgba(255,255,255,.08);
  border: 1px solid var(--line); color: var(--ink); font: 700 14px/1 var(--font-ui); cursor: pointer; }
.q-ghost:disabled { opacity: .5; cursor: default; }
.q-link { background: none; border: 0; padding: 0; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; font: 600 13px/1.3 var(--font-ui); cursor: pointer; }
.q-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.q-new { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font: 800 10.5px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; background: var(--bot); color: #fff; }
/* the menu: play any time, today's dailies */
.q-free { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 6px 0 4px; }
.q-fc { position: relative; border: 0; cursor: pointer; background: var(--card-bg); color: var(--card-fg); border-radius: 14px; padding: 12px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  box-shadow: inset 0 0 0 3px var(--card-bg), inset 0 0 0 4px rgba(29,29,29,.14), 0 4px 0 rgba(0,0,0,.25); font-family: var(--font-ui); min-width: 0; }
.q-fc b { font: 800 17px/1 var(--font-display); margin-top: 6px; } .q-fc small { font-size: 11.5px; color: var(--card-soft); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-mini { display: flex; gap: 3px; height: 38px; align-items: center; }
.q-mini i { width: 22px; height: 31px; border-radius: 4px; background: #fff; display: grid; place-items: center; font: 800 16px/1 var(--font-display); font-style: normal; box-shadow: 0 0 0 1.4px rgba(29,29,29,.25), 0 2px 0 rgba(0,0,0,.12); }
.q-mini i:nth-child(2) { transform: rotate(8deg); }
.q-mini.six i { width: 13px; height: 19px; font-size: 11px; transform: none; }
.q-mini.six em { width: 13px; height: 19px; border-radius: 3px; border: 1.3px dashed rgba(29,29,29,.3); display: grid; place-items: center; font: 800 11px/1 var(--font-display); font-style: normal; box-sizing: border-box; }
.q-mini.six em.x { border: 1.5px solid #1b7fb0; color: #1b7fb0; }
.q-mini.eq { font: 800 34px/1 var(--font-display); color: var(--bot); }
.q-th { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 8px; color: var(--soft); font-size: 13px; flex-wrap: nowrap; white-space: nowrap; }
.q-th > span { letter-spacing: .08em; } .q-th, .q-th > b, .q-th .r b { font: 700 11px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.q-prog { display: flex; gap: 6px; margin: 8px 0 12px; } .q-prog i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); }
.q-prog i.six { background: var(--gold); } .q-prog i.sd { background: var(--blue); }
.q-dc { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 14px 14px 15px; border-radius: 18px; background: var(--card-bg); color: var(--card-fg); cursor: pointer;
  box-shadow: 0 5px 0 rgba(0,0,0,.25), 0 14px 30px rgba(0,0,0,.3); margin-bottom: 14px; }
.q-dc.next.six { box-shadow: 0 0 0 3px var(--gold), 0 0 26px rgba(245,197,66,.4), 0 14px 30px rgba(0,0,0,.3); }
.q-dc.next.sd { box-shadow: 0 0 0 3px var(--blue), 0 0 26px rgba(92,200,255,.45), 0 14px 30px rgba(0,0,0,.3); }
.q-dm { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.q-dc .hd { display: flex; align-items: center; gap: 10px; }
.q-dc .hd .q-new { margin-left: auto; align-self: flex-start; }
.q-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.q-dc.six .q-ic { background: #f6e7b0; color: #a37a05; } .q-dc.sd .q-ic { background: #d5eef9; color: #1b7fb0; }
.q-dc .tt, .q-both .tt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.q-dc .tt b { font: 800 23px/1 var(--font-display); } .q-dc .tt small { font-size: 12.5px; color: var(--card-soft); }
.q-dc .q-sq { justify-content: flex-start; }
.q-pp { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--card-soft); }
.q-badge { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 10px; border-radius: 12px; border: 2.5px solid #2f8f60; color: #2f8f60; background: rgba(47,143,96,.07); min-width: 76px; }
.q-badge.sd { border-color: #1b7fb0; color: #1b7fb0; background: rgba(27,127,176,.07); }
.q-badge b { font: 800 32px/.9 var(--font-display); } .q-badge i { font: 800 9.5px/1 var(--font-ui); letter-spacing: .1em; font-style: normal; text-transform: uppercase; white-space: nowrap; }
.q-go { grid-column: 1 / -1; }
.q-mtrack { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #eef5f1; align-self: flex-start; }
.q-mtrack b { font: 800 28px/.9 var(--font-display); } .q-mtrack em { font-style: normal; color: #7a8a81; } .q-mtrack .w { display: flex; flex-direction: column; gap: 4px; }
.q-mtrack .who { font: 800 9.5px/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; } .q-mtrack .who.y { color: #a37a05; } .q-mtrack .who.b { color: #c2412f; }
.q-pl { display: flex; gap: 3px; } .q-pl i { width: 10px; height: 14px; border-radius: 3px; border: 1.3px dashed rgba(29,29,29,.25); box-sizing: border-box; }
.q-pl i.y { background: var(--gold); border: 0; } .q-pl i.b { background: var(--bot); border: 0; } .q-pl i.o:not(.y):not(.b) { border: 1.5px solid rgba(194,65,47,.55); }
.q-both { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(245,197,66,.14); border: 1.5px solid rgba(245,197,66,.55); color: var(--ink); text-align: left; cursor: pointer;
  font-family: var(--font-ui); width: 100%; margin-bottom: 14px; }
.q-both .tt b { font: 800 20px/1 var(--font-display); } .q-both .tt small { font-size: 13px; color: var(--soft); } .q-both > svg { margin-left: auto; color: var(--soft); }
.q-flame { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: radial-gradient(circle at 50% 40%, #ffe08a, #f5c542 60%, #d49b14); box-shadow: 0 0 22px rgba(245,197,66,.5); color: #3a2a00; }
.q-flame.big { width: 70px; height: 70px; }
.q-newin { display: flex; align-items: center; justify-content: center; gap: 6px; margin: -4px 0 6px; color: var(--soft); font-size: 11.5px; }
.tiles.hl .t-ic .q-i { width: 22px; height: 22px; } .t-eq { font: 800 24px/1 var(--font-display); color: var(--bot); }
/* the end screens */
.dl-end .pg-main, .dl-rev .pg-main { max-width: 560px; }
.q-res { border-radius: 18px; padding: 16px 14px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; border: 1.5px solid rgba(245,197,66,.5); background: linear-gradient(170deg, rgba(245,197,66,.10), rgba(0,0,0,.18)); }
.q-res.sd { border-color: rgba(92,200,255,.5); background: linear-gradient(170deg, rgba(92,200,255,.10), rgba(0,0,0,.18)); }
.q-res.sd .q-cap:first-child { color: var(--blue); } .q-res.six .q-cap:first-child { color: var(--gold); }
.q-res .q-col.c { gap: 5px; text-align: center; } .q-div { width: 1px; align-self: stretch; background: var(--line); }
.q-big { font: 800 56px/.88 var(--font-display); color: var(--ink); white-space: nowrap; } .q-big span { color: var(--soft); font-size: 30px; } .q-big.gold { color: var(--gold); }
.q-big em { font-style: normal; display: inline-block; font-variant-numeric: tabular-nums; }
.q-cnt.bump { animation: qBump .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes qBump { 0% { transform: scale(1.25); } 100% { transform: none; } }
.q-sq.tap i { cursor: pointer; transition: transform .15s; } .q-sq.tap i:hover { transform: translateY(-2px); }
.q-sq.flip { perspective: 300px; }
.q-sq.flip i { animation: qFlip .42s cubic-bezier(.3,1.3,.5,1) both; animation-delay: calc(var(--q-t, 0ms) + .3s + var(--k) * .22s); }
@keyframes qFlip { 0% { transform: rotateY(90deg) scale(.7); filter: brightness(2.2) saturate(0); } 100% { transform: none; filter: none; } }
.q-ptl { font-size: 12.5px; color: var(--ink); line-height: 1.25; animation: qIn .35s both; animation-delay: calc(var(--q-t, 0ms) + var(--pt0, 1.8s) + var(--k) * .22s); }
.q-ptl b { color: var(--gold); font-weight: 800; }
@keyframes qIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.q-beat { color: #8fe7bb; font-weight: 700; animation: qIn .4s both; animation-delay: calc(var(--q-t, 0ms) + var(--pt0, 1.8s) - .2s); } .q-beat.lost { color: #ff9a8c; }
.q-saved { margin: -6px 0 0; text-align: center; color: #8fe7bb; font-size: 12.5px; }
.q-saved .acct-err { color: #ff9a8c; } .q-saved .sum-hide { color: var(--soft); margin-left: 6px; } .q-saved:empty { display: none; }
.q-acts { display: flex; gap: 10px; } .q-acts .q-ghost { flex: 1; } .q-acts.three .q-ghost { padding: 0 8px; }
.q-up { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; text-align: left; cursor: pointer; color: var(--ink); font-family: var(--font-ui);
  border: 1.5px solid var(--acc); background: linear-gradient(110deg, color-mix(in srgb, var(--acc) 30%, transparent), color-mix(in srgb, var(--acc) 8%, rgba(0,0,0,.2)) 70%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--acc) 30%, transparent), 0 0 28px color-mix(in srgb, var(--acc) 35%, transparent), 0 10px 26px rgba(0,0,0,.3);
  animation: qPop .5s cubic-bezier(.3,1.5,.5,1) both; animation-delay: calc(var(--q-t, 0ms) + var(--pt0, 1.8s)); }
.q-up.sd { --acc: var(--blue); } .q-up.six { --acc: var(--gold); }
@keyframes qPop { from { opacity: 0; transform: scale(.92) translateY(8px); } to { opacity: 1; transform: none; } }
.q-upic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: #0b1f17; box-shadow: 0 0 18px color-mix(in srgb, var(--acc) 60%, transparent); }
.q-up .tt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.q-up .tt small { font: 800 10.5px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
.q-up .tt b { font: 800 25px/1 var(--font-display); letter-spacing: .01em; } .q-up .tt span { font-size: 12.5px; color: #cfe3d8; }
.q-upgo { height: 44px; padding: 0 18px; border-radius: 13px; display: grid; place-items: center; background: var(--acc); color: #0b1f17; font: 800 16px/1 var(--font-ui);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--acc) 55%, #000); animation: qNudge 1.8s ease-in-out infinite; animation-delay: calc(var(--q-t, 0ms) + var(--pt0, 1.8s) + .6s); }
@keyframes qNudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-3px); } 90% { transform: translateY(0); } }
.q-finish { animation: qPop .5s cubic-bezier(.3,1.5,.5,1) both; animation-delay: calc(var(--q-t, 0ms) + var(--pt0, 1.8s)); }
.q-minib { padding: 10px 12px; } .q-minib .q-row { margin-bottom: 4px; } .q-minib .q-row b { font-size: 14px; color: var(--ink); }
.q-nb { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 10px; font-size: 15px; color: var(--ink); }
.q-nb .n { width: 18px; color: var(--soft); font-size: 13px; } .q-nb.me { background: rgba(245,197,66,.13); } .q-nb.me .nm { color: var(--gold); }
.q-nb .nm { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-nb small { color: var(--soft); font-size: 12.5px; margin-left: auto; margin-right: 8px; white-space: nowrap; } .q-nb .t { font-weight: 800; min-width: 22px; text-align: right; }
.q-foot { margin: -4px 0 0; text-align: center; color: var(--soft); font-size: 12.5px; line-height: 1.6; } .q-foot .q-link { font-size: 12.5px; }
.q-revh { gap: 4px; margin-top: 6px; } .dl-rev .sum-hands { margin: 0; }
/* the day done */
.q-dayh { gap: 8px; margin-top: 8px; text-align: center; } .q-dayh .q-h1 { font-size: 40px; }
.q-sum2 { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.q-tot1 { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 13px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink); cursor: pointer; font-family: var(--font-ui); }
.q-tot1 b { font: 800 46px/.9 var(--font-display); } .q-tot1 small { font-size: 12.5px; color: var(--soft); margin-bottom: 4px; }
.q-tot1 .q-sq i { width: 11px; height: 11px; border-radius: 3px; } .q-tot1 .q-sq { gap: 3px; }
.q-plus { font: 800 28px/1 var(--font-display); color: var(--soft); }
.q-dayt { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(245,197,66,.13); border: 1.5px solid rgba(245,197,66,.5); }
.q-dayt b { font: 800 48px/.9 var(--font-display); color: var(--gold); } .q-dayt .pl { font: 800 34px/1 var(--font-display); color: var(--ink); } .q-dayt .pl small { font: 600 14px/1 var(--font-ui); color: var(--soft); }
.q-gap { text-align: center; margin: -4px 0 0; } .q-dayacts .q-btn { flex: 1; } .q-dayacts .q-ghost { flex: 1; height: 50px; }
/* Share: the day as text */
.dl-share { text-align: center; }
.dl-msg { white-space: pre-line; margin: 4px 0 14px; padding: 18px 14px; border-radius: 14px; background: rgba(0,0,0,.05); border: 1px solid rgba(0,0,0,.1); font: 600 14.5px/1.75 var(--font-ui); user-select: text; -webkit-user-select: text; }
.dl-sharebtns { display: flex; gap: 10px; justify-content: center; } .dl-sharebtns > * { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
/* the Six's bar while you play it: the Showdown's, without its pips */
.sixbar .sdb-mid small { white-space: nowrap; }
.six-sq { display: flex; gap: 3px; margin-top: 3px; } .six-sq i { width: 11px; height: 11px; border-radius: 3px; background: rgba(255,255,255,.14); }
.six-sq i.w { background: #2fbf3a; } .six-sq i.l { background: #e0503f; } .six-sq i.cur { background: none; box-shadow: inset 0 0 0 1.5px var(--you); }
/* the Showdown's walkthrough: the part a card is about, lit; the rest dimmed */
.sdt-layer { pointer-events: auto; }
.sdt-spot { position: fixed; border-radius: 14px; box-shadow: 0 0 0 200vmax rgba(2,12,8,.74); pointer-events: none; transition: left .3s, top .3s, width .3s, height .3s; }
.sdt-spot.all { left: 50%; top: 50%; width: 0; height: 0; }
@media (prefers-reduced-motion: reduce) {
  .q-sq.flip i, .q-ptl, .q-beat, .q-up, .q-upgo, .q-finish, .q-cnt.bump { animation: none; }
  .sdt-spot { transition: none; }
}
.q-revh .day-nav { margin-top: 6px; align-self: flex-start; }

/* the menu as Round 6 has it: one column on any screen (no wider than a big phone's), the list a list */
.home .pg-main { max-width: 600px; }
.home .q-free, .home .q-th, .home .q-prog { margin-left: 0; margin-right: 0; }
.home .tiles.hl { display: flex; flex-direction: column; }
.home .tiles.hl .tile.hl-row { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; border-left: 0; border-top: 1px solid var(--line); }
.home .tiles.hl .tile.hl-row:first-child { border-top: 0; }
.home .tiles.hl .t-badge { position: static; margin-left: auto; }
.home .tiles.hl .hl-go { display: block; }
.home .tiles.hl .tile.quick .t-ic, .home .tiles.hl .tile.exact .t-ic { color: var(--you); }
.home .tiles.hl .tile.showdown .t-ic { color: var(--blue); }
.home .tiles.hl .t-ic svg { width: 22px; height: 22px; }
.home .rq { margin-top: 18px; }
.q-av.lt { color: #12291f; font: 800 13px/1 var(--font-display); } .q-av.sm.lt { font-size: 11px; }
.q-fc .q-new.abs { position: absolute; top: 7px; right: 7px; }

/* Review's rows (Round 6) */
.q-rowh { margin-top: 2px; } .q-rowh .q-tiny { font-size: 11.5px; }
.mk-rows { display: flex; flex-direction: column; gap: 8px; margin-top: -6px; }
.mk-item { display: flex; flex-direction: column; gap: 4px; }
.mk-r { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; padding: 11px 12px; border-radius: 14px; background: rgba(0,0,0,.2); border: 1px solid var(--line);
  border-left: 3px solid var(--rc, #c03030); text-align: left; color: var(--ink); width: 100%; cursor: pointer; font-family: var(--font-ui); }
.mk-r.w { --rc: #2fbf3a; } .mk-r:hover { background: rgba(0,0,0,.28); }
.mk-r .n { font: 800 18px/1.2 var(--font-display); color: var(--soft); }
.mk-r .mid { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mk-r .hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mk-r .pcs { display: flex; gap: 3px; } .mk-r .pc { width: 20px; height: 28px; border-radius: 4px; background: var(--card-bg, #fbf8ef); color: #1d1d1d; display: grid; place-items: center; font: 800 15px/1 var(--font-display); }
.mk-r .pc.b { color: #b8392b; } .mk-r em { font-style: normal; color: var(--soft); font-size: 12px; }
.mk-r .bl { font-size: 12px; color: #cfe3d8; line-height: 1.45; } .mk-r .bl i { font-style: normal; color: var(--soft); } .mk-r .bl b { font-weight: 700; }
.mk-r .rs { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-weight: 800; font-size: 13px; } .mk-r .rs.w { color: #8fe7bb; } .mk-r .rs.l { color: #ff9a8c; }
.mk-r .rs small { color: var(--soft); font-weight: 700; font-size: 12px; }
.mk-tree { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-left: 34px; padding: 2px 0; background: none; border: 0; color: var(--gold); font: 600 12.5px/1.3 var(--font-ui); cursor: pointer; }
.mk-tree .sh-chev { position: static; }
/* one hand on the table, from Review: ‹ Back › in place of Next hand */
.lk-pager { display: grid; grid-template-columns: 52px 1fr 52px; gap: 8px; width: 100%; }
.lk-pager .arr { border: 0; border-radius: 14px; background: rgba(255,255,255,.1); color: var(--ink); font: 800 24px/1 var(--font-ui); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); min-height: 50px; }
.lk-pager .arr[disabled] { opacity: .3; cursor: default; }
.lk-pager .bk { border: 0; border-radius: 14px; background: var(--you); color: #14110a; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; box-shadow: 0 4px 0 #b58a12; min-height: 50px; }
.lk-pager .bk b { font: 800 16px/1 var(--font-ui); } .lk-pager .bk small { font: 700 11.5px/1 var(--font-ui); opacity: .7; }
.acts .lk-pager { display: none; }
.res-acts .lk-pager { flex: 1 1 100%; margin-top: 4px; }
@media (max-width: 700px), (max-height: 520px) and (orientation: landscape) {
  .acts.over .lk-pager { display: grid; grid-column: 1 / -1; }
  .res-acts .lk-pager { display: none; }
}
/* Share your day: its own page */
.q-shareh { gap: 6px; margin-top: 10px; text-align: center; }
.q-msg { white-space: pre-line; text-align: center; margin: 6px 0 4px; padding: 20px 16px; border-radius: 18px; background: rgba(0,0,0,.24); border: 1px solid var(--line);
  color: var(--ink); font: 600 14.5px/1.75 var(--font-ui); user-select: text; -webkit-user-select: text; }

/* the Dailies leaderboard: Overall / Daily Six / Showdown */
.dl-lbg .lb-g .lb-fan svg { width: 28px; height: 28px; }
.dl-lbg .lb-g.six .lb-fan { color: var(--gold); } .dl-lbg .lb-g.sd .lb-fan { color: var(--blue); }
.dl-res.w { color: #8fe7bb; font-weight: 700; } .dl-res.l { color: #ff9a8c; font-weight: 700; }
/* a Showdown hand of five on a phone: three on top, the two below in their gaps (5 Nov); of four: two and two. All the
   Showdown's tables (free, the Daily Showdown, duels); a hand that has ended keeps its one row */
@media (max-width: 700px) {
  .lp-root:not(.ended) .hands.n5 .cards:has(> .card:nth-child(4)) { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: calc(3 * var(--cw) + 12px); }
  .lp-root:not(.ended) .hands.n5 .cards:has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) { width: calc(2 * var(--cw) + 6px); }
}
.dl-end .q-main > .day-nav { align-self: center; margin-bottom: -4px; }
/* the home's daily header: name left, day centred, done right; a finished card's subtitle on one line */
.q-th { display: grid; grid-template-columns: 1fr auto 1fr; } .q-th .sp { display: none !important; } .q-th > b { grid-column: 1; grid-row: 1; } .q-th > span:not(.sp):not(.r) { grid-column: 2; grid-row: 1; } .q-th .r { grid-column: 3; grid-row: 1; justify-self: end; }
.q-dc .tt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-dc { gap: 8px; } .q-badge { padding: 8px 7px; min-width: 70px; } .q-badge i { letter-spacing: .06em; }
.q-th { display: flex; position: relative; } .q-th > span:not(.sp):not(.r) { position: absolute; left: 50%; transform: translateX(-50%); } .q-th .r { margin-left: auto; }
/* 6 Nov: the home's Both done, a link to the day done; the game cards' Show-down; the free match's end screen */
.q-th .q-thgo { display: inline-flex; align-items: center; gap: 2px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--gold) !important; font: inherit; letter-spacing: .08em; text-transform: uppercase; }
.q-th .q-thgo .q-i { width: 12px; height: 12px; }
@media (hover: hover) { .q-th .q-thgo:hover { text-decoration: underline; } }
.lb-g { hyphens: manual; text-align: center; }
.q-res.sdm .q-sq { justify-content: center; }
