.nonogram-size{align-items:center;gap:.4rem;margin-inline-start:auto;font-size:.875rem;font-weight:800;display:flex}.nonogram-size select{min-height:44px;padding-inline:.35rem}.nonogram-size+.pj-toolbar-end{margin-inline-start:0}@container (width<=26rem){.nonogram-size span{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}}.nonogram-board{--nc-paper:light-dark(#fff2db,#e5d6bc);--nc-clue:light-dark(#efdab9,#cbb598);--nc-ink:#4a334b;--nc-line:#ac947c;--nc-edge:#705363;--nc-fill:#257f76;--nc-cross:#806374;--nc-hint:#f3b74e;--nc-error:#b32943;color:var(--nc-ink);border-radius:0 0 var(--radius) var(--radius);background:radial-gradient(at 50% 0,#a47b8052,#0000 72%),repeating-linear-gradient(135deg,#ffffff04 0 1px,#0000 1px 7px),linear-gradient(125deg,#4e4056,#362d44 58%,#493447);justify-items:center;gap:.55rem;padding:.55rem .65rem .65rem;display:grid;box-shadow:inset 0 2px #b4979d80,inset 0 -3px #211b30,inset 3px 0 #ffffff0b,inset -3px 0 #130f2038}.pj-shell:fullscreen .nonogram-board{--game-top-height:100dvh}.nonogram-board .nonogram-grid{--nc-gutter:calc(var(--nonogram-runs) * var(--nc-unit) + .3rem);--nc-unit:clamp(.75rem, 3.35cqi, 1.25rem);grid-template-columns:var(--nc-gutter) repeat(var(--nonogram-size), minmax(0, 1fr));grid-template-rows:var(--nc-gutter) repeat(var(--nonogram-size), minmax(0, 1fr));width:min(100%, 36rem, max(15rem, calc(var(--game-top-height,100dvh) - 14rem)));aspect-ratio:1;background:repeating-linear-gradient(0deg, #775e3810 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, #ffffff50 0 1px, transparent 1px 5px), var(--nc-paper);border:2px solid var(--nc-edge);user-select:none;touch-action:none;border-radius:.45rem;display:grid;position:relative;box-shadow:0 2px #bd9378,0 5px #241e33,0 9px 16px #130e244a,0 0 0 1px #edc9a280}@media (width>=40rem) and (height<=52rem){.nonogram-board{gap:.375rem;padding-block:.1875rem .3125rem}.nonogram-board .nonogram-grid{box-shadow:0 1px #bd9378,0 3px #241e33,0 5px 12px #130e244a,0 0 0 1px #edc9a280}}.nonogram-board .nonogram-row{grid-template-columns:subgrid;grid-column:1/-1;display:grid}.nonogram-board .nonogram-clue,.nonogram-board .nonogram-corner{border:solid var(--nc-line);background:linear-gradient(145deg, #ffffff45, #a179571a), var(--nc-clue);font-size:min(1.05rem, calc(66cqi / (var(--nonogram-size) + var(--nonogram-runs))), calc(max(15rem, calc(var(--game-top-height,100dvh) - 14rem)) * .7 / (var(--nonogram-size) + var(--nonogram-runs))));font-variant-numeric:tabular-nums;text-shadow:0 1px #fff7e3;border-width:0 1px 1px 0;justify-content:center;align-items:center;font-weight:950;line-height:1;display:flex;position:relative;box-shadow:inset 0 1px #fff6dfbd,inset -1px -2px #78544325}.nonogram-board .nonogram-corner{color:#34695e;border-start-start-radius:.3rem;font-size:1.1rem}.nonogram-board .nonogram-corner span{animation:5s ease-in-out infinite nonogram-idle;display:inline-block}.nonogram-board .nonogram-row-clue{justify-content:flex-end;padding-inline-end:.15rem}.nonogram-board .nonogram-column-clue{flex-direction:column;justify-content:flex-end;padding-block-end:.15rem}.nonogram-board .nonogram-row-clue span{text-align:center;min-width:var(--nc-unit)}.nonogram-board .nonogram-column-clue span{line-height:var(--nc-unit)}.nonogram-board .nonogram-clue[data-active]{background-color:#f4cb88}.nonogram-board .nonogram-clue[data-satisfied]{color:#46533d;text-shadow:none;background-color:#c9d7b8}.nonogram-board .nonogram-clue[data-satisfied] span{text-decoration:line-through 1.5px}.nonogram-board[data-started] .nonogram-clue[data-satisfied]:after,.nonogram-board .nonogram-line-flash{content:"";pointer-events:none;background:#fff4b880;animation:.5s ease-out both nonogram-line;position:absolute;inset:0}.nonogram-board .nonogram-cell{border:solid var(--nc-line);min-width:0;min-height:0;color:var(--nc-cross);background:0 0;border-width:0 1px 1px 0;border-radius:0;place-items:center;padding:0;display:grid;position:relative}.nonogram-board .nonogram-cell[data-active]{background-color:#f6bf5a1f}.nonogram-board .nonogram-cell[data-col-line]{border-inline-start:2px solid var(--nc-edge)}.nonogram-board .nonogram-cell[data-row-line]{border-block-start:2px solid var(--nc-edge)}.nonogram-board .nonogram-cell:last-child,.nonogram-board .nonogram-column-clue:last-child{border-inline-end:0}.nonogram-board .nonogram-row:last-child>*{border-block-end:0}.nonogram-board .nonogram-ink{background:linear-gradient(135deg, #ffffff38, transparent 44%), repeating-linear-gradient(25deg, #ffffff0b 0 1px, transparent 1px 4px), linear-gradient(160deg, var(--nc-fill), #154e4e);pointer-events:none;border-radius:12% 8% 10% 5%;animation:.23s cubic-bezier(.18,.8,.4,1.3) nonogram-stamp;position:absolute;inset:1px;box-shadow:inset 0 1px #9fe2c7a6,inset 1px 0 #73d8b25c,inset -1px -2px #123d4a80,0 1px 1px #3c403d55}.nonogram-board .nonogram-cross{aspect-ratio:1;pointer-events:none;width:44%;display:inline-block;position:relative}.nonogram-board .nonogram-cross:before,.nonogram-board .nonogram-cross:after{content:"";background:currentColor;border-radius:50% 20% 40% 30%;height:2px;position:absolute;inset:calc(50% - 1px) 0 auto;transform:rotate(43deg);box-shadow:0 1px #fff6}.nonogram-board .nonogram-cross:after{transform:rotate(-47deg)}.nonogram-board .nonogram-cell .nonogram-cross{animation:.18s ease-out nonogram-stamp}.nonogram-board .nonogram-cell:focus-visible{z-index:1;outline-offset:-3px;outline:2px solid #65416f;box-shadow:inset 0 0 0 4px #fff0c5}.nonogram-board .nonogram-cell[data-mark="1"]:focus-visible{outline-color:#fff1b4}.nonogram-board .nonogram-cell[data-hinted]:after,.nonogram-board .nonogram-cell[data-wrong]:after{content:"";border:2px solid var(--nc-hint);pointer-events:none;position:absolute;inset:1px;box-shadow:inset 0 0 7px #ffc85480,0 0 7px #ffc85470}.nonogram-board .nonogram-cell[data-hinted]:after{animation:1.6s ease-in-out infinite alternate nonogram-hint}.nonogram-board .nonogram-cell[data-wrong]:after{border-color:var(--nc-error);box-shadow:inset 0 0 4px #b3294340}.nonogram-board .nonogram-error{min-width:.55rem;height:.6rem;color:var(--nc-error);background:var(--nc-paper);font:950 .65rem/1 var(--site-font,system-ui, sans-serif);pointer-events:none;border-radius:.2rem;place-items:center;display:grid;position:absolute;top:1px;right:1px}.nonogram-board .nonogram-tools{background:#211b2c;border-radius:.55rem;gap:.4rem;display:flex;box-shadow:0 0 0 3px #211b2c,0 0 0 4px #9d7a7460}.nonogram-board .nonogram-tools button{color:#f7e7cf;background:linear-gradient(#695464,#48394f);border:1px solid #b38b77;border-radius:.55rem;align-items:center;gap:.45rem;padding-inline:.9rem;font-weight:850;transition:transform .15s;display:inline-flex;box-shadow:inset 0 1px #ffe9cb42,0 2px #201a2c}.nonogram-board .nonogram-tools button[aria-pressed=true]{color:#244e49;background:linear-gradient(#ecdfbd,#d4c59e);border-color:#f6d29b;box-shadow:inset 0 1px #fff4d9,inset 0 -3px #388a74,0 2px #201a2c}.nonogram-board .nonogram-tools .nonogram-cross,.nonogram-board .nonogram-swatch{aspect-ratio:1;width:.85rem}.nonogram-board .nonogram-swatch{background:linear-gradient(135deg,#54b79f,#175951);border-radius:.16rem;box-shadow:inset 0 1px #c1f0c3}.nonogram-board .nonogram-tools button:focus-visible{outline-offset:3px;outline:2px solid #ffcf75}.nonogram-board .nonogram-tools button:enabled:active{transform:translateY(1px)scale(.96);box-shadow:inset 0 2px 4px #241e3350}.nonogram-board[data-blocked]:not([data-solved]) .nonogram-grid{filter:saturate(.65)}.nonogram-board[data-solved] .nonogram-ink{background:linear-gradient(135deg, #fff6, transparent 50%), var(--nc-fill)}.nonogram-board[data-solved] .nonogram-cell[data-tone="1"]{--nc-fill:#e87960}.nonogram-board[data-solved] .nonogram-cell[data-tone="2"]{--nc-fill:#edb94f}.nonogram-board[data-solved] .nonogram-cross{opacity:.25}.nonogram-board .nonogram-shine{z-index:2;border-radius:inherit;pointer-events:none;position:absolute;inset:0;overflow:hidden}.nonogram-board .nonogram-shine:after{content:"";pointer-events:none;background:linear-gradient(90deg,#0000,#fff5d080,#0000);width:30%;animation:.7s ease-out both nonogram-shine;position:absolute;inset:-30% auto -30% 0}.nonogram-board .nonogram-reveal{z-index:2;background:var(--nc-paper);pointer-events:none;border:1px solid #dbac78;border-radius:5px;width:clamp(72px,22%,110px);height:auto;padding:4px;animation:.9s ease-out both nonogram-reveal;position:absolute;top:3%;left:50%;box-shadow:0 3px 10px #251c3c50}.nonogram-board .nonogram-reveal rect{fill:#257f76}.nonogram-board .nonogram-reveal rect[data-tone="1"]{fill:#e87960}.nonogram-board .nonogram-reveal rect[data-tone="2"]{fill:#edb94f}.nonogram-board .nonogram-flourish{z-index:2;color:#f4bc58;stroke-width:.65px;pointer-events:none;width:100%;height:100%;animation:.75s ease-out both nonogram-flourish;position:absolute;inset:0}@media (hover:hover) and (pointer:fine){.nonogram-board:not([data-blocked]) .nonogram-cell:hover{background-color:#f4bc5845;box-shadow:inset 0 0 0 2px #b17b56}.nonogram-board:not([data-blocked]) .nonogram-cell:hover .nonogram-ink{filter:brightness(1.15);transform:translateY(-1px)}.nonogram-board .nonogram-tools button:enabled:hover:not(:active){transform:translateY(-2px);box-shadow:inset 0 1px #ffe9cb70,0 4px #201a2c}}.nonogram-board:not([data-blocked]) .nonogram-cell:active .nonogram-ink{transform:scale(.94)}@keyframes nonogram-stamp{0%{opacity:.35;transform:scale(.72)}65%{transform:scale(1.06)}to{opacity:1;transform:scale(1)}}@keyframes nonogram-line{0%,to{opacity:0}35%{opacity:1}}@keyframes nonogram-hint{0%{opacity:.6}to{opacity:1}}@keyframes nonogram-idle{50%{opacity:.65;transform:translate(1px,1px)}}@keyframes nonogram-shine{0%{opacity:0;transform:translate(-200%)rotate(20deg)}20%{opacity:1}to{opacity:0;transform:translate(500%)rotate(20deg)}}@keyframes nonogram-reveal{0%{opacity:0;transform:translate(-50%)scale(.75)}20%,65%{opacity:1;transform:translate(-50%)scale(1)}to{opacity:0;transform:translate(-50%)scale(1.04)}}@keyframes nonogram-flourish{0%{opacity:0;transform:scale(.94)}25%{opacity:1}to{opacity:0;transform:scale(1.035)}}@media (prefers-reduced-motion:reduce){.nonogram-board *,.nonogram-board :before,.nonogram-board :after{transition:none!important;animation:none!important}.nonogram-board .nonogram-tools button:enabled:hover,.nonogram-board .nonogram-tools button:enabled:active,.nonogram-board .nonogram-cell:hover .nonogram-ink,.nonogram-board:not([data-blocked]) .nonogram-cell:active .nonogram-ink{transform:none!important}.nonogram-board .nonogram-shine,.nonogram-board .nonogram-flourish,.nonogram-board .nonogram-reveal,.nonogram-board .nonogram-line-flash,.nonogram-board .nonogram-clue[data-satisfied]:after{display:none}}
