main{margin-top:18px}.game{--ink: #23201b;--yellow: #f7d54b;--font-game: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;position:relative;width:min(100vw,26.875rem);margin-left:calc(50% - min(50vw,13.4375rem));margin-top:calc(-1*max(16px,env(safe-area-inset-top,0px)));height:min(100svh,56rem);min-height:34rem;overflow:hidden;background:#efe6d8;color:var(--ink);user-select:none;-webkit-user-select:none;font-family:var(--font-game);font-variant-numeric:tabular-nums;-webkit-tap-highlight-color:transparent}@media(width>27rem){.game{margin-top:16px;height:min(calc(100svh - 3rem),52rem);border-radius:22px;box-shadow:0 18px 50px #0000002e}}.game[data-screen=play]{touch-action:none}.cv{position:absolute;inset:0;width:100%;height:100%;display:block}.s-pick,.s-play,.s-done{position:absolute;inset:0;display:none}.game[data-screen=pick] .s-pick,.game[data-screen=play] .s-play{display:block}.game[data-screen=done] .s-done{display:flex}.title,.sub,.dist,.best,.rtitle,.rdist,.rdiff,.rtext,.pbest,.how{text-shadow:0 0 6px rgb(255 252 245 / 95%),0 0 14px rgb(255 252 245 / 80%)}.yellow,.ghost{display:flex;align-items:center;justify-content:center;width:100%;min-height:58px;padding:10px 22px;border-radius:999px;font-family:var(--font-game);font-size:1.5rem;font-weight:900;text-decoration:none;cursor:pointer}.yellow{border:0;background:var(--yellow);color:var(--ink);box-shadow:0 5px #c9a21d}.ghost{min-height:46px;border:2px solid var(--ink);background:#fffcf5eb;color:var(--ink)!important;font-size:1.0625rem}.yellow:active,.ghost:active{transform:translateY(3px);box-shadow:none}.s-pick{text-align:center}.title{margin:calc(48px + env(safe-area-inset-top,0px)) 0 0;font-size:2.9rem;font-weight:900;line-height:1.1;letter-spacing:.02em}.sub{margin:8px 0 0;font-size:1.25rem;font-weight:900}.pickfoot{position:absolute;left:22px;right:22px;bottom:calc(14px + env(safe-area-inset-bottom,0px))}.namefield{display:flex;align-items:center;gap:8px;width:min(100%,16rem);margin:0 auto 10px;padding:4px 6px 4px 16px;border:2px solid var(--ink);border-radius:999px;background:#fffcf5}.namefield span{flex:none;font-size:.875rem;font-weight:900}.namefield input{flex:1;min-width:0;padding:6px 4px;border:0;background:transparent;color:var(--ink);font-family:var(--font-game);font-size:1.0625rem;font-weight:900;text-align:center;outline:none}.namefield:focus-within{box-shadow:0 0 0 3px var(--yellow)}.trait{margin:-4px 0 8px;font-size:.875rem;font-weight:700;line-height:1.45;text-shadow:0 0 6px rgb(255 252 245 / 95%),0 0 14px rgb(255 252 245 / 80%)}.records{position:absolute;inset:0;z-index:6;display:grid;place-items:center;padding:18px;background:#23201b73}.records[hidden]{display:none}.recbox{width:100%;max-width:22rem;max-height:100%;overflow:auto;padding:18px 16px 16px;border:3px solid var(--ink);border-radius:22px;background:#fffcf5;text-align:center}.rectitle{margin:0 0 10px;font-size:1.375rem;font-weight:900}.reclist{display:grid;gap:6px;margin:0 0 14px;padding:0;list-style:none;text-align:left}.reclist li{display:grid;grid-template-columns:22px 36px minmax(0,1fr) auto;align-items:center;gap:8px;padding:4px 10px;border-radius:12px;background:#fff}.reclist li.empty{display:block;padding:14px;text-align:center;font-weight:700}.reclist .rank{font-size:1rem;font-weight:900;text-align:center}.reclist li:first-child .rank{color:#c99a00}.reclist img{width:36px;height:36px;object-fit:contain}.reclist .who{display:grid;min-width:0;line-height:1.3}.reclist .who b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:900}.reclist .who small{font-size:.75rem;font-weight:700;color:#6b6153}.reclist .m{font-size:1.125rem;font-weight:900}.cats{display:flex;justify-content:center;gap:10px;margin:0 0 12px}.cats button{display:grid;justify-items:center;gap:2px;width:84px;padding:6px 4px;border:2px solid transparent;border-radius:16px;background:#fffcf5cc;color:var(--ink);font-family:var(--font-game);font-size:.875rem;font-weight:900;cursor:pointer}.cats button[aria-pressed=true]{border-color:var(--ink);background:var(--yellow)}.cats img{width:52px;height:auto}.bestbtn{display:flex;align-items:center;justify-content:space-between;gap:10px;width:min(100%,18rem);margin:0 auto 12px;padding:6px 6px 6px 16px;border:2px solid var(--ink);border-radius:999px;background:#fffcf5;color:var(--ink);font-family:var(--font-game);font-size:1rem;font-weight:900;cursor:pointer;box-shadow:0 3px #23201b40}.bestbtn b{font-size:1.2em}.bestbtn .go{display:inline-flex;align-items:center;gap:4px;padding:4px 12px;border-radius:999px;background:var(--yellow);font-size:.875rem}.bestbtn .go i{font-style:normal;font-size:1.1em}.bestbtn:active{transform:translateY(2px);box-shadow:none}.pbest{margin:0 0 12px;font-size:1.125rem;font-weight:900}.pbest b{font-size:1.3em}.how{margin:12px 0 0;font-size:.9375rem;font-weight:700}.hud{position:absolute;left:0;right:0;top:calc(16px + env(safe-area-inset-top,0px));text-align:center;pointer-events:none}.dist{margin:0;font-size:3.6rem;font-weight:900;line-height:1}.dist small{font-size:.6em}.best{margin:4px 0 0;font-size:1.0625rem;font-weight:900}.target{display:inline-block;margin:8px 0 0;padding:5px 16px;border-radius:999px;background:var(--yellow);font-size:1rem;font-weight:900}.target[hidden]{display:none}.pause{position:absolute;top:calc(16px + env(safe-area-inset-top,0px));left:14px;z-index:3;display:flex;align-items:center;justify-content:center;gap:5px;width:42px;height:42px;border:2px solid var(--ink);border-radius:12px;background:var(--yellow);cursor:pointer}.pause i{width:4px;height:14px;border-radius:1px;background:var(--ink)}.shout{position:absolute;left:50%;top:31%;z-index:2;margin:0;padding:8px 18px;border:2px solid var(--ink);border-radius:999px;background:#fffcf5;font-size:1.25rem;font-weight:900;white-space:nowrap;transform:translate(-50%);box-shadow:0 4px 12px #00000026}.shout[data-kind=best]{background:var(--yellow)}.shout[hidden]{display:none}.shout.pop{animation:shout .35s cubic-bezier(.2,1.6,.4,1)}@keyframes shout{0%{transform:translate(-50%) scale(.6);opacity:0}}.bubble{position:absolute;z-index:2;margin:0;padding:6px 12px;border:2px solid var(--ink);border-radius:16px;background:#fff;font-size:.9375rem;font-weight:900;white-space:nowrap;transform:translate(-100%,-100%);pointer-events:none}.bubble.right{transform:translateY(-100%)}.bubble[hidden]{display:none}.guide{position:absolute;left:16px;right:16px;bottom:calc(14px + env(safe-area-inset-bottom,0px));display:flex;justify-content:center;gap:28px;margin:0;padding:10px 0;border-radius:16px;background:#fffcf5d1;font-size:1.0625rem;font-weight:900;pointer-events:none}.guide[hidden]{display:none}.pausebox{position:absolute;inset:0;z-index:5;display:grid;align-content:center;gap:12px;padding:0 18%;background:#fffaf0d1;text-align:center}.pausebox p{margin:0 0 6px;font-size:1.5rem;font-weight:900}.pausebox[hidden]{display:none}.s-done{flex-direction:column;justify-content:space-between;padding:calc(26px + env(safe-area-inset-top,0px)) 22px calc(16px + env(safe-area-inset-bottom,0px));text-align:center}.rtitle{margin:0;font-size:2.6rem;font-weight:900;line-height:1.15}.newbest{display:inline-block;margin:10px 0 0;padding:5px 18px;border-radius:999px;background:var(--yellow);font-size:1.125rem;font-weight:900}.newbest[hidden]{display:none}.rdist{margin:4px 0 0;font-size:4rem;font-weight:900;line-height:1.05}.rdist small{font-size:.6em}.rdiff{margin:2px 0 0;font-size:1.0625rem;font-weight:900}.rtext{margin:0 0 14px;font-size:1.0625rem;font-weight:900;line-height:1.5}.s-done .ghost{margin-top:12px}.game[data-night] .dist,.game[data-night] .best{color:#fff6e0;text-shadow:0 0 6px rgb(20 24 40 / 90%),0 0 14px rgb(20 24 40 / 70%)}
