.tangram .tg-mode{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:520px;margin-bottom:16px;display:grid}html[data-theme] body #main .tangram .tg-mode button{border:1px solid var(--gm-line);background:var(--gm-surface);min-height:56px;color:var(--gm-ink);text-align:start;cursor:pointer;border-radius:14px;gap:2px;padding:8px 12px;display:grid}html[data-theme] body #main .tangram .tg-mode button[aria-pressed=true]{border-color:var(--gm-gold);background:var(--gm-gold-soft);box-shadow:0 0 0 1px var(--gm-gold)}.tangram .tg-mode small{color:var(--gm-muted);font-size:12px}.tg-pictures{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin:0 0 12px;padding:0;list-style:none;display:grid}html[data-theme] body #main .tangram .tg-pictures button{border:1px solid var(--gm-line);background:var(--gm-surface);width:100%;min-height:160px;color:var(--gm-ink);cursor:pointer;border-radius:18px;justify-items:center;gap:6px;padding:14px 10px;font-size:15px;display:grid}html[data-theme] body #main .tangram .tg-pictures button:hover{border-color:var(--gm-gold)}.tg-thumb{width:92px;height:92px}.tg-thumb polygon{fill:var(--gm-plum);stroke:var(--gm-plum);stroke-width:.08px}.tg-done{color:#2f8a5b;font-weight:650}html[data-theme=dark] .tg-done{color:#8ee3b0}.tg-outline polygon{fill:#ffffff2e;stroke:#fff9;stroke-width:.06px;stroke-linejoin:round}.tg-table[data-mode=hard] .tg-outline polygon{fill:#0d1f24b3;stroke:#0d1f24b3;stroke-width:.06px}.tg-tray-line{stroke:#fff3;stroke-width:.06px;stroke-dasharray:.3 .3}.tg-piece{stroke:#fffc;stroke-width:.08px;stroke-linejoin:round;cursor:grab;outline:none;transition:filter .15s}.tg-piece:active{cursor:grabbing}.tg-piece[data-selected]{stroke:#f6c766;stroke-width:.22px;filter:drop-shadow(0 .15px .3px #0008)}.tg-piece:focus-visible{stroke:#fff;stroke-width:.3px}.tg-piece[data-fixed]{cursor:default;stroke:#fff5;stroke-width:.05px;animation:.35s tg-click}@keyframes tg-click{50%{filter:brightness(1.25)}}@media (prefers-reduced-motion:reduce){.tg-piece[data-fixed]{animation:none}}.tg-over{animation-delay:.3s}.tg-table{color:#fff;background:radial-gradient(70% 60% at 50% 30%,#ffffff1f,#fff0 70%),linear-gradient(160deg,#3f6f6c,#2c5258 55%,#1c3038);border-radius:24px;gap:10px;padding:clamp(10px,2vw,18px);display:grid;position:relative}.tg-top{flex-wrap:wrap;align-items:center;gap:6px 12px;display:flex}html[data-theme] body #main .tangram .tg-table .tg-top h2{color:#fff;margin:0;font-size:clamp(18px,2.2vw,22px)}.tg-count{color:#f6c766;background:#ffffff1f;border-radius:999px;padding:3px 10px;font-size:13px;font-weight:700}.tg-board{touch-action:none;-webkit-user-select:none;user-select:none;width:100%;height:auto;min-height:240px;max-height:calc(100dvh - 370px);margin:0 auto;display:block}.tg-tools{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.tg-tools-gap{flex:1 1 0}html[data-theme] body #main .tangram .tg-table .tg-chip{color:#fff;min-height:42px;font:inherit;cursor:pointer;background:#ffffff14;border:1px solid #ffffff40;border-radius:12px;justify-content:center;align-items:center;gap:6px;padding:0 14px;font-size:14px;font-weight:650;display:inline-flex}html[data-theme] body #main .tangram .tg-table .tg-chip:hover:not(:disabled){background:#ffffff26}html[data-theme] body #main .tangram .tg-table .tg-chip:disabled{opacity:.45;cursor:default}.tg-top-gap{flex:1 1 0}html[data-theme] body #main .tangram .tg-table .tg-back{color:#f6c766;border-color:#f6c766;min-height:38px}html[data-theme] body #main .tangram .tg-table .tg-icon{width:42px;padding:0}html[data-theme] body #main .tangram .tg-table .tg-message{color:#fffc;margin:0;font-size:14px}.tg-table[data-wide]{max-width:1180px}.tg-table:not([data-wide]){max-width:760px}.tg-table[data-mode=hard] .tg-outline path{fill:#0d1f24cc}@media (max-width:600px){.tg-board{max-height:calc(100dvh - 340px)}html[data-theme] body #main .tangram .tg-table .tg-chip{min-height:40px;padding:0 10px;font-size:13px}.tg-tools-gap{display:none}}html[data-theme] body #main .tangram .tg-table .tg-chip[aria-pressed=true]{color:#fff;background:#ffffff14}html[data-theme] body #main .tangram .tg-table .tg-top .tg-chip{min-height:38px}html[data-theme] body #main .tangram .tg-table .tg-top .tg-icon{width:38px}@media (max-width:600px){.tangram[data-step=play] .mj-head,.tangram[data-step=play]>.platform-inline-link{display:none}.tg-top{flex-wrap:nowrap;gap:6px}html[data-theme] body #main .tangram .tg-table .tg-top h2{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}html[data-theme] body #main .tangram .tg-table .tg-top .tg-chip{min-height:36px;padding:0 10px;font-size:13px}html[data-theme] body #main .tangram .tg-table .tg-top .tg-icon{width:36px;padding:0}.tg-board{max-height:calc(100dvh - 250px)}}
