:root{color-scheme:dark;font-family:system-ui,sans-serif;background:#191a1c;color:#f4f3f0}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit;background:#191a1c;border:1px solid #35373b;padding:.55rem .8rem;border-radius:.55rem}button:hover{background:#292a2d}:focus-visible{outline:2px solid #ecc15b;outline-offset:2px}[hidden]{display:none!important}#stage,#display{position:fixed;top:0;right:0;bottom:0;left:0}#stage{background:radial-gradient(ellipse at 47% 25%,#414246,#292a2d 49%,#131416)}:root[data-theme=white] #stage{background:radial-gradient(ellipse at 46% 27%,#e8e4db,#aba69d 72%,#807b74)}canvas{display:block;width:100%;height:100%;touch-action:none}nav{position:fixed;bottom:max(.9rem,env(safe-area-inset-bottom));right:.9rem;display:flex;gap:.45rem;align-items:center}nav button{background:#202124e8;font-size:.85rem}#settings{border-radius:50%;height:2.75rem;width:2.75rem;padding:0;font-size:1.3rem;opacity:.12}#settings:focus-visible{opacity:.65}#settings:hover{opacity:1}dialog{padding:0;background:#17181a;color:inherit;border:1px solid #36373a;border-radius:1rem;width:min(36rem,calc(100% - 1.5rem));max-height:min(90dvh,54rem);box-shadow:0 1.5rem 5rem #0009}dialog::backdrop{background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}form{display:flex;flex-direction:column;max-height:min(90dvh,54rem)}header,footer{display:flex;align-items:center;justify-content:space-between;padding:.85rem 1.15rem;gap:.6rem}header{border-bottom:1px solid #2a2b2e}header button{border:0;background:transparent;font-size:1.25rem}h1{font-size:1.05rem;margin:0}section{padding:1rem 1.15rem;overflow:auto;overscroll-behavior:contain}label,.preview-head strong{display:block;font-size:.8rem;font-weight:650;text-transform:uppercase;letter-spacing:.045em;color:#c6c6c8}textarea,input,select{display:block;margin-top:.35rem;border:1px solid #37393c;background:#202123;color:inherit;border-radius:.5rem;padding:.6rem .65rem;width:100%;font-size:1rem;letter-spacing:normal}textarea{resize:vertical;min-height:5rem}.hint,.preview-head{display:flex;justify-content:space-between;gap:.7rem;font-size:.8rem;color:#b5b5b8}.hint{margin:.35rem 0 .75rem}.hint span:last-child{white-space:nowrap}.preview{background:#202123;border:1px solid #37393c;border-radius:.65rem;padding:.75rem;margin-bottom:1rem}.preview figure{margin:.55rem 0 0}.preview figcaption{margin-bottom:.25rem;font-size:.75rem;color:#b5b5b8}#preview-nav{display:flex;gap:.45rem;margin-top:.7rem}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}footer{border-top:1px solid #2a2b2e;flex-wrap:wrap}footer>div{display:flex;gap:.45rem;margin-left:auto}.apply{background:#e6b64f;color:#1c160a;border-color:transparent;font-weight:650}.apply:hover{background:#f2c76b}.grid{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:3px;background:#111214;padding:4px;width:min(100%,calc(var(--cols)*1.2rem + 8px));border-radius:4px}.tile{aspect-ratio:.72;display:grid;place-items:center;position:relative;overflow:hidden;background:#26272a;color:#f7f5ef;border-radius:2px;line-height:1;font-size:clamp(.48rem,1.8vw,.72rem)}.tile:after{content:"";position:absolute;top:50%;width:100%;border-top:1px solid #0006}.grid.white .tile{background:#e7e4db;color:#191a1c}.static{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:min(90vw,64rem);padding:clamp(6px,3vw,44px);border-radius:8px;background:#232427;box-shadow:0 1.4rem 3rem #0009}[data-theme=white] .static{background:#f0ede4}.static .grid{width:100%}.static .tile{font-size:clamp(.65rem,calc(65vw / var(--cols)),7rem)}.sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
