/* Grasser: rummy with a grass in it. Snooker-hall green, brass trim. */
#grasser { background: radial-gradient(120% 80% at 50% 0%, #1b5a44 0%, #0d3a2c 55%, #072319 100%); }
#grasser .topbar { background: rgba(0,0,0,.25); }
.gr-main { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 8px var(--gutter-r, 12px) 6px var(--gutter-l, 12px); display: flex; flex-direction: column; gap: 8px; -webkit-overflow-scrolling: touch; }
.gr-table { display: grid; gap: 6px; align-content: start; }

/* seats */
.gr-seat { background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.12); border-radius: 12px; padding: 6px 8px; display: grid; gap: 5px; transition: border-color .2s, box-shadow .2s; }
.gr-seat.turn { border-color: var(--brass); box-shadow: 0 0 0 2px rgba(246,196,83,.3), 0 0 16px rgba(246,196,83,.3); }
.gr-seat.me { background: rgba(246,196,83,.1); }
.gr-seat.off { opacity: .5; }
.gr-seat.smug { border-style: dashed; }
.gr-seat-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; line-height: 1.2; }
.gr-seat-head .avatar { width: 24px; height: 24px; font-size: 10px; }
.gr-seat-head b { font-size: 14px; }
.gr-seat-head .tag { font-size: 10px; padding: 1px 6px; }
.gr-smug { background: rgba(217,76,138,.3); color: #ffb6d6; }
.gr-stat { margin-left: auto; color: var(--ink-dim); font-size: 12px; white-space: nowrap; }
.gr-stat + .gr-stat { margin-left: 0; }
.gr-stat i { font-style: normal; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.gr-stat.pts i { color: var(--brass); }

/* melds as compact rows of mini cards */
.gr-melds { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 26px; }
.gr-nomeld { font-size: 12px; color: var(--ink-dim); font-style: italic; }
.gr-meld { display: inline-flex; gap: 2px; padding: 3px 4px; border-radius: 8px; border: 1.5px solid rgba(255,255,255,.15); background: rgba(0,0,0,.25); transition: box-shadow .15s, transform .15s; }
.gr-meld.run { border-color: rgba(126,200,227,.35); }
.gr-meld.set { border-color: rgba(246,196,83,.35); }
.gr-meld.tappable { cursor: pointer; }
.gr-meld.fits { box-shadow: 0 0 0 3px #fff, 0 0 16px rgba(255,255,255,.6); animation: pulse 1.2s infinite; }
.gr-meld.fits:active { transform: scale(.96); }
.gr-mini { display: inline-grid; place-items: center; width: 24px; height: 32px; border-radius: 4px; background: var(--card, #fdf9ef); color: var(--card-ink, #1d1a14); font-family: var(--display); font-weight: 700; font-size: 11px; line-height: 1; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.gr-mini.red { color: var(--red, #d7263d); }
.gr-mini i { font-style: normal; font-size: 10px; }
.gr-exposed { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; background: rgba(255,107,90,.14); border: 1px dashed rgba(255,107,90,.5); border-radius: 8px; padding: 4px 6px; }
.gr-exposed small { width: 100%; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--bad); font-weight: 800; }

/* centre: deck and pile */
.gr-centre { display: flex; justify-content: center; gap: 28px; padding: 10px 0 6px; align-items: flex-start; }
.gr-pilebtn { background: none; border: 0; padding: 0; display: grid; justify-items: center; gap: 6px; color: var(--ink-dim); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.gr-pilebtn:disabled { opacity: .75; }
.gr-pilebtn.legal { color: var(--brass); cursor: pointer; }
.gr-pilebtn .card.legal { box-shadow: 0 0 0 3px #fff, 0 0 18px rgba(255,255,255,.5); animation: pulse 1.2s infinite; }
.gr-pilebtn:active .card { transform: translateY(-3px); }
.gr-empty { width: 56px; height: 80px; border: 2px dashed rgba(255,255,255,.25); border-radius: 8px; display: grid; place-items: center; font-size: 11px; }

/* hand-over table */
.gr-over { background: rgba(0,0,0,.3); border: 1.5px solid rgba(246,196,83,.35); border-radius: 14px; padding: 10px 10px 8px; display: grid; gap: 8px; }
.gr-over-title { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--brass); text-align: center; line-height: 1.15; }
.gr-gin { text-align: center; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: #fff; background: linear-gradient(135deg, #b3001b, #f08c00); border-radius: 8px; padding: 4px 8px; }
.gr-gin.deth { background: linear-gradient(135deg, #5b2a86, #d94c8a); }
.gr-scores { width: 100%; border-collapse: collapse; font-size: 13px; }
.gr-scores th { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-dim); text-align: left; padding: 2px 4px; }
.gr-scores td { padding: 5px 4px; border-top: 1px solid rgba(255,255,255,.1); vertical-align: middle; }
.gr-scores td:first-child { white-space: nowrap; }
.gr-who { display: inline-flex; align-items: center; gap: 6px; }
.gr-scores .avatar { width: 22px; height: 22px; font-size: 9px; }
.gr-scores .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gr-scores .total { font-weight: 800; color: var(--brass); font-size: 15px; }
.gr-scores tr.out td { background: rgba(74,209,124,.12); }
.gr-scores tr.bust .total { color: var(--bad); }
.gr-scores .gr-left { display: flex; flex-wrap: wrap; gap: 2px; }
.gr-scores .gr-left .gr-mini { width: 20px; height: 27px; font-size: 10px; }
.gr-scores em { color: var(--ink-dim); font-size: 12px; }

/* foot */
.gr-foot { background: linear-gradient(180deg, rgba(7,35,25,0) 0%, rgba(7,35,25,.95) 25%); gap: 6px; }
.gr-hint { font-size: 13px; color: var(--ink); text-align: center; line-height: 1.3; min-height: 17px; padding: 0 4px; }
.gr-hand { justify-content: flex-start; min-height: 100px; padding-top: 16px; }
.gr-hand > :first-child { margin-left: auto; }
.gr-hand > :last-child { margin-right: auto; }
.gr-hand.crowded .card { margin-left: -12px; }
.gr-hand.crowded > .card:first-child { margin-left: auto; }
.gr-hand .card.frompile::after { content: "pile"; position: absolute; bottom: 3px; left: 0; right: 0; text-align: center; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); font-weight: 800; }
.gr-tools { display: flex; gap: 6px; justify-content: center; }
.gr-tool { background: rgba(255,255,255,.1); color: var(--ink); border: 1.5px solid rgba(255,255,255,.2); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 800; }
.gr-tool.evil { border-color: rgba(255,107,90,.5); background: rgba(255,107,90,.14); }
.gr-tool:disabled { opacity: .45; }
.gr-tool.used { text-decoration: line-through; }
.gr-why { color: #ffd2a8; font-weight: 700; text-align: center; }
.action-bar .gr-why { max-width: 100%; }

/* pickers */
.gr-picklist { display: grid; gap: 8px; }
.gr-pick { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: rgba(255,255,255,.08); color: var(--ink); border: 1.5px solid rgba(255,255,255,.18); border-radius: 12px; padding: 8px 10px; font-size: 14px; }
.gr-pick:disabled { opacity: .4; }
.gr-pick small { display: block; color: var(--ink-dim); font-size: 12px; }
.gr-pick-cards { margin-left: auto; display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; max-width: 50%; }
.gr-pick .avatar { width: 30px; height: 30px; font-size: 12px; flex: 0 0 auto; }

/* blasts */
.gr-blast.grass { background: rgba(28, 60, 20, .96); }
.gr-blast.raid { background: rgba(20, 40, 110, .96); }
.gr-blast.deth { background: rgba(91, 42, 134, .96); }
.gr-blast.out { background: rgba(217, 154, 30, .97); color: #2a1d05; }
.gr-blast.out.gin { background: rgba(179, 0, 27, .96); color: #fff; }
.gr-blast .tb-to { max-width: 340px; margin: 0 auto; line-height: 1.3; }
