/* The same card and wound components, in a compact teaching table. */
.rg-demo-table{--demo-cardw:30px;--demo-cardh:42px;min-width:0;border:1px solid var(--line);border-radius:14px;padding:10px 12px;background:var(--sz-table);color:var(--ink)}
.rg-demo-topline{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;font-size:12px;line-height:1.4;color:var(--muted)}
.rg-demo-topline>b{position:relative;font-weight:700;color:var(--ink);padding-bottom:6px}
.rg-demo-topline>b:after{content:'';position:absolute;bottom:0;left:0;width:100%;height:2px;background:var(--sz-flower);border-radius:2px}
.rg-demo-topline>span:first-of-type{padding:3px 7px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--sz-flower-deep);font-weight:600}
.rg-demo-player header{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:14px;line-height:1.4;min-height:20px}
.rg-demo-player header>span{display:flex;align-items:center;gap:6px}
.rg-demo-player header small{font-size:12px;font-weight:400;color:var(--muted)}
.rg-demo-table .rg-demo-damage{display:flex;gap:3px;font-size:12px;color:var(--ink)}
.rg-demo-table .rg-demo-damage b{font-size:12px;font-weight:600}
.rg-demo-table .rg-demo-damage small{font-size:12px}
.rg-demo-table .rg-demo-damage .wound-bract{width:8px;height:11px}
.rg-demo-hand{display:flex;justify-content:center;align-items:center;min-width:0;padding:8px 0 4px}
.rg-demo-table .card{width:44px;height:62px;border-radius:6px;padding:4px;transform:none;flex:none}
.rg-demo-table .card+.card{margin-left:4px}
.rg-demo-table .card .rank{font-size:22px;line-height:1}
.rg-demo-table .card .suit{font-size:13px;line-height:1;margin-top:2px}
.rg-demo-table .card .center{font-size:25px}
.rg-demo-table .card .wild{font-size:9px;bottom:3px;left:4px}
.rg-demo-hand .card+.card{margin-left:-14px}
.rg-demo-table .back .motif{border:0;inset:3px}
.rg-demo-table .back .motif svg{width:29px;height:33px}
.rg-demo-wounds{display:flex;align-items:center;justify-content:center;min-height:36px;padding:3px 0;gap:4px}
.rg-demo-table .rg-demo-wounds .card{width:25px;height:34px;margin:0;padding:3px;border-radius:4px}
.rg-demo-table .rg-demo-wounds .rank{font-size:14px}
.rg-demo-table .rg-demo-wounds .suit{font-size:9px;margin-top:1px}
.rg-demo-table .rg-demo-wounds .center{font-size:15px}
.rg-demo-battle{border-block:1px solid var(--line);padding:10px 0;margin:4px 0}
.rg-demo-combat{display:grid;grid-template-columns:minmax(0,1fr) 68px minmax(0,1fr);gap:6px;align-items:end}
.rg-demo-side{min-width:0}
.rg-demo-label{display:flex;flex-direction:column;justify-content:center;gap:3px;text-align:center;min-height:37px;margin-bottom:6px;color:var(--ink)}
.rg-demo-label b{font-size:12px;font-weight:600;line-height:1.35}
.rg-demo-label small{font-size:12px;line-height:1.35;color:var(--muted)}
.rg-demo-faces{display:flex;justify-content:center;gap:3px;min-height:var(--demo-cardh)}
.rg-demo-table .rg-demo-faces .card{width:var(--demo-cardw);height:var(--demo-cardh);margin:0;padding:3px;border-radius:4px}
.rg-demo-table .rg-demo-faces .rank{font-size:17px}
.rg-demo-table .rg-demo-faces .suit{font-size:10px;margin-top:1px}
.rg-demo-table .rg-demo-faces .center{font-size:17px}
.rg-demo-faces:empty:before{content:'—';display:grid;place-items:center;width:calc(3 * var(--demo-cardw) + 6px);height:var(--demo-cardh);border:1px dashed var(--line);border-radius:5px;color:var(--muted);box-sizing:border-box}
.rg-demo-piles{display:flex;justify-content:center;gap:6px}
.rg-demo-piles>div{display:flex;flex-direction:column;align-items:center;gap:6px}
.rg-demo-piles small{font-size:12px;color:var(--muted);line-height:1.4}
.rg-demo-pile{position:relative;display:block;width:var(--demo-cardw);height:var(--demo-cardh);border:1px solid var(--line);border-radius:4px;background:var(--paper)}
.rg-demo-pile>b{position:absolute;left:3px;top:4px;font:700 17px/1 var(--rank-font)}
.rg-demo-stock{background:var(--sz-table);box-shadow:2px -2px 0 var(--paper),3px -3px 0 var(--line)}
.rg-demo-stock i{position:absolute;left:10%;bottom:3px;width:80%;height:50%;opacity:.24;--sz-logo-petal:var(--muted);--sz-logo-center:var(--muted)}
.rg-demo-stock svg{width:100%;height:100%;display:block}
.rg-demo-actionbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-height:56px;padding:7px 9px;margin-top:10px;border:1px solid var(--line);border-radius:9px;background:var(--paper)}
.rg-demo-actionbar strong{display:block;font-size:14px;line-height:1.4;color:var(--ink)}
.rg-demo-actionbar small{display:block;margin-top:3px;font-size:12px;line-height:1.4;color:var(--muted)}
.rg-demo-actions{min-width:100px}
.rg-demo-actions button{width:100%;min-height:38px;padding:7px 10px;border:1px solid var(--sz-flower);border-radius:8px;background:var(--sz-flower);color:var(--sz-paper);font-size:14px;font-weight:700;line-height:1.4}
.rg-demo-actions button:focus-visible,.rg-role-guide button:focus-visible{outline:2px solid var(--sz-flower);outline-offset:3px}
.rg-role-guide{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-top:12px;min-height:42px}
.rg-role-guide p{margin:0;font-size:12px;line-height:1.6;color:var(--muted)}
.rg-role-guide button{flex:none;padding:5px 8px;min-height:32px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--ink);font-size:12px}
.rg-role-guide button[hidden]{display:none}
.rg-demo-table[data-stage=after] .rg-demo-actionbar{grid-template-columns:minmax(0,1fr)}
.rg-demo-table[data-stage=after] .rg-demo-actions{display:none}
.rg-demo-table[data-stage=after] .rg-demo-label b{color:var(--sz-flower-deep)}
.rg-demo-table[data-stage=after] .rg-demo-label{animation:rg-role-reveal .7s ease-out}
@keyframes rg-role-reveal{from{background:color-mix(in srgb,var(--sz-flower) 18%,transparent)}to{background:transparent}}
@media(max-width:400px){.rg-demo-table{--demo-cardw:23px;--demo-cardh:34px;padding:9px}.rg-demo-topline{gap:6px;font-size:12px}.rg-demo-topline>span:first-of-type{padding:3px 5px}.rg-demo-topline>span:last-child{text-align:right}.rg-demo-player header{gap:5px;font-size:12px}.rg-demo-player header>span{gap:4px}.rg-demo-table .rg-demo-damage{gap:2px}.rg-demo-table .rg-demo-damage .wound-bract{width:6px;height:9px}.rg-demo-table .card{width:38px;height:54px}.rg-demo-table .card .rank{font-size:20px}.rg-demo-hand .card+.card{margin-left:-12px}.rg-demo-table .back .motif svg{width:25px;height:29px}.rg-demo-combat{grid-template-columns:minmax(0,1fr) 52px minmax(0,1fr);gap:4px}.rg-demo-label{min-height:42px}.rg-demo-label small{font-size:12px}.rg-demo-table .rg-demo-faces .rank,.rg-demo-pile>b{font-size:14px}.rg-demo-table .rg-demo-faces .suit{font-size:9px}.rg-demo-table .rg-demo-faces .center{font-size:14px}.rg-demo-piles{gap:4px}.rg-demo-own .rg-demo-wounds{min-height:24px}.rg-demo-actionbar{min-height:60px;padding:6px 7px}.rg-demo-actions{min-width:86px}.rg-demo-actions button{font-size:14px;padding:7px}.rg-role-guide{gap:8px}}
@media(max-width:340px){.rg-demo-table{--demo-cardw:20px;--demo-cardh:30px;padding:8px}.rg-demo-label{min-height:72px}.rg-demo-combat{grid-template-columns:minmax(0,1fr) 46px minmax(0,1fr);gap:3px}.rg-demo-faces{gap:2px}.rg-demo-piles small{font-size:12px}.rg-demo-topline>span:last-child{max-width:80px}.rg-demo-player header>span{gap:3px}.rg-demo-table .rg-demo-damage .wound-bract{width:5px;height:8px}.rg-demo-actionbar{grid-template-columns:minmax(0,1fr) 82px;min-height:76px}.rg-demo-actions{min-width:0}.rg-demo-actions button{font-size:12px}.rg-demo-table .rg-demo-wounds .card{width:23px;height:32px}}
@media(prefers-reduced-motion:reduce){.rg-demo-table[data-stage=after] .rg-demo-label{animation:none}}
