: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}}@media(max-width:620px){.card-app .card-settings .online-lobby-link{width:auto;min-height:28px;padding:3px 7px;font-size:14px}.card-settings label{font-size:14px}.card-settings label select{max-width:125px}}.card-faces .card-face-image,.hand-choice .card-face-image{display:block;width:68px;height:95px;object-fit:fill;pointer-events:none;border:0;border-radius:5px}.ai-card-hand{display:flex;justify-content:center;padding:6px 0}.ai-card-hand img{width:28px;height:40px;object-fit:fill;border-radius:3px;margin-right:-17px}.ai-card-hand img:last-child{margin-right:0}@media(max-width:620px){.card-faces .card-face-image,.hand-choice .card-face-image{width:55px;height:77px}.ai-card-hand img{width:19px;height:27px;margin-right:-13px}.ai-card-hand{padding:4px 0}}.card-game-page #pokerApp .card-seat{padding:5px}.card-game-page #pokerApp .card-seat b,.card-game-page #pokerApp .card-seat small{display:inline-block;margin:3px 5px 6px}.card-game-page #pokerApp .card-faces{min-height:95px}.card-game-page #pokerApp .card-community{min-height:108px;padding:5px}.card-game-page #pokerApp .card-turn{padding:6px;margin:6px 0}.card-game-page{background:#f3f0e5;color:#183b2b}.card-game-page main{max-width:1280px;margin:auto;padding:0 18px}.card-game-page h1{font-size:32px;margin:22px 0 14px}.card-app{position:relative;overflow:hidden;border-radius:14px;border:1px solid #547a64;background:#16593e;color:#fff;padding:16px}.card-settings{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:12px}.card-settings button,.card-settings select,.card-actions button,.card-actions input{min-height:38px;padding:7px 12px;border:1px solid #c9d9c8;border-radius:6px;font:700 14px sans-serif}.card-settings button,.card-actions button{cursor:pointer;background:#fffbeb;color:#1c4532}.card-settings button:disabled,.card-actions button:disabled{opacity:.4;cursor:default}.card-turn{margin:10px 0;padding:8px;border-radius:6px;background:#102f24;text-align:center;font-size:17px;font-weight:800}.card-seat{padding:10px;text-align:center}.card-seat b,.card-seat small{display:block}.card-seat small{font-size:14px;margin:4px}.card-faces{display:flex;justify-content:center;gap:7px;min-height:105px}.card-faces playing-card,.hand-choice playing-card{display:block;width:68px;height:95px;pointer-events:none}.card-community{display:flex;align-items:center;justify-content:center;min-height:125px;gap:6px;padding:12px;border:1px solid #739e82;border-radius:12px;background:#1f6948}.card-community .empty-card{width:65px;height:90px;border:1px dashed #9fb99b;border-radius:5px}.card-pot{text-align:center;margin:8px 0;font-weight:800}.card-actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:6px;padding-top:10px}.card-actions input{width:100px;color:#193c2c;background:#fff}.card-actions label{font-size:14px}.card-result{padding:10px;margin:10px 0;background:#fff9dc;color:#213a28;border-radius:7px;text-align:center;font-weight:700}.card-result[hidden]{display:none}.card-game-page .game-information{margin-top:24px}.card-game-page .game-information p{font-size:15px}.card-log{max-height:145px;overflow:auto;margin:10px 0 0;padding-left:25px;font-size:14px;color:#d6e7d4}.daifugo-seats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.daifugo-seats .card-seat{border-radius:7px;background:#17432f}.daifugo-seats .is-turn{outline:2px solid #ffda78}.daifugo-hand{display:flex;justify-content:center;margin:15px 0 6px;padding:10px 0 0;min-height:110px}.hand-choice{position:relative;flex:0 1 44px;min-width:0;height:100px;overflow:visible;padding:0;border:0;background:none;cursor:pointer}.hand-choice:last-child{flex-basis:68px}.hand-choice.is-selected{transform:translateY(-10px);z-index:2;filter:drop-shadow(0 0 3px #ffce3d)}.hand-choice:focus-visible{outline:3px solid #ffce3d;z-index:3}.joker-face{display:grid;place-items:center;width:68px;height:95px;border:1px solid #aaa;border-radius:5px;background:#fff;color:#9b2430;font:700 22px serif}.card-game-page [hidden]{display:none!important}@media(max-width:620px){.card-game-page main{padding:0 5px}.card-game-page h1{font-size:22px;margin:7px 0}.card-app{padding:8px;border-radius:8px}.card-settings{gap:4px;margin-bottom:5px}.card-settings button,.card-settings select,.card-actions button,.card-actions input{min-height:30px;padding:5px 7px;font-size:14px}.card-seat{padding:6px}.card-seat small{margin:3px;font-size:14px}.card-faces{min-height:82px;gap:5px}.card-faces playing-card,.hand-choice playing-card{width:55px;height:77px}.card-community{min-height:88px;gap:4px;padding:8px 3px}.card-community playing-card{width:52px;height:73px}.card-community .empty-card{width:52px;height:73px}.card-turn{font-size:14px;margin:6px 0;padding:6px}.card-actions input{width:80px}.card-actions{gap:4px;padding-top:5px}.daifugo-hand{min-height:88px;margin:12px 0 0;justify-content:flex-start}.hand-choice{flex-basis:calc((100% - 55px)/13);height:80px}.hand-choice:last-child{flex:0 0 55px}.joker-face{width:55px;height:77px;font-size:18px}.daifugo-seats .card-seat{font-size:14px}.card-log{max-height:85px;font-size:14px}.card-result{font-size:14px;padding:8px}}#pokerApp{--poker-card-width:clamp(58px,10vw,128px)}#pokerApp .card-faces playing-card,#pokerApp .card-faces .card-face-image,#pokerApp .card-community playing-card,#pokerApp .card-community .empty-card{width:var(--poker-card-width);height:auto;aspect-ratio:5/7}.card-game-page #pokerApp .card-faces{min-height:0}.card-game-page #pokerApp .card-community{min-height:0;padding:16px}.card-game-page #pokerApp .card-seat{padding:12px}@media(max-width:620px){#pokerApp{--poker-card-width:clamp(42px,15vw,88px)}.card-game-page #pokerApp .card-community{padding:10px 3px;gap:4px}}body.card-game-page main{width:100%;max-width:1280px}@media(max-width:620px){.card-game-page .card-settings:not(#pokerSettings){display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-bottom:6px}.card-game-page .card-settings:not(#pokerSettings)>label{order:-1;flex:1 1 104px;min-width:0;gap:3px;font-size:14px}.card-game-page .card-settings:not(#pokerSettings) select{width:100%;min-width:0;max-width:100%;min-height:31px;padding:4px 18px 4px 5px;font-size:14px}.card-game-page .card-settings:not(#pokerSettings)>button{flex:0 1 auto;min-width:0;min-height:31px;padding:4px 7px;font-size:14px}.card-game-page #pokerSettings{min-width:0}.card-game-page #pokerSettings select{box-sizing:border-box;min-width:0;max-width:100%}}
