.tangram-game{width:100%;max-width:460px;margin:auto;min-width:0;user-select:none;-webkit-user-select:none}
.tangram-time{height:4px;overflow:hidden;background:#253e52;border-radius:9px;margin:4px 0 8px}.tangram-time span{display:block;width:100%;height:100%;background:#70e6f2;transform-origin:left;transition:transform 80ms linear}
.tangram-board{display:block;width:100%;max-height:min(46dvh,360px);border:1px solid #5ebfce66;border-radius:20px;background:#061b2b55;touch-action:none;overflow:hidden}
.tangram-classic-contour{fill:#173446;stroke:#91dce8;stroke-width:1.2;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.tangram-silhouette{fill:#173446;stroke:#173446;stroke-width:.3;stroke-linejoin:round}
.tangram-pieces polygon{fill:url(#tangram-glass);stroke:#b6f5ff;stroke-width:1.4;stroke-linejoin:round;cursor:grab;vector-effect:non-scaling-stroke}
.tangram-pieces polygon.selected{stroke:#fff;stroke-width:2.6;filter:drop-shadow(0 0 3px #38d7ed88)}
.tangram-tray{display:flex;justify-content:center;gap:3px;margin:8px 0;touch-action:none}.tangram-tray .tangram-piece-key{padding:5px!important;min-width:44px;min-height:48px;width:calc((100% - 18px)/7);max-width:60px;height:52px;border-radius:12px;touch-action:none}.tangram-piece-key svg{display:block;width:100%;height:100%;pointer-events:none}.tangram-piece-key polygon{fill:#30c4d69c;stroke:#b3f8ff;stroke-width:1.5;vector-effect:non-scaling-stroke}.tangram-piece-key[aria-pressed=true]{outline:2px solid #8ff3ff;outline-offset:-2px}.tangram-piece-key.placed{opacity:.55}
.tangram-tools{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.tangram-tools button{min-width:44px;min-height:46px;padding:6px 10px!important;font-size:23px;border-radius:12px}.tangram-tools #tan-check{font-size:15px;flex:1;max-width:140px}.tangram-tools [hidden],.tangram-game [hidden]{display:none!important}.tangram-status{min-height:22px;margin:6px 0 0;text-align:center;font-size:14px;color:#c8e1e8}
.tangram-choice svg{width:100%;height:100%;display:block}.tangram-choice polygon{fill:#37c7dd88;stroke:#87e5f4;stroke-width:1}.tangram-reference{height:145px}.tangram-choice p{text-align:center;margin:8px}.tangram-options{display:flex;gap:12px}.tangram-options button{width:50%;padding:8px;aspect-ratio:1.15}.tangram-board.solved{animation:tan-success .35s ease-out}
.tangram-tools button{flex:1 0 56px;width:56px;min-width:56px;min-height:56px!important;max-width:84px;font-size:28px!important}.tangram-tools #tan-check{flex:1 0 100%;width:100%;min-height:54px!important;max-width:none;font-size:17px!important}
@media(max-width:340px){.tangram-tray:has(button:nth-child(6)){display:grid;grid-template-columns:repeat(4,44px)}.tangram-board{max-height:38dvh}}
@keyframes tan-success{50%{background:#1b809966;border-color:#a8faff}}@media(prefers-reduced-motion:reduce){.tangram-time span{transition:none}.tangram-board.solved{animation:none}}@media(max-width:360px){.tangram-tray{gap:1px}.tangram-tools{gap:3px}.tangram-tools button{padding:4px 7px!important}}
