.cat-shell{position:absolute;inset:0;overflow:hidden;container-type:size}[data-game=composite-area-tileworks]{min-height:clamp(610px,calc(100svh - 168px),790px);aspect-ratio:auto}.cat-hud{position:absolute;z-index:34;top:14px;right:14px;display:grid;grid-template-columns:auto minmax(4rem,1fr) auto;align-items:center;gap:.38rem;width:min(15rem,calc(100% - 28px));min-height:2.55rem;padding:.35rem .58rem;border:2px solid rgb(255 255 255/.92);border-radius:1rem;color:#103f57;background:rgb(248 253 255/.95);box-shadow:0 7px 18px rgb(15 72 91/.22);font-size:.72rem;font-weight:950}.cat-hud>span,.cat-hud>strong{display:flex;align-items:center;gap:.24rem;white-space:nowrap}.cat-hud svg{width:1rem;height:1rem;color:#ed6f58}.cat-hud>strong{justify-content:flex-end;color:#895015}.cat-progress{display:grid;grid-template-columns:repeat(5,1fr);gap:.18rem}.cat-progress i{height:.46rem;border-radius:999px;background:#c8dde2}.cat-progress i.current{background:#27cbd5;box-shadow:0 0 0 2px #fff}.cat-progress i.done{background:#ffd64f}.cat-machine{position:absolute;z-index:12;top:96px;left:50%;width:min(880px,78cqw);aspect-ratio:1.5;transform:translateX(-50%)}.cat-machine-art{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 17px 14px rgb(14 62 74/.22));pointer-events:none;user-select:none}.cat-title-plate{position:absolute;z-index:6;top:3.3%;left:50%;display:flex;width:25%;height:8%;align-items:center;justify-content:center;gap:.35rem;color:#17465a;font-size:clamp(.62rem,1.08cqw,.88rem);font-weight:1000;letter-spacing:.07em;transform:translateX(-50%)}.cat-title-plate svg{width:1.15rem;height:1.15rem;color:#d85e4e}.cat-board{position:absolute;z-index:4;top:14.3%;left:19.3%;display:grid;width:61.4%;height:45.9%;place-items:center;overflow:hidden}.cat-shape{--cols:6;--rows:5;position:relative;display:grid;width:min(82%,calc(70% * var(--cols) / var(--rows)));max-width:470px;height:min(75%,calc(74% * var(--rows) / var(--cols)));max-height:245px;grid-template-columns:repeat(var(--cols),minmax(0,1fr));grid-template-rows:repeat(var(--rows),minmax(0,1fr));filter:drop-shadow(0 6px 5px rgb(2 31 43/.3))}.cat-cell{z-index:1;margin:1.5px;border:1.5px solid rgb(255 255 255/.88);border-radius:.25rem;background:linear-gradient(145deg,#83edf0,#23afc0);box-shadow:inset 0 -3px 0 rgb(18 111 130/.22)}.cat-shape.is-split .cat-cell.part-0{background:linear-gradient(145deg,#ffd96a,#f19b42)}.cat-shape.is-split .cat-cell.part-1{background:linear-gradient(145deg,#ff9a82,#e96562)}.cat-seam-line{position:absolute;z-index:4;pointer-events:none}.cat-seam-line.horizontal{height:1px;border-top:4px dashed #fff8a8;filter:drop-shadow(0 2px 1px #0a4053);transform:translateY(-50%)}.cat-seam-line.vertical{width:1px;border-left:4px dashed #fff8a8;filter:drop-shadow(0 2px 1px #0a4053);transform:translateX(-50%)}.cat-seam-line.selected{border-color:#ff705d}.cat-seam-pick{position:absolute;z-index:6;display:grid;width:48px;height:48px;place-items:center;touch-action:manipulation;border:0;border-radius:50%;background:transparent;transform:translate(-50%,-50%)}.cat-seam-pick span{display:grid;width:25px;height:25px;place-items:center;border:2px solid #fff9c7;border-radius:50%;color:#fff;background:#e96858;box-shadow:0 3px 0 #9a3e38,0 3px 7px rgb(1 31 42/.45);font-size:.7rem;font-weight:1000}.cat-seam-pick.selected span,.cat-seam-pick:hover span{background:#ffb143}.cat-seam-pick:focus-visible{outline:5px solid #fff270;outline-offset:1px}.cat-part-label{position:absolute;z-index:7;display:grid;min-width:52px;min-height:32px;place-items:center;padding:.18rem .34rem;border:2px solid #fff;border-radius:999px;color:#173e50;background:rgb(255 255 255/.9);box-shadow:0 3px 7px rgb(3 37 49/.26);font-size:clamp(.65rem,1.18cqw,.92rem);font-weight:1000;white-space:nowrap;transform:translate(-50%,-50%)}.cat-unit-key{position:absolute;top:5px;right:9px;bottom:auto;left:auto;color:#c7f8f7;font-size:clamp(.52rem,.86cqw,.69rem);font-weight:900;letter-spacing:.03em;white-space:nowrap;transform:none}.cat-choices{z-index:7;inset:0}.cat-choices,.cat-choices button{position:absolute;pointer-events:none}.cat-choices button{top:65.5%;display:flex;height:8.2%;min-height:48px;align-items:center;justify-content:center;padding:2px;touch-action:manipulation;border:0;border-radius:.8rem;background:transparent;opacity:0}.cat-choices button:first-child{left:15.2%;width:17.8%}.cat-choices button:nth-child(2){left:33.3%;width:32.5%}.cat-choices button:nth-child(3){left:68.1%;width:16.9%}.cat-choices button.is-visible{opacity:1;pointer-events:auto}.cat-choice-label{display:flex;width:calc(100% - 4px);min-width:0;min-height:34px;align-items:center;justify-content:center;overflow:hidden;padding:.18rem .32rem;border:2px solid rgb(255 255 255/.96);border-radius:.65rem;color:#123f55;background:linear-gradient(180deg,#fffef3,#d9f7f4);box-shadow:0 3px 0 rgb(20 92 105/.42),0 4px 8px rgb(4 43 54/.2);font-size:clamp(.66rem,1.14cqw,.94rem);font-weight:1000;line-height:1;text-align:center;white-space:nowrap}.cat-choices button:not(:disabled):hover .cat-choice-label{color:#8f351f;background:linear-gradient(180deg,#fff9c9,#ffe39d)}.cat-choices button:focus-visible{outline:5px solid #fff270;outline-offset:2px}.cat-choices button.is-visible:disabled{opacity:.68}.cat-feedback{position:absolute;z-index:7;top:54.2%;left:50%;display:flex;width:58%;min-height:44px;align-items:center;justify-content:center;gap:.42rem;color:#d9ffff;font-size:clamp(.68rem,1.18cqw,.94rem);font-weight:950;line-height:1.18;text-align:center;transform:translateX(-50%)}.cat-feedback svg{width:1.25rem;height:1.25rem;flex:0 0 auto;color:#ffe56d}.cat-feedback p{margin:0}.cat-shell.correct .cat-feedback svg{color:#7ff0ae}.cat-shell.wrong .cat-feedback svg{color:#ff988b}[data-game=composite-area-tileworks] .game-stage-prompt{left:15px;justify-content:space-between;width:min(690px,calc(100% - 300px));min-height:70px;padding:8px 10px 8px 18px;border:3px solid #fff;border-radius:1.2rem;color:#17405b;background:rgb(248 253 255/.96);box-shadow:0 7px 0 #3ca0b4,0 14px 24px rgb(20 74 90/.24);transform:none}[data-game=composite-area-tileworks] .game-stage-prompt h2{color:#17405b;font-size:clamp(14px,1.65vw,21px);line-height:1.13;paint-order:normal;text-shadow:none;-webkit-text-stroke:0}[data-game=composite-area-tileworks] .game-stage-prompt button[aria-label="Listen to the instruction"]{border:3px solid #fff!important}[data-game=composite-area-tileworks] .cat-machine{border-radius:0;box-shadow:none}[data-game=composite-area-tileworks] .cat-shell :is(.cat-hud,.cat-board,.cat-choices,.cat-feedback,strong,span,p,button){text-shadow:none;-webkit-text-stroke:0}body:has([data-game=composite-area-tileworks]) .how-to-panel,body:has([data-game=composite-area-tileworks]) .how-to-panel *{text-shadow:none!important;-webkit-text-stroke:0!important}body:has([data-game=composite-area-tileworks]) .how-to-panel button{min-width:46px;min-height:46px}.cat-success-modal button,[data-game=composite-area-tileworks] button,body:has([data-game=composite-area-tileworks]) .how-to-panel button,body:has([data-game=composite-area-tileworks]) .how-to-trigger{filter:none!important}.cat-success-modal,.cat-success-modal *{text-shadow:none!important;-webkit-text-stroke:0!important}[data-game=composite-area-tileworks] .composite-area-tileworks-mascot{z-index:22;left:-18px!important;bottom:36px!important;width:clamp(150px,17vw,210px)!important}@container (max-width: 700px){.cat-machine{width:min(960px,112cqw)}.cat-title-plate{font-size:clamp(.6rem,2cqw,.78rem)}.cat-choice-label{min-height:30px;font-size:clamp(.61rem,1.9cqw,.78rem)}.cat-feedback{font-size:clamp(.56rem,1.7cqw,.72rem)}.cat-part-label{font-size:clamp(.58rem,1.9cqw,.76rem)}}@container (max-width: 480px){.cat-machine{width:480px}.cat-board{left:19.6%;width:60.8%}.cat-shape{width:min(78%,calc(64% * var(--cols) / var(--rows)));height:min(72%,calc(68% * var(--rows) / var(--cols)))}.cat-unit-key{bottom:2px}}@media (max-width:980px){[data-game=composite-area-tileworks] .game-stage-prompt{width:calc(100% - 275px)}.cat-machine{top:112px;width:min(820px,88cqw)}}@media (max-width:700px){[data-game=composite-area-tileworks]{min-height:max(720px,calc(100svh - 126px))}[data-game=composite-area-tileworks] .game-stage-prompt{top:8px;left:8px;width:calc(100% - 16px);min-height:66px}[data-game=composite-area-tileworks] .game-stage-prompt h2{font-size:clamp(14px,4.2vw,19px)}.cat-hud{top:82px;right:8px;width:min(14rem,calc(100% - 16px))}.cat-machine{top:144px;width:480px}[data-game=composite-area-tileworks] .composite-area-tileworks-mascot{left:-25px!important;bottom:8px!important;width:clamp(96px,27vw,126px)!important}}@media (max-width:390px){.cat-hud{left:50%;right:auto;grid-template-columns:auto minmax(3.2rem,1fr) auto;padding-inline:.42rem;transform:translateX(-50%)}.cat-machine{top:150px}}@container (max-height: 620px) and (min-width: 600px){.cat-machine{top:88px;width:min(720px,72cqw)}.cat-hud{top:8px}}@media (prefers-reduced-motion:reduce){.cat-machine-art{filter:drop-shadow(0 9px 8px rgb(14 62 74/.18))}}