/* Art direction and presentation. The game keeps its original sizing and input bindings. */
body{--panel:#352b40;--glow:#ffda93;--trim:#dd9c63;--side:#713d48;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}}
.board{background:linear-gradient(145deg,#b18a77,#60506e);border:3px solid #f2c98e;box-shadow:0 7px 0 #503b53,0 20px 32px #18243c90,inset 0 0 0 4px #8a6470}.tile{background:linear-gradient(145deg,#765977,#544764);box-shadow:inset 0 3px 7px #301f45ad,inset 0 -1px #e1be8e6e}.glass{background:radial-gradient(ellipse at 31% 23%,#fffde0 2%,#ffffff40 13%,transparent 26%),conic-gradient(from 22deg,var(--dark) 0%,var(--base) 14%,var(--bright) 29%,var(--dark) 38%,var(--base) 54%,var(--bright) 66%,var(--dark) 77%,var(--base) 94%);width:77%;opacity:1!important}.glass[data-phase="1"]{transform:rotate(var(--spin)) scale(.77);filter:saturate(.85)}.glass[data-phase="2"]{transform:rotate(var(--spin)) scale(.91)}.glass[data-phase="3"]{filter:brightness(1.2)}.tile strong{color:#fff4b4;text-shadow:0 2px #321b44;font-size:clamp(10px,3vmin,17px)}



.tile .glass[data-shape="0"],.tile .glass[data-shape="1"]{clip-path:polygon(28% 4%,72% 4%,72% 13%,64% 17%,65% 30%,83% 43%,91% 60%,89% 78%,79% 93%,22% 93%,12% 79%,8% 60%,18% 43%,36% 30%,36% 17%,28% 13%);transform:scale(.88)}
.tile .glass[data-shape="1"]{clip-path:polygon(22% 3%,77% 3%,76% 11%,61% 17%,61% 38%,83% 63%,90% 80%,86% 92%,72% 97%,28% 97%,14% 90%,11% 78%,19% 58%,41% 38%,41% 16%,25% 11%);transform:scale(.86)}
.tile .glass[data-shape="2"]{clip-path:polygon(50% 1%,63% 31%,96% 34%,72% 57%,78% 94%,50% 75%,18% 95%,26% 61%,3% 35%,37% 31%)}
.glass[data-phase="1"]{opacity:.88!important}.tile .glass[data-phase="2"]{filter:brightness(1.14)}.tile .glass[data-phase="3"]{filter:brightness(1.35)}

