html.cg-lock, html.cg-lock body { overflow: hidden !important; }
.cg[hidden], .cg [hidden] { display: none !important; }
.cg {
  --cg-bg: #06130e; --cg-felt: #0d2a20; --cg-felt2: #0a1f18; --cg-gold: #d9b873; --cg-gold-hi: #f1d99d; --cg-gold-lo: #a98a4d;
  --cg-ivory: #f4eedf; --cg-muted: #a9b9ae; --cg-line: rgba(217,184,115,.22); --cg-line-hi: rgba(241,217,157,.5); --cg-red: #b3261e;
  --cw: 58px;
  position: fixed; inset: 0; z-index: 2147483000; overflow: auto; -webkit-overflow-scrolling: touch;
  color: var(--cg-ivory); font-family: Manrope, "Plus Jakarta Sans", system-ui, sans-serif; line-height: 1.4;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(217,184,115,.12), transparent 60%), radial-gradient(900px 500px at 100% 100%, rgba(26,92,66,.35), transparent 60%), var(--cg-bg);
}
.cg *, .cg *::before, .cg *::after { box-sizing: border-box; }
.cg button { font-family: inherit; }
.cg-shell { max-width: 1120px; margin: 0 auto; padding: 14px 16px 36px; }
.cg-head { display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--cg-line); }
.cg-brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
.cg-brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--cg-line-hi); }
.cg-brand small { display: block; font-size: 10px; letter-spacing: .22em; color: var(--cg-gold); font-weight: 700; }
.cg-brand h1 { margin: 2px 0 0; font: 900 clamp(20px, 3.6vw, 30px)/1.05 "Playfair Display", Georgia, serif; letter-spacing: .02em; color: var(--cg-gold-hi); }
.cg-tools { display: flex; align-items: center; gap: 10px; }
.cg-timer { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--cg-gold-hi); min-width: 70px; text-align: right; font-size: 14px; }
.cg-timer[data-low="1"] { color: #ff8a7a; animation: cg-pulse 1s infinite; }
@keyframes cg-pulse { 50% { opacity: .45; } }
.cg .cg-btn, .cg .cg-quiet {
  appearance: none; cursor: pointer; border-radius: 999px; padding: 10px 18px; min-height: 40px; font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--cg-line-hi); color: var(--cg-gold-hi); background: rgba(217,184,115,.08); transition: background .18s, transform .12s, border-color .18s, opacity .18s;
}
.cg .cg-quiet { border-color: var(--cg-line); background: transparent; color: var(--cg-muted); }
.cg .cg-btn:hover:not(:disabled), .cg .cg-quiet:hover:not(:disabled) { background: rgba(217,184,115,.2); border-color: var(--cg-gold-hi); }
.cg .cg-btn:active:not(:disabled) { transform: translateY(1px); }
.cg .cg-btn:disabled, .cg .cg-quiet:disabled { opacity: .38; cursor: not-allowed; }
.cg .cg-primary { background: linear-gradient(135deg, #f7e6b4, #d2ab55 45%, #a98a4d); color: #1a1408; border-color: transparent; box-shadow: 0 6px 18px rgba(217,184,115,.25); }
.cg .cg-primary:hover:not(:disabled) { background: linear-gradient(135deg, #fff1c6, #e0b95f 45%, #b9964f); }
.cg .cg-gold { background: rgba(241,217,157,.16); border-color: var(--cg-gold-hi); color: #fff3cf; }
.cg :focus-visible { outline: 2px solid var(--cg-gold-hi); outline-offset: 2px; }

.cg-msg { min-height: 22px; padding: 8px 2px 0; color: #ffb4a8; font-size: 13px; font-weight: 600; }
.cg-loading, .cg-hint { color: var(--cg-muted); font-size: 13px; margin: 6px 0; }
.cg-hint-hot { color: var(--cg-gold-hi); font-weight: 700; }
.cg-hint-warn { color: #ffb4a8; font-weight: 700; }
.cg-note { color: var(--cg-muted); font-size: 12px; }
.cg-hero { text-align: center; padding: 28px 8px 18px; }
.cg-hero small { font-size: 10px; letter-spacing: .3em; color: var(--cg-gold); font-weight: 800; }
.cg-hero h2 { font: 900 clamp(24px, 4.8vw, 40px)/1.15 "Playfair Display", Georgia, serif; margin: 8px 0; color: var(--cg-ivory); }
.cg-hero p { color: var(--cg-muted); max-width: 640px; margin: 0 auto; font-size: 14px; }
.cg-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 14px; }
.cg .cg-tcard {
  text-align: left; cursor: pointer; padding: 22px 20px; border-radius: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--cg-ivory);
  background: linear-gradient(160deg, rgba(20,60,45,.9), rgba(8,24,18,.95)); border: 1px solid var(--cg-line); transition: border-color .2s, transform .2s, box-shadow .2s;
}
.cg .cg-tcard:hover { border-color: var(--cg-gold-hi); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.4), 0 0 0 1px rgba(217,184,115,.25); }
.cg-tcard small { color: var(--cg-gold); letter-spacing: .2em; font-size: 10px; font-weight: 800; }
.cg-tcard strong { font: 900 22px "Playfair Display", Georgia, serif; color: var(--cg-gold-hi); }
.cg-tcard .cg-tmeta { color: var(--cg-muted); font-size: 12px; }
.cg-tcard em { margin-top: 10px; font-style: normal; font-weight: 800; letter-spacing: .14em; font-size: 11px; color: var(--cg-gold); }
.cg-tcard[data-phase="playing"] { border-color: rgba(241,217,157,.45); }
.cg-info { position: fixed; z-index: 3; right: 12px; top: 70px; width: min(420px, calc(100vw - 24px)); max-height: calc(100vh - 90px); overflow: auto; padding: 20px; border-radius: 16px;
  background: rgba(8,22,17,.97); border: 1px solid var(--cg-line-hi); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.cg-info h2 { margin: 0 0 8px; font: 900 22px "Playfair Display", Georgia, serif; color: var(--cg-gold-hi); }
.cg-info p { margin: 0 0 8px; font-size: 13px; color: #dfe7df; }
.cg-roomhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 4px 6px; flex-wrap: wrap; }
.cg-roomhead strong { font: 900 20px "Playfair Display", Georgia, serif; color: var(--cg-gold-hi); }
.cg-roomhead span { color: var(--cg-muted); font-size: 12px; }
.cg-ring {
  display: grid; gap: 12px; padding: 16px; border-radius: 28px; margin-top: 6px;
  grid-template-columns: minmax(96px, 1fr) minmax(0, 3fr) minmax(96px, 1fr);
  grid-template-areas: ". top ." "left center right" ". bottom .";
  background: radial-gradient(700px 320px at 50% 45%, rgba(40,120,86,.5), transparent 70%), linear-gradient(180deg, var(--cg-felt), var(--cg-felt2));
  border: 1px solid var(--cg-line); box-shadow: inset 0 0 0 6px rgba(0,0,0,.18), inset 0 0 70px rgba(0,0,0,.45), 0 18px 50px rgba(0,0,0,.4);
}
.cg-center { grid-area: center; min-height: 190px; display: flex; align-items: center; justify-content: center; min-width: 0; }
.cg-seat { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; padding: 8px 6px; border-radius: 16px; border: 1px solid transparent; min-width: 0; }
.cg-seat.pos-top { grid-area: top; } .cg-seat.pos-left { grid-area: left; align-self: center; } .cg-seat.pos-right { grid-area: right; align-self: center; } .cg-seat.pos-bottom { grid-area: bottom; flex-direction: row; justify-content: center; gap: 12px; }
.cg-seat.is-turn { border-color: var(--cg-gold-hi); background: rgba(217,184,115,.1); box-shadow: 0 0 22px rgba(241,217,157,.25); }
.cg-seat.is-you strong { color: var(--cg-gold-hi); }
.cg-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: rgba(0,0,0,.35); border: 1px solid var(--cg-line-hi); }
.cg-seat strong { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-seatmeta { font-size: 11px; color: var(--cg-muted); }
.cg-seatmeta.is-ok { color: #9be3b4; font-weight: 800; }
.cg-sit { padding: 6px 14px !important; min-height: 30px !important; }
.cg-hand { margin-top: 12px; display: flex; justify-content: center; padding: 10px 0 4px; }
.cg-hand > * { max-width: 100%; }
.cg-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin-top: 12px; min-height: 44px; }
.cg-actions > div { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.cg-result { margin: 14px auto 0; max-width: 760px; text-align: center; padding: 14px 18px; border-radius: 16px; background: rgba(217,184,115,.09); border: 1px solid var(--cg-line-hi); display: flex; flex-direction: column; gap: 4px; }
.cg-result strong { font: 900 20px "Playfair Display", Georgia, serif; color: var(--cg-gold-hi); }
.cg-result.is-champion { background: linear-gradient(135deg, rgba(241,217,157,.25), rgba(169,138,77,.12)); }
.cg-log { list-style: none; margin: 14px auto 0; padding: 0; max-width: 760px; color: var(--cg-muted); font-size: 12px; }
.cg-log li { padding: 3px 0; border-bottom: 1px dashed rgba(217,184,115,.1); }
.cg-log li:first-child { color: var(--cg-ivory); }
.cg-card { position: relative; flex: 0 0 auto; width: var(--cw); height: calc(var(--cw) * 1.42); border-radius: calc(var(--cw) * .12); background: linear-gradient(165deg, #fffdf6, #efe7d3); color: #17171a;
  border: 1px solid rgba(0,0,0,.28); box-shadow: 0 2px 6px rgba(0,0,0,.35); font-family: Manrope, system-ui, sans-serif; padding: 0; cursor: default; user-select: none; -webkit-user-select: none; transition: transform .14s, box-shadow .14s; }
button.cg-card { cursor: pointer; }
.cg-card b { position: absolute; left: 9%; top: 4%; font-weight: 800; font-size: calc(var(--cw) * .32); line-height: 1; }
.cg-card i { position: absolute; left: 9%; top: calc(var(--cw) * .36); font-style: normal; font-size: calc(var(--cw) * .26); line-height: 1; }
.cg-card em { position: absolute; right: 8%; bottom: 3%; font-style: normal; font-size: calc(var(--cw) * .6); line-height: 1; opacity: .92; }
.cg-card.sH, .cg-card.sD { color: var(--cg-red); }
.cg-card.is-small { --cw: 40px; }
.cg-card.is-sel { transform: translateY(-12px); box-shadow: 0 0 0 2px var(--cg-gold-hi), 0 10px 18px rgba(0,0,0,.5); }
button.cg-card:hover:not(.is-off) { transform: translateY(-5px); }
button.cg-card.is-sel:hover { transform: translateY(-12px); }
.cg-card.is-back { background: repeating-linear-gradient(45deg, #0f4a35 0 6px, #0b3a29 6px 12px); border: 2px solid var(--cg-gold-lo); display: grid; place-items: center; }
.cg-card.is-back span { font-size: calc(var(--cw) * .5); filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
.cg-card.is-empty { background: transparent; border: 1px dashed var(--cg-line-hi); box-shadow: none; }
.rm-center { width: 100%; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.rm-piles { display: flex; gap: 22px; align-items: flex-start; }
.rm-pile { background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--cg-muted); font-size: 11px; font-weight: 700; cursor: default; }
.cg .rm-pile.is-live { cursor: pointer; color: var(--cg-gold-hi); }
.rm-pile.is-live .cg-card { box-shadow: 0 0 0 2px var(--cg-gold-hi), 0 0 20px rgba(241,217,157,.45); animation: cg-glow 1.6s ease-in-out infinite; }
@keyframes cg-glow { 50% { box-shadow: 0 0 0 2px var(--cg-gold-hi), 0 0 30px rgba(241,217,157,.7); } }
.rm-melds { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: 100%; max-height: 220px; overflow: auto; }
.rm-meld { padding: 6px 8px 8px; border-radius: 12px; background: rgba(0,0,0,.22); border: 1px solid var(--cg-line); }
.rm-meld small { display: block; font-size: 9px; letter-spacing: .12em; color: var(--cg-muted); margin-bottom: 4px; }
.rm-meldcards { display: flex; }
.rm-meldcards .cg-card { --cw: 34px; margin-left: -12px; }
.rm-meldcards .cg-card:first-child { margin-left: 0; }
.rm-meld.is-target { border-color: var(--cg-gold-hi); box-shadow: 0 0 0 2px var(--cg-gold-hi), 0 0 18px rgba(241,217,157,.4); cursor: pointer; background: rgba(217,184,115,.14); }
.rm-hand { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: 14px; --cw: 62px; }
.rm-hand.is-turn { filter: drop-shadow(0 0 12px rgba(241,217,157,.2)); }
.rm-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.cp-center { text-align: center; }
.cp-wrap { width: 100%; max-width: 760px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.cp-board { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.cp-row { padding: 8px 10px 10px; border-radius: 14px; background: rgba(0,0,0,.22); border: 1px solid var(--cg-line); transition: border-color .15s, background .15s; }
.cp-row.is-open { border-color: var(--cg-gold-hi); background: rgba(217,184,115,.12); cursor: pointer; }
.cp-row header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.cp-row header b { font-size: 11px; letter-spacing: .2em; color: var(--cg-gold); }
.cp-row header .cp-label { font-weight: 800; color: var(--cg-gold-hi); font-size: 13px; }
.cp-row header small { margin-left: auto; color: var(--cg-muted); font-size: 11px; }
.cp-slots { display: flex; gap: 6px; min-height: calc(var(--cw) * 1.42 * .72); align-items: center; flex-wrap: wrap; }
.cp-slots .cg-card, .cp-pool .cg-card { --cw: 52px; }
.cp-pool { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 10px; border-radius: 14px; background: rgba(0,0,0,.18); width: 100%; min-height: 80px; }
.cp-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cp-board.is-locked { opacity: .96; }
.cp-resgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 10px; text-align: left; }
.cp-res { padding: 12px; border-radius: 14px; background: rgba(0,0,0,.26); border: 1px solid var(--cg-line); }
.cp-res.is-top { border-color: var(--cg-gold-hi); box-shadow: 0 0 0 1px rgba(241,217,157,.35); }
.cp-res.is-you strong { color: var(--cg-gold-hi); }
.cp-res header { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 8px; }
.cp-res header small { width: 100%; color: var(--cg-muted); font-size: 11px; }
.cp-delta { font: 900 18px "Playfair Display", Georgia, serif; }
.cp-delta.is-pos { color: #9be3b4; } .cp-delta.is-neg { color: #ff9a8a; }
.cp-mini { margin-top: 6px; } .cp-mini small { font-size: 10px; letter-spacing: .08em; color: var(--cg-gold); font-weight: 700; }
.cp-minicards { display: flex; margin-top: 3px; }
.cp-minicards .cg-card { --cw: 30px; margin-left: -9px; } .cp-minicards .cg-card:first-child { margin-left: 0; }
.dm-center { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dm-info { display: flex; gap: 18px; font-size: 12px; color: var(--cg-muted); font-weight: 700; flex-wrap: wrap; justify-content: center; }
.dm-boardrow { display: flex; align-items: center; gap: 10px; width: 100%; justify-content: center; }
.dm-chain { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3px; padding: 10px; border-radius: 14px; background: rgba(0,0,0,.2); min-height: 92px; flex: 1 1 auto; max-width: 100%; --tw: 30px; }
.dm-chain.is-empty { align-items: center; }
.dm-tile { --tw: 40px; display: inline-flex; flex-direction: row; align-items: stretch; flex: 0 0 auto; width: calc(var(--tw) * 2); height: var(--tw); background: linear-gradient(165deg, #fffdf6, #e9e0c9); border: 1px solid rgba(0,0,0,.35); border-radius: 7px; box-shadow: 0 2px 5px rgba(0,0,0,.4); padding: 0; position: relative; }
.dm-tile.is-double { flex-direction: column; width: var(--tw); height: calc(var(--tw) * 2); }
.dm-tile .dm-bar { flex: 0 0 2px; background: rgba(0,0,0,.4); margin: 6px 0; } .dm-tile.is-double .dm-bar { margin: 0 6px; }
.dm-half { position: relative; flex: 1 1 0; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 11%; }
.dm-pip { width: 74%; height: 74%; margin: auto; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #444, #111); }
.dm-pip.p1 { grid-area: 1/1; } .dm-pip.p2 { grid-area: 1/2; } .dm-pip.p3 { grid-area: 1/3; } .dm-pip.p4 { grid-area: 2/1; } .dm-pip.p5 { grid-area: 2/2; } .dm-pip.p6 { grid-area: 2/3; } .dm-pip.p7 { grid-area: 3/1; } .dm-pip.p8 { grid-area: 3/2; } .dm-pip.p9 { grid-area: 3/3; }
.dm-half[data-n="6"] .dm-pip.p4 { grid-area: 2/1; }
.dm-hand { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; --tw: 56px; }
.dm-hand .dm-tile { cursor: pointer; transition: transform .14s, box-shadow .14s; --tw: 56px; }
.dm-hand .dm-tile:not(.is-legal) { opacity: .78; }
.dm-hand.is-turn .dm-tile.is-legal { box-shadow: 0 0 0 2px var(--cg-gold-hi), 0 0 18px rgba(241,217,157,.5); }
.dm-hand .dm-tile.is-sel { transform: translateY(-10px); }
.dm-end { display: flex; flex-direction: column; align-items: center; padding: 8px 12px; border-radius: 12px; border: 1px dashed var(--cg-line-hi); background: transparent; color: var(--cg-muted); min-width: 56px; cursor: default; }
.cg .dm-end.is-live { cursor: pointer; color: #1a1408; background: linear-gradient(135deg, #f7e6b4, #d2ab55); border: 0; animation: cg-glow 1.4s infinite; }
.dm-end small { font-size: 9px; letter-spacing: .14em; font-weight: 800; } .dm-end b { font-size: 20px; }
.dm-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center; }
.sl { --cw: min(11.2vw, 80px); --gap: min(1.6vw, 12px); }
.sl-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 12px 0; }
.sl .cg-bar-stat { text-align: center; }
.sl-board { max-width: calc(var(--cw) * 7 + var(--gap) * 6); margin: 6px auto 0; padding: calc(var(--cw) * .2) 0 calc(var(--cw) * 3); }
.sl-top { display: grid; grid-template-columns: repeat(7, var(--cw)); gap: var(--gap); margin-bottom: calc(var(--cw) * .3); }
.sl-slot { position: relative; width: var(--cw); height: calc(var(--cw) * 1.42); border: 1px dashed var(--cg-line); border-radius: calc(var(--cw) * .12); }
.sl-stock { cursor: pointer; background: none; padding: 0; display: block; color: var(--cg-muted); }
.sl-stock small { position: absolute; right: 4px; bottom: 2px; font-size: 11px; font-weight: 800; color: var(--cg-gold-hi); text-shadow: 0 1px 2px #000; }
.sl-recycle { position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(var(--cw) * .5); color: var(--cg-gold); }
.sl-waste { grid-column: 2 / span 2; width: auto; border: 0; }
.sl-waste .cg-card { position: absolute; top: 0; }
.sl-gap { grid-column: 4; }
.sl-found { grid-column: 4 / span 4; display: grid; grid-template-columns: repeat(4, var(--cw)); gap: var(--gap); }
.sl-fslot.is-target, .sl-col.is-target { box-shadow: 0 0 0 2px var(--cg-gold-hi), 0 0 18px rgba(241,217,157,.35); border-radius: calc(var(--cw) * .12); }
.sl-ghost { position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(var(--cw) * .55); color: rgba(217,184,115,.22); }
.sl-tab { display: grid; grid-template-columns: repeat(7, var(--cw)); gap: var(--gap); align-items: start; }
.sl-col { position: relative; width: var(--cw); }
.sl-col.is-empty { border: 1px dashed var(--cg-line); border-radius: calc(var(--cw) * .12); height: calc(var(--cw) * 1.42); min-height: 0 !important; }
.sl-card { position: absolute; left: 0; cursor: pointer; }
.sl-slot .sl-card { position: absolute; inset: 0; width: 100%; height: 100%; }
.sl-card.is-sel { box-shadow: 0 0 0 2px var(--cg-gold-hi), 0 0 14px rgba(241,217,157,.5); transform: none; }
.sl-card.is-hint, .sl-stock.is-hint { box-shadow: 0 0 0 3px #7be0a3, 0 0 18px rgba(123,224,163,.6); animation: cg-glow 1s infinite; }
.sl-win { position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(0,0,0,.72); }
.sl-wincard { padding: 30px 34px; text-align: center; border-radius: 22px; background: linear-gradient(160deg, #123a2b, #08170f); border: 1px solid var(--cg-gold-hi); box-shadow: 0 30px 80px rgba(0,0,0,.7); max-width: 92vw; }
.sl-wincard h2 { margin: 0 0 8px; font: 900 32px "Playfair Display", Georgia, serif; color: var(--cg-gold-hi); }
.sl-wincard p { color: var(--cg-muted); margin: 0 0 18px; }
@media (max-width: 720px) {
  .cg-shell { padding: 10px 10px 30px; }
  .cg-center { min-height: 0; }
  .cg-ring { row-gap: 4px; }
  .cg-seat { padding: 4px 2px; }
  .cg-roomhead { padding: 8px 2px 4px; }
  .cg-hand { margin-top: 8px; }
  .cg-ring { grid-template-columns: minmax(70px, 1fr) minmax(0, 3fr) minmax(70px, 1fr); padding: 10px; gap: 8px; border-radius: 20px; }
  .cg-avatar { width: 36px; height: 36px; font-size: 18px; }
  .cg-seat strong { font-size: 11px; } .cg-seatmeta { font-size: 10px; }
  .cg-seat.pos-bottom { flex-direction: column; gap: 3px; }
  .rm-hand { --cw: 44px; gap: 5px; } .rm-meldcards .cg-card { --cw: 28px; margin-left: -10px; }
  .cp-slots .cg-card, .cp-pool .cg-card { --cw: 40px; }
  .dm-hand { --tw: 42px; } .dm-hand .dm-tile { --tw: 42px; } .dm-chain { --tw: 26px; }
  .cg-card.is-small { --cw: 32px; }
  .cg-info { right: 8px; top: 62px; }
  .cg-brand h1 { font-size: 18px; }
}
@media (max-width: 420px) {
  .cg-ring { grid-template-columns: minmax(58px, 1fr) minmax(0, 3.2fr) minmax(58px, 1fr); }
  .cp-slots .cg-card, .cp-pool .cg-card { --cw: 34px; }
  .rm-hand { --cw: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .cg *, .cg *::before, .cg *::after { animation: none !important; transition: none !important; }
}
html body .cg button { text-transform: none !important; }
html body .cg button.cg-btn, html body .cg button.cg-quiet, html body .cg button.cg-sit {
  border-radius: 999px !important; border: 1px solid var(--cg-line-hi) !important; box-shadow: none !important; font-weight: 800 !important; letter-spacing: .12em !important; text-transform: uppercase !important; transform: none !important;
}
html body .cg button.cg-quiet { border-color: var(--cg-line) !important; }
html body .cg button.cg-btn:hover:not(:disabled), html body .cg button.cg-quiet:hover:not(:disabled), html body .cg button.cg-sit:hover:not(:disabled) { transform: none !important; box-shadow: none !important; border-color: var(--cg-gold-hi) !important; }
html body .cg button.cg-primary { border-color: transparent !important; box-shadow: 0 6px 18px rgba(217,184,115,.25) !important; }
html body .cg button.cg-primary:hover:not(:disabled) { box-shadow: 0 8px 22px rgba(217,184,115,.38) !important; }
html body .cg button.cg-btn:active:not(:disabled) { transform: translateY(1px) !important; }

html body .cg button.cg-card { border-radius: calc(var(--cw) * .12) !important; border: 1px solid rgba(0,0,0,.28) !important; box-shadow: 0 2px 6px rgba(0,0,0,.35) !important; font-weight: 800 !important; letter-spacing: 0 !important; transform: none !important; padding: 0 !important; min-height: 0 !important; }
html body .cg button.cg-card:hover:not(.is-off) { transform: translateY(-5px) !important; box-shadow: 0 8px 14px rgba(0,0,0,.45) !important; }
html body .cg button.cg-card.is-sel, html body .cg button.cg-card.is-sel:hover { transform: translateY(-12px) !important; box-shadow: 0 0 0 2px var(--cg-gold-hi), 0 10px 18px rgba(0,0,0,.5) !important; }

html body .cg button.cg-tcard { border-radius: 18px !important; border: 1px solid var(--cg-line) !important; box-shadow: none !important; letter-spacing: normal !important; font-weight: 400 !important; transform: none !important; min-height: 0 !important; }
html body .cg button.cg-tcard:hover { transform: translateY(-3px) !important; border-color: var(--cg-gold-hi) !important; box-shadow: 0 14px 34px rgba(0,0,0,.4), 0 0 0 1px rgba(217,184,115,.25) !important; }
html body .cg button.cg-tcard[data-phase="playing"] { border-color: rgba(241,217,157,.45) !important; }

html body .cg button.rm-pile, html body .cg button.sl-stock { background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important; min-height: 0 !important; letter-spacing: 0 !important; padding: 0 !important; }
html body .cg button.rm-pile:hover, html body .cg button.sl-stock:hover { transform: none !important; box-shadow: none !important; border: 0 !important; }
html body .cg button.sl-stock { border: 1px dashed var(--cg-line) !important; border-radius: calc(var(--cw) * .12) !important; }

html body .cg button.dm-tile { border-radius: 7px !important; border: 1px solid rgba(0,0,0,.35) !important; box-shadow: 0 2px 5px rgba(0,0,0,.4) !important; padding: 0 !important; min-height: 0 !important; transform: none !important; }
html body .cg button.dm-tile:hover { transform: translateY(-4px) !important; box-shadow: 0 8px 14px rgba(0,0,0,.45) !important; }
html body .cg .dm-hand.is-turn button.dm-tile.is-legal { box-shadow: 0 0 0 2px var(--cg-gold-hi), 0 0 18px rgba(241,217,157,.5) !important; }
html body .cg .dm-hand button.dm-tile.is-sel, html body .cg .dm-hand button.dm-tile.is-sel:hover { transform: translateY(-10px) !important; }

html body .cg button.dm-end { border-radius: 12px !important; border: 1px dashed var(--cg-line-hi) !important; box-shadow: none !important; transform: none !important; min-height: 0 !important; letter-spacing: normal !important; }
html body .cg button.dm-end.is-live { border: 0 !important; box-shadow: 0 0 0 2px var(--cg-gold-hi), 0 0 20px rgba(241,217,157,.5) !important; }
@keyframes pmChatRing { 0%, 100% { opacity: 0; transform: scale(.94); } 50% { opacity: .95; transform: scale(1.06); } }
