/* Juntos — Dominó. The look of the Juntos promo video: coral→orange hero, warm cream, white pills, deep navy felt; ivory glossy tiles. */
:root {
  --dm-brand: #FF6B4A;
  --dm-brand-2: #FF9A3C;
  --dm-hero: linear-gradient(145deg, #FF6B4A 0%, #FF9A3C 100%);
  --dm-navy: radial-gradient(circle at 30% 18%, #3A3D5C 0%, #1F2137 78%);
  --dm-ink: #2B2D42;
  --dm-hl: #FFB300;              /* the glow of what you can play */
  --dm-gold: #FFC93C;
  --dm-felt-1: #484C78;
  --dm-felt-2: #20223A;
  --dm-frame: #FF6B4A;
  --dm-frame-hi: #FFB49A;
  --dm-frame-lo: #E8483A;
  --dm-tile: #FFFDF8;
  --dm-tile-2: #F1E8D8;
  --dm-tile-line: #D7C8B0;
  --dm-back: #2B2D42;
  --dm-back-2: #4A4E7A;
  --dm-bad: #E8483A;
  --dm-team0: #0B7F75;
  --dm-team1: #7A2FD4;
  --dm-pip: #2B2D42;
  --dm-p1: #E8483A;
  --dm-p2: #0E94A8;
  --dm-p3: #8B3FEA;
  --dm-p4: #E07A00;
  --dm-p5: #0E9A55;
  --dm-p6: #2B2D42;
  --dm-edge: rgba(43, 45, 66, .08);
  --dm-pill-sh: 0 8px 18px -10px rgba(43, 45, 66, .45), 0 1px 0 rgba(255, 255, 255, .9) inset;
  --dm-lift: 0 14px 26px -20px rgba(43, 45, 66, .55);
  --dm-emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --dm-felt-1: #3C406A;
    --dm-felt-2: #181A2E;
    --dm-tile: #F6F0E2;
    --dm-tile-2: #E2D8C3;
    --dm-edge: rgba(255, 255, 255, .09);
    --dm-pill-sh: 0 10px 20px -12px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .06) inset;
    --dm-lift: 0 14px 24px -16px rgba(0, 0, 0, .8);
  }
}
:root[data-theme="dark"] {
  --dm-felt-1: #3C406A;
  --dm-felt-2: #181A2E;
  --dm-tile: #F6F0E2;
  --dm-tile-2: #E2D8C3;
  --dm-edge: rgba(255, 255, 255, .09);
  --dm-pill-sh: 0 10px 20px -12px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .06) inset;
  --dm-lift: 0 14px 24px -16px rgba(0, 0, 0, .8);
}

/* the page itself: warm cream (dark mode: the navy of the video) */
html:root[data-dm] body {
  background: radial-gradient(900px 480px at 100% -5%, rgba(255, 154, 60, .16), transparent 62%), radial-gradient(800px 480px at -10% 8%, rgba(255, 107, 74, .12), transparent 60%), linear-gradient(180deg, #FFF7F0 0%, #FFE9DA 100%);
  background-attachment: fixed;
}
@media (prefers-color-scheme: dark) {
  html:root[data-dm]:not([data-theme="light"]) body { background: radial-gradient(circle at 30% 0%, #3A3D5C 0%, #1F2137 72%); background-attachment: fixed; }
}
html:root[data-dm][data-theme="dark"] body { background: radial-gradient(circle at 30% 0%, #3A3D5C 0%, #1F2137 72%); background-attachment: fixed; }
/* the toasts (errors, "that tile does not fit") sit above the hand while a table is open, never on top of it */
html[data-dm-table] { --ndj-toast-bottom: 214px; }

/* ------------------------------------------------------------ buttons: the hero gradient with a gentle top sheen and a coral glow */

.ndj-card, .ndj-share { border-radius: 24px; }

/* ------------------------------------------------------------ topbar extras */
.dm-tb { display: inline-flex; gap: 6px; flex: none; }
.dm-tb .ndj-topbar__btn { flex: none; }
.dm-float, .dm-react, .dm-quip__e, .dm-sheet__quip b, .dm-sheet__quip2 b { font-family: var(--dm-emoji); font-style: normal; font-weight: 400; }

/* ------------------------------------------------------------ lobby bits */
.dm-entry-rules { width: 100%; margin-top: 4px; }
.dm-settings { display: flex; flex-direction: column; gap: 14px; }
.dm-settings .ndj-section-title { margin-bottom: 0; }
.dm-settings__row { display: flex; flex-direction: column; gap: 8px; }
.dm-settings__label { font: 600 .95rem var(--font-display); color: var(--fg-2); }
.dm-settings__note { font-size: .86rem; color: var(--fg-2); line-height: 1.35; padding: 8px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--dm-edge); }
.dm-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dm-chips--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dm-chipbtn, .dm-counter__btn {
  background: var(--card); border: 1.5px solid var(--dm-edge); border-radius: 15px; box-shadow: var(--dm-pill-sh); color: var(--fg); cursor: pointer;
}
.dm-chipbtn {
  min-height: 48px; padding: 6px 6px; font: 600 .98rem/1.15 var(--font-display); transition: background .15s, border-color .15s, color .15s;
  text-align: center; overflow-wrap: anywhere;
}
.dm-chipbtn.is-on { background: color-mix(in srgb, var(--dm-brand) 14%, var(--card)); border: 2px solid var(--dm-brand); box-shadow: 0 8px 16px -10px rgba(255, 107, 74, .75); }
.dm-chipbtn:disabled { cursor: default; }
.dm-chipbtn:disabled:not(.is-on) { opacity: .55; }
.dm-counter { display: flex; align-items: center; gap: 10px; }
.dm-counter__btn { display: grid; place-items: center; width: 48px; height: 48px; font: 700 1.4rem var(--font-display); }
.dm-counter__btn:disabled { opacity: .4; cursor: default; }
.dm-counter__n { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; font: 600 1rem var(--font-display); }
.dm-counter__n .ndj-ic { color: var(--purple); }
.dm-botav { background: linear-gradient(135deg, #6C63FF, #A855F7) !important; display: inline-grid; place-items: center; }
.dm-botav .ndj-ic { width: 20px; height: 20px; color: #fff; }
.dm-teamtag {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-left: 6px; border-radius: 7px;
  font: 800 .75rem/1 var(--font-display); color: #fff; background: var(--dm-team0); vertical-align: middle;
}
.dm-teamtag--1 { background: var(--dm-team1); }
.dm-teamlbl { display: inline-flex; align-items: center; padding: 2px 9px; margin-right: 8px; border-radius: 999px; font: 800 .74rem/1.3 var(--font-display); color: #fff; background: var(--dm-team0); white-space: nowrap; flex: none; }
.dm-teamlbl--1 { background: var(--dm-team1); }

/* this phone's switches (the lobby card and the help window) */
.dm-phonecard { padding: 0; overflow: hidden; }
.dm-phonecard > summary { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 18px; cursor: pointer; list-style: none; }
.dm-phonecard > summary::-webkit-details-marker { display: none; }
.dm-phonecard > summary .ndj-ic { width: 22px; height: 22px; color: var(--dm-brand); flex: none; }
.dm-phonecard__t { font: 700 1rem var(--font-display); flex: none; }
.dm-phonecard__v { flex: 1 1 auto; min-width: 0; text-align: right; font-size: .8rem; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-phonecard > .dm-switches { padding: 0 14px 14px; }
.dm-switches { display: flex; flex-direction: column; gap: 8px; }
.dm-switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 60px; padding: 8px 14px; border-radius: 16px; border: 1px solid var(--dm-edge); background: var(--card-2); text-align: left; cursor: pointer; }
.dm-switch__t { display: block; font: 600 1rem var(--font-display); }
.dm-switch__h { display: block; font-size: .84rem; line-height: 1.25; color: var(--fg-2); }
.dm-switch__sw { position: relative; display: inline-block; flex: none; width: 48px; height: 28px; border-radius: 999px; background: color-mix(in srgb, var(--fg-2) 45%, transparent); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .18); transition: background .2s; }
.dm-switch__sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .2s; }
.dm-switch.is-on .dm-switch__sw { background: var(--dm-hero); }
.dm-switch.is-on .dm-switch__sw::after { transform: translateX(20px); }
.dm-switch:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

/* ------------------------------------------------------------ play screen */
.ndj-app.dm-app { max-width: 1040px; padding-block: 8px 12px; display: flex; flex-direction: column; min-height: calc(100dvh - 66px); }
.dm-play { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; min-height: 0; }

/* players strip: the avatar, the name, how many tiles they hold (icon + big number) and their score */
.dm-players { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 13px 2px 8px; margin: -13px -2px -8px; flex: none; }
.dm-players::-webkit-scrollbar { display: none; }
.dm-chip {
  position: relative; flex: 1 1 0; min-width: 78px; max-width: 240px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "av name" "meta meta"; align-items: center; gap: 5px 7px; padding: 7px 8px 8px;
  border-radius: 18px; background: var(--card); border: 1px solid var(--dm-edge); box-shadow: var(--dm-lift), 0 1px 0 rgba(255, 255, 255, .9) inset;
  transition: border-color .2s, box-shadow .2s, opacity .2s;
}
.dm-chip__avwrap { grid-area: av; position: relative; display: inline-flex; }
.dm-chip .ndj-avatar { width: 32px; height: 32px; font-size: 1rem; }
/* prize frame and level on the small chip avatars: a slimmer ring (it stays inside the strip) and a small badge off the letter */
.dm-chip .ndj-fr::after { inset: -3px; padding: 2.5px; }
.dm-chip__avwrap .ndj-lv { min-width: 15px; height: 15px; padding: 0 3px; right: -8px; bottom: -6px; font-size: .58rem; }
/* the team letter is a small tab on the chip's colored top edge: never on the avatar, its letter or the level badge */
.dm-teamtag--chip { position: absolute; top: -11px; left: 12px; z-index: 1; margin: 0; min-width: 18px; height: 15px; padding: 0 5px; font-size: .64rem; border-radius: 6px; box-shadow: 0 0 0 2px var(--card), 0 2px 4px rgba(0, 0, 0, .18); }
.dm-chip__main { display: contents; }
.dm-chip__name { grid-area: name; display: flex; align-items: center; font-weight: 800; font-size: .92rem; white-space: nowrap; line-height: 1.1; min-width: 0; }
.dm-chip__nm { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dm-chip__meta { grid-area: meta; display: flex; align-items: center; justify-content: space-between; gap: 6px; font: 700 .8rem var(--font-display); color: var(--fg-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dm-chip__cnt { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px 1px 6px; border-radius: 999px; background: var(--dm-ink); color: #fff; }
.dm-chip__cnt .ndj-ic { width: 16px; height: 16px; }
.dm-chip__n { font: 800 1.05rem/1.25 var(--font-display); }
.dm-chip__score { color: var(--fg); font-size: .86rem; }
.dm-chip__score small { font-size: .78em; margin-left: 2px; color: var(--fg-2); }
.dm-chip.is-turn { border: 2px solid var(--pc); padding: 6px 7px 7px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 30%, transparent), 0 12px 20px -12px color-mix(in srgb, var(--pc) 80%, transparent); }
/* the pulse is an opacity animation on a pseudo-element (compositor only) */
.dm-chip.is-turn::before { content: ""; position: absolute; inset: -4px; border-radius: 21px; pointer-events: none; opacity: 0; will-change: opacity;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 45%, transparent); animation: dm-glowpulse 1.6s ease-in-out infinite; }
.dm-chip.is-fresh { animation: dm-chip-in .55s cubic-bezier(.2, .8, .2, 1); }
.dm-chip__turn { position: absolute; top: -6px; right: -4px; width: 14px; height: 14px; border-radius: 50%; background: var(--pc); border: 2.5px solid var(--card); animation: dm-ping 1.4s ease-in-out infinite; }
.dm-chip.is-me { background: color-mix(in srgb, var(--pc) 10%, var(--card)); }
.dm-chip.is-me .dm-chip__nm { color: color-mix(in srgb, var(--pc) 70%, var(--fg)); }
.dm-chip--t0, .dm-chip--t1 { border-top-width: 4px; }
.dm-chip--t0 { border-top-color: var(--dm-team0); }
.dm-chip--t1 { border-top-color: var(--dm-team1); }
.dm-chip.is-turn.dm-chip--t0 { border-top-color: var(--dm-team0); }
.dm-chip.is-turn.dm-chip--t1 { border-top-color: var(--dm-team1); }
.dm-chip.is-away { opacity: .55; border-style: dashed; }

/* the instruction banner: one big sentence that says what to do now. Mine: the hero gradient. Waiting: white with the color of who plays. */
.dm-banner {
  position: relative; flex: none; display: flex; align-items: center; gap: 12px; min-height: 76px;
  padding: 10px 14px 12px 12px; border-radius: 22px; overflow: hidden;
  background: var(--card); border: 1px solid var(--dm-edge); box-shadow: var(--dm-lift), 0 1px 0 rgba(255, 255, 255, .9) inset;
}
.dm-banner__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: color-mix(in srgb, var(--pc, var(--dm-brand)) 70%, #000); background: color-mix(in srgb, var(--pc, var(--dm-brand)) 20%, var(--card)); }
.dm-banner__icon .ndj-ic { width: 27px; height: 27px; }
.dm-banner__main { flex: 1 1 auto; min-width: 0; }
.dm-banner__title { font: 700 clamp(1.3rem, 6.2vw, 1.65rem)/1.1 var(--font-display); overflow-wrap: anywhere; }
.dm-banner__sub { font-size: .95rem; line-height: 1.3; color: var(--fg-2); margin-top: 3px; }
.dm-banner__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.dm-banner--away { background: color-mix(in srgb, var(--orange) 16%, var(--card)); border-color: color-mix(in srgb, var(--orange) 40%, transparent); }
.dm-banner--end { background: color-mix(in srgb, var(--dm-gold) 26%, var(--card)); }
.dm-banner--end .dm-banner__icon { color: #7A5200; background: color-mix(in srgb, var(--dm-gold) 60%, var(--card)); }
/* my turn: large bold white on the hero gradient; the small line sits in a white pill (small text never goes on the gradient) */
.dm-banner--me { color: #fff; background: var(--dm-hero); border: 0; box-shadow: 0 18px 30px -14px rgba(255, 107, 74, .8), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -3px 0 rgba(190, 55, 20, .18); }
.dm-banner--me::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46%; background: linear-gradient(rgba(255, 255, 255, .26), rgba(255, 255, 255, 0)); pointer-events: none; }
.dm-banner--me .dm-banner__title { color: #fff; text-shadow: 0 2px 3px rgba(160, 40, 10, .4); }
.dm-banner--me .dm-banner__sub { display: inline-block; margin-top: 5px; padding: 2px 12px; border-radius: 999px; background: #fff; color: var(--dm-ink); font-weight: 700; text-shadow: none; box-shadow: 0 4px 10px -6px rgba(160, 40, 10, .7); }
.dm-banner--me .dm-banner__icon { color: #E04A2C; background: #fff; box-shadow: 0 6px 12px -6px rgba(160, 40, 10, .7); animation: dm-nudge 1.6s ease-in-out infinite; }
/* "you pass" / "you draw": nothing to do, so the navy panel instead of the call to action */
.dm-banner--auto { background: var(--dm-navy); box-shadow: 0 18px 30px -16px rgba(31, 33, 55, .85), inset 0 1px 0 rgba(255, 255, 255, .12); }
.dm-banner--auto::before { display: none; }
.dm-banner--auto .dm-banner__title { text-shadow: none; }
.dm-banner--auto .dm-banner__icon { color: #FFE66D; background: rgba(255, 255, 255, .14); box-shadow: none; animation: none; }
.dm-pozo {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font: 800 .95rem var(--font-display);
  background: var(--bg-2); color: var(--fg); font-variant-numeric: tabular-nums; border: 1px solid var(--dm-edge);
}
.dm-banner--me .dm-pozo, .dm-banner--auto .dm-pozo { background: #fff; color: var(--dm-ink); border: 0; text-shadow: none; }
.dm-pozo .ndj-ic { width: 18px; height: 18px; }
.dm-pill {
  display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 4px 14px; border-radius: 999px;
  border: 1px solid var(--dm-edge); cursor: pointer; font: 600 .92rem var(--font-display); white-space: nowrap;
  background: var(--card); color: var(--fg); box-shadow: var(--dm-pill-sh);
}
.dm-pill .ndj-ic { width: 18px; height: 18px; }
.dm-skip { background: linear-gradient(180deg, #FFA45C, var(--orange)); color: #fff; border-color: rgba(0, 0, 0, .08); text-shadow: 0 1px 0 rgba(0, 0, 0, .18); }

/* ------------------------------------------------------------ the table (SVG): navy felt in a coral rim */
.dm-boardwrap {
  position: relative; flex: 1 1 auto; min-height: 180px; width: 100%; max-width: 760px; margin: 0 auto;
  border-radius: 24px; padding: 7px;
  background: linear-gradient(180deg, var(--dm-frame-hi) 0%, var(--dm-frame) 22%, var(--dm-frame-lo) 100%);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .7), inset 0 0 0 1px rgba(255, 255, 255, .28), 0 26px 38px -24px rgba(232, 72, 58, .65), 0 8px 16px -8px rgba(255, 107, 74, .35);
}
.dm-boardwrap::before {
  content: ""; position: absolute; inset: 7px; border-radius: 18px;
  background: radial-gradient(ellipse at 50% 34%, var(--dm-felt-1) 0%, var(--dm-felt-2) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3), inset 0 8px 30px rgba(8, 10, 30, .5);
}
.dm-board { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); overflow: visible; touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: filter .35s; }
.dm-boardwrap.is-mine { box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .7), inset 0 0 0 1px rgba(255, 255, 255, .28), 0 0 0 4px rgba(255, 179, 0, .5), 0 26px 38px -24px rgba(232, 72, 58, .65); }
.dm-boardwrap.is-wait .dm-board { filter: brightness(.92) saturate(.92); }
.dm-tg0 { stop-color: #fff; }
.dm-tg1 { stop-color: var(--dm-tile); }
.dm-tg2 { stop-color: var(--dm-tile-2); }
.dm-ct__shadow { fill: rgba(0, 0, 0, .42); }
.dm-ct__body { fill: url(#dm-tg); stroke: var(--dm-tile-line); stroke-width: .8; }
.dm-ct__gloss { fill: url(#dm-gl); opacity: .6; pointer-events: none; }
.dm-ct__div { stroke: rgba(80, 60, 30, .38); stroke-width: 1.3; stroke-linecap: round; }
.dm-ct__div2 { stroke: rgba(255, 255, 255, .9); stroke-width: .8; stroke-linecap: round; }
.dm-ct.is-last .dm-ct__body { stroke: var(--dm-hl); stroke-width: 2.2; }
.dm-ct__in { transform-box: fill-box; transform-origin: center; }
.dm-pip { fill: var(--dm-pip); }
.dm-pip__hl { fill: #fff; opacity: .4; pointer-events: none; }
[data-v="1"] .dm-pip, .dm-tile__half[data-v="1"] i { background: var(--dm-p1); fill: var(--dm-p1); }
[data-v="2"] .dm-pip, .dm-tile__half[data-v="2"] i { background: var(--dm-p2); fill: var(--dm-p2); }
[data-v="3"] .dm-pip, .dm-tile__half[data-v="3"] i { background: var(--dm-p3); fill: var(--dm-p3); }
[data-v="4"] .dm-pip, .dm-tile__half[data-v="4"] i { background: var(--dm-p4); fill: var(--dm-p4); }
[data-v="5"] .dm-pip, .dm-tile__half[data-v="5"] i { background: var(--dm-p5); fill: var(--dm-p5); }
[data-v="6"] .dm-pip, .dm-tile__half[data-v="6"] i { background: var(--dm-p6); fill: var(--dm-p6); }
/* the two open ends: a ghost of the next tile with the number to match; big and bright when it is yours to choose */
.dm-drop { cursor: pointer; opacity: .62; transition: opacity .2s; }
.dm-drop__in { transform-box: fill-box; transform-origin: center; }
.dm-drop__box { fill: rgba(255, 255, 255, .08); stroke: rgba(255, 255, 255, .75); stroke-width: 1.6; stroke-dasharray: 6 4; }
.dm-drop__n { font: 800 20px var(--font-display); fill: #fff; text-anchor: middle; dominant-baseline: middle; pointer-events: none; paint-order: stroke; stroke: rgba(0, 0, 0, .3); stroke-width: 2.4; }
.dm-drop__lbl { font: 700 9.5px var(--font-display); fill: rgba(255, 255, 255, .95); text-anchor: middle; pointer-events: none; letter-spacing: .2px; text-transform: uppercase; }
.dm-drop__hit { fill: transparent; }
.dm-drop.is-fit, .dm-drop.is-choice { opacity: 1; }
.dm-drop.is-fit .dm-drop__box { fill: rgba(255, 201, 60, .24); stroke: var(--dm-gold); stroke-width: 2.4; }
.dm-drop.is-fit .dm-drop__n { fill: var(--dm-gold); stroke: rgba(40, 25, 0, .55); }
.dm-drop.is-fit .dm-drop__lbl { fill: var(--dm-gold); }
.dm-drop.is-choice .dm-drop__in { transform: scale(1.1); }
.dm-drop.is-choice .dm-drop__box { fill: rgba(255, 201, 60, .5); stroke: #fff; stroke-width: 3; stroke-dasharray: none; animation: dm-droppulse .9s ease-in-out infinite; }
.dm-drop.is-choice .dm-drop__n { fill: #fff; font-size: 26px; stroke: rgba(120, 60, 0, .6); stroke-width: 3; }
.dm-drop.is-choice .dm-drop__lbl { fill: #fff; font-size: 11px; }
.dm-drop.is-off { opacity: .18; }
.dm-drop.is-first .dm-drop__lbl { font-size: 10px; }
.dm-drop:focus-visible { outline: none; }
.dm-drop:focus-visible .dm-drop__box { stroke: #fff; stroke-width: 3; }
.dm-float {
  position: fixed; z-index: 190; translate: -50% -50%; pointer-events: none; line-height: 1;
  font-size: 34px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); animation: dm-float 1.2s cubic-bezier(.2, .7, .3, 1) forwards;
}
/* a funny caption over the top of the table (never takes a tap) */
.dm-quip {
  position: absolute; left: 50%; top: 12px; translate: -50% 0; z-index: 9; max-width: calc(100% - 20px); display: flex; align-items: center; gap: 8px;
  padding: 7px 16px 7px 10px; border-radius: 999px; pointer-events: none; color: #fff; background: var(--dm-hero);
  border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 14px 24px -12px rgba(150, 50, 20, .8), inset 0 1px 0 rgba(255, 255, 255, .4);
  font: 800 clamp(1rem, 4.4vw, 1.2rem)/1.15 var(--font-display); text-shadow: 0 2px 3px rgba(160, 40, 10, .38); animation: dm-quip 2.6s ease both;
}
.dm-quip.is-plain { background: var(--dm-navy); padding-left: 16px; text-shadow: none; border-color: rgba(255, 255, 255, .18); box-shadow: 0 14px 24px -12px rgba(0, 0, 0, .7); }
.dm-quip__e { font-size: 1.6rem; line-height: 1; animation: dm-emojipop .6s cubic-bezier(.2, 1.8, .4, 1) both; }
.dm-quip__t { min-width: 0; }

/* ------------------------------------------------------------ my hand: big glossy tiles, as many as fit in one row */
.dm-handbox { flex: none; width: calc(100% + 12px); max-width: 772px; margin: 0 -6px; align-self: center; display: flex; flex-direction: column; gap: 6px; }
.dm-hand__label { text-align: center; font: 700 .92rem var(--font-display); color: var(--fg-2); padding: 6px 12px; }
.dm-hand { display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 68px)); justify-content: center; gap: 4px 5px; padding: 16px 4px 4px; min-height: 112px; align-items: end; }
.dm-tile {
  position: relative; display: flex; flex-direction: column; width: 100%; aspect-ratio: 1 / 1.9; padding: 0; border-radius: 11px; cursor: default;
  background: linear-gradient(rgba(255, 255, 255, .75) 0%, rgba(255, 255, 255, 0) 30%) no-repeat, linear-gradient(160deg, #fff 0%, var(--dm-tile) 45%, var(--dm-tile-2) 100%); border: 1px solid var(--dm-tile-line);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .07), inset 0 1px 0 #fff, 0 10px 14px -10px rgba(0, 0, 0, .5), 0 2px 3px rgba(0, 0, 0, .12);
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s, opacity .18s, filter .18s;
}
.dm-tile__half { position: relative; flex: 1 1 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 13% 14%; gap: 6%; }
.dm-tile__half + .dm-tile__half::before { content: ""; position: absolute; left: 9%; right: 9%; top: -1px; height: 2px; border-radius: 1px; background: rgba(80, 60, 30, .35); box-shadow: 0 1px 0 rgba(255, 255, 255, .95); }
.dm-tile__half i { display: block; width: 100%; height: 100%; border-radius: 50%; opacity: 0; transform: scale(.82); background: var(--dm-pip); box-shadow: inset 0 -1.5px 1px rgba(0, 0, 0, .3), inset 0 1.5px 1px rgba(255, 255, 255, .3); }
.dm-tile__half i.on { opacity: 1; }
.dm-tile:disabled { cursor: default; }
.dm-tile.is-can { cursor: pointer; transform: translateY(-9px); box-shadow: 0 0 0 3px var(--dm-hl), 0 14px 20px -8px rgba(255, 150, 0, .85); }
.dm-tile.is-can::before { content: ""; position: absolute; inset: -2px; border-radius: 13px; pointer-events: none; opacity: 0; will-change: opacity;
  box-shadow: 0 0 0 5px rgba(255, 224, 120, .95), 0 12px 26px rgba(255, 150, 0, .8); animation: dm-glowpulse 1.4s ease-in-out infinite; }
.dm-tile.is-sel::before { display: none; }
.dm-tile.is-can:active { transform: translateY(-4px) scale(.96); }
.dm-tile.is-sel { transform: translateY(-16px) scale(1.07); box-shadow: 0 0 0 3px #fff, 0 0 0 7px var(--dm-hl), 0 18px 24px -8px rgba(255, 150, 0, .9); animation: none; }
.dm-tile.is-dim { opacity: .62; filter: saturate(.7); }
.dm-tile.is-new { animation: dm-tile-in .5s cubic-bezier(.2, .8, .2, 1); }
.dm-tile:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
/* the plain table (easy mode off): the tiles all look alike */
.dm-play[data-easy="0"] .dm-tile.is-sel { transform: translateY(-14px) scale(1.05); }

/* reactions: one compact pill under the hand */
.dm-reacts { display: flex; justify-content: center; gap: 4px; flex: none; align-self: center; padding: 4px 6px; border-radius: 999px; background: color-mix(in srgb, var(--card) 92%, transparent); border: 1px solid var(--dm-edge); box-shadow: var(--dm-pill-sh); }
.dm-react {
  width: 46px; height: 44px; border-radius: 14px; border: 0; background: transparent; cursor: pointer;
  font-size: 25px; line-height: 1; display: grid; place-items: center; transition: transform .12s, background .15s;
}
.dm-react:hover { background: var(--bg-2); }
.dm-react:active { transform: scale(.82); }
.dm-react:focus-visible { outline: 3px solid var(--ring); outline-offset: 1px; }
/* with an emoji pack from the collection: one scrolling row (the base six, a thin divider, then the pack on a golden tint) */
.dm-reacts.has-pack { justify-content: flex-start; max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.dm-reacts.has-pack::-webkit-scrollbar { display: none; }
.dm-reacts.has-pack .dm-react { flex: none; }
.dm-reacts__sep { flex: none; width: 1px; margin: 8px 3px; background: var(--dm-edge); box-shadow: 1px 0 0 rgba(255, 255, 255, .6); }
.dm-react--pack { background: radial-gradient(circle at 50% 40%, rgba(255, 210, 63, .22), transparent 70%); }

/* ------------------------------------------------------------ end of round / match: the hero gradient on top, white card below */
.dm-overlay {
  position: fixed; inset: 0; z-index: 140; display: flex; align-items: flex-end; justify-content: center;
  padding: 12px 12px 0; background: rgba(31, 33, 55, .55); animation: ndj-fade .25s ease both;
}
.dm-sheet {
  width: min(560px, 100%); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain;
  background: var(--card); border-radius: 28px 28px 0 0; padding: 0 0 calc(18px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -24px 48px -24px rgba(15, 15, 35, .5); animation: dm-up .4s cubic-bezier(.2, .8, .2, 1) both;
}
.dm-sheet__hero {
  position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 16px 18px 18px; color: #fff; overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, 0) 60%), var(--dm-hero);
  border-radius: 28px 28px 26px 26px; box-shadow: 0 16px 26px -18px rgba(255, 107, 74, .9), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.dm-sheet__hero.is-blocked { background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 60%), var(--dm-navy); box-shadow: 0 16px 26px -18px rgba(31, 33, 55, .9); }
.dm-sheet__trophy {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; color: #E04A2C; background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .35), 0 16px 26px -10px rgba(160, 40, 10, .7);
}
.dm-sheet__hero.is-blocked .dm-sheet__trophy { color: #FFE66D; background: rgba(255, 255, 255, .14); box-shadow: 0 0 0 6px rgba(255, 255, 255, .12); }
.dm-sheet__trophy .ndj-ic { width: 32px; height: 32px; }
.dm-sheet__hero.is-me .dm-sheet__trophy { animation: dm-bounce 1.2s ease-in-out infinite; }
.dm-sheet__title { font-size: clamp(1.7rem, 8vw, 2.1rem); font-weight: 700; color: #fff; text-shadow: 0 2px 3px rgba(160, 40, 10, .4); }
.dm-sheet__hero.is-blocked .dm-sheet__title { text-shadow: none; }
.dm-sheet__sub { padding: 5px 14px; border-radius: 16px; background: #fff; color: var(--dm-ink); font-weight: 700; line-height: 1.3; box-shadow: 0 6px 12px -8px rgba(160, 40, 10, .7); }
.dm-sheet__quip { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; padding: 4px 14px; border-radius: 999px; background: rgba(43, 45, 66, .88); color: #fff; font: 700 1rem/1.25 var(--font-display); }
.dm-sheet__quip b, .dm-sheet__quip2 b { font-size: 1.4rem; line-height: 1; }
.dm-sheet__quip2 { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 8px 14px; border-radius: 16px; background: color-mix(in srgb, var(--dm-gold) 24%, var(--card)); font: 700 1rem/1.25 var(--font-display); text-align: center; }
.dm-sheet__body { padding: 4px 18px 0; }
.dm-sheet__h { font-size: 1rem; color: var(--fg-2); margin: 14px 0 6px; }
.dm-rows, .dm-podium { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dm-row { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--dm-edge); }
.dm-row.is-won { background: color-mix(in srgb, var(--dm-gold) 28%, var(--card)); border-color: color-mix(in srgb, var(--dm-gold) 75%, transparent); }
.dm-row .ndj-avatar { width: 32px; height: 32px; font-size: 1rem; flex: none; }
.dm-row__name { font-weight: 800; min-width: 74px; flex: 1 1 auto; overflow-wrap: break-word; display: flex; align-items: center; }
.dm-row__left { font: 600 .82rem/1.2 var(--font-display); color: var(--fg-2); text-align: right; max-width: 46%; }
.dm-row__gain { min-width: 44px; text-align: right; font: 800 1.15rem var(--font-display); font-variant-numeric: tabular-nums; color: var(--fg-2); }
.dm-row__gain.is-plus { color: #B45309; }
.dm-totals { display: flex; flex-direction: column; gap: 8px; }
.dm-total { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 4px 10px; align-items: center; padding: 8px 12px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--dm-edge); }
.dm-total.is-me { border-color: var(--dm-brand); box-shadow: 0 0 0 1px var(--dm-brand); }
.dm-total__name { font-weight: 800; display: flex; align-items: center; min-width: 0; }
.dm-total__who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-total__n { font: 800 1rem var(--font-display); font-variant-numeric: tabular-nums; }
.dm-total__bar { grid-column: 1 / -1; display: block; height: 10px; border-radius: 999px; background: var(--bg-2); overflow: hidden; box-shadow: inset 0 1px 2px rgba(43, 45, 66, .15); }
.dm-total__bar > i { display: block; height: 100%; border-radius: 999px; background: var(--dm-hero); transition: width .4s ease; }
.dm-total--t0 .dm-total__bar > i { background: linear-gradient(90deg, var(--dm-team0), #2FD0C0); }
.dm-total--t1 .dm-total__bar > i { background: linear-gradient(90deg, var(--dm-team1), #B77CFF); }
.dm-podium__row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--dm-edge); }
.dm-podium__row.is-first { background: color-mix(in srgb, var(--dm-gold) 30%, var(--card)); border-color: color-mix(in srgb, var(--dm-gold) 80%, transparent); box-shadow: 0 14px 24px -20px rgba(245, 158, 11, .9); }
.dm-podium__pos { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--card); font: 800 1rem var(--font-display); flex: none; box-shadow: var(--dm-pill-sh); }
.dm-podium__row.is-first .dm-podium__pos { background: #FFD60A; color: #3B2F00; }
.dm-podium__row:nth-child(2) .dm-podium__pos { background: #C5CBDB; color: #1B1F3B; }
.dm-podium__row:nth-child(3) .dm-podium__pos { background: #D29A6B; color: #fff; }
.dm-podium__avs { display: inline-flex; flex: none; }
.dm-podium__avs .ndj-avatar { width: 34px; height: 34px; font-size: 1rem; }
.dm-podium__avs .ndj-avatar + .ndj-avatar { margin-left: -8px; box-shadow: 0 0 0 2px var(--card); }
.dm-podium__name { flex: 1 1 auto; min-width: 0; font-weight: 800; display: flex; align-items: center; flex-wrap: wrap; row-gap: 2px; }
.dm-podium__who { overflow-wrap: anywhere; }
.dm-podium__score { font: 800 1.15rem var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }
.dm-podium__score small { font-size: .68em; font-weight: 700; color: var(--fg-2); }
.dm-sheet__actions { display: flex; flex-direction: column; gap: 10px; margin: 8px 18px 0; position: sticky; bottom: calc(-18px - env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--card) 82%, transparent); padding: 22px 0 6px; z-index: 1; }
.dm-showres { position: fixed; z-index: 130; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; box-shadow: 0 16px 28px -10px rgba(255, 107, 74, .8), inset 0 1px 0 rgba(255, 255, 255, .6); }
.dm-fam { margin: 12px 0 4px; }
.dm-fam .fam-card { margin: 0; }
@media (max-height: 700px) { .dm-fam .fam-card { padding: 10px 12px; } .dm-fam .fam-card > p, .dm-fam .fam-card small { display: none; } .dm-sheet__hero { padding-block: 16px 18px; } .dm-sheet__trophy { width: 56px; height: 56px; } }

/* ------------------------------------------------------------ modals, guide & rules */
.dm-modal__box { width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow: auto; border-radius: 26px; }
.dm-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.dm-modal__head .ndj-modal__title { margin: 0; }
.dm-modal__x { display: grid; place-items: center; min-width: 44px; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--dm-edge); background: var(--card-2); color: var(--fg); cursor: pointer; flex: none; }
.dm-modal__x .ndj-ic { width: 18px; height: 18px; }
.dm-modal__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.dm-modal__actions:has(.dm-guide__ok) { border-top: 0; padding-top: 0; }
.dm-guide__ok { width: 100%; }
.dm-invite.ndj-share { box-shadow: none; border: 0; padding: 0; }
.dm-helpwrap { display: flex; flex-direction: column; gap: 14px; }
.dm-help__more { font-size: 1.05rem; color: var(--fg-2); margin-top: 4px; }
.dm-guide { display: flex; flex-direction: column; gap: 12px; }
.dm-guide__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dm-guide__step { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--dm-edge); }
.dm-guide__n { position: absolute; left: -4px; top: -4px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; background: #C8381A; font: 800 .95rem var(--font-display); box-shadow: 0 2px 5px rgba(0, 0, 0, .25); }
.dm-guide__ic { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; color: #fff; background: var(--dm-hero); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 16px -10px rgba(255, 107, 74, .8); }
.dm-guide__ic .ndj-ic { width: 34px; height: 34px; }
.dm-guide__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dm-guide__txt strong { font: 700 1.12rem/1.15 var(--font-display); }
.dm-guide__txt span { font-size: .95rem; line-height: 1.3; color: var(--fg-2); }
.dm-guide__win { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--dm-gold) 28%, var(--card)); font: 700 1rem/1.25 var(--font-display); }
.dm-guide__win .ndj-ic { width: 28px; height: 28px; flex: none; color: #B07A00; }
.dm-rules { display: flex; flex-direction: column; gap: 12px; }
.dm-rules__lead { font-weight: 700; }
.dm-rules__list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--fg); }
.dm-rules__list li { line-height: 1.45; }
.dm-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px; border-radius: 14px; background: var(--bg-2); font-size: .9rem; }
.dm-legend__tile {
  display: inline-flex; width: 48px; height: 24px; border-radius: 6px; background: var(--dm-tile); border: 1px solid var(--dm-tile-line); flex: none; position: relative;
}
.dm-legend__tile .dm-tile__half { padding: 3px; gap: 0; }
.dm-legend__tile .dm-tile__half + .dm-tile__half::before { left: -0.5px; right: auto; top: 3px; bottom: 3px; width: 1px; height: auto; }
.dm-legend__txt { flex: 1 1 140px; color: var(--fg-2); }
.dm-rulescard { padding: 0; overflow: hidden; }
.dm-rulescard > summary {
  display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 12px 20px; cursor: pointer; list-style: none;
  font: 600 1.1rem var(--font-display);
}
.dm-rulescard > summary::-webkit-details-marker { display: none; }
.dm-rulescard > summary::after { content: "+"; margin-left: auto; font: 700 1.4rem var(--font-display); color: var(--fg-2); transition: transform .2s; }
.dm-rulescard[open] > summary::after { transform: rotate(45deg); }
.dm-rulescard > summary .ndj-ic { color: var(--dm-brand); width: 22px; height: 22px; }
.dm-rulescard > .dm-rules { padding: 0 20px 20px; }

/* ------------------------------------------------------------ bigger / smaller screens */
@media (min-width: 560px) {
  .dm-chip { gap: 6px 9px; padding: 8px 12px 9px; }
  .dm-chip .ndj-avatar { width: 38px; height: 38px; }
}
@media (min-width: 760px) {
  .dm-chip { min-width: 130px; }
  .dm-boardwrap { min-height: 320px; }
  .dm-hand { grid-template-columns: repeat(var(--n, 7), minmax(0, 76px)); }
}
@media (max-width: 400px) {
  .ndj-app.dm-app { padding-inline: 12px; }
  .dm-chip { min-width: 0; padding: 6px 6px 7px; gap: 4px 5px; border-radius: 16px; }
  .dm-chip.is-turn { padding: 5px 5px 6px; }
  .dm-chip .ndj-avatar { width: 28px; height: 28px; font-size: .9rem; }
  .dm-chip__name { font-size: .84rem; }
  .dm-chip__meta { font-size: .78rem; }
  .dm-chip__cnt { padding: 0 7px 0 5px; }
  .dm-chip__cnt .ndj-ic { width: 14px; height: 14px; }
  .dm-chip__n { font-size: 1rem; }
  .dm-teamtag--chip { left: 8px; }
  .dm-react { width: 42px; height: 42px; font-size: 23px; }
  .dm-hand { gap: 4px 4px; }
  .dm-banner { padding-right: 10px; }
}
@media (max-height: 700px) {
  .dm-hand { min-height: 96px; padding-top: 12px; grid-template-columns: repeat(var(--n, 7), minmax(0, 52px)); }
  .dm-banner { min-height: 66px; }
  .dm-boardwrap { min-height: 170px; }
  .dm-banner__icon { width: 42px; height: 42px; }
  html[data-dm-table] { --ndj-toast-bottom: 160px; }
}

/* ------------------------------------------------------------ animations */
@keyframes dm-ping { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes dm-glowpulse { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes dm-droppulse { 0%, 100% { stroke-opacity: .55; fill-opacity: .35; } 50% { stroke-opacity: 1; fill-opacity: .65; } }
@keyframes dm-tile-in { 0% { transform: translateY(26px) scale(.7); opacity: 0; } 60% { transform: translateY(-6px) scale(1.05); opacity: 1; } 100% { transform: none; } }
@keyframes dm-chip-in { 0% { transform: translateX(-14px) scale(.92); } 60% { transform: translateX(3px) scale(1.06); } 100% { transform: none; } }
@keyframes dm-float { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { transform: translateY(-10px) scale(1.15); opacity: 1; } 100% { transform: translateY(-80px) scale(1); opacity: 0; } }
@keyframes dm-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dm-bounce { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
@keyframes dm-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes dm-quip { 0% { opacity: 0; transform: translateY(-10px) scale(.92); } 10% { opacity: 1; transform: none; } 86% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes dm-emojipop { 0% { transform: scale(.3) rotate(-20deg); } 60% { transform: scale(1.3) rotate(8deg); } 100% { transform: none; } }
@keyframes dm-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .dm-tile, .dm-chip, .dm-board, .dm-switch__sw, .dm-switch__sw::after { transition: none; }
  .dm-tile.is-can::before, .dm-chip.is-turn::before { animation: none; opacity: .6; }
  .dm-tile.is-can, .dm-tile.is-new, .dm-chip.is-turn, .dm-chip.is-fresh, .dm-drop.is-fit .dm-drop__box, .dm-drop.is-choice .dm-drop__box, .dm-chip__turn, .dm-sheet__hero.is-me .dm-sheet__trophy, .dm-banner--me .dm-banner__icon, .dm-quip__e { animation: none; }
  .dm-quip { animation-name: dm-fade; }
  .dm-sheet { animation: none; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dm-banner__icon { color: color-mix(in srgb, var(--pc, var(--dm-brand)) 55%, #fff); background: color-mix(in srgb, var(--pc, var(--dm-brand)) 28%, var(--card)); }
  :root:not([data-theme="light"]) .dm-banner--me .dm-banner__icon { color: #E04A2C; background: #fff; }
  :root:not([data-theme="light"]) .dm-banner--auto .dm-banner__icon { color: #FFE66D; background: rgba(255, 255, 255, .14); }
  :root:not([data-theme="light"]) .dm-banner--end .dm-banner__icon { color: #FFE08A; background: rgba(255, 201, 60, .22); }
  :root:not([data-theme="light"]) .dm-chip__cnt { background: #3A3D5C; }
  :root:not([data-theme="light"]) .dm-row__gain.is-plus { color: #FFC93C; }
}
:root[data-theme="dark"] .dm-banner__icon { color: color-mix(in srgb, var(--pc, var(--dm-brand)) 55%, #fff); background: color-mix(in srgb, var(--pc, var(--dm-brand)) 28%, var(--card)); }
:root[data-theme="dark"] .dm-banner--me .dm-banner__icon { color: #E04A2C; background: #fff; }
:root[data-theme="dark"] .dm-banner--auto .dm-banner__icon { color: #FFE66D; background: rgba(255, 255, 255, .14); }
:root[data-theme="dark"] .dm-banner--end .dm-banner__icon { color: #FFE08A; background: rgba(255, 201, 60, .22); }
:root[data-theme="dark"] .dm-chip__cnt { background: #3A3D5C; }
:root[data-theme="dark"] .dm-row__gain.is-plus { color: #FFC93C; }

/* ------------------------------------------------------------ tiles won in the collection (html[data-tiles], slot "tiles": also Rummy)
   no attribute = the ivory tiles above. The table's SVG tiles change their gradient stops and show a texture layer; the hand follows. */
.dm-ct__tex { display: none; pointer-events: none; }
:root[data-tiles] .dm-ct__tex { display: inline; }
:root[data-tiles="marble"] { --dm-tile: #F1F2F7; --dm-tile-2: #D9DBE6; --dm-tile-line: #C4C7D6; }
:root[data-tiles="marble"] .dm-ct__tex { fill: url(#dm-tex-marble); }
:root[data-tiles="marble"] .dm-tile { background: linear-gradient(rgba(255, 255, 255, .75) 0%, rgba(255, 255, 255, 0) 30%) no-repeat,
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 130' preserveAspectRatio='none'%3E%3Cpath d='M-5 38C20 30 30 52 52 44S85 22 105 30' fill='none' stroke='%237A80A6' stroke-opacity='.3' stroke-width='1.6'/%3E%3Cpath d='M-5 96C18 88 40 108 62 96S90 80 105 86' fill='none' stroke='%237A80A6' stroke-opacity='.2' stroke-width='1.2'/%3E%3Cpath d='M52 44C58 60 50 70 60 84' fill='none' stroke='%237A80A6' stroke-opacity='.16' stroke-width='.9'/%3E%3Cpath d='M30 -5C36 14 26 22 34 36' fill='none' stroke='%23BFA27A' stroke-opacity='.28' stroke-width='1'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat,
  linear-gradient(160deg, #fff 0%, #F1F2F7 45%, #D9DBE6 100%); }
:root[data-tiles="wood"] { --dm-tile: #EBC48A; --dm-tile-2: #D29C58; --dm-tile-line: #A8723A; --dm-pip: #3A2210; --dm-p6: #3A2210; }
:root[data-tiles="wood"] .dm-tg0 { stop-color: #F8DDB2; }
:root[data-tiles="wood"] .dm-ct__tex { fill: url(#dm-tex-wood); }
:root[data-tiles="wood"] .dm-ct__div { stroke: rgba(90, 45, 10, .5); }
:root[data-tiles="wood"] .dm-ct__div2 { stroke: rgba(255, 230, 190, .7); }
:root[data-tiles="wood"] .dm-tile { background: linear-gradient(rgba(255, 240, 210, .6) 0%, rgba(255, 240, 210, 0) 30%) no-repeat,
  repeating-linear-gradient(2deg, rgba(110, 60, 20, .12) 0 1.5px, transparent 1.5px 6px, rgba(110, 60, 20, .06) 6px 7px, transparent 7px 10px),
  linear-gradient(160deg, #F8DDB2 0%, #EBC48A 45%, #D29C58 100%); }
:root[data-tiles="wood"] .dm-tile__half + .dm-tile__half::before { background: rgba(90, 45, 10, .45); box-shadow: 0 1px 0 rgba(255, 230, 190, .7); }
:root[data-tiles="neon"] { --dm-tile: #23264A; --dm-tile-2: #15172B; --dm-tile-line: #4DB5FF;
  --dm-pip: #E9E6FF; --dm-p1: #FF4F7B; --dm-p2: #3EE6F0; --dm-p3: #C77BFF; --dm-p4: #FFB23F; --dm-p5: #3EF08A; --dm-p6: #E9E6FF; }
:root[data-tiles="neon"] .dm-tg0 { stop-color: #33376A; }
:root[data-tiles="neon"] .dm-ct__body { stroke: #4DB5FF; stroke-width: 1.3; }
:root[data-tiles="neon"] .dm-ct.is-last .dm-ct__body { stroke: #FFD23F; stroke-width: 2.2; }
:root[data-tiles="neon"] .dm-ct__tex { display: none; }
:root[data-tiles="neon"] .dm-ct__gloss { opacity: .12; }
:root[data-tiles="neon"] .dm-ct__div { stroke: rgba(77, 181, 255, .75); }
:root[data-tiles="neon"] .dm-ct__div2 { stroke: transparent; }
:root[data-tiles="neon"] .dm-pip__hl { opacity: .25; }
:root[data-tiles="neon"] .dm-tile { background: radial-gradient(120% 60% at 30% 0%, rgba(140, 120, 255, .3), transparent 60%), linear-gradient(170deg, #33376A 0%, #23264A 50%, #15172B 100%); border-color: #4DB5FF; }
:root[data-tiles="neon"] .dm-tile__half i.on { box-shadow: 0 0 6px currentColor, inset 0 1px 1px rgba(255, 255, 255, .35); color: inherit; }
:root[data-tiles="neon"] .dm-tile__half[data-v="1"] i.on { color: #FF4F7B; } :root[data-tiles="neon"] .dm-tile__half[data-v="2"] i.on { color: #3EE6F0; }
:root[data-tiles="neon"] .dm-tile__half[data-v="3"] i.on { color: #C77BFF; } :root[data-tiles="neon"] .dm-tile__half[data-v="4"] i.on { color: #FFB23F; }
:root[data-tiles="neon"] .dm-tile__half[data-v="5"] i.on { color: #3EF08A; } :root[data-tiles="neon"] .dm-tile__half[data-v="6"] i.on { color: #E9E6FF; }
:root[data-tiles="neon"] .dm-tile__half + .dm-tile__half::before { background: rgba(77, 181, 255, .75); box-shadow: 0 0 6px rgba(77, 181, 255, .8); }
:root[data-tiles="gold"] { --dm-tile: #FFD23F; --dm-tile-2: #E8A21E; --dm-tile-line: #B87400; --dm-pip: #2A1A00; --dm-p6: #2A1A00; --dm-p1: #B3122A; --dm-p2: #0B6E7E; --dm-p3: #6A1FC0; --dm-p4: #8A3A00; --dm-p5: #0B6E3C; }
:root[data-tiles="gold"] .dm-tg0 { stop-color: #FFF3B8; }
:root[data-tiles="gold"] .dm-ct__tex { fill: url(#dm-tex-gold); }
:root[data-tiles="gold"] .dm-ct__div { stroke: rgba(120, 70, 0, .55); }
:root[data-tiles="gold"] .dm-ct__div2 { stroke: rgba(255, 248, 214, .9); }
:root[data-tiles="gold"] .dm-tile { background: linear-gradient(125deg, transparent 30%, rgba(255, 255, 255, .55) 42%, rgba(255, 255, 255, 0) 54%),
  linear-gradient(rgba(255, 248, 214, .8) 0%, rgba(255, 248, 214, 0) 30%) no-repeat, linear-gradient(160deg, #FFF3B8 0%, #FFD23F 40%, #E8A21E 100%); }
:root[data-tiles="gold"] .dm-tile__half + .dm-tile__half::before { background: rgba(120, 70, 0, .5); box-shadow: 0 1px 0 rgba(255, 248, 214, .9); }
