/* Hearts — the dining car of a night train, 1930s. Self-contained. */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Caveat:wght@500;700&family=Manrope:wght@500;700;800&display=swap");

:root{
  --ink: #f3ead8;
  --dim: rgba(243, 234, 216, 0.78);
  --faint: rgba(243, 234, 216, 0.5);
  --bg: #0d090c;
  --brass: #c9a45c;
  --brass-lite: #efd38a;
  --oxblood: #7a2228;
  --red: #c8303a;
  --line: rgba(230, 190, 120, 0.2);
  --glass: rgba(22, 12, 14, 0.84);
  --paper: #efe6cf;
  --paper-ink: #2b2420;
  --pencil: #3a3230;
  --font-display: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html, body{
  height: 100%; margin: 0; overflow: hidden;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
canvas#canvas{
  display: block; width: 100%; height: 100%; touch-action: none;
  -webkit-touch-callout: none; user-select: none; -webkit-user-select: none;
}

/* ---------- the status bar ---------- */
.hud{
  position: fixed; z-index: 6; pointer-events: none;
  top: max(10px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  padding: 6px 16px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--glass);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
}
.hud[hidden]{ display: none; }
.hud__item{ display: flex; flex-direction: column; align-items: center; line-height: 1.1; min-width: 44px; }
.hud__num{ font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; font-variant-numeric: tabular-nums lining-nums; color: var(--ink); }
.hud__num--sm{ font-size: 1rem; font-style: italic; font-weight: 600; padding-top: 3px; }
.hud__lab{ font-size: 0.6rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.hud__sep{ width: 1px; height: 26px; background: var(--line); }
#hudHeartsBox.is-open .hud__num{ color: #ff8f8a; }

/* ---------- the bar ---------- */
.bar{
  position: fixed; z-index: 6; left: max(14px, env(safe-area-inset-left));
  top: max(10px, env(safe-area-inset-top));
  display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 6px;
  padding: 6px;
  border: 1px solid var(--line); border-radius: 15px;
  background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  width: max-content; max-width: calc(100vw - 16px);
}
.bar[hidden]{ display: none; }
.btn{
  appearance: none; cursor: pointer;
  font-family: var(--font-ui); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.01em;
  min-height: 42px; padding: 8px 15px; border-radius: 10px;
  border: 1px solid transparent; background: rgba(239, 211, 138, 0.09); color: var(--ink);
  transition: background 140ms ease, transform 120ms ease, opacity 140ms ease, box-shadow 140ms ease;
}
.btn[hidden]{ display: none; }
.btn:hover:not(:disabled){ background: rgba(239, 211, 138, 0.17); transform: translateY(-1px); }
.btn:disabled{ opacity: 0.35; cursor: default; }
.btn:focus-visible{ outline: none; box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.65); }
.btn--go{ background: linear-gradient(180deg, var(--brass-lite), var(--brass)); color: #2a1a08; }
.btn--go:hover:not(:disabled){ background: linear-gradient(180deg, #f8e0a0, #d6b068); }
.btn--big{ padding: 11px 16px; font-size: 0.86rem; }
#btnPass.is-ready{ animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse{
  0%, 100%{ box-shadow: 0 0 0 0 rgba(239, 211, 138, 0.0); }
  50%{ box-shadow: 0 0 0 6px rgba(239, 211, 138, 0.3), 0 0 26px rgba(201, 164, 92, 0.6); }
}

/* ---------- callout + notes ---------- */
.callout{
  position: fixed; z-index: 7; pointer-events: none;
  left: 50%; top: 36%; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 700; font-style: italic; letter-spacing: 0.01em;
  font-size: clamp(1.8rem, 6.5vw, 3rem); line-height: 1;
  color: var(--brass-lite); text-align: center; white-space: nowrap;
  text-shadow: 0 2px 0 #3a2208, 0 0 3px rgba(10, 3, 2, 0.95), 0 0 14px rgba(10, 3, 2, 0.95), 0 0 30px rgba(10, 3, 2, 0.8), 0 0 46px rgba(240, 180, 80, 0.4);
}
.callout[hidden]{ display: none; }
.callout.is-red{ color: #ffb3ad; text-shadow: 0 2px 0 #3d1012, 0 0 3px rgba(10, 3, 2, 0.95), 0 0 14px rgba(10, 3, 2, 0.95), 0 0 30px rgba(10, 3, 2, 0.8), 0 0 46px rgba(255, 110, 110, 0.4); }
.callout.is-pop{ animation: pop 1.5s ease both; }
@keyframes pop{
  0%{ opacity: 0; transform: translate(-50%, -40%) scale(0.86); }
  14%{ opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
  24%{ transform: translate(-50%, -50%) scale(1); }
  78%{ opacity: 1; }
  100%{ opacity: 0; transform: translate(-50%, -58%); }
}
.note{
  position: fixed; z-index: 7; pointer-events: none; margin: 0;
  left: 50%; transform: translateX(-50%);
  top: calc(max(10px, env(safe-area-inset-top)) + 58px);
  padding: 7px 14px; border-radius: 14px;
  width: max-content; max-width: min(460px, calc(100vw - 24px)); text-align: center;
  font-size: 0.78rem; font-weight: 700; line-height: 1.4; color: var(--ink);
  background: rgba(22, 12, 14, 0.92); border: 1px solid var(--line);
  opacity: 0; transition: opacity 260ms ease;
}
.note.is-on{ opacity: 1; }

/* ---------- corner buttons ---------- */
.corner-btn{
  position: fixed; z-index: 7;
  top: max(10px, env(safe-area-inset-top));
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--glass); color: var(--ink);
  font-family: var(--font-ui); font-size: 15px; cursor: pointer; backdrop-filter: blur(8px);
  transition: transform 140ms ease, border-color 140ms ease, opacity 140ms ease;
}
.sound-btn{ right: max(12px, env(safe-area-inset-right)); }
.help-btn{ right: max(58px, calc(env(safe-area-inset-right) + 58px)); font-weight: 800; font-size: 16px; }
.corner-btn:hover{ transform: translateY(-1px); border-color: var(--brass); }
.corner-btn[aria-pressed="false"]{ opacity: 0.45; }
.corner-btn:focus-visible{ outline: none; box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.55); }

/* ---------- overlays ---------- */
.overlay{
  position: fixed; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: radial-gradient(90% 70% at 50% 40%, rgba(50, 20, 24, 0.5), rgba(8, 3, 5, 0.94));
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  transition: opacity 240ms ease; overflow-y: auto;
}
.overlay[hidden]{ display: none; }
.overlay.is-out{ opacity: 0; pointer-events: none; }
.overlay--lesson, .overlay--replay{ z-index: 12; }
.overlay--sheet{ z-index: 11; }
.panel{
  max-width: 640px; width: 100%; text-align: center; margin: auto;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(180deg, rgba(52, 20, 24, 0.96), rgba(18, 7, 9, 0.97));
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(239, 211, 138, 0.1);
}
.panel--result{ max-width: 520px; }
.panel--lesson{ max-width: 420px; }
.panel--replay{ max-width: 460px; }
.panel__eyebrow{ margin: 0 0 4px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass); }
.panel__title{
  margin: 0 0 10px; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 10vw, 4.2rem); letter-spacing: 0.01em; line-height: 1.02;
  color: var(--ink); text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35), 0 10px 30px rgba(0, 0, 0, 0.5);
}
.panel__text{ margin: 0 auto 14px; max-width: 50ch; font-size: 0.88rem; line-height: 1.6; color: var(--dim); }
.panel__text b{ color: var(--ink); font-weight: 800; }

/* ---------- the cast ---------- */
.cast{ display: grid; gap: 8px; margin: 0 0 16px; grid-template-columns: repeat(3, 1fr); }
.foe{
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 8px 10px;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(239, 211, 138, 0.04); color: var(--ink);
}
.foe__seal{ width: 56px; height: 56px; }
.foe__name{ font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.15; }
.foe__role{ font-size: 0.66rem; color: var(--faint); margin-top: -2px; }
.foe__trait{ font-size: 0.7rem; line-height: 1.45; color: var(--dim); margin-top: 3px; }

.play-btn{
  appearance: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; letter-spacing: 0.01em;
  padding: 10px 30px 11px; border-radius: 999px; border: 0;
  background: linear-gradient(180deg, var(--brass-lite), var(--brass));
  color: #2a1a08; box-shadow: 0 10px 30px -8px rgba(201, 164, 92, 0.6), inset 0 -2px 0 rgba(110, 70, 10, 0.35);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.play-btn:hover{ transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(201, 164, 92, 0.8), inset 0 -2px 0 rgba(110, 70, 10, 0.35); }
.play-btn:focus-visible{ outline: none; box-shadow: 0 0 0 3px rgba(239, 211, 138, 0.7); }
.panel__keys{ margin: 12px 0 0; font-size: 0.7rem; color: var(--faint); line-height: 1.7; }
.linkbtn{ appearance: none; border: 0; background: none; padding: 2px 0; cursor: pointer; font: inherit; font-weight: 800; color: var(--brass-lite); text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:focus-visible{ outline: none; box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.55); border-radius: 4px; }

/* ---------- the lesson ---------- */
.lesson__stage{ display: flex; justify-content: center; margin: 6px 0 12px; }
#lessonCv{ width: 280px; height: 150px; border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(201, 164, 92, 0.35); }
.lesson__title{ margin: 0 0 6px; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; }
.lesson__text{ margin: 0 auto 8px; max-width: 40ch; font-size: 0.86rem; line-height: 1.55; color: var(--dim); min-height: 4.6em; }
.lesson__aside{ margin: 0 auto 12px; max-width: 40ch; font-size: 0.76rem; line-height: 1.5; color: var(--faint); }
.lesson__aside:empty{ display: none; }
.lesson__aside b{ color: var(--brass-lite); }
.lesson__nav{ display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lesson__nav .btn{ min-width: 84px; }
.lesson__dots{ display: flex; gap: 6px; }
.lesson__dots i{ width: 7px; height: 7px; border-radius: 50%; background: rgba(239, 211, 138, 0.2); }
.lesson__dots i.on{ background: var(--brass); }

/* ---------- the score pad: paper, a brass clip, pencil ---------- */
.pad{
  position: relative; max-width: 440px; width: 100%; margin: auto; text-align: center;
  padding: 30px 22px 20px;
  color: var(--paper-ink);
  background:
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(90, 120, 170, 0.14) 31px 32px),
    linear-gradient(180deg, #f3ecd8, #e8dcc0);
  background-position: 0 86px, 0 0;
  border-radius: 4px 4px 10px 10px;
  box-shadow: 0 30px 70px -18px rgba(0, 0, 0, 0.9), 0 2px 0 rgba(255, 255, 255, 0.5) inset;
}
.pad::before{ content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent); border-radius: 4px 4px 0 0; }
.pad__clip{
  position: absolute; left: 50%; top: -14px; transform: translateX(-50%);
  width: 84px; height: 30px; border-radius: 16px 16px 6px 6px;
  background: linear-gradient(180deg, #f1d58a, #b3843a 55%, #8d6424);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.pad__clip::after{ content: ""; position: absolute; left: 10px; right: 10px; top: 10px; height: 8px; border-radius: 4px; background: rgba(60, 35, 5, 0.35); }
.pad__eyebrow{ margin: 0 0 2px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.26em; text-transform: uppercase; color: #8a6a2e; }
.pad__title{ margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--paper-ink); }
.pad__sub{ margin: 2px 0 10px; font-family: var(--font-hand); font-size: 1.2rem; color: var(--pencil); min-height: 1.4em; }
.pad__scroll{ max-height: min(46vh, 380px); overflow-y: auto; margin: 0 -6px 12px; padding: 0 6px; }
.pad__table{ width: 100%; border-collapse: collapse; font-family: var(--font-hand); font-size: 1.35rem; color: var(--pencil); }
.pad__table th{ font-family: var(--font-hand); font-weight: 700; font-size: 1.15rem; padding: 2px 4px 6px; border-bottom: 2px solid rgba(43, 36, 32, 0.6); color: var(--paper-ink); white-space: nowrap; }
.pad__table th.is-you{ color: #8a2a30; }
.pad__table td{ padding: 3px 4px; text-align: center; line-height: 1.25; font-variant-numeric: lining-nums; }
.pad__table td.is-hand{ text-align: left; font-size: 1rem; color: #7a6a52; white-space: nowrap; }
.pad__table td.is-moon{ color: #1f4e8c; font-weight: 700; }
.pad__table td.is-queen{ color: #8a2a30; }
.pad__table tr.is-total td{ border-top: 2px solid rgba(43, 36, 32, 0.6); font-weight: 700; font-size: 1.5rem; padding-top: 6px; }
.pad__table tr.is-total td.is-hand{ font-size: 1.05rem; font-weight: 700; color: var(--paper-ink); }
.pad__table td.is-low{ position: relative; }
.pad__table td.is-low::after{ content: ""; position: absolute; left: 10%; right: 10%; top: 10%; bottom: 10%; border: 2px solid rgba(138, 42, 48, 0.7); border-radius: 50%; transform: rotate(-4deg); }
.pad__table td.is-write{ animation: write 400ms ease both; }
@keyframes write{ from{ opacity: 0; transform: translateY(3px) rotate(-2deg); } to{ opacity: 1; transform: none; } }
.pad__btns{ display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.pad .btn{ color: #2a1a08; background: rgba(43, 36, 32, 0.08); }
.pad .btn:hover:not(:disabled){ background: rgba(43, 36, 32, 0.14); }
.pad .btn--go{ background: linear-gradient(180deg, var(--brass-lite), var(--brass)); }

/* ---------- the replay ---------- */
.replay__key{ margin: 0 auto 10px; max-width: 40ch; font-size: 0.72rem; line-height: 1.5; color: var(--faint); }
.replay__scroll{ max-height: min(56vh, 520px); overflow-y: auto; margin: 0 -6px 12px; padding: 0 6px; }
.replay__grid{ display: grid; grid-template-columns: auto repeat(4, 1fr); gap: 4px 6px; align-items: center; }
.replay__head{ font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); padding-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.replay__no{ font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; color: var(--faint); text-align: right; padding-right: 2px; }
.replay__cell{ position: relative; display: flex; justify-content: center; align-items: center; padding: 3px 0; border-radius: 8px; }
.replay__cell.is-won{ background: rgba(239, 211, 138, 0.14); box-shadow: inset 0 0 0 1px rgba(239, 211, 138, 0.35); }
.replay__cell.is-led::before{ content: ""; position: absolute; left: 3px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--brass-lite); }
.replay__cell canvas{ width: 30px; height: 42px; border-radius: 3px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); }
.replay__cell.is-pt canvas{ box-shadow: 0 0 0 1.5px rgba(200, 48, 58, 0.8), 0 2px 6px rgba(0, 0, 0, 0.5); }
.replay__pts{ position: absolute; right: 2px; bottom: 1px; font-size: 0.6rem; font-weight: 800; color: #ffb3ad; }

/* ---------- result ---------- */
.result__line{ margin: 4px 0 2px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }
.result__score{ margin: -2px 0 8px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 4vw, 1.45rem); line-height: 1.2; color: var(--brass-lite); }
.result__text{ margin: 0 auto 16px; max-width: 44ch; font-size: 0.86rem; line-height: 1.55; color: var(--dim); }
.result__quote{ font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--ink); }
.result__btns{ display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.result__record{ margin: 14px 0 8px; font-size: 0.72rem; color: var(--faint); }
.panel--result [data-more-games]{ margin-top: 14px; }

/* ---------- frame + hint ---------- */
.frame{ position: fixed; inset: 0; z-index: 4; pointer-events: none; }
.frame__corner{ position: fixed; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.frame__corner--tl{ top: max(14px, env(safe-area-inset-top)); left: max(14px, env(safe-area-inset-left)); }
.frame__corner--tr{ top: max(14px, env(safe-area-inset-top)); right: max(108px, calc(env(safe-area-inset-right) + 108px)); }
.frame__corner--bl{ bottom: max(14px, env(safe-area-inset-bottom)); left: max(14px, env(safe-area-inset-left)); pointer-events: auto; }
.frame__corner--bl a{ color: var(--faint); text-decoration: none; }
.frame__corner--bl a:hover{ color: var(--brass); }
body.is-playing .frame__corner--tl, body.is-playing .frame__corner--tr{ display: none; }
.hint{
  position: fixed; z-index: 4; pointer-events: none;
  bottom: max(14px, calc(env(safe-area-inset-bottom) + 4px)); left: 50%; transform: translateX(-50%);
  margin: 0; font-size: 0.7rem; letter-spacing: 0.06em; color: var(--faint); white-space: nowrap;
  transition: opacity 500ms ease;
}
.hint.is-gone, body.is-playing .hint{ opacity: 0; }

/* ---------- responsive ---------- */
@media (max-width: 720px){
  .panel__text{ font-size: 0.82rem; }
}
@media (max-width: 620px){
  .hint{ display: none; }
  .hud{ left: max(10px, env(safe-area-inset-left)); transform: none; padding: 5px 12px; gap: 9px; }
  .hud__num{ font-size: 1.12rem; }
  .hud__num--sm{ font-size: 0.9rem; }
  .hud__lab{ font-size: 0.54rem; letter-spacing: 0.08em; }
  .hud__item{ min-width: 36px; }
  .hud__sep{ height: 22px; }
  /* the hand fans along the bottom edge: the bar sits just above it */
  /* under the corner buttons, clear of the north seat in the middle */
  .bar{ top: calc(max(10px, env(safe-area-inset-top)) + 50px); left: auto; right: max(10px, env(safe-area-inset-right)); gap: 5px; padding: 5px; }
  .note{ top: 25vh; }
  .btn{ padding: 7px 13px; font-size: 0.78rem; }
  .panel{ padding: 18px 14px; }
  .cast{ gap: 6px; }
  .foe{ padding: 8px 4px; }
  .foe__seal{ width: 46px; height: 46px; }
  .foe__name{ font-size: 0.9rem; }
  .foe__trait{ display: none; }
  .pad{ padding: 26px 14px 16px; }
  .pad__table{ font-size: 1.2rem; }
  .pad__table th{ font-size: 1rem; }
  .replay__cell canvas{ width: 28px; height: 39px; }
}
@media (max-width: 380px){
  .hud{ gap: 7px; padding: 5px 10px; }
  .hud__num{ font-size: 1.04rem; }
  .btn{ padding: 7px 11px; }
}
@media (max-width: 620px) and (max-height: 740px){
  .hud{ top: max(8px, env(safe-area-inset-top)); }
  .corner-btn{ top: max(8px, env(safe-area-inset-top)); width: 38px; height: 38px; }
  .btn{ min-height: 38px; padding: 6px 12px; }
  .bar{ top: calc(max(8px, env(safe-area-inset-top)) + 46px); padding: 4px; }
  .note{ top: 26vh; }
  #lessonCv{ width: 250px; height: 134px; }
  .pad__scroll{ max-height: 38vh; }
}
@media (max-height: 560px){
  .hud{ top: max(6px, env(safe-area-inset-top)); padding: 3px 12px; left: max(12px, env(safe-area-inset-left)); transform: none; }
  .hud__num{ font-size: 1.02rem; }
  .corner-btn{ top: max(6px, env(safe-area-inset-top)); width: 36px; height: 36px; }
  .help-btn{ right: max(52px, calc(env(safe-area-inset-right) + 52px)); }
  .bar{ top: max(6px, env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left)); padding: 4px; }
  .btn{ min-height: 36px; padding: 6px 11px; }
  .note{ top: calc(max(6px, env(safe-area-inset-top)) + 46px); }
  .hint{ display: none; }
  .callout{ top: 30%; }
  #lessonCv{ width: 220px; height: 118px; }
  .pad__scroll{ max-height: 34vh; }
}
@media (prefers-reduced-motion: reduce){
  .play-btn, .corner-btn, .overlay, .btn, .note{ transition: none; }
  .callout.is-pop, #btnPass.is-ready, .pad__table td.is-write{ animation: none; }
  #btnPass.is-ready{ box-shadow: 0 0 0 3px rgba(239, 211, 138, 0.6); }
}

/* The hand fans across the bottom and the trick sits in the middle, so the shared
   tip-jar / full-screen badges at right-center would sit on the east player. Dock
   them along the bottom edge, side by side. Doubled classes out-specify the injected styles. */
.opt-tipjar.opt-tipjar{ top: auto; bottom: max(12px, env(safe-area-inset-bottom)); transform: none; }
.opt-fs.opt-fs{ top: auto; bottom: max(13px, calc(env(safe-area-inset-bottom) + 1px)); right: max(56px, calc(env(safe-area-inset-right) + 56px)); transform: none; }
.opt-tipjar.opt-tipjar.tj-nudge{ animation: none; }

.sr-only{ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
