@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600&display=swap");:root{color-scheme:light;--bg:#fff;--bg-soft:#fbf8f2;--ink:#0f0f0f;--muted:#6d6d6d;--mosaic-teal:#38d1c6;--mosaic-mint:#7cf0c5;--mosaic-gold:#ffc266;--mosaic-coral:#ff7a59}*{box-sizing:border-box}body,html{padding:0;margin:0;font-family:Space Grotesk,IBM Plex Sans,Work Sans,sans-serif;color:var(--ink);background:radial-gradient(circle at 30% 10%,var(--bg-soft),var(--bg) 45%,var(--bg) 100%)}body,html,main{width:100%;height:100%}main{display:flex;flex-direction:column}.canvas-shell{flex:1 1;position:relative;overflow:hidden}.canvas-hint{position:absolute;top:16px;left:16px;padding:8px 12px;border-radius:999px;background:hsla(0,0%,100%,.85);border:1px solid rgba(0,0,0,.08);font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.kite{cursor:pointer;transition:fill .12s ease}.kite:hover{filter:brightness(.98)}@keyframes kiteFlash{0%,to{filter:brightness(1)}50%{filter:brightness(1.55)}}.kite.is-flashing{animation:kiteFlash 166.67ms ease-in-out 3}.kite-art-image{image-rendering:pixelated}.canvas-shell.is-panning,.canvas-shell.is-panning .kite{cursor:-webkit-grabbing;cursor:grabbing}.loading{height:100%;font-size:14px;color:var(--muted);letter-spacing:.08em;text-transform:uppercase}.loading,.tile-editor-modal-backdrop{display:flex;align-items:center;justify-content:center}.tile-editor-modal-backdrop{position:absolute;inset:0;z-index:4;padding:20px;background:radial-gradient(circle at 20% 15%,rgba(111,220,255,.18),transparent 55%),radial-gradient(circle at 84% 80%,rgba(255,163,117,.2),transparent 58%),rgba(7,20,31,.58);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.tile-editor-modal{width:min(820px,100%);border-radius:26px;border:1px solid hsla(0,0%,100%,.42);background:linear-gradient(160deg,rgba(251,253,255,.94),rgba(238,245,251,.95));box-shadow:0 30px 54px rgba(5,20,38,.32),inset 0 1px 0 hsla(0,0%,100%,.76);overflow:hidden}.tile-editor-modal__header{padding:22px 24px 16px;border-bottom:1px solid rgba(12,44,68,.12)}.tile-editor-modal__header h2{margin:0;font-size:clamp(22px,2.7vw,29px);letter-spacing:.02em}.tile-editor-modal__header p{margin:8px 0 0;color:#3d4f5f;font-size:13px;letter-spacing:.03em}.tile-editor-modal__body{display:grid;grid-template-columns:minmax(220px,1fr) minmax(260px,1.1fr);grid-gap:20px;gap:20px;padding:20px 24px 24px}.tile-editor__preview-panel{position:relative;min-height:353px;border-radius:18px;border:1px solid rgba(22,72,110,.22);background:#fff;box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.7),0 12px 20px rgba(26,58,88,.16);overflow:hidden}.tile-editor__preview-svg{width:100%;height:100%;min-height:353px;padding:18px;touch-action:none;cursor:crosshair;background:#fff}.tile-editor__preview-svg.is-bucket{cursor:cell}.tile-editor__pixel{shape-rendering:crispEdges;stroke:hsla(0,0%,100%,.28);stroke-width:.08;transition:filter .12s ease}.tile-editor__pixel.is-pen{cursor:crosshair}.tile-editor__pixel.is-bucket{cursor:cell}.tile-editor__pixel:hover{filter:saturate(1.08)}.tile-editor__preview-outline{stroke:rgba(13,65,104,.75);stroke-width:.7}.tile-editor-modal__controls{display:flex;flex-direction:column;gap:14px}.tile-editor-modal__tool-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:10px;gap:10px}.tile-editor-modal__tool{height:40px;border-radius:12px;border:1px solid rgba(18,66,101,.2);background:rgba(245,250,255,.9);color:#28506d;font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-weight:600;cursor:pointer;transition:border-color .12s ease,box-shadow .12s ease,background-color .12s ease}.tile-editor-modal__tool.is-active{border-color:rgba(13,82,131,.56);background:linear-gradient(132deg,rgba(225,244,255,.95),rgba(200,231,248,.95));box-shadow:0 8px 14px rgba(26,74,113,.16)}.tile-editor-modal__hint{margin:0;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#45657c}.tile-editor-modal__swatches{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-gap:10px;gap:10px}.tile-editor-modal__swatch{width:100%;aspect-ratio:1/1;border-radius:10px;border:2px solid hsla(0,0%,100%,.8);box-shadow:0 4px 10px rgba(18,57,91,.15),inset 0 0 0 1px rgba(15,29,40,.14);cursor:pointer;transition:transform .12s ease,box-shadow .12s ease}.tile-editor-modal__swatch:hover{transform:translateY(-2px);box-shadow:0 8px 14px rgba(18,57,91,.22),inset 0 0 0 1px rgba(15,29,40,.18)}.tile-editor-modal__swatch.is-selected{transform:translateY(-2px) scale(1.04);box-shadow:0 0 0 2px rgba(7,87,142,.85),0 10px 16px rgba(18,57,91,.24),inset 0 0 0 1px hsla(0,0%,100%,.6)}.tile-editor-modal__actions{margin-top:auto;display:flex;justify-content:flex-end;gap:10px}.tile-editor-modal__history{display:flex;gap:10px}.tile-editor-modal__btn{min-width:96px;height:42px;padding:0 16px;border-radius:999px;border:1px solid transparent;font-size:12px;letter-spacing:.1em;text-transform:uppercase;font-weight:600;cursor:pointer}.tile-editor-modal__btn:disabled{opacity:.5;cursor:not-allowed}.tile-editor-modal__btn--quiet{border-color:rgba(16,60,95,.24);background:rgba(245,250,255,.8);color:#224760}.tile-editor-modal__btn--apply{border-color:rgba(13,63,101,.28);color:#eafdff;background:linear-gradient(142deg,#0f3a52,#146886 48%,#1eb8ae);box-shadow:0 10px 16px rgba(20,104,134,.28)}.tile-editor-modal__btn:focus-visible,.tile-editor-modal__swatch:focus-visible,.tile-editor-modal__tool:focus-visible{outline:2px solid rgba(10,77,124,.92);outline-offset:2px}.tile-editor__debug-mask{fill:rgba(37,144,232,.14);stroke:rgba(37,144,232,.35);stroke-width:.03;pointer-events:none}@media (max-width:820px){.tile-editor-modal{border-radius:20px}.tile-editor-modal__body{grid-template-columns:1fr}.tile-editor__preview-svg{min-height:277px;padding:18px}.tile-editor-modal__swatches{grid-template-columns:repeat(6,minmax(0,1fr))}}