html,body{overscroll-behavior-x:none;overflow-x:clip}:root{--ink:#2b2b33;--cream:#fffaf0;--paper:#f6efe1;--line:#2b2b331f;--gold:#ffd84d;--blue:#5f8fd0;--sheet-h:52dvh;--safe-b:env(safe-area-inset-bottom,0px);--safe-t:env(safe-area-inset-top,0px)}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{touch-action:pan-x pan-y;height:100%;color:var(--ink);overscroll-behavior:none;background:#22242a;margin:0;font-family:Fredoka,system-ui,sans-serif;overflow:hidden}#frame{position:fixed;inset:0}#hero{flex-direction:column;display:flex;position:absolute;inset:0}#stage{touch-action:none;background:radial-gradient(at 50% 35%,#8fb7e0 0%,#5d86b8 55%,#3b557c 100%);flex:auto;min-height:0;position:relative}#c{width:100%;height:100%;display:block}#home{left:14px;top:calc(12px + var(--safe-t));color:var(--cream);letter-spacing:.08em;text-shadow:0 1px 3px #00000059;padding:10px 4px;font-size:15px;font-weight:600;text-decoration:none;position:absolute}.round{right:12px;top:calc(10px + var(--safe-t));width:48px;height:48px;color:var(--ink);cursor:pointer;background:#fffaf0eb;border:0;border-radius:50%;place-items:center;display:grid;position:absolute;box-shadow:0 2px 10px #00000040}.round:active{transform:scale(.94)}.round svg,.tile svg,#turnHint svg,.btn svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round}.round svg{width:26px;height:26px}#turnHint{color:var(--cream);opacity:.85;pointer-events:none;align-items:center;gap:6px;margin:0;font-size:13px;transition:opacity .6s;display:flex;position:absolute;bottom:10px;left:50%;transform:translate(-50%)}#turnHint svg{width:16px;height:16px}#turnHint.gone{opacity:0}#badge{left:14px;top:calc(52px + var(--safe-t));color:var(--cream);opacity:.9;text-shadow:0 1px 3px #00000059;margin:0;font-size:13px;position:absolute}#sheet{flex:0 0 var(--sheet-h);background:var(--cream);border-radius:20px 20px 0 0;flex-direction:column;min-width:0;min-height:0;margin-top:-18px;display:flex;position:relative;box-shadow:0 -6px 24px #00000040}#tabs{flex-wrap:wrap;flex:none;gap:4px;padding:10px 12px 0;display:flex}#tabs::-webkit-scrollbar{display:none}#tabs button{scroll-snap-align:start;color:#2b2b338c;cursor:pointer;background:0 0;border:0;border-radius:999px;flex:none;align-items:center;gap:6px;min-height:44px;padding:0 14px;font:600 15px Fredoka,system-ui,sans-serif;display:flex}#tabs button .n{background:var(--line);width:22px;height:22px;color:var(--ink);border-radius:50%;place-items:center;font-size:12px;display:grid}#tabs button[aria-selected=true]{color:var(--ink);background:var(--paper)}#tabs button[aria-selected=true] .n{background:var(--ink);color:var(--cream)}#tabs button.done .n{background:var(--gold);color:var(--ink)}#panel{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;flex:auto;min-height:0;padding:6px 14px 16px;overflow-y:auto}#panel h3{letter-spacing:.08em;text-transform:uppercase;color:#2b2b3399;margin:14px 2px 8px;font-size:13px;font-weight:600}#panel h3 small{text-transform:none;letter-spacing:0;margin-left:6px;font-weight:400}#panel .lead{margin:10px 2px 2px;font-size:15px;line-height:1.35}.grid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;display:grid}.grid.wide{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.tile{background:var(--paper);min-height:64px;color:var(--ink);text-align:center;cursor:pointer;border:2px solid #0000;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:10px 8px;font:600 14px Fredoka,system-ui,sans-serif;display:flex;position:relative}.grid.wide .tile{text-align:left;flex-direction:row;justify-content:flex-start;gap:10px;padding:8px 10px}.grid.wide .tile img{flex:none;width:56px;height:56px}.tile:active{transform:scale(.97)}.tile[aria-pressed=true]{border-color:var(--ink);background:#fff;box-shadow:0 2px 8px #00000014}.tile svg{flex:none;width:30px;height:30px}.tile img{object-fit:contain;width:64px;height:64px}.tile .t{flex-direction:column;gap:2px;display:flex}.tile .sub{color:#2b2b33a6;font-size:12.5px;font-weight:400;line-height:1.25}.grid.pics{grid-template-columns:repeat(auto-fill,minmax(96px,1fr))}.grid.pics .tile{min-height:108px;padding:6px 4px 8px;font-size:13px}.grid.pics .tile img{width:68px;height:68px}.grid.pics .tile .t{line-height:1.15}.seg{background:var(--paper);border-radius:14px;gap:4px;padding:4px;display:flex}.seg button{min-height:44px;color:var(--ink);cursor:pointer;background:0 0;border:0;border-radius:10px;flex:1;font:600 15px Fredoka,system-ui,sans-serif}.seg button[aria-pressed=true]{background:#fff;box-shadow:0 1px 4px #0000001f}.swatches{flex-wrap:wrap;gap:10px;display:flex}.sw{cursor:pointer;border:0;border-radius:50%;width:44px;height:44px;padding:0;box-shadow:inset 0 -4px #0000002e,0 0 0 1px #00000014}.sw[aria-pressed=true]{box-shadow:inset 0 -4px 0 #0000002e, 0 0 0 3px var(--cream), 0 0 0 5px var(--ink)}.sw:active{transform:scale(.92)}.note{background:var(--paper);border-radius:14px;margin:12px 2px 0;padding:12px 14px;font-size:14.5px;line-height:1.4}.note.good{background:#e3f4dc}.note.bad{background:#fbe3dc}.note b{font-weight:600}.note{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.notelink{box-sizing:border-box;background:var(--ink);min-height:44px;color:var(--cream);border-radius:12px;padding:10px 16px;font-weight:600;text-decoration:none;display:inline-block}button.notelink{cursor:pointer;border:0;font:600 15px Fredoka,system-ui,sans-serif}button.notelink:disabled{opacity:.5}.note.pick .notelink{background:#2f7d32}#select,#hero.select #sheet,#hero.select #dice,#hero.select #badge,#hero.select #turnHint{display:none}#hero.select #select{left:50%;bottom:calc(16px + var(--safe-b));flex-direction:column;align-items:stretch;gap:10px;width:min(420px,100% - 32px);animation:.45s ease-out both rise;display:flex;position:absolute;transform:translate(-50%)}@keyframes rise{0%{opacity:0;transform:translate(-50%,16px)}}#selName,#selLine{text-align:center;color:var(--cream);text-shadow:0 2px 8px #00000073;overflow-wrap:anywhere;margin:0}#selName{font-size:28px;font-weight:600;line-height:1.1}#selLine{opacity:.9;margin-bottom:4px;font-size:15px}#selSkins:empty,#selNote:empty{display:none}#selSkins button{padding:4px 6px;line-height:1.15}#selNote .note{margin:0}#select .btn{flex:none;width:100%}#select .btn.gold{box-shadow:0 4px #c9a72a,0 6px 18px #00000040}#foot{padding:10px 14px calc(12px + var(--safe-b));border-top:1px solid var(--line);flex:none;gap:10px;display:flex}.btn{background:var(--ink);min-height:52px;color:var(--cream);cursor:pointer;border:0;border-radius:16px;flex:2;justify-content:center;align-items:center;gap:6px;font:600 17px Fredoka,system-ui,sans-serif;display:flex}.btn.gold{background:var(--gold);color:var(--ink)}.btn.ghost{background:var(--paper);color:var(--ink);flex:1}.btn:disabled{opacity:.5;cursor:default}.btn:active:not(:disabled){transform:scale(.98)}.btn svg{width:20px;height:20px}button:focus-visible,a:focus-visible{outline:3px solid var(--blue);outline-offset:2px}@media (orientation:landscape) and (height<=560px){#hero{flex-direction:row}#sheet{border-radius:0;flex:0 0 min(440px,55vw);width:min(440px,55vw);margin:0}#hero.select #select{left:auto;right:calc(16px + env(safe-area-inset-right));gap:8px;width:min(380px,50%);max-height:calc(100% - 24px);animation-name:rise-side;top:50%;bottom:auto;overflow-y:auto;transform:translateY(-50%)}#selName{font-size:24px}@keyframes rise-side{0%{opacity:0;transform:translate(16px,-50%)}}}@media (width>=900px) and (height>=561px){#hero{flex-direction:row}#sheet{border-radius:20px;flex:0 0 440px;width:440px;margin:16px}.grid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr))}}#panel .seg{margin-bottom:2px}.idea{color:#2b2b33b3;margin:8px 2px 10px;font-size:13.5px;line-height:1.35}.skillbig{background:#fff;border-radius:14px;align-items:flex-start;gap:12px;padding:10px;display:flex;box-shadow:0 2px 8px #0000000f}.skillbig .media{background:var(--paper);border-radius:10px;flex:none;place-items:center;width:132px;height:132px;display:grid;overflow:hidden}.skillbig .media video{object-fit:cover;width:100%;height:100%;display:block}.skillbig .media img{object-fit:contain;width:84%;height:84%}.skillbig .t{flex-direction:column;gap:4px;min-width:0;font-size:13.5px;line-height:1.35;display:flex}.skillbig .t b{font-size:16px;font-weight:600}.skillbig .tag{background:var(--gold);border-radius:999px;align-self:flex-start;padding:2px 8px;font-size:12px;font-weight:600}.skillbig.ult{box-shadow:0 0 0 2px var(--gold), 0 2px 8px #0000000f}.skillrow{grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:8px;margin-top:8px;display:grid}.skillcard{cursor:pointer;background:var(--paper);color:var(--ink);text-align:center;border:2px solid #0000;border-radius:12px;flex-direction:column;align-items:center;gap:4px;padding:6px 4px 8px;font:600 12px/1.15 Fredoka,system-ui,sans-serif;display:flex}.skillcard img{object-fit:contain;width:48px;height:48px}.skillcard[aria-pressed=true]{border-color:var(--ink);background:#fff}.skillcard.ult{border-color:var(--gold)}.skillcard.ult[aria-pressed=true]{border-color:var(--ink);box-shadow:0 0 0 2px var(--gold)}.skillcard:active{transform:scale(.97)}.nick input{box-sizing:border-box;border:2px solid var(--line);width:100%;color:var(--ink);background:#fff;border-radius:14px;padding:12px 14px;font:600 18px Fredoka,system-ui,sans-serif}.nick input:focus{border-color:var(--ink);outline:none}.nicknote{color:#2b2b33a6;margin:8px 2px 0;font-size:13px}.nicknote.bad{color:#b3261e}
