[data-game=tile-match] .tm-level{align-items:center;gap:.35rem;font-size:.875rem;font-weight:750;display:flex}[data-game=tile-match] .tm-level select{border:1px solid var(--line);border-radius:var(--control-radius);background:var(--surface);min-height:44px;color:var(--ink);padding-inline:.4rem}.tm-field{width:min(100%, 28rem, max(18rem, calc((var(--game-top-height,100dvh) - 14rem) * 1.4)));color:#fff2d9;background:radial-gradient(at 18% -25%,#b5828570,#0000 63%),repeating-linear-gradient(105deg,#e5a9820a 0 1px,#0000 1px 5px),linear-gradient(155deg,#643953,#452a50 49%,#2a1d38);border-radius:.85rem;margin-inline:auto;padding:.25rem .7rem .6rem;position:relative;box-shadow:inset 0 0 0 1px #917285,inset 0 2px #e6ba9b99,inset 0 -4px #21152c,0 4px 10px #23142c54}[data-game=tile-match] .pj-shell:fullscreen .tm-field{--game-top-height:100dvh}.tm-field .tm-tools,.tm-field .tm-tray-label{font-variant-numeric:tabular-nums;text-shadow:0 1px 2px #241629;justify-content:space-between;align-items:center;gap:.3rem;padding-inline:.15rem;font-size:.82rem;font-weight:800;display:flex}.tm-field .tm-tools{margin-block-end:.4rem}.tm-field .tm-tools>span:before{content:"";aspect-ratio:1;clip-path:polygon(50% 0,64% 36%,100% 50%,64% 64%,50% 100%,36% 64%,0 50%,36% 36%);background:#ffce83;width:.72em;margin-inline-end:.4em;display:inline-block}.tm-field .tm-tools button{--control-face:#f7d7a0;--control-ink:#49263b;--control-edge:#bc825b;--control-hover:#ffebbf;--control-hover-ink:#49263b;--control-shadow:inset 0 1px #fff2da, inset 0 -3px #b8795f88, 0 2px 3px #21142880;background-image:linear-gradient(#fff9dc66,#0000 58%,#b86e431c);border-radius:.5rem}.tm-field .tm-tools button:focus-visible{outline-color:#fff5b9}.tm-field .tm-grid{aspect-ratio:6/3.55;isolation:isolate;user-select:none;background:#342644;border:1px solid #bf947e;border-radius:.55rem;grid-template-rows:repeat(40,minmax(0,1fr));grid-template-columns:repeat(60,minmax(0,1fr));padding:6px;display:grid;position:relative;box-shadow:0 0 0 2px #2c1b37,0 1px 0 3px #d6a17d42}.tm-field .tm-stage-art{border-radius:inherit;pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.tm-field .tm-grid:before,.tm-field .tm-grid:after{content:"";border-radius:inherit;pointer-events:none;position:absolute;inset:0}.tm-field .tm-grid:before{background:radial-gradient(at 23% 7%,#ffc17c33,#0000 62%),repeating-linear-gradient(90deg,#fff5d509 0 1px,#0000 1px 4px);box-shadow:inset 0 0 15px 3px #1b102ba8,inset 0 1px 2px #140e21}.tm-field .tm-grid:after{transform-origin:50% 0;opacity:.38;background:radial-gradient(at 32% 1%,#ffd08d4d,#0000 68%)}.tm-field .tm-piece{--glaze:#fff4dc;--clay:#edc589;--edge:#b57857;--rim:#fffbe7;background:radial-gradient(ellipse at 21% 9%, #fffaf3 0%, #fffbec00 61%), linear-gradient(155deg, var(--glaze) 20%, var(--clay) 99%);box-shadow:inset 0 1px var(--rim), inset 1px 0 #fff2c586, inset -1px 0 #87544951, inset 0 -3px var(--edge), inset 0 -4px #fff5d087, 0 2px 2px #25132bba, 0 4px 6px #21112450;border:1px solid #6b454b;border-radius:.38rem;place-items:center;display:grid}.tm-field .tm-grid .tm-tile{min-width:0;min-height:0;box-shadow:inset 0 1px var(--rim), inset 1px 0 #fff2c57d, inset -1px 0 #87544951, inset 0 -4px var(--edge), inset 0 -5px #fff5d08a, 0 2px 2px #241329bb, 0 4px 6px #21112479;touch-action:manipulation;margin:0 1px 2px;padding:0;position:relative}.tm-field .tm-tile:before{content:"";pointer-events:none;border:1px solid #ac765b36;border-radius:.24rem;position:absolute;inset:2px 2px 6px}.tm-field .tm-tile[data-layer="0"]{--glaze:#fee7c7;--clay:#deb07a;--edge:#a26656}.tm-field .tm-tile[data-layer="2"]{--glaze:#fff8e6;--clay:#f6d296;--edge:#bb7952}.tm-field .tm-tile[data-free=false]{--glaze:#b28e92;--clay:#926977;--edge:#6d465f;--rim:#d3afb0;opacity:1;background:radial-gradient(ellipse at 15% 8%, #e9c2aa45, transparent 64%), linear-gradient(160deg, var(--glaze), var(--clay));box-shadow:inset 0 1px var(--rim), inset 0 -4px var(--edge), 0 2px 3px #1f12277a;border-color:#644759}.tm-field .tm-tile[data-free=false]:before{border-color:#613e603b}.tm-field .tm-tile[data-free=false] .tm-stamp{opacity:.66}.tm-field .tm-tile[data-match=true]:before{border:2px solid #0b735f;box-shadow:0 0 0 1px #adffe1,0 0 10px #4eeac8a6}.tm-field .tm-tile:focus-visible{outline-offset:-3px;outline:2px solid #502c5c}.tm-field .tm-tile:focus-visible:after{content:"";border-radius:inherit;pointer-events:none;position:absolute;inset:0;box-shadow:inset 0 0 0 2px #fff8ab,0 0 9px #fd7}.tm-field .tm-stamp{pointer-events:none;width:82%;height:81%;position:relative}.tm-field[data-large=true] .tm-stamp{width:94%;height:92%}.tm-field .tm-tray-label{margin-block:.45rem .15rem}.tm-field .tm-tray-label>span:first-child:before{content:"";aspect-ratio:1;background:#ffcb8a;width:.5em;margin-inline:.08em .55em;display:inline-block;transform:translateY(-.08em)rotate(45deg);box-shadow:inset 1px 1px #ffecd4}.tm-field .tm-tray{background:repeating-linear-gradient(3deg,#eab28223 0 1px,#28131c34 1px 2px,#0000 2px 5px),radial-gradient(at 25% 0,#fff0b54d,#0000 55%),linear-gradient(#a26850,#58313a 52%,#46263a 68%,#7c4738);border:1px solid #d19d70;border-radius:.5rem;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin:0;padding:4px;list-style:none;display:grid;position:relative;box-shadow:inset 0 1px #ffe1a5,inset 0 -2px #2c1b2b,0 2px 4px #1b1026c2}.tm-field .tm-tray li{aspect-ratio:1.2;background:radial-gradient(at 50% 81%,#926a5d66,#0000 68%),linear-gradient(130deg,#362030,#65404c);border:1px solid #4b2932;border-radius:.3rem;margin:0;padding:0;position:relative;box-shadow:inset 0 2px 4px #221526,inset 0 -1px #f9bc8c55,0 1px #f0ba8088}.tm-field .tm-tray li:before{content:"";pointer-events:none;background:radial-gradient(closest-side,#f7c69066 40%,#0000 45%) 50%/8px 8px no-repeat;position:absolute;inset:22%}.tm-field .tm-tray li[data-filled=true]:before{opacity:0}.tm-field .tm-tray-piece{pointer-events:none;border-radius:.27rem;position:absolute;inset:2px}.tm-field[data-pressure] .tm-tray{border-color:#f5b565}.tm-field[data-pressure=high] .tm-tray{border-color:#ff9983}.tm-field[data-pressure] .tm-tray-label>span:last-child{color:#ffd487}.tm-field[data-pressure=high] .tm-tray-label>span:last-child{color:#ffc0aa}.tm-field[data-pressure] .tm-tray li[data-filled=false]{border-color:#f0ab69}.tm-field[data-pressure=high] .tm-tray li[data-filled=false]{border-color:#ff9e8a}.tm-field[data-pressure] .tm-tray:after{content:"";border-radius:inherit;pointer-events:none;opacity:.55;position:absolute;inset:-1px;box-shadow:0 0 0 1px #ffa16a,0 0 12px #ff795578}.tm-field .tm-fx{display:none}@media (hover:hover){.tm-field[data-playing=true] .tm-tile[data-free=true]:hover{--glaze:#fff9e9;--clay:#f6d49e;--rim:#fffef3;border-color:#a36b50}}@media (prefers-reduced-motion:no-preference){.tm-field .tm-tile{transition:transform .13s ease-out}.tm-field[data-playing=true] .tm-tile[data-free=true]:active{transform:translateY(2px)scale(.95)}.tm-field[data-playing=true] .tm-grid:after{animation:10s ease-in-out infinite alternate tm-cabinet-light}.tm-field[data-playing=true][data-pressure] .tm-tray:after{animation:1.6s ease-in-out infinite tm-tray-warning}.tm-field[data-playing=true][data-pressure=high] .tm-tray:after{animation-duration:1.05s}.tm-field .tm-tray-piece[data-motion=land]{animation:.14s ease-out .27s both tm-tray-land}.tm-field .tm-tray-piece[data-motion=slide]{animation:.21s cubic-bezier(.2,.75,.32,1.15) .41s both tm-tray-slide}.tm-field .tm-grid[data-shuffling=true] .tm-stamp{animation:.42s cubic-bezier(.2,.7,.3,1) both tm-shuffle-ink}.tm-field .tm-grid[data-shuffling=true] .tm-tile:nth-of-type(3n+1) .tm-stamp{--swivel:-1;animation-delay:34ms}.tm-field .tm-grid[data-shuffling=true] .tm-tile:nth-of-type(3n+2) .tm-stamp{animation-delay:68ms}.tm-field .tm-fx{z-index:2;border-radius:inherit;pointer-events:none;display:block;position:absolute;inset:0;overflow:clip}.tm-field .tm-flight,.tm-field .tm-merging{z-index:1;position:absolute}.tm-field .tm-flight{animation:.28s linear both tm-tile-flight}.tm-field .tm-merging{animation:.174s cubic-bezier(.5,.08,.3,1) .27s both tm-tile-merge}.tm-field .tm-merging[data-arriving=true]{opacity:0;animation-fill-mode:forwards}.tm-field .tm-swirl{stroke:#ffe193;stroke-width:1.6px;stroke-linecap:round;width:88%;height:55%;animation:.49s ease-out both tm-shuffle-swirl;position:absolute;inset:15% 6% auto}.tm-field .tm-burst{--burst-delay:.415s;--burst-time:.44s;z-index:2;color:#fff1b6;white-space:nowrap;position:absolute}.tm-field .tm-burst.tm-finish{--burst-delay:60ms;--burst-time:.8s;top:26%;left:50%}.tm-field .tm-halo{aspect-ratio:1;outline-offset:4px;width:2.4rem;animation:tm-burst-halo var(--burst-time) var(--burst-delay) ease-out both;border:2px solid #fff4af;border-radius:50%;outline:1px solid #eab477;position:absolute;box-shadow:0 0 15px #ffaf60b0}.tm-field .tm-finish .tm-halo{border-style:double;border-width:4px;width:clamp(4.5rem,17vw,9rem)}.tm-field .tm-spark{aspect-ratio:1;width:7px;animation:tm-burst-spark var(--burst-time) var(--burst-delay) cubic-bezier(.12,.75,.3,1) both;background:#ffdb8a;border:1px solid #fff6ca;border-radius:1px;position:absolute}.tm-field .tm-spark:nth-child(3n){background:#7be1c2;border-color:#bbffe1;border-radius:50%;width:5px}.tm-field .tm-spark:nth-child(3n+1){background:#f1939d;border-color:#ffbeb9;width:9px}.tm-field .tm-triple{letter-spacing:-.04em;animation:tm-triple-pop var(--burst-time) var(--burst-delay) ease-out both;background:#51304e;border-radius:1em;padding:0 .35em;font-size:1.15rem;font-weight:900;position:absolute;box-shadow:0 0 0 1px #f3b97d,0 3px 7px #22152ab0}@media (hover:hover){.tm-field[data-playing=true] .tm-tile[data-free=true]:hover:not(:active){transform:translateY(-2px)}}}@keyframes tm-cabinet-light{0%{opacity:.2;transform:scaleX(.84)}to{opacity:.68;transform:scaleX(1)}}@keyframes tm-tray-warning{0%,to{opacity:.3}50%{opacity:1}}@keyframes tm-tile-flight{0%{transform:translate(0)rotate(0)scale(1)}22%{transform:translate(calc(.18 * var(--dx)), calc(.14 * var(--dy) - var(--arc))) rotate(var(--tilt)) scale(1.12)}57%{transform:translate(calc(.61 * var(--dx)), calc(.52 * var(--dy) - .65 * var(--arc))) rotate(calc(.5 * var(--tilt))) scale(1)}88%{opacity:1}to{opacity:0;transform:translate(var(--dx), var(--dy)) rotate(0) scale(var(--sx), var(--sy))}}@keyframes tm-tray-land{0%{opacity:0;transform:translateY(-1px)scale(.92)}36%{opacity:1;transform:translateY(1px)scale(1.06,.92)}71%{transform:translateY(-1px)scale(.98,1.03)}}@keyframes tm-tile-merge{0%{opacity:1;transform:translate(0)scale(1)}70%{opacity:1;transform:translateX(var(--dx)) scale(.78)}to{opacity:0;transform:translateX(var(--dx)) scale(.12)}}@keyframes tm-tray-slide{0%{transform:translateX(var(--slide))}to{transform:translate(0)}}@keyframes tm-shuffle-ink{0%{opacity:.45;transform:rotate(calc(var(--swivel,1) * -28deg)) scale(.64)}68%{opacity:1;transform:rotate(calc(var(--swivel,1) * 6deg)) scale(1.08)}}@keyframes tm-shuffle-swirl{0%{opacity:0;transform:rotate(-18deg)scale(.64)}35%{opacity:.9}to{opacity:0;transform:rotate(13deg)scale(1.07)}}@keyframes tm-burst-halo{0%{opacity:0;transform:translate(-50%,-50%)scale(.38)}21%{opacity:.92}to{opacity:0;transform:translate(-50%,-50%)scale(1.65)}}@keyframes tm-burst-spark{0%{opacity:1;transform:translate(-50%,-50%)scale(.4)rotate(45deg)}68%{opacity:1}to{opacity:0;transform:translate(var(--dx),var(--dy)) scale(.7) rotate(var(--spin))}}@keyframes tm-triple-pop{0%{opacity:0;transform:translate(-50%,-52%)scale(.72)}24%,60%{opacity:1}35%{transform:translate(-50%,-115%)scale(1.12)}to{opacity:0;transform:translate(-50%,-150%)scale(.97)}}
