/* B: a whole candidate has one soft colour; most cells carry no icon. */
[data-tone="0"]{--tile-light:#ffeaf4;--tile-base:#ffa0ce;--tile-edge:#f684be}
[data-tone="1"]{--tile-light:#edffc7;--tile-base:#b8ef70;--tile-edge:#9cd85b}
[data-tone="2"]{--tile-light:#ddfbff;--tile-base:#8ae4fa;--tile-edge:#6bd1ec}
[data-tone="3"]{--tile-light:#fff9cc;--tile-base:#ffdd76;--tile-edge:#f5c85b}
[data-tone="4"]{--tile-light:#fceaff;--tile-base:#e9baff;--tile-edge:#dca3f5}
#board .piece[data-tone],.mini[data-tone]{background:linear-gradient(155deg,var(--tile-light) 4%,var(--tile-base) 90%)!important;border:1px solid var(--tile-edge)!important;box-shadow:inset 0 2px 2px #ffffffb0,inset 0 -2px 0 #ffffff30,0 1px 1px #56754715!important;border-radius:8px}
#board .piece img{width:64%;height:64%;left:18%;top:16%;object-fit:contain;filter:drop-shadow(0 1px 1px #765c2926)}
#board .piece.prized{outline:0}#board .piece[data-element="flower"]::after{content:'';position:absolute;inset:13%;border:1px solid #fff4cdbb;border-radius:50%;pointer-events:none}
.tray-slot{height:126px}.mini{width:23px;height:23px;border-radius:5px}.shape{gap:2px;flex-shrink:0}.mini img{position:absolute;width:75%;height:75%;left:12.5%;top:10%;object-fit:contain}
.drag-piece .mini{width:var(--cell);height:var(--cell)}
#board .line-preview{outline:2px solid #e7c876;outline-offset:-2px;background:#e9eed3}
#board button{background:#f3f8e7;box-shadow:inset 0 1px 2px #60924314}
.board-wrap{background:#aad08d;border-color:#cceab2;box-shadow:0 5px 0 #80ad69,inset 0 2px #edffdc}
.tray-slot{background:#fffaf2;border-color:#ecd9c4}
@media(max-width:380px){.mini{width:21px;height:21px}}
/* Chapter three changes colour and surface detail only; all hit areas stay intact. */
body[data-chapter="3"]{background:radial-gradient(ellipse at 15% 0,#f5dfe9,transparent 50%),radial-gradient(ellipse at 95% 18%,#e5dff2,transparent 60%),#f8f2e9}
body[data-chapter="3"] .board-wrap{background:linear-gradient(145deg,#d4bdcc,#c0b8d3);border-color:#f1e1ec;box-shadow:0 5px 0 #a49aad,inset 0 2px #fff3fa}
body[data-chapter="3"] #board button{background:#faf3f6;box-shadow:inset 0 1px 2px #97769a18}
body[data-chapter="3"] #board .line-preview{outline-color:#cf9f63;background:#fff0d1}
body[data-chapter="3"] .tray-slot{background:linear-gradient(160deg,#fffaf5,#f7eff7);border-color:#e0d0de}
body[data-chapter="3"] .tray-slot[aria-pressed=true]{border-color:#b58da9;box-shadow:0 0 0 2px #f2dce9;background:#fff2f7}
body[data-chapter="3"] .hud{background:#fffaf7;border-color:#e3d7dd}
body[data-chapter="3"] .combo-row{color:#896982}
body[data-chapter="3"] .combo-row strong{color:#a56782}
body[data-chapter="3"] .tools button{background:#fffaf7;border-color:#e0d4db}
