*{box-sizing:border-box}body{margin:0;background:#f7f9f1;color:#40513c;font:16px/1.45 Arial,"Microsoft YaHei",sans-serif}button,input,select{font:inherit;min-height:44px;padding:8px 13px;border:1px solid #bcc8ad;border-radius:8px;background:#fffef7;color:inherit}button{cursor:pointer;font-weight:600}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #1786ac;outline-offset:3px}button.primary{background:#47613d;color:white;border-color:#47613d;box-shadow:0 3px 0 #30482a}header,.bar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}header{padding:10px 16px;max-width:960px;margin:auto}header>a{font-size:14px;text-decoration:none}header strong{font-size:21px}.header-actions{display:flex;gap:7px;align-items:center}header select{font-size:12px;width:98px}header #rules{font-weight:bold;width:44px;padding:4px}main{max-width:850px;margin:auto;padding:0 16px 12px}#entry{max-width:690px;margin:6vh auto 20px;padding:30px;display:grid;grid-template-columns:1fr 1fr;gap:32px;background:#fffef9;border:1px solid #dbe1cf;border-radius:24px;box-shadow:0 16px 40px #33452b0d}.entry-heading h1{font-size:30px;line-height:1.2;margin:21px 0 12px}.entry-heading p{font-size:15px;color:#76816b}.entry-emblem{display:inline-flex;align-items:center;position:relative;background:#edcc61;border-radius:14px;width:75px;height:75px;justify-content:center;font-size:44px;font-weight:bold;color:#fff8df;transform:rotate(-6deg);box-shadow:0 7px 0 #dcb849}.entry-emblem span{font-size:28px;position:absolute;right:-25px;bottom:-14px;width:48px;height:48px;display:grid;place-items:center;border-radius:10px;background:#f2a45c;transform:rotate(13deg);box-shadow:0 5px 0 #df8a42}.entry-fields{display:flex;flex-direction:column;justify-content:center;gap:8px}.entry-fields label{font-size:13px;font-weight:600}.entry-fields input{width:100%;margin-bottom:9px;min-width:0}.entry-actions{display:flex;gap:10px}.entry-actions button{flex:1}#status{max-width:850px;margin:3px auto 8px;padding-inline:16px;min-height:21px;font-size:13px}#status:empty{min-height:0;margin:0}.bar{padding:9px 0 10px;border-bottom:1px solid #d8dfcd;margin-bottom:13px}.bar>div:last-child{display:flex;gap:7px}.bar button{font-size:13px;padding-inline:11px}.room-code{font-size:12px}.room-code b{font-size:19px;letter-spacing:.1em;margin-inline:7px}.room-code small{display:inline-flex;align-items:center;gap:5px;color:#6e8562}.room-code small:before{content:'';width:6px;height:6px;border-radius:50%;background:#79a15d}#invite-status{font-size:12px;margin:0}#invite-status:empty{display:none}#invite-link{width:100%;font-size:12px;margin-bottom:9px}#lobby{text-align:center;max-width:650px;margin:30px auto}.lobby-heading h1{font-size:27px;margin:0 0 7px}.lobby-heading p{color:#7a856d;font-size:14px}#seats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:30px 0}.seat{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:190px;border:2px dashed #c6d0b8;border-radius:22px;padding:22px 12px;color:#98a18c}.seat.occupied{border:1px solid #cbd6bd;background:#fffef7;color:#40513c;box-shadow:0 7px 22px #324a2310}.seat-avatar{display:grid;place-items:center;width:66px;height:66px;border-radius:22px;background:#e8eddb;font-size:28px}.occupied .seat-avatar{background:#c5d6ae;color:#405c31}.seat strong{font-size:18px;overflow-wrap:anywhere}.seat small{font-size:12px}.boards{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 158px;gap:22px;align-items:start}.player-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:6px 0 9px}.player-heading h2{margin:0;font-size:17px;overflow-wrap:anywhere}.player-heading p{margin:0;font-size:13px;color:#748166}.board{--gap:10px;--pad:10px;position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:var(--gap);padding:var(--pad);width:100%;aspect-ratio:1;direction:ltr;touch-action:none;background:#bcc8ad;border-radius:12px;box-shadow:inset 0 2px 0 #aab99a,0 9px 22px #32482310;isolation:isolate;min-height:0}#my-board{width:min(100%,calc(100svh - 450px));max-width:490px;margin-inline:auto}.grid-cell{min-height:0;min-width:0;background:#cdd6c2;border-radius:7px;aspect-ratio:1}.tiles{position:absolute;inset:0;pointer-events:none;direction:ltr}.cell{display:grid;place-items:center;position:absolute;min-width:0;min-height:0;line-height:1;border-radius:7px;background:#eee4da;color:#776e65;font-weight:750;transition:left 110ms ease-out,top 110ms ease-out,background 120ms;box-shadow:0 2px 2px #27361d14;text-align:center;isolation:isolate}.cell[data-value="2"]{background:#eee4da}.cell[data-value="4"]{background:#ede0c8}.cell[data-value="8"]{background:#f2b179;color:#f9f6f2}.cell[data-value="16"]{background:#f59563;color:#f9f6f2}.cell[data-value="32"]{background:#f67c5f;color:#f9f6f2}.cell[data-value="64"]{background:#f65e3b;color:#f9f6f2}.cell[data-value="128"],.cell[data-value="256"]{background:#edcf72;color:#f9f6f2;box-shadow:0 0 17px #edc22e35}.cell[data-value="512"],.cell[data-value="1024"],.cell[data-value="2048"]{background:#edc53f;color:#f9f6f2;box-shadow:0 0 21px #edc22e55}.cell:not([data-value="2"]):not([data-value="4"]):not([data-value="8"]):not([data-value="16"]):not([data-value="32"]):not([data-value="64"]):not([data-value="128"]):not([data-value="256"]):not([data-value="512"]):not([data-value="1024"]):not([data-value="2048"]){background:#3c3a32;color:#f9f6f2}.cell[data-color=mask]{outline:4px solid #9b4cd1;outline-offset:-4px}.cell[data-color=extra]{outline:4px solid #eb7837;outline-offset:-4px}.cell[data-color=rotate]{outline:4px solid #1592ce;outline-offset:-4px}.cell.fading{outline-style:dashed}.cell.masked{background:repeating-linear-gradient(135deg,#695174 0 6px,#5b4568 6px 12px)!important;color:#fff1ff}.icon{position:absolute;right:5%;top:4%;line-height:1;background:#fff9;border-radius:50%;padding:1px;color:#3e3342}.tile.arrive{animation:appear 150ms ease-out}.tile.merged{animation:merge 190ms ease-out}@keyframes appear{from{scale:.55;opacity:.3}to{scale:1;opacity:1}}@keyframes merge{0%,100%{scale:1}50%{scale:1.14}}#my-board[data-input=left] .tile{translate:-3px 0}#my-board[data-input=right] .tile{translate:3px 0}#my-board[data-input=up] .tile{translate:0 -3px}#my-board[data-input=down] .tile{translate:0 3px}aside .board{--gap:4px;--pad:4px;border-radius:8px}aside .grid-cell,aside .cell{border-radius:3px}aside .player-heading{display:block}aside .player-heading h2{font-size:13px}aside .player-heading p{font-size:11px;margin-top:2px}.ko .board{filter:saturate(.35);opacity:.7}.ko .board:after{content:'KO';position:absolute;inset:0;display:grid;place-items:center;color:white;font-size:38px;text-shadow:0 2px 8px #14240e;background:#25332055;border-radius:inherit;z-index:4}#directions{display:flex;justify-content:center;gap:10px;margin:14px 0 4px}#directions button{min-width:54px;min-height:45px;font-size:23px;background:#e5ecd9;border-color:#c3cfb3;box-shadow:0 3px 0 #b4c3a2}#directions button.pressed{background:#698a51;color:#fff;translate:0 2px;box-shadow:none}.match-footer{display:flex;justify-content:center;align-items:center;gap:15px;min-height:25px}#queue-state,#events{font-size:12px;color:#748166}#events{min-height:24px;text-align:center;margin:3px 0}dialog{max-width:650px;max-height:85svh;overflow:auto;background:#fffdf5;border:1px solid #9a8971;border-radius:15px;padding:25px}#rule-copy{white-space:pre-line;line-height:1.8}#close-rules{margin-top:15px;min-width:50px}#fx{position:fixed;inset:0;pointer-events:none;z-index:50}.spell{position:fixed;width:58px;height:58px;display:grid;place-items:center;color:white;border:2px solid #fff9;border-radius:50%;background:var(--spell);box-shadow:0 0 0 6px color-mix(in srgb,var(--spell),transparent 70%),0 0 32px var(--spell);isolation:isolate}.mask{--spell:#9b4cd1}.extra{--spell:#ed7838}.rotate{--spell:#159ad5}.spell-core{font-size:32px;line-height:1;text-shadow:0 0 9px #fff}.spell-tail{position:absolute;inset:-9px;border:1px solid #fff7;border-radius:50%;animation:halo 260ms var(--delay) ease-out infinite}@keyframes halo{to{scale:1.5;opacity:0}}.impact{position:absolute;inset:4%;border:5px double var(--spell);color:var(--spell);border-radius:16px;display:grid;place-items:center;font-size:clamp(32px,10vw,70px);font-weight:bold;box-shadow:inset 0 0 30px color-mix(in srgb,var(--spell),transparent 35%),0 0 22px var(--spell);text-shadow:0 0 6px white;z-index:6;pointer-events:none}.impact.mask{border-style:dashed;border-radius:9px}.impact.extra{clip-path:polygon(50% 0,62% 20%,86% 14%,80% 38%,100% 50%,80% 62%,86% 86%,62% 80%,50% 100%,38% 80%,14% 86%,20% 62%,0 50%,20% 38%,14% 14%,38% 20%)}.impact.rotate{border-radius:50%;border-left-color:transparent;border-right-color:transparent}[hidden]{display:none!important}
@media(max-width:600px){header{padding:7px 12px}header strong{font-size:17px}header>a{font-size:13px}header select{width:86px}#entry{margin:5vh 16px 15px;padding:25px;display:block}.entry-heading{margin-bottom:25px}.entry-heading h1{font-size:26px}.entry-emblem{width:56px;height:56px;font-size:33px}.entry-emblem span{width:38px;height:38px;font-size:24px;right:-20px}.entry-heading p{margin-bottom:0}main{padding:0 12px 8px}.bar{margin-bottom:7px;gap:6px;padding:7px 0}.bar button{font-size:12px;padding:6px 9px;min-height:40px}.room-code{font-size:10px}.room-code b{font-size:16px;margin-inline:4px}.room-code small{display:none}.boards{display:block;padding-top:0;min-height:0}.boards aside{position:absolute;right:0;top:0;width:100px;z-index:5}.boards section .player-heading{padding-inline-end:112px;min-height:129px;display:block;justify-content:start;align-content:center;margin:0 0 7px}.boards section .player-heading h2{font-size:17px;margin-bottom:3px}.boards aside .player-heading{margin:0 0 3px;min-height:25px}.boards aside .player-heading h2{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.boards aside .player-heading p{font-size:9px;line-height:1}#other-board{width:100px}#my-board{width:min(100%,calc(100svh - 510px));max-width:420px}.cell[data-color]{outline-width:3px}aside .cell[data-color]{outline-width:1px}#directions{margin-top:10px;gap:10px}#directions button{min-width:51px;min-height:44px}#lobby{margin:25px auto}.lobby-heading h1{font-size:24px}#seats{gap:12px;margin:24px 0}.seat{min-height:170px;padding:18px 10px}.seat strong{font-size:15px}.seat-avatar{width:55px;height:55px;border-radius:18px}#events{font-size:11px;min-height:20px}}
@media(max-width:600px) and (max-height:650px){header{padding-block:4px}header button,header select{min-height:36px}.bar{padding:4px 0;margin-bottom:2px}.bar button{min-height:34px}.boards section .player-heading{min-height:103px;margin-bottom:2px}.boards aside{width:80px}#other-board{width:80px}#my-board{width:min(100%,calc(100svh - 297px))}#directions{margin:7px 0 2px}#directions button{min-height:40px}#events{margin:0;min-height:16px}.match-footer{min-height:18px}#status{font-size:11px;margin-block:0}.entry-heading{margin-bottom:12px}#entry{margin-top:10px;padding:20px}.entry-emblem{display:none}.entry-heading h1{font-size:24px;margin:0 0 8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.tile{translate:0!important}.spell-tail{display:none}}

.tile.travelling{opacity:.88}.tile.travelling .icon{opacity:.85}

@media(max-width:600px) and (max-height:650px){.boards{display:grid;grid-template-columns:minmax(0,1fr) 80px;gap:12px}.boards aside{position:static;width:80px}.boards section .player-heading{padding-inline-end:0;min-height:34px;margin-bottom:2px}.boards aside .player-heading{min-height:34px;margin:0 0 2px}#my-board{width:min(100%,calc(100svh - 320px))}.player-heading h2{font-size:14px!important}}

/* Desktop browser acceptance: use the measured available height for the primary board. */
@media(min-width:641px) and (min-height:601px){#my-board{width:min(100%,calc(100svh - 350px));max-width:490px}}

/* Same material language as solo. Existing measured board geometry is retained. */
body{background:#f4f2ec;color:#314451;font-family:"Aptos","Segoe UI","Microsoft YaHei",sans-serif}
button,input,select{border-color:#c1c9c8;background:#fffdf6;color:#314451;border-radius:9px}button{box-shadow:inset 0 1px 0 #ffffffb3,0 2px 0 #bec7c9}button:active:not(:disabled){box-shadow:inset 0 1px 2px #213a4222}
button.primary{background:linear-gradient(140deg,#315e68,#234b57);border-color:#234b57;color:#fff9e9;box-shadow:inset 0 1px 0 #ffffff28,0 3px 0 #153945}
header strong{color:#244652;letter-spacing:-.035em}header>a{color:#376674}
#entry{background:linear-gradient(145deg,#fffdf7,#efede5);border-color:#d3dad8;box-shadow:inset 0 1px 0 #fff,0 12px 35px #243a4910}
.entry-heading p,.lobby-heading p{color:#667b81}.entry-emblem{background:linear-gradient(145deg,#f4dca5,#dfb36a);color:#5a3d22;box-shadow:inset 0 1px 0 #fff5d8,0 5px 0 #b48445,0 11px 15px #2536451c}
.entry-emblem span{background:linear-gradient(145deg,#e9b88b,#cb835e);color:#4b2b22;box-shadow:inset 0 1px 0 #ffe3c6,0 4px 0 #96583f}
.bar{border-color:#cbd4d3}.room-code small{color:#557d77}.room-code small:before{background:#4e9b8c}
.seat{border-color:#bfcccb;color:#7b9093}.seat.occupied{border-color:#c9d4d3;background:linear-gradient(145deg,#fffdf6,#f0f4ef);color:#314451;box-shadow:inset 0 1px 0 #fff,0 6px 16px #263c4910}
.seat-avatar{background:#e1e8e5}.occupied .seat-avatar{background:linear-gradient(145deg,#d3e9df,#a7c9bd);color:#2a5c51;box-shadow:inset 0 1px 0 #f1fff7,0 3px 0 #84a99c}
.board{background:linear-gradient(145deg,#344c57,#203541);border-radius:12px;box-shadow:inset 0 1px 0 #738b91,0 4px 0 #172c38}
.board:before{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px #ffffff14,inset 0 -3px 0 #03131d22;pointer-events:none;z-index:0}
.grid-cell{background:linear-gradient(155deg,#152b38,#2c414b);border-radius:8px;box-shadow:inset 0 1px 0 #071a2855}.tiles{z-index:2}
.player-heading h2{color:#284b59}.player-heading p,#queue-state,#events{color:#607a81}
#directions button{background:linear-gradient(145deg,#f4dca5,#dfb36a);border-color:#c5a16a;color:#4a341b;box-shadow:inset 0 1px 0 #fff4d3,0 3px 0 #a77d43}
#directions button.pressed{background:#315e68;color:#fff9e9;box-shadow:none}
dialog{background:#fffdf5;border-color:#8fa6aa;box-shadow:0 18px 70px #102e4166}dialog::backdrop{background:#112d3f99}
.cell{transition-timing-function:cubic-bezier(.2,.7,.25,1)}
.cell.masked{background:repeating-linear-gradient(135deg,#5e4b7c 0 9px,#514064 9px 18px)!important;color:#fff6ff!important;box-shadow:inset 0 1px 0 #c3a5e7aa,inset 0 -3px 0 #322442,0 3px 0 #192332}
.cell[data-color=mask]{outline-color:#9460c6}.cell[data-color=extra]{outline-color:#dc7137}.cell[data-color=rotate]{outline-color:#238eae}
.icon{background:#fff8deec;color:#253e4e;border-radius:4px;box-shadow:0 1px 2px #15334b44}
.spell{background:radial-gradient(circle at 32% 25%,#fff9 0,#fff2 15%,transparent 40%),var(--spell);border-color:#fff3d0;box-shadow:inset 0 1px 0 #fff8,0 0 0 4px color-mix(in srgb,var(--spell),transparent 72%),0 9px 20px #13213d44}
.spell-core{font-family:system-ui,sans-serif;text-shadow:0 1px 2px #0a244888}.spell-tail{border-color:#fff4da99}
.impact{background:radial-gradient(ellipse,#ffffff06 25%,transparent 66%);box-shadow:inset 0 0 15px color-mix(in srgb,var(--spell),transparent 67%),0 0 12px color-mix(in srgb,var(--spell),transparent 50%);text-shadow:0 1px 3px #fff9}
aside .board{box-shadow:inset 0 1px 0 #738b91,0 2px 0 #172c38}aside .grid-cell,aside .cell{border-radius:3px}aside .cell{box-shadow:inset 0 1px 0 #ffffff99,inset 0 -1px 0 #132b3a33,0 1px 0 #091b2899}

/* Original ceramic/resin surface study. Geometry, values and state are unchanged. */
.tile[class*="tile-"] .tile-inner{position:relative}
.tile[class*="tile-"] .tile-inner,.cell{isolation:auto;border-radius:9px;font-family:"Aptos","Segoe UI","Microsoft YaHei",sans-serif;font-weight:750;font-variant-numeric:tabular-nums lining-nums;letter-spacing:-.035em;text-shadow:none;box-shadow:0 3px 0 #091b2899;background-size:100% 100%;background-repeat:no-repeat}
.tile.tile-2 .tile-inner,.cell[data-value="2"]:not(.masked){background-color:#fff8e9;background-image:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22100%22%20height=%22100%22%20viewBox=%220%200%20100%20100%22%20preserveAspectRatio=%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id=%22f%22%20x2=%221%22%20y2=%221%22%3E%3Cstop%20stop-color=%22%23fff9ed%22/%3E%3Cstop%20offset=%22.32%22%20stop-color=%22%23fff8e9%22/%3E%3Cstop%20offset=%22.82%22%20stop-color=%22%23fff8e9%22/%3E%3Cstop%20offset=%221%22%20stop-color=%22%23ede7d9%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20fill=%22url%28%23f%29%22%20d=%22M0%200h100v100H0z%22/%3E%3Cpath%20fill=%22%23ccc6ba%22%20d=%22M0%2097h100v3H0z%22/%3E%3Cpath%20fill=%22%23fffcf6%22%20d=%22M2%201h96v1H2z%22/%3E%3C/svg%3E");color:#35444d}
.tile.tile-4 .tile-inner,.cell[data-value="4"]:not(.masked){background-color:#e3eddf;background-image:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22100%22%20height=%22100%22%20viewBox=%220%200%20100%20100%22%20preserveAspectRatio=%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id=%22f%22%20x2=%221%22%20y2=%221%22%3E%3Cstop%20stop-color=%22%23e8f0e5%22/%3E%3Cstop%20offset=%22.32%22%20stop-color=%22%23e3eddf%22/%3E%3Cstop%20offset=%22.82%22%20stop-color=%22%23e3eddf%22/%3E%3Cstop%20offset=%221%22%20stop-color=%22%23d3dccf%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20fill=%22url%28%23f%29%22%20d=%22M0%200h100v100H0z%22/%3E%3Cpath%20fill=%22%23b6beb2%22%20d=%22M0%2097h100v3H0z%22/%3E%3Cpath%20fill=%22%23f4f8f2%22%20d=%22M2%201h96v1H2z%22/%3E%3C/svg%3E");color:#2c5043}
.tile.tile-8 .tile-inner,.cell[data-value="8"]:not(.masked){background-color:#f0ce89;background-image:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22100%22%20height=%22100%22%20viewBox=%220%200%20100%20100%22%20preserveAspectRatio=%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id=%22f%22%20x2=%221%22%20y2=%221%22%3E%3Cstop%20stop-color=%22%23f3d79e%22/%3E%3Cstop%20offset=%22.32%22%20stop-color=%22%23f0ce89%22/%3E%3Cstop%20offset=%22.82%22%20stop-color=%22%23f0ce89%22/%3E%3Cstop%20offset=%221%22%20stop-color=%22%23dfc07f%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20fill=%22url%28%23f%29%22%20d=%22M0%200h100v100H0z%22/%3E%3Cpath%20fill=%22%23c0a56e%22%20d=%22M0%2097h100v3H0z%22/%3E%3Cpath%20fill=%22%23f9ebd0%22%20d=%22M2%201h96v1H2z%22/%3E%3C/svg%3E");color:#573d1b}
.tile.tile-16 .tile-inner,.cell[data-value="16"]:not(.masked){background-color:#e5b16e;background-image:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22100%22%20height=%22100%22%20viewBox=%220%200%20100%20100%22%20preserveAspectRatio=%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id=%22f%22%20x2=%221%22%20y2=%221%22%3E%3Cstop%20stop-color=%22%23eabf88%22/%3E%3Cstop%20offset=%22.32%22%20stop-color=%22%23e5b16e%22/%3E%3Cstop%20offset=%22.82%22%20stop-color=%22%23e5b16e%22/%3E%3Cstop%20offset=%221%22%20stop-color=%22%23d5a566%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20fill=%22url%28%23f%29%22%20d=%22M0%200h100v100H0z%22/%3E%3Cpath%20fill=%22%23b78e58%22%20d=%22M0%2097h100v3H0z%22/%3E%3Cpath%20fill=%22%23f5e0c5%22%20d=%22M2%201h96v1H2z%22/%3E%3C/svg%3E");color:#4b2c16}
.tile.tile-32 .tile-inner,.cell[data-value="32"]:not(.masked){background-color:#df926e;background-image:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22100%22%20height=%22100%22%20viewBox=%220%200%20100%20100%22%20preserveAspectRatio=%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id=%22f%22%20x2=%221%22%20y2=%221%22%3E%3Cstop%20stop-color=%22%23e5a688%22/%3E%3Cstop%20offset=%22.32%22%20stop-color=%22%23df926e%22/%3E%3Cstop%20offset=%22.82%22%20stop-color=%22%23df926e%22/%3E%3Cstop%20offset=%221%22%20stop-color=%22%23cf8866%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20fill=%22url%28%23f%29%22%20d=%22M0%200h100v100H0z%22/%3E%3Cpath%20fill=%22%23b27558%22%20d=%22M0%2097h100v3H0z%22/%3E%3Cpath%20fill=%22%23f2d3c5%22%20d=%22M2%201h96v1H2z%22/%3E%3C/svg%3E");color:#44251d}
.tile.tile-64 .tile-inner,.cell[data-value="64"]:not(.masked){background-color:#9f423a;background-image:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22100%22%20height=%22100%22%20viewBox=%220%200%20100%20100%22%20preserveAspectRatio=%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id=%22f%22%20x2=%221%22%20y2=%221%22%3E%3Cstop%20stop-color=%22%23b0645d%22/%3E%3Cstop%20offset=%22.32%22%20stop-color=%22%239f423a%22/%3E%3Cstop%20offset=%22.82%22%20stop-color=%22%239f423a%22/%3E%3Cstop%20offset=%221%22%20stop-color=%22%23943d36%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20fill=%22url%28%23f%29%22%20d=%22M0%200h100v100H0z%22/%3E%3Cpath%20fill=%22%237f352e%22%20d=%22M0%2097h100v3H0z%22/%3E%3Cpath%20fill=%22%23d9b3b0%22%20d=%22M2%201h96v1H2z%22/%3E%3C/svg%3E");color:#fff9e9}
.tile.tile-128 .tile-inner,.cell[data-value="128"]:not(.masked){background-color:#83cabe;background-image:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22100%22%20height=%22100%22%20viewBox=%220%200%20100%20100%22%20preserveAspectRatio=%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id=%22f%22%20x2=%221%22%20y2=%221%22%3E%3Cstop%20stop-color=%22%2399d4ca%22/%3E%3Cstop%20offset=%22.32%22%20stop-color=%22%2383cabe%22/%3E%3Cstop%20offset=%22.82%22%20stop-color=%22%2383cabe%22/%3E%3Cstop%20offset=%221%22%20stop-color=%22%237abcb1%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20fill=%22url%28%23f%29%22%20d=%22M0%200h100v100H0z%22/%3E%3Cpath%20fill=%22%2369a298%22%20d=%22M0%2097h100v3H0z%22/%3E%3Cpath%20fill=%22%23cdeae5%22%20d=%22M2%201h96v1H2z%22/%3E%3C/svg%3E");color:#173f39}
.tile.tile-256 .tile-inner,.cell[data-value="256"]:not(.masked){background-color:#62b3a7;background-image:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22100%22%20height=%22100%22%20viewBox=%220%200%20100%20100%22%20preserveAspectRatio=%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id=%22f%22%20x2=%221%22%20y2=%221%22%3E%3Cstop%20stop-color=%22%237ec1b7%22/%3E%3Cstop%20offset=%22.32%22%20stop-color=%22%2362b3a7%22/%3E%3Cstop%20offset=%22.82%22%20stop-color=%22%2362b3a7%22/%3E%3Cstop%20offset=%221%22%20stop-color=%22%235ba69b%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20fill=%22url%28%23f%29%22%20d=%22M0%200h100v100H0z%22/%3E%3Cpath%20fill=%22%234e8f86%22%20d=%22M0%2097h100v3H0z%22/%3E%3Cpath%20fill=%22%23c0e1dc%22%20d=%22M2%201h96v1H2z%22/%3E%3C/svg%3E");color:#123a35}
.tile.tile-512 .tile-inner,.cell[data-value="512"]:not(.masked){background-color:#21645e;background-image:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22100%22%20height=%22100%22%20viewBox=%220%200%20100%20100%22%20preserveAspectRatio=%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id=%22f%22%20x2=%221%22%20y2=%221%22%3E%3Cstop%20stop-color=%22%2349807b%22/%3E%3Cstop%20offset=%22.32%22%20stop-color=%22%2321645e%22/%3E%3Cstop%20offset=%22.82%22%20stop-color=%22%2321645e%22/%3E%3Cstop%20offset=%221%22%20stop-color=%22%231f5d57%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20fill=%22url%28%23f%29%22%20d=%22M0%200h100v100H0z%22/%3E%3Cpath%20fill=%22%231a504b%22%20d=%22M0%2097h100v3H0z%22/%3E%3Cpath%20fill=%22%23a6c1bf%22%20d=%22M2%201h96v1H2z%22/%3E%3C/svg%3E");color:#fff9e9}
.tile.tile-1024 .tile-inner,.cell[data-value="1024"]:not(.masked){background-color:#325575;background-image:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22100%22%20height=%22100%22%20viewBox=%220%200%20100%20100%22%20preserveAspectRatio=%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id=%22f%22%20x2=%221%22%20y2=%221%22%3E%3Cstop%20stop-color=%22%2357748e%22/%3E%3Cstop%20offset=%22.32%22%20stop-color=%22%23325575%22/%3E%3Cstop%20offset=%22.82%22%20stop-color=%22%23325575%22/%3E%3Cstop%20offset=%221%22%20stop-color=%22%232e4f6d%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20fill=%22url%28%23f%29%22%20d=%22M0%200h100v100H0z%22/%3E%3Cpath%20fill=%22%2328445e%22%20d=%22M0%2097h100v3H0z%22/%3E%3Cpath%20fill=%22%23adbbc8%22%20d=%22M2%201h96v1H2z%22/%3E%3C/svg%3E");color:#fff9e9}
.tile.tile-2048 .tile-inner,.cell[data-value="2048"]:not(.masked){background-color:#e3ad4f;background-image:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22100%22%20height=%22100%22%20viewBox=%220%200%20100%20100%22%20preserveAspectRatio=%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id=%22f%22%20x2=%221%22%20y2=%221%22%3E%3Cstop%20stop-color=%22%23e8bc6f%22/%3E%3Cstop%20offset=%22.32%22%20stop-color=%22%23e3ad4f%22/%3E%3Cstop%20offset=%22.82%22%20stop-color=%22%23e3ad4f%22/%3E%3Cstop%20offset=%221%22%20stop-color=%22%23d3a149%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20fill=%22url%28%23f%29%22%20d=%22M0%200h100v100H0z%22/%3E%3Cpath%20fill=%22%23b68a3f%22%20d=%22M0%2097h100v3H0z%22/%3E%3Cpath%20fill=%22%23f4deb9%22%20d=%22M2%201h96v1H2z%22/%3E%3C/svg%3E");color:#3c2811}
.tile.tile-super .tile-inner{background-color:#20364f;background-image:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22100%22%20height=%22100%22%20viewBox=%220%200%20100%20100%22%20preserveAspectRatio=%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id=%22f%22%20x2=%221%22%20y2=%221%22%3E%3Cstop%20stop-color=%22%23485a6f%22/%3E%3Cstop%20offset=%22.32%22%20stop-color=%22%2320364f%22/%3E%3Cstop%20offset=%22.82%22%20stop-color=%22%2320364f%22/%3E%3Cstop%20offset=%221%22%20stop-color=%22%231e3249%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20fill=%22url%28%23f%29%22%20d=%22M0%200h100v100H0z%22/%3E%3Cpath%20fill=%22%231a2b3f%22%20d=%22M0%2097h100v3H0z%22/%3E%3Cpath%20fill=%22%23a6afb9%22%20d=%22M2%201h96v1H2z%22/%3E%3C/svg%3E");color:#f4d597}
.tile-new .tile-inner{animation:ceramic-appear 160ms cubic-bezier(.2,.7,.25,1);animation-delay:0ms}
.tile-merged .tile-inner{animation:ceramic-merge 180ms cubic-bezier(.2,.7,.25,1);animation-delay:0ms}
.tile.arrive{animation:ceramic-appear 150ms ease-out}.tile.merged{animation:ceramic-merge 180ms ease-out}
@keyframes ceramic-appear{from{scale:.86;opacity:.3}to{scale:1;opacity:1}}
@keyframes ceramic-merge{0%,100%{scale:1}42%{scale:1.09}68%{scale:.985}}
@media(prefers-reduced-motion:reduce){.tile,.tile .tile-inner,.score-addition{animation:none!important;transition:none!important;translate:0!important}}
#arena .cell[data-value]:not(.masked):not([data-value="2"]):not([data-value="4"]):not([data-value="8"]):not([data-value="16"]):not([data-value="32"]):not([data-value="64"]):not([data-value="128"]):not([data-value="256"]):not([data-value="512"]):not([data-value="1024"]):not([data-value="2048"]){background-color:#20364f;background-image:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22100%22%20height=%22100%22%20viewBox=%220%200%20100%20100%22%20preserveAspectRatio=%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id=%22f%22%20x2=%221%22%20y2=%221%22%3E%3Cstop%20stop-color=%22%23485a6f%22/%3E%3Cstop%20offset=%22.32%22%20stop-color=%22%2320364f%22/%3E%3Cstop%20offset=%22.82%22%20stop-color=%22%2320364f%22/%3E%3Cstop%20offset=%221%22%20stop-color=%22%231e3249%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20fill=%22url%28%23f%29%22%20d=%22M0%200h100v100H0z%22/%3E%3Cpath%20fill=%22%231a2b3f%22%20d=%22M0%2097h100v3H0z%22/%3E%3Cpath%20fill=%22%23a6afb9%22%20d=%22M2%201h96v1H2z%22/%3E%3C/svg%3E");color:#f4d597}

/* Explicit material shadow precedence over legacy high-value glow; no value or layout change. */
.cell[data-value]{box-shadow:0 3px 0 #091b2899;background-size:100% 100%;background-repeat:no-repeat}
aside .cell[data-value]{box-shadow:0 1px 0 #091b2899}

/* Face image material v4: original opaque SVG backgrounds; real DOM numbers and geometry retained. */
