/* Garden Guests board: tiles, homes, guests and routes. Everything else is the shared Ember puzzle look (style/chrome/look.css). */
:root { --g-grass: #5f9b45; --g-grass2: #78b25a; --g-water: #2f6fa6; --g-water2: #4f93c9; --g-stone: #9a927e; --g-stone2: #b9b19b;
  --g-rock: #3b3630; --g-rock2: #4a443c; --k-R: #c98a4b; --k-D: #5fb3ff; --k-P: #d97bd0; --k-Y: #ffb347; }
.cell.gt-G .tile { background: linear-gradient(160deg, var(--g-grass2), var(--g-grass)); border-color: #94c97a; }
.cell.gt-N .tile { background: repeating-linear-gradient(90deg, #2d4a20 0 3px, transparent 3px 10px) center / 100% 34% no-repeat, linear-gradient(160deg, var(--g-grass2), var(--g-grass)); border: 2px dashed #e8f5c8; }
.cell.gt-W .tile { background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.18) 0 12%, transparent 13%), linear-gradient(160deg, var(--g-water2), var(--g-water)); border-color: #8cc6f0; }
.cell.gt-S .tile { background: radial-gradient(circle, #6e6656 0 17%, transparent 19%) 0 0 / 50% 50%, linear-gradient(160deg, var(--g-water2), var(--g-water)); border-color: var(--g-stone2); }
.cell.gt-X .tile { background: var(--pat, linear-gradient(135deg, transparent 44%, rgba(0,0,0,.35) 44% 56%, transparent 56%)), linear-gradient(160deg, var(--tile2), var(--tile)); border-color: var(--tileedge); }   /* rock shows the bought board theme; grass and water keep their meaning */
.cell.reach .tile { box-shadow: inset 0 0 0 3px rgba(255,255,255,.85); }
.cell.badcell .tile { box-shadow: 0 0 0 3px var(--bad), inset 0 0 0 3px var(--bad); }
.cell.badcell::after { content: "✕"; position: absolute; z-index: 4; top: 2px; right: 6px; color: var(--bad); font-weight: 900; font-size: calc(var(--cs) * .28); text-shadow: 0 0 3px #000; }
.cell .home { position: absolute; z-index: 1; inset: 16%; border: 3px dashed var(--kc, #fff); border-radius: 10px; display: flex; align-items: flex-end; justify-content: center; }
.cell .home b { font-size: calc(var(--cs) * .17); color: #fff; background: rgba(0,0,0,.45); border-radius: 6px; padding: 0 4px; margin-bottom: -2px; }
.k-R { --kc: var(--k-R); } .k-D { --kc: var(--k-D); } .k-P { --kc: var(--k-P); } .k-Y { --kc: var(--k-Y); }
.tokens { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.token { position: absolute; left: 0; top: 0; display: grid; place-items: center; font-weight: 900; color: #1b130c; transition: transform .45s ease; }
body.rm .token { transition: none; }
.token span { position: relative; z-index: 1; font-size: 15px; }
.token::before { content: ""; position: absolute; inset: 0; background: var(--kc); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.token.k-R::before { border-radius: 50%; }
.token.k-D::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); border: 0; }
.token.k-D span { top: 5px; }
.token.k-P::before { border-radius: 5px; }
.token.k-Y::before { transform: scale(.78) rotate(45deg); border-radius: 4px; }
.token.sel::after { content: ""; position: absolute; inset: -6px; border: 3px solid var(--accent2); border-radius: 50%; animation: pulse 1s infinite alternate; }
.token.bad::after { content: ""; position: absolute; inset: -6px; border: 4px solid var(--bad); border-radius: 8px; }
.lines .route { stroke: var(--kc); opacity: .95; }
.lines .stepno { fill: var(--kc); stroke: #1b130c; stroke-width: 3px; paint-order: stroke; font-weight: 900; }
.animalbar { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.animalbar .abtn { flex: 1 1 0; min-width: 0; min-height: 40px; padding: 0 6px; font-size: 14px; border-left: 6px solid var(--kc); }
.animalbar .abtn[aria-pressed="true"] { outline: 3px solid var(--accent2); outline-offset: 1px; }
.keytok { position: relative; width: 34px; height: 34px; } .keytok .token { width: 28px; height: 28px; left: 3px; top: 3px; transition: none; }
.keycell.gt-G, .keycell.gt-N, .keycell.gt-W, .keycell.gt-S, .keycell.gt-X { --cs: 34px; }
.runbar { display: flex; gap: 6px; align-items: center; }
.runbar button { min-width: 44px; min-height: 40px; padding: 0 8px; }
.runbar input[type=range] { flex: 1; min-width: 0; accent-color: var(--accent2); }
.runbar.hidden, .runbar + .animalbar:not(:empty) { } 
.lines .halo { stroke: var(--fuseglow); opacity: .55; }   /* the bought path colour glows under every route */
/* chapters 3-10: one-way paths, plates, gates, mud, hedges, the Frog */
:root { --k-F: #b6e35a; }
.k-F { --kc: var(--k-F); }
.token.k-F::before { clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); border: 0; }
.cell.gt-A .tile, .cell.gt-O .tile, .cell.gt-K .tile, .cell.gt-M .tile { background: linear-gradient(160deg, var(--g-grass2), var(--g-grass)); border-color: #94c97a; }
.cell .tmark { position: absolute; z-index: 1; font-style: normal; font-weight: 900; color: #fff; text-shadow: 0 1px 3px #000; font-size: calc(var(--cs) * .42); line-height: 1; opacity: .9; }
.cell .tmark.r90 { transform: rotate(90deg); } .cell .tmark.r180 { transform: rotate(180deg); } .cell .tmark.r270 { transform: rotate(270deg); }
.cell.gt-O .tile { box-shadow: inset 0 0 0 calc(var(--cs) * .12) #3f6b2c; }
.cell .tmark.plate { color: #ffe08a; }
.cell.gt-K .tile { background: repeating-linear-gradient(90deg, #6b4a2b 0 calc(var(--cs) * .1), #9b7347 calc(var(--cs) * .1) calc(var(--cs) * .2)); border: 3px solid #3a2614; }
.cell.gt-K.open .tile { background: linear-gradient(160deg, var(--g-grass2), var(--g-grass)); border-style: dashed; }
.cell.gt-K.open .tmark.gate { opacity: .35; }
.cell.gt-M .tile { background: radial-gradient(circle at 35% 40%, #7a5a3a 0 18%, transparent 20%), radial-gradient(circle at 70% 65%, #7a5a3a 0 14%, transparent 16%), linear-gradient(160deg, #6e5233, #4e3a22); border-color: #8a6a44; }
.lines .hedge { stroke: #2f5a1e; stroke-linecap: round; filter: drop-shadow(0 0 2px #0b1a06); }
.keyhedge { width: 34px; height: 34px; background: linear-gradient(90deg, transparent 42%, #2f5a1e 42% 58%, transparent 58%); }
