:root{color-scheme:light;--paper:#fbf5ec;--ink:#413024;--edge:#d9cfc1;--focus:#925b36;--hover:#eee5d9;--muted:#756456;--mark:#413024;--cloth:#ddcbb2;--control:rgba(251,245,236,.81);--gap:clamp(7px,.66vw,13px);font-family:"Hiragino Maru Gothic ProN","Hiragino Sans","Yu Gothic",Meiryo,system-ui,sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0;-webkit-tap-highlight-color:transparent}main{padding:var(--gap) var(--gap) max(var(--gap),env(safe-area-inset-bottom));margin:auto;max-width:1920px}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}button[hidden]{display:none}button:focus-visible,#stage:focus-visible{outline:3px solid var(--focus);outline-offset:2px}#viewer{position:relative;max-width:min(100%,calc((100svh - 102px)*1.62246));margin:auto}#stage{position:relative;aspect-ratio:1517/935;max-height:calc(100svh - 102px);overflow:hidden;border-radius:clamp(12px,1.32vw,25px);background:var(--cloth);touch-action:none;user-select:none;-webkit-user-select:none}#scene{display:block;width:100%;height:100%;position:absolute;inset:0}#stage:not([data-ready=true]) #scene{visibility:hidden}#stage[data-over=true]{cursor:default}#stage[data-pressed=true]{cursor:none}#retry{position:absolute;bottom:14px;left:14px;background:var(--paper)}.toolbar,.choices,.tools{display:flex;align-items:center}.toolbar{justify-content:space-between;gap:4px 12px;padding:8px 0 0}.choices{min-width:0;max-width:100%;justify-content:center;gap:clamp(4px,.65vw,10px)}.choices button{--size:clamp(46px,6.4vw,60px);position:relative;min-width:0;width:var(--size);aspect-ratio:1;padding:3px;display:grid;background:transparent;border:2px solid transparent;border-radius:50%}.coat{width:100%;height:100%;border-radius:inherit;background:#e3d9ca url(../images/coats/coat-1.webp) 0 center/600% 100% no-repeat;box-shadow:inset 0 0 0 1px #33281e3b}[data-cat=mugi] .coat{background-position-x:20%}[data-cat=hana] .coat{background-position-x:40%}[data-cat=shiro] .coat{background-position-x:60%}[data-cat=saba] .coat{background-position-x:80%}[data-cat=hachi] .coat{background-position-x:100%}[data-cat=sabi] .coat{background-image:url(../images/coats/coat-2.webp);background-size:cover}[data-cat=gray] .coat{background-image:url(../images/coats/coat-3.webp);background-size:cover}[data-cat=kiji] .coat{background-image:url(../images/coats/coat-4.webp);background-size:cover}[data-cat=siam] .coat{background-image:url(../images/coats/coat-5.webp);background-size:cover}[data-cat=ragdoll] .coat{background-image:url(../images/coats/coat-6.webp);background-size:cover}[data-cat=siberian] .coat{background-image:url(../images/coats/coat-7.webp);background-size:cover}[data-cat=norwegian] .coat{background-image:url(../images/coats/coat-8.webp);background-size:cover}[data-cat=sphynx] .coat{background-image:url(../images/coats/coat-9.webp);background-size:cover}.choices button[aria-pressed=true]{border-color:var(--ink)}.choices button[aria-pressed=true]::after{content:"";position:absolute;right:0;bottom:1px;width:13px;height:13px;border:2px solid var(--paper);border-radius:50%;background:var(--mark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8 2.7 2.8 5.3-5.6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/100% no-repeat}.tools{position:relative;gap:3px;flex:none}.icon-button{width:44px;height:44px;display:grid;place-items:center;background:transparent;border:0;border-radius:50%;padding:10px}.icon-button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}@media(hover:hover){.icon-button:hover{background-color:var(--hover)}.choices button:hover:not([aria-pressed=true]){border-color:#bbaa98}}#sound[aria-checked=false] .waves,#sound[aria-checked=true] .muted{display:none}#sound[aria-checked=true]{background:var(--hover)}.sr,.symbols{position:absolute;overflow:hidden;clip-path:inset(50%);width:1px;height:1px;margin:0}.profile{text-align:center;font-size:.8rem;color:var(--muted)}
.lang-button{margin-left:0;padding:5px 9px;border:1px solid var(--edge);border-radius:999px;background:transparent;color:var(--muted);font-size:.78rem;line-height:1;min-width:2.5em;vertical-align:middle}.lang-button:hover,.lang-button:focus-visible{background:var(--hover);color:var(--ink)}.profile a,.profile [aria-current=page]{display:inline-block;padding:5px 8px}.profile a{color:var(--muted);text-decoration:underline;text-underline-offset:3px;text-decoration-color:#a29183}.profile a:is(:hover,:focus-visible){color:var(--ink);text-decoration-color:currentColor}#viewer:fullscreen,#viewer.is-full{display:flex;flex-direction:column;justify-content:center;background:var(--paper);width:100%;height:100%;padding:var(--gap);max-width:none}#viewer.is-full{position:fixed;inset:0;z-index:9}.is-full-page{overflow:hidden}#viewer:fullscreen #stage,#viewer.is-full #stage{width:100%;max-height:calc(100dvh - 92px);min-height:0}@media(max-width:620px){#stage{aspect-ratio:1.56}}@media(max-width:525px) and (orientation:portrait){.toolbar{flex-direction:column;justify-content:center;gap:2px}.choices{gap:4px}}@media(max-width:525px) and (orientation:portrait){#viewer:not(.landscape) .choices{max-width:min(100%,316px)}#viewer:not(.landscape) .choices button{--size:clamp(52px,15vw,60px)}}#viewer.landscape{position:fixed;inset:0 auto auto 0;z-index:9;margin:0;max-width:none;width:100vw;width:100dvw;height:100vh;height:100dvh;background:var(--paper);display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;padding:max(var(--gap),env(safe-area-inset-top)) max(var(--gap),env(safe-area-inset-right)) max(var(--gap),env(safe-area-inset-bottom)) max(var(--gap),env(safe-area-inset-left))}.playfield{display:contents}.landscape .playfield{container-type:size;display:grid;place-items:center;min-height:0}#viewer.landscape #stage{--top-crop:.1;aspect-ratio:2/1;width:min(100cqw,200cqh);max-height:none}@media (orientation:landscape) and (max-height:540px){.choices button{--size:clamp(26px,calc((100vw - 202px)/14),48px)}.choices{gap:clamp(2px,calc(3vw - 15px),4px)}.toolbar{column-gap:4px}#viewer:not(.landscape):not(.is-full):not(:fullscreen) .toolbar{position:relative;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 2 * max(var(--gap),env(safe-area-inset-left),env(safe-area-inset-right)));flex-flow:row nowrap;justify-content:center}}@media (orientation:landscape) and (any-pointer:coarse){#viewer:not(.landscape):not(.is-full):not(:fullscreen){max-width:min(100%,calc((100svh - 94px)*2))}#stage{--top-crop:.1;aspect-ratio:2/1;max-height:calc(100svh - 94px)}}.landscape .toolbar{flex-flow:row nowrap;justify-content:space-between;gap:4px;padding:4px 0 0}.landscape .choices{gap:clamp(2px,calc(3vmax - 15px),4px)}.landscape .choices button{--size:clamp(26px,calc((100vmax - 202px)/14),48px)}@media(orientation:portrait){#viewer:not(.landscape) .toolbar,#viewer:not(.landscape) .choices{flex-wrap:wrap}#viewer.landscape{width:100vh;width:100dvh;height:100vw;height:100dvw;transform-origin:0 0;transform:translateX(100vw) rotate(90deg);transform:translateX(100dvw) rotate(90deg);padding:max(var(--gap),env(safe-area-inset-right)) max(var(--gap),env(safe-area-inset-bottom)) max(var(--gap),env(safe-area-inset-left)) max(var(--gap),env(safe-area-inset-top))}}:root[data-theme=dark]{color-scheme:dark;--paper:#101722;--ink:#dfebf3;--focus:#b4d9fa;--edge:#526276;--hover:#293546;--mark:#425c75;--muted:#a0afbf;--cloth:#303e50;--control:rgba(18,29,43,.82)}#theme{position:absolute;z-index:2;top:max(9px,env(safe-area-inset-top));right:max(9px,env(safe-area-inset-right));background-color:var(--control);box-shadow:inset 0 0 0 1px var(--edge)}#theme svg{width:21px;height:21px;stroke-width:1.65}:root[data-theme=dark] #theme .moon,:root:not([data-theme=dark]) #theme .sun{display:none}:root[data-theme=dark] .coat{box-shadow:inset 0 0 0 1px #b8c9df48}@media(hover:hover){#theme:hover{background-color:var(--paper)}}#proportions-toggle[aria-expanded=true]{background:var(--hover)}#proportions-panel{position:absolute;z-index:3;bottom:calc(100% + 6px);right:0;width:264px;max-width:calc(100vw - 24px);padding:7px 9px;background:var(--paper);color:var(--ink);border:1px solid var(--edge);border-radius:16px;box-shadow:0 4px 18px #21170c24}.proportion-row{position:relative;display:grid;grid-template-columns:32px minmax(0,1fr) 32px;align-items:center;gap:3px}.proportion-row::after{content:"";position:absolute;left:50%;bottom:6px;width:2px;height:5px;transform:translateX(-50%);border-radius:1px;background:var(--muted);pointer-events:none}.proportion-row svg{width:32px;height:32px;fill:currentColor;pointer-events:none}#proportions-panel input{display:block;min-width:0;width:100%;height:42px;margin:0;accent-color:var(--focus);touch-action:none;cursor:pointer}#proportions-panel input:focus-visible{outline:2px solid var(--focus);outline-offset:1px;border-radius:4px}@media(min-width:526px){.tools{margin-inline-start:auto}}@media(max-width:525px) and (orientation:portrait){#viewer:not(.landscape) #proportions-panel{right:50%;transform:translateX(50%)}}