/* Lantern Trail board and palette (own colours, family layout). Night garden: deep teal ground, lantern gold light. */
:root {
  --bg: #0f1a1c; --panel: #172628; --panel2: #1e3134; --line: #2f4a4c; --text: #eef3e6; --muted: #9fb5ad;
  --accent: #f2b84b; --accent2: #ffd98a; --on-accent: #1d1608;
  --tile: #1b2f2b; --tile2: #213a35; --tilefg: #eef3e6; --tileedge: #2e4b45;
  --fuse: #fff3c4; --fuseglow: #ffcf6b; --bluebeam: #d6f0ff; --blueglow: #6fc3ff;
  --flower: #f7a8d8; --flowerheart: #ffd98a; --shadecap: #6d8fd6; --shadedot: #dfe8ff; --stone: #5d6666;
}
body { background: radial-gradient(120% 80% at 50% 0%, #1b3431 0%, var(--bg) 60%); background-attachment: fixed; }
.cell .pc { position: relative; z-index: 2; width: 70%; height: 70%; }
.cell .flower .petals { fill: #4f5f63; transition: fill .3s, transform .3s; transform: scale(.62); }
.cell .flower .heart { fill: #78868a; transition: fill .3s; }
.cell.lit .flower .petals { fill: var(--flower); transform: scale(1); }
.cell.lit .flower .heart { fill: var(--flowerheart); }
.cell .shade .cap { fill: var(--shadecap); } .cell .shade .dot { fill: var(--shadedot); } .cell .shade .stem { fill: #c9d3e8; }
.cell.wall .tile { background: repeating-linear-gradient(135deg, #6a7373 0 6px, #586161 6px 12px); border-color: #889191; }
.cell.lit .tile { background: linear-gradient(160deg, #3d4a2c, #33402a); }
.cell.lit.shadecell .tile { background: linear-gradient(160deg, #5a2a2a, #4a2222); }
.cell .bad { display: none; position: absolute; z-index: 4; right: 6%; top: 2%; color: var(--bad); font-weight: 900; font-size: calc(var(--cs) * .28); text-shadow: 0 0 3px #000; }
.cell.badcell .bad { display: block; }
.cell .mir { position: absolute; z-index: 3; width: 86%; height: calc(var(--cs) * .1); min-height: 3px; border-radius: 3px; display: none;
  background: linear-gradient(180deg, #f4fbff, #9fc4d8); box-shadow: 0 0 0 1px #2a4252, 0 1px 3px rgba(0,0,0,.6); }
.cell.m1 .mir, .cell.m2 .mir { display: block; }
.cell.m1 .mir { transform: rotate(-45deg); } .cell.m2 .mir { transform: rotate(45deg); }
.cell .mothspot { position: absolute; z-index: 3; inset: 12%; pointer-events: none; }
.cell .mothspot svg { width: 100%; height: 100%; }
.moth .wing { fill: #e9dcff; stroke: #6b5a8f; stroke-width: .6; } .moth .wing2 { fill: #c9b6f2; } .moth .body { fill: #5a4470; }
.cell .lantern { position: absolute; z-index: 4; width: calc(var(--cs) * .44); height: calc(var(--cs) * .44); pointer-events: none; }
.cell.fromE .lantern { left: calc(var(--cs) * -.3); top: 50%; transform: translateY(-50%); }
.cell.fromW .lantern { right: calc(var(--cs) * -.3); top: 50%; transform: translateY(-50%); }
.cell.fromS .lantern { top: calc(var(--cs) * -.3); left: 50%; transform: translateX(-50%); }
.cell.fromN .lantern { bottom: calc(var(--cs) * -.3); left: 50%; transform: translateX(-50%); }
.lant { width: 100%; height: 100%; } .lant .lframe { fill: #3b2a14; stroke: #d9a441; stroke-width: 1; } .lant .lglow { fill: #ffd98a; filter: drop-shadow(0 0 3px #ffcf6b); }
svg.lines .beam { fill: none; stroke: var(--fuse); stroke-linecap: round; stroke-linejoin: round; }
svg.lines .beamhalo { fill: none; stroke: var(--fuseglow); opacity: .35; stroke-linecap: round; stroke-linejoin: round; }
.boardwrap { margin: 20px auto; }
#mistakes.full { border-color: var(--accent); color: var(--accent2); }
.keycell .pc { width: 72%; height: 72%; } .keycell .lantern { position: static; transform: none; width: 60%; height: 60%; }
.keycell.m1 .mir { display: block; transform: rotate(-45deg); }
body.cb { --flower: #ffe066; --shadecap: #4aa3ff; }

/* newer pieces: crystal (ch3), glass (ch7), second lantern (ch8), blue glass + blue flower (ch9), two moths (ch10) */
.pc.crystal .cf { fill: #b9e6ef; stroke: #e9fbff; stroke-width: .8; } .pc.crystal .cs { fill: none; stroke: #6fb4c4; stroke-width: .8; }
.cell.lit .pc.crystal .cf { fill: #f2fdff; filter: drop-shadow(0 0 3px #bff3ff); }
.pc.pane .pf { fill: rgba(200, 235, 240, .22); stroke: #cfe9ee; stroke-width: 1; } .pc.pane .ps { stroke: rgba(255, 255, 255, .55); stroke-width: 1.2; stroke-linecap: round; }
.filtercell .pc.pane .pf { fill: rgba(90, 170, 255, .45); stroke: #8fd0ff; }
.cell.bluecell .flower .petals { fill: #3f5468; }
.cell.bluecell.lit .flower .petals { fill: #4f6a80; transform: scale(.62); }
.cell.bluecell.lit.blue .flower .petals { fill: #6fc3ff; transform: scale(1); }
.cell.lit.blue .tile { background: linear-gradient(160deg, #24405a, #1f3448); }
svg.lines .beam.blue { stroke: var(--bluebeam); } svg.lines .beamhalo.blue { stroke: var(--blueglow); }
