.kotobasagashi-page{--kb-ink:#443f50;--kb-mute:#716779;--kb-peach:#f8d7c7;--kb-lilac:#e8dff1;--kb-green:#dbead9;--ink:#443f50;--ink-soft:#51475a;--sub:#716779;--bg:#fcf8f2;--bg-2:#f1eee7;--card:#fffdf9;--line:#e8ddd6;--line-2:#e8ddd6;--primary:#8b5e88;--primary-d:#775173;--primary-soft:#eee4f5;background:#fcf8f2;color:var(--kb-ink);font-family:system-ui,-apple-system,"Yu Gothic",Meiryo,sans-serif}
.kotobasagashi-page .site-footer{background:#fffaf3}
.kotobasagashi-page *{box-sizing:border-box}.kotobasagashi-page [hidden]{display:none!important}.kotobasagashi-page .site-header{background:#fffaf3;border-bottom:1px solid #eee3d6}.kotobasagashi-page .logo{color:#443f50}.kotobasagashi-page .site-header nav a{color:#61536a}.kb-container{max-width:760px}.kb-hero{text-align:center;padding:22px 0 12px}.kb-hero .crumb{text-align:left}.kb-hero h1{font-size:34px;margin:5px 0}.kb-hero .tool-sub{color:#716779}.kb-eyebrow{font-size:11px;letter-spacing:.15em;color:#796677;font-weight:700}.kb-card{max-width:520px;margin:20px auto;border:1px solid #e8ddd6;border-radius:24px;background:#fffdf9;overflow:hidden;box-shadow:0 10px 36px #68492a0a}.kb-art{width:100%;height:auto;max-height:260px;object-fit:cover;display:block}.kb-intro-content{padding:18px 22px 22px}.kb-intro-content h2{font-size:23px;margin:8px 0}.kb-intro-content p{font-size:14px;line-height:1.8}.kb-field{display:flex;align-items:center;gap:16px;font-weight:700;margin:16px 0}.kb-field select{flex:1;min-width:0;min-height:44px;border:1px solid #d3c7d5;border-radius:12px;background:white;color:#443f50;padding:8px 12px;font:inherit}.kb-mode-row{display:flex;gap:9px}.kb-mode-row>*{flex:1}.kb-button{min-height:44px;border:1px solid #d8ccd9;border-radius:14px;padding:9px 14px;font:700 14px/1.3 system-ui,sans-serif;background:#f7f1fa;color:#443f50;cursor:pointer;touch-action:manipulation}.kb-button small{display:block;font-size:11px;font-weight:500;margin-top:2px}.kb-button:hover{background:#eee4f5}.kb-button:focus-visible,.kb-grid:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #8b5e88;outline-offset:3px}.kb-button:disabled{opacity:.55;cursor:default}.kb-primary{background:#f7d0bc;border-color:#dfad94}.kb-primary:hover{background:#efc0a8}.kb-daily{width:100%;margin-top:10px;background:#e4eddf;border-color:#c3d1bb}.kb-fine{font-size:12px!important;color:#716779}.kb-help{margin-top:12px;border-top:1px solid #eee5e0}.kb-help summary{min-height:44px;padding:13px 0;font-size:13px;cursor:pointer}.kb-notice{background:#fff0d6;padding:12px;border-radius:12px;font-size:13px}.kb-play{max-width:490px;margin:auto;background:#fcf8f2;padding:10px 14px}.kb-playing{overflow:hidden}.kb-playing .kb-play{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;justify-content:center;gap:7px;width:100%;max-width:490px;height:100dvh;overflow:hidden;padding-bottom:max(8px,env(safe-area-inset-bottom))}.kb-play-heading{display:flex;justify-content:space-between;align-items:center;font-size:14px;min-height:24px}.kb-play-heading>span{font-size:11px;background:#efe7f2;padding:4px 8px;border-radius:20px}.kb-meters{display:flex;align-items:center;justify-content:space-between;min-height:39px;background:#fff;border:1px solid #ede1d8;padding:5px 13px;border-radius:14px;font-size:11px}.kb-meters b{font-size:21px;margin-left:3px;font-variant-numeric:tabular-nums}.kb-meters small{font-size:11px;margin-left:2px}.kb-words{display:flex;flex-wrap:wrap;gap:5px;justify-content:center;align-content:center;min-height:54px}.kb-word{padding:4px 9px;border-radius:20px;border:1px solid #ded3e3;background:#fff;font-size:13px;white-space:nowrap}.kb-word.is-found{background:#e3efde;border-color:#b9cdb0;font-weight:700}.kb-board-wrap{position:relative;flex-shrink:0;width:min(100%,calc(100dvh - 272px));aspect-ratio:1;margin:0 auto;border:1px solid #e2d3cd;border-radius:16px;background:#fffdfa;box-shadow:0 5px 20px #714f3410;overflow:hidden}.kb-grid{width:100%;height:100%;display:grid;grid-template-columns:repeat(var(--size,8),1fr);grid-template-rows:repeat(var(--size,8),1fr);touch-action:none;user-select:none;-webkit-user-select:none;position:relative;outline-offset:-3px!important}.kb-cell{display:flex;align-items:center;justify-content:center;border-right:1px solid #eee6df;border-bottom:1px solid #eee6df;font:600 clamp(16px,4.4vw,24px)/1 system-ui,sans-serif;background:transparent;color:#443f50;position:relative;min-width:0;min-height:0;padding:0;cursor:crosshair;z-index:1}.kb-cell.is-selected{background:#f8d9b8;box-shadow:inset 0 0 0 2px #b98054}.kb-cell.is-cursor{outline:2px solid #785578;outline-offset:-3px}.kb-cell.is-hint:after{content:'✧';position:absolute;right:1px;top:0;color:#865526;font-size:14px}.kb-cell.is-found{font-weight:800}.kb-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0;overflow:visible}.kb-live{min-height:20px;margin:0;text-align:center;font-size:12px;line-height:20px;color:#675970;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kb-play-actions{display:flex;gap:8px;flex-shrink:0}.kb-play-actions>*{flex:1}.kb-play-actions .kb-button{display:flex;gap:8px;justify-content:center;align-items:center}.kb-play-actions .kb-button small{margin:0}.kb-sound-row{display:flex;align-items:center;gap:12px;min-height:44px;flex-shrink:0}.kb-sound-row>button{min-width:110px}.kb-sound-row label{display:flex;align-items:center;gap:8px;font-size:12px;flex:1}.kb-sound-row input{min-width:0;min-height:44px;width:100%;accent-color:#927295}.kb-paused{position:absolute;inset:0;background:#f6efeafc;z-index:8;display:grid;place-items:center;text-align:center;border-radius:16px}.kb-paused>div{padding:24px}.kb-paused span{font-size:70px;color:#9e84a6}.kb-paused h2{font-size:28px;margin:10px}.kb-paused p{font-size:14px}.kb-paused button{min-width:180px;margin-top:14px}.kb-result{padding:28px 24px;text-align:center}.kb-result h2{font-size:25px}.kb-result-score{font-size:48px;font-weight:800;color:#885c76;margin:12px}.kb-result p:not(.kb-result-score){font-size:14px}.kb-result .kb-mode-row{margin-top:20px}.kb-collection{max-width:520px;margin:24px auto;padding:20px;background:#f1eee7;border-radius:20px}.kb-section-heading{display:flex;align-items:center;justify-content:space-between}.kb-section-heading h2{font-size:18px;margin:0}.kb-section-heading span{font-size:13px}.kb-collection>p{font-size:12px;color:#716779}.kb-stamps{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}.kb-stamp{text-align:center;background:#fffaf4;border:1px dashed #cfc7bc;border-radius:10px;padding:7px 1px;color:#8a817a;font-size:9px}.kb-stamp b{display:block;font-size:22px;line-height:28px}.kb-stamp.is-earned{border:1px solid #a3b79c;background:#e6efdf;color:#42573e}.kb-guide{max-width:680px;margin:36px auto}.kb-guide p,.kb-guide dd{line-height:1.95;font-size:14px}.kb-guide h2{font-size:24px}.kb-guide h3{font-size:19px;margin-top:28px}.kb-guide dt{font-weight:700;margin-top:20px}.kb-guide dd{margin:8px 0 18px}.kb-playing .site-header,.kb-playing .site-footer{visibility:hidden}
@media(max-width:480px){.kb-container{padding:0 12px}.kb-hero h1{font-size:29px}.kb-intro-content{padding:16px}.kb-art{max-height:none}.kb-card{border-radius:20px}.kb-stamps{gap:5px}.kb-collection{padding:16px}.kb-word{font-size:12px;padding:4px 7px}.kb-playing .kb-play{gap:5px;padding:8px 12px}.kb-board-wrap{width:min(100%,calc(100dvh - 255px))}.kb-live{font-size:11px}.kb-cell{font-size:20px}}
@media(max-height:580px){.kb-playing .kb-play{gap:3px}.kb-board-wrap{width:min(100%,calc(100dvh - 240px))}.kb-words{min-height:45px}.kb-cell{font-size:16px}.kb-play-heading{min-height:20px}.kb-live{min-height:17px;line-height:17px}}
@media(prefers-reduced-motion:reduce){.kotobasagashi-page *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
