:root{color-scheme:light;--paper: #f4f0e6;--paper-deep: #e7e0cf;--surface: #fffdf7;--ink: #172522;--muted: #58635f;--forest: #1e4b42;--forest-dark: #143a33;--gold: #d9aa45;--gold-soft: #f4dfae;--coral: #b8553f;--line: #d9d3c4;--shadow: 0 22px 60px rgba(37, 48, 43, .12);--radius-lg: 24px;--radius-md: 14px;font-family:Hiragino Kaku Gothic ProN,Yu Gothic,Meiryo,sans-serif;background:var(--paper);color:var(--ink)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;background:var(--paper);line-height:1.75}button,textarea,select{font:inherit}button,summary,.dropzone{-webkit-tap-highlight-color:transparent}button:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible,.dropzone:focus-within{outline:3px solid rgba(184,85,63,.38);outline-offset:3px}.site-header,main,footer{width:min(1120px,calc(100% - 40px));margin-inline:auto}.site-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 0}.brand{display:inline-flex;align-items:center;gap:12px;color:inherit;text-decoration:none}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--forest);color:var(--gold-soft);font:800 22px/1 Georgia,serif;transform:rotate(-3deg)}.brand-symbol{background:transparent;overflow:hidden}.brand-symbol img{display:block;width:100%;height:100%}.brand b{display:block;font:800 15px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.12em}.brand small{display:block;margin-top:4px;color:var(--muted);font-size:14px}.local-badge{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border:1px solid #bdd2c8;border-radius:999px;color:var(--forest);background:#edf5ee;font-size:14px;font-weight:700}.local-badge span{color:#4d9a70;font-size:14px}.hero{padding:78px 0 48px}.eyebrow,.step-label{margin:0 0 10px;color:var(--coral);font:800 14px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.13em}.hero h1{max-width:920px;margin:0;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:clamp(42px,8vw,84px);line-height:1.12;letter-spacing:-.045em}.hero h1 span{color:var(--forest)}.hero-copy{max-width:720px;margin:28px 0 0;color:var(--muted);font-size:16px}.tool-shell{position:relative;padding:clamp(24px,5vw,50px);overflow:hidden;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow)}.tool-shell:before{content:"";position:absolute;top:-90px;right:-70px;width:250px;height:250px;border:34px solid rgba(217,170,69,.16);border-radius:50%;pointer-events:none}.tool-heading-row,.file-meta,footer{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}h2{margin:0;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:clamp(24px,4vw,36px);line-height:1.35}.text-button{padding:7px 0;border:0;border-bottom:1px solid currentColor;background:transparent;color:var(--forest);cursor:pointer;font-weight:700}#sourceText,#resultText{width:100%;border:1px solid #cbc4b3;border-radius:var(--radius-md);background:#fff;color:var(--ink);font-family:ui-monospace,SFMono-Regular,Consolas,BIZ UDPGothic,monospace;line-height:1.7;resize:vertical}#sourceText,#resultText{min-height:280px;padding:18px;font-size:15px}#sourceText::placeholder,#resultText::placeholder{color:#9a988f}#resultText{background:#f7f8f4}.repair-grid{display:grid;grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr);align-items:start;margin-top:28px}.editor-panel{min-width:0}.editor-heading{display:flex;align-items:baseline;gap:10px;margin-bottom:10px}.editor-heading span{padding:3px 7px;border-radius:5px;background:var(--paper-deep);color:var(--muted);font:800 14px ui-monospace,monospace}.editor-heading label{font-size:14px;font-weight:800}.flow-arrow{display:grid;place-items:center;min-height:280px;color:var(--coral);font:700 24px/1 Georgia,serif}.primary-actions{display:flex;align-items:center;gap:10px;margin-top:14px;flex-wrap:wrap}.primary-button,.secondary-button,.copy-button{border-radius:10px;cursor:pointer;font-weight:800;transition:transform .15s ease,background .15s ease,border-color .15s ease}.primary-button{display:inline-flex;align-items:center;justify-content:space-between;gap:36px;min-width:240px;padding:14px 18px;border:1px solid var(--forest);background:var(--forest);color:#fff}.primary-button:hover{background:var(--forest-dark);transform:translateY(-1px)}.primary-button:disabled{opacity:.45;cursor:not-allowed;transform:none}.primary-button.compact{min-width:210px;margin-top:16px}.secondary-button{padding:14px 18px;border:1px solid var(--line);background:transparent;color:var(--ink)}.secondary-button:hover{border-color:var(--ink)}.shortcut{margin:8px 0 0;color:var(--muted);font-size:14px}.status{min-height:1.75em;margin:0;color:var(--forest);font-size:14px;font-weight:700}.result-actions{display:flex;align-items:center;gap:14px;margin-top:14px}.copy-button{min-width:104px;padding:9px 14px;border:1px solid var(--forest);background:transparent;color:var(--forest)}.copy-button:hover,.copy-button.copied{background:var(--forest);color:#fff}.copy-button:disabled{opacity:.42;cursor:not-allowed;background:transparent;color:var(--forest)}.result-copy{min-height:48px}.alternatives{margin-top:14px;border-top:1px solid var(--line)}.alternatives summary{padding:14px 2px 8px;cursor:pointer;color:var(--muted);font-size:14px;font-weight:700}.alternate-list{display:flex;gap:8px;flex-wrap:wrap;padding:4px 0 2px}.alternate-button{padding:8px 11px;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--ink);cursor:pointer;font-size:14px;font-weight:700}.alternate-button:hover{border-color:var(--forest);color:var(--forest)}.trust-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin:28px 0 72px;border-block:1px solid var(--line)}.trust-strip article{position:relative;padding:28px}.trust-strip article+article{border-left:1px solid var(--line)}.trust-strip span{position:absolute;top:28px;right:28px;color:#a7a090;font:700 14px ui-monospace,monospace}.trust-strip h3{margin:0 0 8px;font-size:15px}.trust-strip p{margin:0;color:var(--muted);font-size:14px}.file-tool{margin:0 0 84px}.file-tool>details{border:1px solid var(--line);border-radius:var(--radius-lg);background:#ebe4d5;overflow:hidden}.file-tool summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:28px 32px;cursor:pointer;list-style:none}.file-tool summary::-webkit-details-marker{display:none}.file-tool summary span:first-child{display:flex;align-items:center;gap:18px}.file-tool summary small{padding:5px 8px;border-radius:6px;background:var(--forest);color:#fff;font:700 14px ui-monospace,monospace}.file-tool summary strong{font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:20px}.summary-action{color:var(--forest);font-size:14px;font-weight:800}.file-tool-body{padding:0 32px 32px}.section-intro{max-width:720px;margin:0 0 20px;color:var(--muted);font-size:14px}.dropzone{display:grid;place-items:center;min-height:180px;padding:25px;border:2px dashed #a8a18f;border-radius:var(--radius-md);background:#ffffff73;cursor:pointer;text-align:center}.dropzone.dragging{border-color:var(--coral);background:#fff7e8}.dropzone input{position:absolute;width:1px;height:1px;opacity:0}.drop-icon{font:300 34px/1 Georgia,serif;color:var(--coral)}.dropzone strong{margin-top:8px}.dropzone small{margin-top:4px;color:var(--muted)}.file-result{margin-top:22px;padding:22px;border-radius:var(--radius-md);background:var(--surface)}.file-meta{justify-content:flex-start}.file-meta>div{min-width:210px}.file-meta small,.preview-box small{display:block;color:var(--muted);font-size:11px}.file-meta strong{display:block;margin-top:4px;word-break:break-word}.encoding-settings{display:flex;align-items:end;gap:14px;margin-top:22px}.encoding-settings label{display:grid;gap:7px;flex:1;color:var(--muted);font-size:14px}.encoding-settings select{width:100%;padding:11px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink)}.preview-box{margin-top:20px;padding:14px;border:1px solid var(--line);border-radius:9px;background:#fff}.preview-box pre{max-height:180px;margin:7px 0 0;overflow:auto;white-space:pre-wrap;word-break:break-all;font:12px/1.65 ui-monospace,monospace}.warning{margin:12px 0 0;font-size:14px;font-weight:700}.warning.safe{color:#347155}.warning.danger{color:var(--coral)}.guide{display:grid;grid-template-columns:.85fr 1.4fr;gap:60px;margin-bottom:90px}.guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.guide-grid article{padding:24px;border-top:3px solid var(--forest);background:#ffffff6b}.guide-grid article+article{border-top-color:var(--coral)}.guide-kicker{margin:0 0 14px;font-size:14px;font-weight:800;letter-spacing:.08em}.guide-kicker.good{color:var(--forest)}.guide-kicker.bad{color:var(--coral)}.guide-grid h3{margin:0 0 10px;font-size:17px}.guide-grid article>p:last-child{margin:0;color:var(--muted);font-size:14px}.faq{max-width:820px;margin-bottom:90px}.faq h2{margin-bottom:24px}.faq details{border-top:1px solid var(--line)}.faq details:last-child{border-bottom:1px solid var(--line)}.faq summary{padding:18px 4px;cursor:pointer;font-weight:800}.faq details p{margin:-5px 0 20px;color:var(--muted);font-size:14px}footer{align-items:end;padding:28px 0 42px;border-top:1px solid var(--line)}footer b{font:800 14px ui-monospace,monospace;letter-spacing:.14em}footer p{margin:5px 0 0;color:var(--muted);font-size:14px}footer nav{display:flex;flex:none;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:22px;color:var(--muted);font-size:14px}footer nav a,footer nav span{white-space:nowrap}footer nav a{color:inherit;text-decoration:none}footer nav a:hover{color:var(--forest);text-decoration:underline}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:780px){main{width:min(100% - 28px,1120px)}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition-duration:.01ms!important}}.manager-grid.transcription-settings{grid-template-columns:minmax(0,2fr) minmax(140px,.7fr)}.manager-page{max-width:1000px;padding-block:30px}.manager-page h1{font-size:clamp(28px,5vw,40px);line-height:1.4}.manager-panel{background:#fffdf7;border:1px solid #d9d3c4;border-radius:16px;padding:24px;margin-block:20px}.manager-panel fieldset{border:0;padding:0;margin:0;min-width:0}.manager-panel label{display:grid;gap:8px;margin-bottom:16px;font-weight:700}.manager-panel input:not([type=checkbox]):not([type=range]),.manager-panel select,.manager-panel textarea{width:100%;min-width:0;padding:12px;border:1px solid #adbab4;border-radius:8px;font:inherit;background:#fff}.manager-panel button,.manager-download{padding:11px 18px;border:1px solid #adc0b4;border-radius:8px;background:#e9f0e9;color:#163e32;font:inherit;font-weight:700;cursor:pointer}.manager-panel button:disabled{opacity:.5;cursor:default}.manager-panel .manager-check{display:flex;align-items:center;gap:12px}.manager-check input{width:20px;height:20px}.manager-actions{display:flex;flex-wrap:wrap;gap:10px;margin-block:16px}.manager-drop{border:2px dashed #92ad9c;border-radius:12px;padding:24px;text-align:center}.inline-number{display:flex;align-items:center;gap:8px;max-width:150px}.manager-panel input[type=range]{width:100%;min-height:32px}.manager-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.garden-history{display:grid;gap:12px}.garden-record{padding:16px;background:#f2f5eb;border-radius:10px;border-left:5px solid #3b7550}.garden-record.is-warning{border-color:#b06b16;background:#fff4d9}.garden-record h3{margin:0}.garden-record p{margin:6px 0;overflow-wrap:anywhere}.garden-note{padding:12px;background:#f1eee0;border-radius:8px}.garden-note.is-warning{background:#fff0c8;color:#6b4100}summary{cursor:pointer;font-weight:700}.manager-download{display:inline-block}.manager-download[hidden]{display:none}@media(max-width:620px){.manager-grid{grid-template-columns:1fr}.manager-panel{padding:16px}.manager-page{padding-block:14px}}.date-fields{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px}.date-results{display:grid;gap:12px;margin-block:24px}.date-results>div{padding:18px;background:#edf3e8;border-radius:10px}.date-results dt{font-size:14px;color:#435f4c}.date-results dd{margin:6px 0 0;font-size:clamp(19px,4vw,26px);font-weight:800;overflow-wrap:anywhere}.date-fields>label{min-width:0}.calendar-modes{display:flex;gap:8px;margin-bottom:16px;grid-column:1/-1}.calendar-modes button{flex:1;padding-inline:8px;white-space:nowrap}.calendar-modes button[aria-pressed=true]{background:#173f36;color:#fff;border-color:#173f36}#zoneNote{display:block;font-size:14px;color:#53645d}.video-conversion-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px}.video-conversion-links a{text-align:center;text-decoration:none}.garden-guide{margin:22px 0 30px;padding:16px;border:1px solid #d9d3c4;border-radius:16px;background:#fffdf7;box-shadow:0 12px 30px #18362a1a}.garden-guide img{display:block;width:100%;height:auto;border-radius:10px}.garden-guide figcaption{margin-top:12px;color:#53675e;font-size:15px;font-weight:700;line-height:1.7}@media(max-width:620px){.manager-grid.transcription-settings{grid-template-columns:1fr}}@media(max-width:620px){.garden-page .manager-page{width:calc(100% - 8px)!important;padding-block:2px!important}.garden-page .manager-page>h1{margin:0 0 4px!important;font-size:18px!important;line-height:1.15!important}.garden-page .garden-guide{margin:4px 0 6px!important;padding:4px!important;border-radius:7px!important}.garden-page .garden-guide img{width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important}.garden-page .garden-guide figcaption{margin-top:3px!important;font-size:14px!important;line-height:1.3!important}.garden-page .manager-panel{margin-block:5px!important;padding:6px!important;border-radius:7px!important}.garden-page .manager-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important}.garden-page .manager-panel label{gap:2px!important;margin-bottom:4px!important;font-size:14px!important}.garden-page .manager-panel input:not([type=checkbox]):not([type=range]),.garden-page .manager-panel select,.garden-page .manager-panel textarea{min-height:29px!important;padding:3px 5px!important;border-radius:5px!important;font-size:14px!important}.garden-page .manager-panel textarea{min-height:42px!important}.garden-page .garden-note{margin:4px 0!important;padding:4px!important;border-radius:5px!important;font-size:14px!important;line-height:1.35!important}.garden-page #rotationAlternatives,.garden-page #gardenStatus{margin:3px 0!important;font-size:14px!important;line-height:1.35!important}.garden-page .manager-actions{gap:4px!important;margin-block:4px!important}.garden-page .manager-panel button,.garden-page .manager-download{min-height:29px!important;padding:3px 7px!important;font-size:14px!important}.garden-page .manager-panel h2{margin:0 0 4px!important;font-size:14px!important}.garden-page .garden-history{gap:4px!important}.garden-page .garden-record{padding:5px!important;border-left-width:3px!important;border-radius:5px!important}.garden-page .garden-record h3{font-size:14px!important}.garden-page .garden-record p{margin:2px 0!important;font-size:14px!important;line-height:1.35!important}.garden-page details.manager-panel>p{margin:4px 0!important;font-size:14px!important;line-height:1.4!important}}.pacific-clock{display:grid;gap:6px;padding:16px 20px;border:2px solid #1c6552;border-radius:12px;background:#e7f5ed;color:#174536;margin-bottom:18px}.pacific-clock small{font-weight:700}.pacific-clock strong{font-size:clamp(24px,5vw,36px);font-variant-numeric:tabular-nums}.conversion-arrow{text-align:center;font-size:32px;line-height:1.2;color:#22664d;margin:12px 0}@media(max-width:620px){.transcription-page .manager-page,.audio-volume-page .manager-page{width:calc(100% - 10px)!important;padding-block:2px!important}.transcription-page .manager-page>h1,.audio-volume-page .manager-page>h1{margin:0 0 4px;font-size:19px;line-height:1.15}.transcription-page .manager-panel,.audio-volume-page .manager-panel{margin-block:5px;padding:7px;border-radius:8px}.transcription-page .manager-drop,.audio-volume-page .manager-drop{min-height:58px;padding:7px;font-size:14px}.transcription-page .manager-drop small,.audio-volume-page .manager-drop small{font-size:14px}.transcription-page #transcriptionName,.audio-volume-page #volumeFileName{margin:3px 0;font-size:14px}.transcription-page .manager-grid.transcription-settings{grid-template-columns:minmax(0,1.7fr) minmax(84px,.6fr);gap:4px}.transcription-page .manager-panel label,.audio-volume-page .manager-panel label{gap:2px;margin-bottom:5px;font-size:14px}.transcription-page .manager-panel select,.transcription-page .manager-panel textarea,.audio-volume-page .manager-panel select,.audio-volume-page .manager-panel input:not([type=checkbox]):not([type=range]){min-height:29px;padding:4px 5px;font-size:14px}.transcription-page #transcriptionModelHelp,.transcription-page #transcriptionStatus,.audio-volume-page #gainInfo,.audio-volume-page #volumeStatus{margin:3px 0;font-size:14px;line-height:1.3}.transcription-page .manager-actions,.audio-volume-page .manager-actions{gap:3px;margin-block:4px}.transcription-page .manager-panel button,.audio-volume-page .manager-panel button,.audio-volume-page .manager-download{min-height:29px;padding:4px 7px;font-size:14px}.transcription-page #transcriptionText{height:150px;min-height:150px;padding:5px;font-size:14px;line-height:1.4}.transcription-page details.manager-panel,.audio-volume-page details.manager-panel{padding:6px}.transcription-page details.manager-panel>p,.audio-volume-page details.manager-panel>p{font-size:14px;line-height:1.4}.audio-volume-page .manager-page>p{display:none}.audio-volume-page #volumeSettings>label:first-child{margin-bottom:2px}.audio-volume-page #volumePresets{display:grid;grid-template-columns:repeat(5,1fr)}.audio-volume-page .inline-number{max-width:110px}.audio-volume-page .manager-check input{width:15px;height:15px}}.hanafuda-table.is-animating .hana-card{pointer-events:none}.captured-row.is-updated{animation:capturedGlow 1.35s ease-out}.field-cards .hana-card.is-hover-match{z-index:2;transform:translateY(-8px) scale(1.09);border-color:#fff06a;box-shadow:0 0 0 4px #ffcf3f,0 9px 18px #0009;filter:brightness(1.18)}@keyframes capturedGlow{0%,45%{background:#ffd95a9e;box-shadow:0 0 0 5px #ffd95ae6}to{background:transparent;box-shadow:0 0 0 0 transparent}}@media(prefers-reduced-motion:reduce){.captured-row.is-updated{animation:capturedGlow .8s ease-out}}.hanafuda-page main{max-width:1080px;margin:auto;padding:24px 16px}.hanafuda-page button,.hanafuda-page select{font:inherit}.hanafuda-app{--hana-play-height:650px;border:1px solid #b9ae94;border-radius:14px;overflow:hidden;background:#f9f4e7}.hanafuda-settings{display:flex!important;align-items:center;gap:8px!important;flex-wrap:wrap;width:100%;box-sizing:border-box;padding:14px 16px;color:#fff;background:#34241b}.hanafuda-settings label{display:grid;gap:4px}.hanafuda-settings select,.hanafuda-settings button{padding:8px 11px;border:1px solid #c3b9a8;border-radius:7px}.hanafuda-settings button{cursor:pointer}.hanafuda-settings .subtle{margin-left:auto;background:transparent;color:#fff}.hanafuda-page .hanafuda-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-left:auto;flex-wrap:wrap}.hanafuda-page .hanafuda-settings .hanafuda-actions button{width:auto!important;flex:0 0 auto;margin:0!important;white-space:nowrap;min-height:32px;padding:5px 10px}.hanafuda-stats{font-size:18px;font-weight:800;white-space:nowrap}.hanafuda-table{padding:14px;background:linear-gradient(145deg,#17643b,#0d4d2e);color:#fff;min-height:var(--hana-play-height)}.hanafuda-side{padding:8px 10px;border-radius:10px;background:#ffffff0d}.player-line{display:flex;align-items:center;gap:12px;min-height:30px}.player-line span:nth-child(2){flex:1}.table-center{position:relative;margin:14px 0}.table-center>p{margin:0 0 10px;text-align:center;font-size:18px;font-weight:800;min-height:28px}.field-cards{display:grid;grid-template-columns:repeat(8,minmax(45px,72px));justify-content:center;gap:7px;min-height:238px;align-content:center}.hand-cards,.captured-row{display:flex;align-items:flex-end;gap:4px;min-height:88px;overflow-x:auto;padding:6px 2px}.captured-row .hana-card{width:38px}.hand-cards{justify-content:center;min-height:126px}.hana-card{flex:0 0 auto;width:clamp(48px,7.2vw,72px);padding:0;border:2px solid transparent;border-radius:5px;background:#2b1711;overflow:hidden;cursor:pointer;box-shadow:0 2px 5px #0007;transition:transform .12s,border-color .12s}.hana-card img{display:block;width:100%;aspect-ratio:976/1600;object-fit:cover}.hana-card:disabled{opacity:1;cursor:default}.hand-cards .hana-card:not(:disabled):hover,.hana-card.is-choice{transform:translateY(-7px);border-color:#ffd95a}.field-cards .hana-card.is-choice{animation:choicePulse 1.2s infinite alternate}.koi-panel{position:absolute;z-index:4;left:50%;top:50%;transform:translate(-50%,-50%);width:min(420px,calc(100% - 24px));padding:22px;text-align:center;border:3px solid #d5ad40;border-radius:14px;background:#fff9e8;color:#2c2115;box-shadow:0 15px 45px #0009}.koi-panel strong,.koi-panel span{display:block;margin-bottom:10px}.koi-panel strong{font-size:21px}.koi-panel button{min-width:120px;margin:4px;padding:10px 16px;border:0;border-radius:8px;color:#fff;background:#9e3027;font-weight:800;cursor:pointer}.koi-panel button+button{background:#17643b}.game-information,.source-details{margin-top:26px}.yaku-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}.yaku-grid p{margin:0;padding:13px;border:1px solid #ddd4c3;border-radius:8px;background:#fff}.rule-note{font-size:15px;color:#514c43}@keyframes choicePulse{to{box-shadow:0 0 0 3px #ffd95a}}@media(max-width:620px){.hanafuda-page main{padding:18px 6px}.hanafuda-page .hanafuda-settings{gap:4px!important;padding:10px}.hanafuda-page .hanafuda-settings .subtle{margin:0!important}.hanafuda-page .hanafuda-actions{gap:4px}.hanafuda-page .hanafuda-settings .hanafuda-actions button{min-height:27px;padding:3px 6px;font-size:14px}.hanafuda-page .hanafuda-stats{align-self:center;font-size:14px!important;text-align:center}.hanafuda-app{--hana-play-height:550px}.hanafuda-table{padding:8px}.field-cards{grid-template-columns:repeat(8,minmax(34px,1fr));gap:3px;min-height:185px}.hana-card{width:47px}.hand-cards{justify-content:flex-start;min-height:96px}.captured-row{min-height:67px}.captured-row .hana-card{width:30px}.table-center>p{font-size:16px}}.hanafuda-round-result{position:absolute;z-index:20;left:50%;top:50%;width:min(720px,calc(100% - 32px));max-height:calc(100% - 24px);padding:28px 32px;overflow:auto;transform:translate(-50%,-50%);border:4px solid #f0ca55;border-radius:18px;background:#fffaf0;color:#2c2115;box-shadow:0 28px 90px #000d,0 0 0 9999px #09271d99;animation:roundResultIn .3s ease-out}.hanafuda-round-result[hidden]{display:none}.hanafuda-round-result>strong{display:block;margin-bottom:18px;text-align:center;color:#8e241f;font-size:clamp(30px,4vw,42px);line-height:1.2}.hanafuda-round-result section{display:grid;grid-template-columns:170px minmax(0,1fr);align-items:center;gap:16px;padding:13px 0;border-top:2px solid #ddcfb5}.hanafuda-round-result section>b{font-size:clamp(20px,2.4vw,28px);text-align:center}.round-result-cards{display:flex;justify-content:center;gap:7px;min-width:0}.round-result-cards .hana-card{width:64px;cursor:default}@keyframes roundResultIn{0%{opacity:0;transform:translate(-50%,-44%) scale(.9)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}.yaku-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.yaku-card{padding:12px;border:1px solid #ddd4c3;border-radius:9px;background:#fff}.yaku-card h3{margin:0 0 8px;font-size:17px}.yaku-card h3 span{float:right;color:#9e3027}.yaku-card p{margin:8px 0 0;padding:0;border:0;background:transparent;color:#514c43;font-size:14px}.yaku-cards{display:flex;align-items:flex-end;gap:3px;min-height:78px}.yaku-cards img{width:43px;max-width:calc((100% - 16px)/5);border:1px solid #aa9e88;border-radius:3px;background:#fff}.hanafuda-match-score{display:flex;justify-content:center;gap:28px;padding:8px 12px;background:#f1dfae;color:#3e2b19;font-size:15px}.hanafuda-field-area{position:relative;padding-inline:122px 62px}.hanafuda-deck{position:absolute;z-index:2;left:0;top:50%;width:48px;aspect-ratio:976/1600;transform:translateY(-50%);border-radius:5px;background:#234333;color:#fff;box-shadow:-3px 3px #6d4f29,-6px 6px #ba8b45,0 8px 16px #0007}.hanafuda-deck img{display:block;width:100%;height:100%;border-radius:5px;object-fit:cover}.hanafuda-deck b{position:absolute;right:-8px;bottom:-8px;display:grid;min-width:25px;height:25px;padding:0 4px;place-items:center;border-radius:999px;background:#fff;color:#173f35;font-size:14px}.hanafuda-deck span{position:absolute;inset:0;display:grid;place-items:center;font-size:14px;text-align:center}.hanafuda-revealed{position:absolute;z-index:3;left:62px;top:50%;width:48px;min-height:79px;transform:translateY(-50%)}.hanafuda-revealed .hana-card{width:100%;outline:3px solid #ffe36e;outline-offset:1px}.hanafuda-next-round{display:block;margin:12px 0 0 auto;padding:10px 20px;border:2px solid #f3d274;border-radius:8px;background:#fff4c7;color:#3b2817;font-weight:900;cursor:pointer}.hanafuda-next-round[hidden]{display:none}@media(max-width:620px){.hanafuda-match-score{gap:13px;padding:6px;font-size:14px}.hanafuda-field-area{padding-inline:82px 0}.hanafuda-deck{width:34px}.hanafuda-revealed{left:42px;width:34px;min-height:56px}.hanafuda-next-round{margin-top:8px;padding:8px 14px}}@media(max-width:620px){.yaku-grid{grid-template-columns:1fr 1fr;gap:5px}.yaku-card{padding:7px}.yaku-card h3,.yaku-card p{font-size:14px}.yaku-cards{min-height:56px}.yaku-cards img{width:31px}}.field-cards{grid-template-columns:repeat(4,minmax(45px,72px))}.hanafuda-table{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,340px);grid-template-rows:auto minmax(250px,1fr) auto;gap:8px;min-height:var(--hana-play-height)}.hanafuda-side.opponent{grid-column:2;grid-row:1/3;align-self:start}.table-center{grid-column:1;grid-row:1/3;align-self:center;margin:0}.hanafuda-side.human{display:grid;grid-column:1/3;grid-row:3;grid-template-columns:minmax(0,1fr) minmax(300px,340px);grid-template-areas:"line captured" "hand captured";gap:3px 8px}.hanafuda-side.human .player-line{grid-area:line}.hanafuda-side.human .hand-cards{grid-area:hand}.hanafuda-side.human .captured-row{grid-area:captured}.hanafuda-next-round{grid-column:2;grid-row:4}.captured-row{display:grid;grid-template-rows:repeat(4,auto);align-content:start;gap:4px;min-height:0;overflow:visible;padding:4px 2px}.captured-group{display:grid;grid-template-columns:minmax(0,1fr) 24px;align-items:center;min-width:0;padding:3px;border-radius:6px;background:#082f2099}.captured-count{display:grid;width:22px;height:22px;place-items:center;justify-self:end;border-radius:50%;background:#ffffff24;color:#fff4c7;font-size:14px}.captured-group-cards{display:flex;min-width:0;min-height:68px;align-items:flex-end;gap:2px;overflow:hidden}.captured-group .hana-card{width:42px;margin:0}.captured-group.is-crowded .hana-card{margin-right:-14px}.captured-group.is-crowded .hana-card:last-child{margin-right:0}.captured-group.is-packed .hana-card{margin-right:-31px}.captured-group.is-packed .hana-card:last-child{margin-right:0}.hanafuda-dealer{display:grid;min-height:var(--hana-play-height);box-sizing:border-box;align-content:center;padding:26px 14px 32px;text-align:center;background:linear-gradient(145deg,#17643b,#0d4d2e);color:#fff}.hanafuda-dealer[hidden],.hanafuda-table[hidden]{display:none}.hanafuda-dealer>strong{font-size:22px}.hanafuda-dealer>p{min-height:26px;margin:7px 0 18px;font-weight:800}.dealer-cards{display:flex;align-items:center;justify-content:center;gap:8px;min-height:118px}.dealer-cards .hana-card{position:relative;width:64px;overflow:visible;transition:transform .15s}.dealer-cards .hana-card:hover{transform:translateY(-9px);border-color:#ffd95a}.dealer-cards.is-resolving .hana-card:not(.is-revealed){filter:brightness(.72)}.dealer-cards .dealer-choice.is-revealed{z-index:2;border-color:#ffe36e;box-shadow:0 0 0 3px #ffe36e,0 8px 18px #0008}.dealer-choice.is-revealed:after{content:attr(data-owner);position:absolute;left:50%;bottom:-24px;min-width:48px;padding:2px 5px;transform:translate(-50%);border-radius:999px;background:#fff4c7;color:#3b2817;font-size:14px;font-weight:900;white-space:nowrap}.dealer-result{display:flex;justify-content:center;gap:34px;min-height:118px}.dealer-result>div{display:grid;gap:5px}.dealer-result .hana-card{width:64px}@media(max-width:620px){.hanafuda-table{grid-template-columns:minmax(0,50%) minmax(0,50%);grid-template-rows:auto minmax(220px,1fr) auto;gap:3px;min-height:var(--hana-play-height);padding:5px}.hanafuda-side{padding:3px}.hanafuda-side.opponent{grid-column:2;grid-row:1/3}.table-center{grid-column:1;grid-row:1/3}.hanafuda-side.human{grid-template-columns:minmax(0,50%) minmax(0,50%);gap:2px;padding:3px}.player-line{gap:5px;min-height:22px;font-size:14px}.hanafuda-side.human .player-line{align-self:end}.field-cards{grid-template-columns:repeat(4,minmax(29px,1fr));gap:3px;min-height:190px}.hanafuda-field-area{padding-inline:42px 0}.hanafuda-deck{left:2px}.hand-cards{min-height:80px;padding:2px 0}.hand-cards .hana-card{width:39px;margin-right:-16px}.hand-cards .hana-card:last-child{margin-right:0}.captured-row{gap:2px;padding:1px}.captured-group{grid-template-columns:minmax(0,1fr) 18px;padding:2px}.captured-count{width:17px;height:17px;font-size:14px}.captured-group-cards{min-height:51px;gap:1px;overflow:hidden}.captured-group .hana-card{width:32px;margin-right:0}.captured-group.is-compact .hana-card{margin-right:-6px}.captured-group.is-crowded .hana-card{margin-right:-14px}.captured-group.is-packed .hana-card{margin-right:-26px}.captured-group .hana-card:last-child{margin-right:0}.captured-bright .hana-card{width:25px;margin-right:1px}.captured-bright .hana-card:last-child{margin-right:0}.hanafuda-dealer{padding:18px 5px 24px}.hanafuda-dealer>strong{font-size:18px}.dealer-cards{display:grid;grid-template-columns:repeat(4,43px);align-items:center;align-content:center;justify-content:center;gap:5px;min-height:145px}.dealer-cards .hana-card,.dealer-result .hana-card{width:43px}.dealer-result{min-height:88px}.hanafuda-round-result{width:calc(100% - 12px);padding:18px 12px}.hanafuda-round-result>strong{margin-bottom:12px;font-size:26px}.hanafuda-round-result section{grid-template-columns:100px minmax(0,1fr);gap:8px;padding:9px 0}.hanafuda-round-result section>b{font-size:18px}.round-result-cards{gap:3px}.round-result-cards .hana-card{width:42px}}.hanafuda-table,.hanafuda-dealer{height:var(--hana-play-height);box-sizing:border-box}.hanafuda-table{overflow:hidden;grid-template-rows:auto minmax(0,1fr) auto}.hanafuda-side.human .hand-cards{position:relative;z-index:5;overflow:visible}.captured-row{position:relative;z-index:1}.captured-row.is-inspecting{z-index:8;background:#123e2e;box-shadow:0 0 0 4px #e7c66c}.ai-hand{min-height:60px;padding:2px;justify-content:center;overflow:visible}.ai-hand .hana-card{width:30px;margin-right:-8px}@media(max-width:620px){.ai-hand{min-height:40px}.ai-hand .hana-card{width:22px;margin-right:-7px}.hanafuda-side.human{position:relative}.hanafuda-side.human .hand-cards{width:calc(200% + 2px);align-self:end;justify-content:space-between;gap:1px;background:#124c35}.hand-cards .hana-card{width:calc((100% - 7px)/8);max-width:43px;margin-right:0}.hanafuda-table{grid-template-rows:auto minmax(0,1fr) auto}.hanafuda-side.human .captured-row{padding-bottom:1px}.captured-row.is-inspecting{z-index:8}.field-cards .hana-card{width:100%;min-width:0}}.hanafuda-app{--hana-play-height:970px}.hanafuda-table{grid-template-columns:minmax(0,1fr) minmax(290px,340px);grid-template-rows:110px minmax(0,1fr) 140px;gap:12px}.hanafuda-side.opponent,.hanafuda-side.human{display:block;grid-column:1/-1;padding:0;background:transparent;min-width:0}.hanafuda-side.opponent{grid-row:1}.hanafuda-side.human{grid-row:3}.hanafuda-side .player-line{justify-content:center}.hanafuda-side .hand-cards{width:100%;justify-content:center;gap:5px;min-height:0;overflow:visible}.ai-hand .hana-card{width:48px;margin:0}.human .hand-cards .hana-card{width:64px;margin:0}.table-center{grid-column:1;grid-row:2;align-self:end;width:100%;padding-bottom:32px}.hanafuda-field-area{padding:0 0 0 62px}.field-cards{grid-template-columns:repeat(4,minmax(0,72px));grid-auto-rows:118px;gap:7px;height:493px;min-height:0;align-content:start;align-items:start;overflow-y:auto}.hana-field-slot{display:block;height:118px}.field-cards .hana-card{width:100%;transform:none}.hanafuda-revealed{left:0;top:calc(50% + 100px)}.hanafuda-deck{top:calc(50% - 10px)}.hanafuda-captures{grid-column:2;grid-row:2;display:grid;grid-template-rows:1fr 1fr;gap:16px;min-height:0}.capture-owner{min-height:0;overflow:hidden;border:1px solid #ffffff35;border-radius:8px;padding:4px}.capture-owner .player-line{font-size:14px;gap:6px;min-height:20px}.capture-owner .player-line span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.captured-group-cards{min-height:68px}.hanafuda-next-round{position:absolute;z-index:30;right:12px;bottom:12px;margin:0;opacity:1}.hanafuda-round-result{padding-top:54px;box-shadow:0 20px 60px #000b}.round-result-close{position:absolute;right:10px;top:10px;padding:6px 12px;border:1px solid #9c8d75;border-radius:6px;background:#fff;color:#302515;cursor:pointer}.hanafuda-round-result section{grid-template-columns:minmax(0,1fr);gap:9px}.round-result-cards{flex-wrap:wrap;gap:7px}.round-result-cards .hana-card{width:64px;max-width:calc((100% - 28px)/5)}@media(max-width:620px){.hanafuda-app{--hana-play-height:630px}.hanafuda-table{grid-template-columns:minmax(0,1fr) minmax(132px,40%);grid-template-rows:60px minmax(0,1fr) 88px;gap:5px;padding:5px}.hanafuda-side.opponent,.hanafuda-side.human{grid-column:1/-1}.hanafuda-side .player-line{min-height:15px;font-size:14px}.hanafuda-side .hand-cards{gap:2px;justify-content:center;min-height:0;background:transparent}.ai-hand .hana-card{width:27px;margin:0}.human .hand-cards .hana-card{width:calc((100% - 14px)/8);max-width:43px;margin:0}.table-center{grid-column:1;grid-row:2;padding-bottom:22px}.table-center>p{font-size:14px;line-height:1.3;margin:0 0 6px}.hanafuda-field-area{padding-left:31px}.field-cards{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:68px;gap:3px;height:281px;min-height:0}.hana-field-slot{height:68px}.hanafuda-deck,.hanafuda-revealed{width:26px;left:0}.hanafuda-revealed{top:calc(50% + 64px)}.hanafuda-captures{gap:8px}.capture-owner{padding:2px}.capture-owner .player-line{font-size:14px;min-height:17px;gap:3px}.captured-row{gap:2px;padding:0}.captured-group{padding:1px;grid-template-columns:minmax(0,1fr) 15px}.captured-count{width:14px;height:14px}.captured-group-cards{min-height:46px}.captured-group .hana-card{width:28px}.captured-bright .hana-card{width:21px;margin-right:0}.captured-group.is-packed .hana-card{margin-right:-23px}.captured-group .hana-card:last-child{margin-right:0}.hanafuda-next-round{right:6px;bottom:4px;padding:5px 9px;font-size:14px}.hanafuda-round-result{padding:42px 10px 12px}.hanafuda-round-result section{grid-template-columns:minmax(0,1fr);gap:6px}.round-result-cards .hana-card{width:42px}}.hanafuda-side.human .hand-cards{width:100%;justify-content:center;gap:5px}@media(max-width:620px){.hanafuda-side.human .hand-cards{width:100%;gap:2px;background:transparent}}.hanafuda-app{--hana-play-height:840px}.hanafuda-table{grid-template-columns:minmax(0,1fr) minmax(300px,35%);grid-template-rows:110px minmax(0,1fr) 170px;gap:10px}.hanafuda-side.opponent,.hanafuda-side.human{grid-column:1;min-width:0}.hanafuda-side .player-line{justify-content:flex-start}.hanafuda-side .hand-cards,.hanafuda-side.human .hand-cards{justify-content:flex-start;gap:4px}.ai-hand .hana-card{width:52px}.human .hand-cards .hana-card{width:calc((100% - 28px)/8);max-width:76px}.hanafuda-captures{grid-column:2;grid-row:1/4;gap:10px;min-width:0}.capture-owner{overflow:visible;min-height:0}.captured-group-cards{overflow:visible}.table-center{align-self:end;padding-bottom:0}.hanafuda-field-area{padding-left:62px}.field-cards{grid-template-columns:repeat(4,minmax(0,90px));grid-auto-rows:148px;height:458px;min-height:0;gap:7px;justify-content:start;align-content:start}.hana-field-slot{height:148px}.hanafuda-deck{top:38%}.hanafuda-revealed{top:62%}@media(max-width:620px){.hanafuda-app{--hana-play-height:570px}.hanafuda-table{grid-template-columns:minmax(0,57fr) minmax(0,43fr);grid-template-rows:63px minmax(0,1fr) 85px;gap:4px}.hanafuda-side.opponent,.hanafuda-side.human{grid-column:1}.hanafuda-captures{grid-column:2;grid-row:1/4;gap:8px}.hanafuda-side .hand-cards,.hanafuda-side.human .hand-cards{width:100%;gap:0;justify-content:flex-start}.ai-hand .hana-card{width:29px;margin-right:-7px}.human .hand-cards .hana-card{width:min(34px,calc((100% + 77px)/8));max-width:34px;flex-shrink:0;margin-right:-11px}.hand-cards .hana-card:last-child{margin-right:0}.hanafuda-field-area{padding-left:29px}.field-cards{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:72px;height:222px;gap:3px}.hana-field-slot{height:72px}.captured-group-cards{min-height:51px;overflow:hidden}.captured-group .hana-card{width:31px}.captured-bright .hana-card{width:22px}.captured-group.is-crowded .hana-card{margin-right:-15px}.captured-group.is-packed .hana-card{margin-right:-25px}.captured-group .hana-card:last-child{margin-right:0}.hanafuda-next-round{bottom:5px;right:5px}}.captured-group-cards{--captured-card-width:42px;display:grid;grid-template-columns:repeat(var(--overlap-columns),minmax(0,1fr)) var(--captured-card-width);width:min(100%,calc(var(--card-count)*var(--captured-card-width) + (var(--card-count) - 1)*2px));overflow:visible;gap:0}.captured-group-cards:has(.hana-card:only-child),.captured-group-cards:empty{display:flex}.captured-group .hana-card{margin-right:0!important;width:var(--captured-card-width)}@media(max-width:620px){.captured-group-cards{--captured-card-width:31px}.captured-bright .captured-group-cards{--captured-card-width:22px}}.hanafuda-field-area{padding-left:108px}.field-cards{padding:20px 10px 8px;box-sizing:border-box;height:486px}.hanafuda-deck,.hanafuda-revealed{left:10px;width:64px}.hanafuda-revealed{min-height:105px}.ai-hand-placeholder{display:block;flex-shrink:0;visibility:hidden;aspect-ratio:976/1600}.hanafuda-round-result{padding:18px 24px 54px}.round-result-close{top:auto;bottom:10px;right:10px;border:2px solid #f3d274;background:#fff4c7;color:#3b2817;font-weight:900}@media(max-width:620px){.hanafuda-field-area{padding-left:39px}.field-cards{padding:17px 6px 6px;height:245px}.hanafuda-deck,.hanafuda-revealed{left:2px;width:30px}.hanafuda-revealed{min-height:49px}.hanafuda-round-result{padding:14px 10px 46px}}.hanafuda-month-table{width:100%;margin:14px 0 28px;border-collapse:collapse;background:#fffdf7;color:#243f30;text-align:center}.hanafuda-month-table th,.hanafuda-month-table td{padding:8px 4px;border:1px solid #ddd3bb}.hanafuda-month-table thead{background:#e5ecdf}.hanafuda-month-table img{display:block;width:64px;height:96px;max-width:100%;margin:auto;object-fit:contain}.hanafuda-month-table tbody th{white-space:nowrap}.hanafuda-month-table td:nth-child(2){white-space:nowrap}@media(max-width:620px){.hanafuda-month-table{table-layout:fixed;margin:10px 0 18px;font-size:14px}.hanafuda-month-table th,.hanafuda-month-table td{padding:5px 2px}.hanafuda-month-table img{width:100%;height:auto;aspect-ratio:2/3}.hanafuda-month-table tr>th:first-child{width:39px}.hanafuda-month-table td:nth-child(2){width:36px}}.hanafuda-dealer-girl-portrait{display:block;width:188px;height:272px;max-width:100%;object-fit:contain;place-self:center;margin:0 auto 8px}.capture-owner{position:relative;overflow:visible}.hanafuda-capture-layout{display:block;position:static;min-width:0}.hanafuda-capture-layout>.hanafuda-girl-portrait{position:absolute;right:calc(100% + 4px);top:-14px;width:172px;height:310px;object-fit:contain;object-position:top center;pointer-events:none}.hanafuda-capture-layout>#aiCaptured{width:100%;min-width:0}@media(max-width:620px){.hanafuda-dealer-girl-portrait{width:136px;height:208px}.hanafuda-capture-layout>.hanafuda-girl-portrait{right:calc(100% + 3px);top:-5px;width:84px;height:198px}}.hanafuda-decision-cutin{position:absolute;inset:0;z-index:50;display:grid;place-items:center;overflow:hidden;pointer-events:none;background:transparent}.hanafuda-decision-cutin[hidden]{display:none}.hanafuda-decision-cutin img{display:block;width:min(78%,560px);max-width:100%;max-height:78%;object-fit:contain;filter:drop-shadow(0 14px 30px #000b);opacity:0;transform:scale(.78) rotate(-2deg)}.hanafuda-decision-cutin.is-active img{animation:hanafuda-decision-cutin-in .28s cubic-bezier(.18,.78,.24,1) both}.hanafuda-decision-cutin.is-exiting img{animation:hanafuda-decision-cutin-out .16s ease-in both}@keyframes hanafuda-decision-cutin-in{0%{opacity:0;transform:scale(.78) rotate(-2deg)}68%{opacity:1;transform:scale(1.04) rotate(.5deg)}to{opacity:1;transform:scale(1) rotate(0)}}@keyframes hanafuda-decision-cutin-out{to{opacity:0;transform:scale(1.04) translateY(-8px)}}@media(max-width:620px){.hanafuda-decision-cutin img{width:min(92%,380px);max-height:74%}}.table-center>p.is-hand-prompt{position:relative;top:6px}@media(max-width:620px){.hanafuda-page .hanafuda-settings label{min-width:0;gap:3px;font-size:14px}.hanafuda-page .hanafuda-settings select{width:100%;min-width:0;min-height:34px;padding:5px 20px 5px 6px;font-size:14px}.hanafuda-page .hanafuda-settings button{min-width:0;min-height:34px;padding:5px 7px;font-size:14px}}@media(max-width:620px){.hanafuda-captures .captured-bright .captured-group-cards{--captured-card-width:31px}}.hanafuda-page .hanafuda-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-left:auto;flex-wrap:nowrap;min-width:0}.hanafuda-page .hanafuda-actions .hanafuda-stats{margin:0;white-space:nowrap}.hanafuda-page .hanafuda-actions .subtle{margin:0!important}.hanafuda-page .hanafuda-actions button{flex:0 0 auto;min-width:0;min-height:32px;padding:5px 8px;font-size:14px;line-height:1.2;white-space:nowrap}@media(max-width:620px){.hanafuda-page .hanafuda-settings{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:8px!important}.hanafuda-page .hanafuda-settings>label{width:100%;min-width:0}.hanafuda-page .hanafuda-settings>.hanafuda-actions{grid-column:1/-1;display:flex;width:100%;min-width:0;align-items:center;justify-content:space-between;gap:6px;margin:0;flex-wrap:nowrap}.hanafuda-page .hanafuda-actions .hanafuda-stats{flex:0 1 auto;margin-right:auto;font-size:14px!important;text-align:left}.hanafuda-page .hanafuda-actions button{height:32px;min-height:32px;padding:4px 7px;font-size:14px}}.hanafuda-bottom-controls{position:absolute;right:12px;bottom:12px;z-index:32;display:flex;align-items:center;gap:8px}#hanafudaDealer:not([hidden])~.hanafuda-bottom-controls .hanafuda-bgm-controls{display:none}.hanafuda-bgm-controls{display:flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:#1b1f1eeb;color:#fff;box-shadow:0 2px 10px #0003}.hanafuda-bgm-toggle{display:inline-grid;place-items:center;flex:0 0 28px;width:28px;height:28px;padding:3px;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer}.hanafuda-bgm-toggle:hover{background:#ffffff24}.hanafuda-bgm-toggle:focus-visible,.hanafuda-bgm-volume:focus-visible,.hanafuda-rules-toggle:focus-visible,.hanafuda-rules-panel button:focus-visible{outline:2px solid #f3d58b;outline-offset:3px}.hanafuda-bgm-toggle svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.hanafuda-bgm-volume{width:94px;margin:0;accent-color:#f3d58b;cursor:pointer}.hanafuda-rules-toggle{min-height:42px;padding:7px 12px;border:1px solid #e8d28a;border-radius:9px;background:#34241b;color:#fff;font-weight:800;white-space:nowrap;cursor:pointer;box-shadow:0 2px 10px #0003}.hanafuda-rules-toggle:hover{background:#4a3426}.hanafuda-rules-panel{position:absolute;right:0;bottom:calc(100% + 8px);z-index:34;width:min(360px,calc(100vw - 28px));max-height:min(68vh,560px);overflow:auto;padding:14px;box-sizing:border-box;border:2px solid #d5b96a;border-radius:12px;background:#fffaf0;color:#2c2115;box-shadow:0 12px 36px #0008}.hanafuda-rules-panel[hidden]{display:none}.hanafuda-rules-panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;padding-bottom:9px;border-bottom:1px solid #d8c9a9}.hanafuda-rules-panel-header strong{font-size:18px}.hanafuda-rules-panel button{border:1px solid #a99b7e;border-radius:7px;background:#fff;color:#302515;padding:5px 9px;font-weight:700;cursor:pointer}.hanafuda-rule-setting{display:flex;align-items:flex-start;gap:9px;padding:9px 2px;border-bottom:1px solid #e7dcc7;cursor:pointer}.hanafuda-rule-setting>input{flex:0 0 auto;width:17px;height:17px;margin:2px 0 0;accent-color:#17643b}.hanafuda-rule-setting>span{display:grid;gap:3px;min-width:0}.hanafuda-rule-setting b{font-size:14px;line-height:1.35}.hanafuda-rule-setting small{font-size:14px;line-height:1.45;color:#625744}.hanafuda-rules-reset{display:block;width:100%;margin-top:11px;padding:8px!important;background:#f5ecd9!important}#hanafudaNextRound{translate:-270px 0}@media(max-width:620px){.hanafuda-bottom-controls{right:6px;bottom:6px;gap:4px}.hanafuda-bgm-controls{gap:3px;padding:4px 5px}.hanafuda-bgm-toggle{flex:0 0 22px;width:22px;height:22px;padding:2px}.hanafuda-bgm-toggle svg{width:18px;height:18px}.hanafuda-bgm-volume{width:clamp(34px,11vw,46px)}.hanafuda-rules-toggle{min-height:30px;padding:4px 6px;font-size:14px}}@media(max-width:480px){.hanafuda-bottom-controls{right:6px;bottom:6px;gap:3px}.hanafuda-bgm-controls{gap:2px;padding:3px 4px}.hanafuda-bgm-toggle{flex-basis:20px;width:20px;height:20px}.hanafuda-bgm-toggle svg{width:16px;height:16px}.hanafuda-bgm-volume{width:clamp(30px,10vw,36px)}.hanafuda-rules-toggle{min-height:28px;padding:3px 5px;font-size:14px}.hanafuda-rules-panel{width:min(320px,calc(100vw - 20px));max-height:70vh;padding:11px}.hanafuda-rules-panel-header strong{font-size:16px}.hanafuda-rule-setting{gap:7px;padding:8px 1px}.hanafuda-rule-setting b,.hanafuda-rule-setting small{font-size:14px}#hanafudaNextRound{translate:-225px 0}}.hanafuda-captures{padding-bottom:56px;box-sizing:border-box}.hanafuda-rules-panel{max-height:min(58vh,460px)}@media(max-width:620px){.hanafuda-captures{padding-bottom:46px}.hanafuda-rules-panel{max-height:min(60vh,440px)}}@media(max-width:480px){.hanafuda-rules-panel{max-height:min(58vh,420px)}}
