/* Ô ĂN QUAN V4 — painted-material art pass, entirely visual. Gameplay / layout unchanged. */
:root { --rim:#ffcf82; --cream:#fff1cf; --gold-400:#ffe0a0; }
html {background:#432516;}
body {background:#3f2415 url('assets/courtyard-v4-illustrated.webp') center center/cover fixed no-repeat;}
body::before {background:linear-gradient(180deg,rgba(18,28,13,.23) 0%,rgba(29,17,11,.08) 34%,rgba(22,17,11,.11) 75%,rgba(27,16,9,.3) 100%);}
.folk-head .brand {background:linear-gradient(180deg,rgba(87,46,21,.40),rgba(42,20,12,.93)),url('assets/handcarved-wood.webp') center/auto 180px repeat-x;border:3px ridge #f8c989;outline:1px solid #4b2612;box-shadow:inset 0 2px 0 #ffe1a75d,inset 0 -4px 0 #1d0c0966,0 7px 0 #4d2613,0 13px 23px #2c0b08a6,0 0 26px #ffcb7e46;}
.folk-head .brand strong {color:#fff1bd;text-shadow:0 2px 0 #8d4d1d,0 4px 0 #54260c,0 7px 9px #100804c7;}
.folk-head .folk-seal {background:radial-gradient(circle at 27% 22%,#fffad4,#edca86 37%,#ab642b 68%,#46200e);box-shadow:0 4px 0 #3a190d,0 8px 20px #220904aa,0 0 13px #f1ba61a8;}
.bar .icobtn {border:2px ridge #d7a568;background:linear-gradient(180deg,rgba(151,91,45,.87),rgba(68,33,19,.93)),url('assets/handcarved-wood.webp') center/auto 100px repeat-x;box-shadow:inset 0 2px 1px #fff0bf49,0 4px 0 #3c1b0e,0 8px 14px #28100b9c;}
.sc {border:3px double #ffe0a2;background:linear-gradient(102deg,rgba(5,86,69,.96),rgba(9,53,43,.98)),url('assets/handcarved-wood.webp') center/cover;box-shadow:inset 0 1px #fff3c263,inset 0 -4px #0a2c27d9,0 7px 0 #4c2b1a,0 12px 20px #17090880;}
.sc.p1 {background:linear-gradient(102deg,rgba(143,54,35,.98),rgba(85,28,20,.98)),url('assets/handcarved-wood.webp') center/cover;}
.sc.p0::before,.sc.p1::before {height:40px;width:40px;border:3px solid #ffdf8a;box-shadow:0 2px 0 #412016,0 0 12px #ffe2aa70;}
.board {position:relative;overflow:hidden;isolation:isolate;border:9px ridge #dca165;border-radius:31px;background:linear-gradient(168deg,#f3c0781f,#42210a60),url('assets/carved-board-reference.webp') center/100% 100% no-repeat;box-shadow:inset 0 0 0 2px #fff0b2,inset 0 0 0 6px #a56835,inset 0 7px 17px #ffc5827c,inset 0 -8px 18px #2b100777,0 6px 0 #88502b,0 13px 0 #512918,0 22px 0 #32160d,0 31px 30px #1e0e09a8,0 45px 55px #170a087c;}
.board::before,.board::after {content:'❀';z-index:1;top:5px;color:#512408;font-size:21px;filter:drop-shadow(0 1px #ffe0a88c);}
.cell,.cell.quan {border:3px solid #eac288;isolation:isolate;background:linear-gradient(180deg,rgba(43,18,6,.16),rgba(81,35,10,.08) 50%,rgba(217,136,56,.15)),url('assets/pit-painted.webp') center/100% 100% no-repeat;box-shadow:inset 0 11px 13px rgba(39,10,3,.67),inset 0 -2px 8px rgba(255,229,152,.40),0 1px 0 #fff0b7d6,0 3px 4px #3d1a0d8a;}
.cell:not(.quan) {border-radius:20px;}
.cell.quan {border-radius:45%/31%;}
.cell::before {background:radial-gradient(ellipse 82% 80% at 49% 108%,rgba(255,216,128,.22),transparent 64%);}
.cell:hover {filter:brightness(1.09);}
.cell.pick {border-color:#fff0b5;box-shadow:inset 0 9px 14px #472111c7,0 0 0 2px #fff8caac,0 0 25px #ffce55a3;}
.cell.active {border-color:#fff7d4;box-shadow:inset 0 9px 16px #472211bd,0 0 22px #ffe6aabb,0 0 0 2px #ffd681aa;}
.qtag {text-shadow:0 1px 1px #6b2f0f,0 3px 3px #2a1506;color:#ffe7b1;font-weight:900;}
.cnt {background:linear-gradient(180deg,#65330f,#391803);border:1.6px solid #f4bd7c;box-shadow:0 2px 3px #220a05a3,inset 0 1px #ffdb994f;}
.st {background-color:transparent !important;background-blend-mode:normal;background-position:center;background-repeat:no-repeat;background-size:contain;box-shadow:0 3px 2px #381a0b55,0 6px 6px #240c0573;filter:drop-shadow(0 1px 1px #2a14084d);}
.st.v0 {background-image:url('assets/stone-illustrated-0.png') !important;}
.st.v1 {background-image:url('assets/stone-illustrated-1.png') !important;}
.st.v2 {background-image:url('assets/stone-illustrated-2.png') !important;}
.st.v3 {background-image:url('assets/stone-illustrated-3.png') !important;}
.st.v4 {background-image:url('assets/stone-illustrated-4.png') !important;}
.st.big {background-image:radial-gradient(ellipse 24% 20% at 34% 27%,#fff8d8,transparent 98%),radial-gradient(ellipse 110% 90% at 70% 88%,#48280e,transparent 80%),url('assets/stone-illustrated-2.png') !important;background-blend-mode:screen,multiply,normal;border:1px solid #f8d5a0;box-shadow:0 0 0 2px #f5cb8730,0 6px 8px #210c06be,inset 0 2px 4px #fff1b6;}
.status {background:linear-gradient(180deg,#7a4424e8,#371a10f7),url('assets/handcarved-wood.webp') center/auto 120px;border:2px solid #f5c27b;box-shadow:inset 0 2px #fff5c44d,0 4px 0 #55250f,0 9px 19px #2b0d06a0;}
.panel,.sheet {border-color:#f0b56a;background:linear-gradient(160deg,rgba(117,68,34,.97),rgba(55,27,19,.97)),url('assets/handcarved-wood.webp') center/cover;}
@media(max-width:680px){.board{border-width:5px;box-shadow:inset 0 0 0 2px #f0c78c,0 7px 0 #79431d,0 12px 21px #2c100a9c}.cell,.cell.quan{border-width:1.5px}.cell:not(.quan){border-radius:11px}.sc.p0::before,.sc.p1::before{height:25px;width:25px;border-width:1px}}
/* Distinct vertical board artwork: never stretch the photographed horizontal ten-pit board. */
.board.vert {
 background:
 linear-gradient(118deg,rgba(255,230,166,.26),rgba(71,35,17,.38)),
 url('assets/handcarved-wood.webp') center/340px 180px repeat;
}
.sc.p0::before {background:#286657 url('assets/avatar-painted-player.png') center/cover no-repeat;}
.sc.p1::before {background:#803d29 url('assets/avatar-painted-rival.png') center/cover no-repeat;}
@media(max-width:680px){
 .board.vert{background:linear-gradient(130deg,rgba(246,203,140,.31),rgba(76,37,17,.3)),url('assets/handcarved-wood.webp') center/auto 130px repeat;}
}
