/* Art direction and presentation. The game keeps its original sizing and input bindings. */
body{--panel:#274331;--glow:#f5d778;--trim:#d7a758;--side:#704227;background:linear-gradient(123deg,#20394b21,#22364f38),url('art/setting.jpg') center/cover no-repeat fixed;color:#fffae8}
main>section:first-child,.info{min-width:0;position:relative;background:linear-gradient(155deg,color-mix(in srgb,var(--panel),white 9%),var(--panel));color:#fffae8;border:1px solid var(--trim);border-radius:20px;padding:clamp(10px,2.1vw,22px);box-shadow:0 4px 0 var(--side),0 13px 28px #24315270,inset 0 1px #fff3;text-shadow:0 1px #29354b8a}
main>section:first-child h1,main>section:first-child #title{color:var(--glow);font-weight:850;letter-spacing:-.045em;text-wrap:balance}
main>section:first-child p{color:#f7efdb;text-wrap:pretty;font-weight:580}
main>section:first-child button:not([hidden]),main>section:first-child select{border:1px solid #fff0c583;background:linear-gradient(#fff0c9,var(--trim));color:#3f3045;box-shadow:0 2px var(--side),inset 0 1px #fff9;border-radius:9px;font-weight:750;text-shadow:none;padding:5px 9px;max-width:100%}
main>section:first-child button:disabled{opacity:.58}main>section:first-child button:active{transform:translateY(1px)}main>section:first-child select option{background:#fff4d5;color:#3d344c}
@media(max-width:490px) and (orientation:portrait){body{background-attachment:scroll}main>section:first-child{padding:9px 12px}main>section:first-child p{margin-block:5px}}
@media(max-height:430px) and (orientation:landscape){main>section:first-child{padding:7px 10px}main>section:first-child p{margin-block:4px}main>section:first-child button:not([hidden]),main>section:first-child select{font-size:clamp(11px,3vmin,15px);padding:4px 7px}}
.frame{background:linear-gradient(140deg,#ffe3a0,#c88745 48%,#7a432b);border:2px solid #f3cf89;box-shadow:0 7px 0 #603d2a,0 20px 36px #18361f80,inset 0 0 0 4px #87503180}.board{background:#574035;border-color:#8e6546}.cell,.cell:nth-child(even){background:linear-gradient(160deg,#8d6c56,#62463c);box-shadow:inset 0 3px 6px #362b31a0,inset 0 -1px #f0c78c55}.gem{width:100%;height:100%;background:var(--jewel) center/contain no-repeat;clip-path:none;border-radius:0;box-shadow:none;transform:none}.gem:after{display:none}.goal .gem{width:26px;height:26px}
.g0{--jewel:url("art/gem-0.png")}
.g1{--jewel:url("art/gem-1.png")}
.g2{--jewel:url("art/gem-2.png")}
.g3{--jewel:url("art/gem-3.png")}
.g4{--jewel:url("art/gem-4.png")}
.g5{--jewel:url("art/gem-5.png")}
