/* The Recreation Center: a card room over Free Roam. Green baize, walnut and brass; cream pieces for the player, oxblood
   for the citizen. Named ng-*.css so the palette pass in ng-theme.js leaves these colours alone. */
.rec{position:absolute;inset:0;z-index:20;display:grid;place-items:center;padding:max(10px,env(safe-area-inset-top,0px)) 10px max(10px,env(safe-area-inset-bottom,0px));background:rgba(8,12,10,.86);font:400 16px/1.4 system-ui,-apple-system,'Segoe UI',sans-serif;color:#f1e6cf;animation:recIn .25s ease}
@keyframes recIn{from{opacity:0}}
.rec *{box-sizing:border-box}
.rec-room{width:min(560px,100%);max-height:100%;overflow:auto;border-radius:6px;background:#1f4a3a;border:8px solid #4a2f1c;box-shadow:inset 0 0 0 1px #d8a23a,0 24px 60px rgba(0,0,0,.6)}
.rec-top{display:flex;align-items:center;gap:12px;padding:12px 14px;background:#4a2f1c}
.rec-top h2{flex:1;margin:0;font:400 20px/1.1 Georgia,'Times New Roman',serif;letter-spacing:.02em;color:#f1e6cf}
.rec-bp{font-size:14px;color:#e9d3a1;white-space:nowrap}.rec-bp b{font:400 20px/1 Georgia,serif;color:#f0c463}
.rec-x{border:1px solid rgba(241,230,207,.5);background:none;color:#f1e6cf;font:inherit;font-size:14px;padding:6px 12px;border-radius:3px;cursor:pointer}
.rec-lead{margin:14px 16px 0;color:#d9e4d6}
.rec-tables{list-style:none;margin:12px 0 0;padding:0}
.rec-tables li{display:flex;align-items:center;gap:14px;padding:14px 16px;border-top:1px solid rgba(241,230,207,.18)}
.rec-tables li>div{flex:1;min-width:0}
.rec-tables h3{margin:0 0 2px;font:400 19px/1.2 Georgia,serif;color:#f1e6cf}
.rec-tables p{margin:0;font-size:14px;color:#cfdccb}
.rec-tables .rec-stake{margin-top:6px;color:#f0c463}
.rec-tables .soon{opacity:.55}.rec-tables .soon .rec-stake{color:#cfdccb}
.rec-play{flex:none;border:0;border-radius:3px;background:#f0c463;color:#2a1a08;font:600 15px/1.1 system-ui,sans-serif;padding:12px 14px;cursor:pointer}
.rec-play:disabled{background:#6f7f72;color:#1b2a22;cursor:default}
.rec-note{margin:0;padding:12px 16px;border-top:1px solid rgba(241,230,207,.18);font-size:14px;color:#d9e4d6;min-height:44px}
.rec-note.bad{color:#ffb8a8}
.rec-game{padding:12px 12px 0}
.rec-who{display:flex;flex-direction:column;gap:2px;margin:0 2px 10px}
.rec-who b{font:400 18px/1.2 Georgia,serif;color:#f0c463}
.rec-line{font-size:14px;color:#d9e4d6;min-height:20px}
.rec-board{display:grid;grid-template-columns:repeat(8,1fr);width:min(100%,62vh);aspect-ratio:1;margin:0 auto;border:6px solid #2e1c10;background:#2e1c10}
.rec-sq{position:relative;border:0;padding:0;margin:0;min-width:0;aspect-ratio:1;display:grid;place-items:center;cursor:default}
.rec-sq.light{background:#e6d2a6}.rec-sq.dark{background:#6b4326;cursor:pointer}
.rec-sq.last{background:#8a5a30}
.rec-sq.go::after{content:'';position:absolute;width:34%;height:34%;border-radius:50%;background:#f0c463;opacity:.9}
.rec-sq.via{background:#7d5a2c}
.rec-pc{width:76%;height:76%;border-radius:50%;display:block;position:relative;box-shadow:0 3px 0 rgba(0,0,0,.45),inset 0 0 0 3px rgba(0,0,0,.18),inset 0 0 0 7px rgba(255,255,255,.08)}
.rec-pc.mine{background:#f1e6cf}.rec-pc.theirs{background:#8e2a22}
.rec-pc.king::after{content:'';position:absolute;inset:26%;border-radius:50%;border:3px solid #d8a23a;background:rgba(216,162,58,.25)}
.rec-pc.can{box-shadow:0 3px 0 rgba(0,0,0,.45),inset 0 0 0 3px rgba(0,0,0,.18),0 0 0 2px #f0c463}
.rec-pc.sel{transform:translateY(-8%);box-shadow:0 7px 0 rgba(0,0,0,.4),0 0 0 3px #f0c463}
.rec-game .rec-note{border-top:0;padding:12px 2px 4px;text-align:center;font-size:16px;color:#f1e6cf}
.rec-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 2px 14px;font-size:14px;color:#f0c463}
.rec-quit{border:1px solid rgba(241,230,207,.4);background:none;color:#f1e6cf;font:inherit;padding:8px 12px;border-radius:3px;cursor:pointer}
.rec-quit.done{background:#f0c463;border-color:#f0c463;color:#2a1a08;font-weight:600}
.rec button:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media (prefers-reduced-motion:reduce){.rec{animation:none}.rec-pc.sel{transform:none}}
/* first person: the table fills the screen, with the citizen's words above it and the stakes below */
.rec-room.rec-pov{width:100%;max-width:760px;height:100%;display:flex;flex-direction:column;overflow:hidden}
.rec-pov .rec-game{flex:1;min-height:0;display:flex;flex-direction:column;padding:10px 10px 0}
.rec-pov .rec-stage{flex:1;min-height:200px;position:relative;border:6px solid #2e1c10;background:#16241d;overflow:hidden}
.rec-cv{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;cursor:pointer}
