:root{font-family:"Yu Gothic UI","Meiryo",sans-serif;color:#233d32;background:#f5f5ed;font-synthesis:none;--green:#205744;--muted:#67776e;--yellow:#efd05b;--border:#dbe3d7}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;border-radius:12px;min-height:46px;padding:11px 19px;font-weight:700;color:inherit;background:#e5ebdf;transition:background .15s,transform .15s}button:hover:not(:disabled){background:#d6e1d0}button:active:not(:disabled){transform:translateY(1px)}button:disabled{cursor:default;opacity:.42}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #c78613;outline-offset:4px}.primary{background:var(--green);color:white}.primary:hover:not(:disabled){background:#153f30}.secondary{background:white;border:1px solid var(--border)}.gold{background:var(--yellow)}.danger{color:#a13f2d;background:#fbebe5}.small{font-size:13px;min-height:38px;padding:7px 13px}.site-header{height:76px;padding:0 5%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);background:#fcfcf7}.brand{color:var(--green);font-weight:800;font-size:24px;letter-spacing:-1px;display:flex;align-items:center;text-decoration:none;gap:0}.brand>span:not(.brand-icon):not(.brand-caption){font-weight:400}.brand-icon{display:inline-grid;place-items:center;width:36px;height:36px;background:var(--green);color:var(--yellow);border-radius:11px;margin-right:10px}.brand-caption{font-size:11px;letter-spacing:.09em;color:var(--muted);margin-left:22px;font-weight:500}.connection{font-size:12px;border:1px solid var(--border);padding:7px 12px;border-radius:100px;background:#f5f7ef}.connection.online{color:#25714d}.connection.offline{color:#a4442e;background:#fcebe4}main{max-width:1440px;margin:auto;min-height:calc(100vh - 150px)}footer{font-size:11px;line-height:1.8;color:#78847a;text-align:center;padding:22px}.landing{display:grid;grid-template-columns:1.1fr .9fr;gap:75px;align-items:center;padding:68px 7% 32px}.eyebrow{font-size:12px;letter-spacing:.16em;font-weight:700;color:#497e57;margin:0 0 20px}.hero h1{font-size:clamp(38px,4vw,62px);line-height:1.35;letter-spacing:-.04em;margin:0 0 22px}.hero h1 em{font-style:normal;color:#32735b}.hero p{font-size:15px;line-height:2;color:var(--muted);max-width:450px}.hero .chips{display:flex;gap:9px;margin-top:26px;flex-wrap:wrap}.chip{font-size:12px;background:#e7eddf;border-radius:100px;padding:7px 13px}.illustration{position:relative;height:200px;margin-top:30px;width:350px;max-width:95%}.illustration:before{content:"";position:absolute;inset:45px 0 0;background:#e8ecd9;border-radius:50%}.mock-card{position:absolute;width:105px;height:146px;border-radius:14px;border:5px solid white;box-shadow:0 8px 18px #1d493719;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:13px;font-size:38px;font-weight:800;top:20px;color:white;background:var(--green)}.mock-card span{font-size:11px;letter-spacing:.1em}.mock-card:nth-child(1){left:25px;transform:rotate(-15deg);background:#dbac39}.mock-card:nth-child(2){left:120px;top:0;transform:rotate(3deg)}.mock-card:nth-child(3){left:215px;transform:rotate(17deg);background:#4a8da2}.entry{background:#fff;border:1px solid var(--border);border-radius:24px;padding:30px;box-shadow:0 16px 55px #26463209}.entry h2{font-size:23px;margin:0 0 8px}.muted{color:var(--muted);font-size:13px;line-height:1.8}.tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;border-radius:12px;background:#edf1e7;padding:5px;margin:25px 0}.tab{background:none;font-size:14px}.tab.active{background:white;box-shadow:0 2px 5px #254d3212}label{display:block;font-size:13px;font-weight:700;margin:18px 0 8px}input,select{width:100%;border:1px solid #ccd7c8;background:#fff;padding:13px 14px;border-radius:10px;color:var(--green);min-height:48px}input::placeholder{color:#a0aaa0}input.code{text-align:center;font-size:28px;letter-spacing:.2em;font-weight:700}.entry .primary{width:100%;margin-top:24px}.hint{font-size:11px;color:var(--muted);line-height:1.9;margin-top:16px}.flow{margin:0 7% 35px;padding:22px 28px;border-top:1px solid var(--border);display:flex;gap:26px;justify-content:space-between}.flow-item{display:flex;align-items:center;gap:13px;font-size:13px}.flow-number{width:30px;height:30px;flex-shrink:0;border-radius:50%;background:#e5ebd9;color:#547147;display:grid;place-items:center;font-size:12px;font-weight:700}.room{padding:26px 4%}.room-title{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:23px}.room-title h1{font-size:25px;margin:5px 0}.room-code{display:flex;gap:12px;align-items:center;background:white;border:1px solid var(--border);border-radius:14px;padding:10px 16px}.room-code strong{letter-spacing:.18em;font-size:25px}.room-code span{font-size:11px;color:var(--muted)}.players{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:22px}.player{border:1px solid var(--border);background:#fff;border-radius:13px;padding:12px 15px;min-width:118px;position:relative}.player.current{background:#205744;color:white;border-color:#205744}.player .name{display:block;font-size:13px;font-weight:700}.player .score{font-size:19px;font-weight:800;margin-top:8px}.player .score small{font-size:11px;font-weight:400}.player .count{font-size:11px;margin-left:10px;opacity:.75}.player.finished,.player.out{opacity:.65}.you{font-size:10px;opacity:.7;margin-left:5px}.status-banner{background:#e3ebda;border:1px solid #d3dfc6;border-radius:13px;padding:15px 20px;display:flex;align-items:center;gap:10px;margin:18px 0;font-size:14px;line-height:1.65}.status-banner.your-turn{background:#f6edc5;border-color:#e7d891}.status-banner strong{font-size:15px}.lobby-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.panel{background:white;border:1px solid var(--border);border-radius:18px;padding:24px}.panel h2{font-size:19px;margin:0 0 15px}.panel p{line-height:1.9}.room-number-large{font-size:50px;letter-spacing:.18em;color:var(--green);font-weight:800;margin:15px 0}.check-label{display:flex;align-items:flex-start;gap:10px;font-weight:400;line-height:1.8}.check-label input{width:20px;min-height:20px;margin-top:2px;flex-shrink:0}.rules{background:#f8f6e9;border-radius:12px;padding:15px 18px;font-size:12px;line-height:1.9}.rules ul{margin:5px 0;padding-left:20px}.section-heading{display:flex;align-items:baseline;justify-content:space-between;margin:22px 0 15px}.section-heading h2{font-size:18px;margin:0}.section-heading span{font-size:12px;color:var(--muted)}.board-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.topic-panel{background:white;border:1px solid var(--border);border-radius:15px;padding:12px;min-width:0;border-top:4px solid var(--topic-color,#888)}.topic-top{display:flex;align-items:center;gap:9px;margin-bottom:10px}.topic-top img{height:46px;width:32px;object-fit:cover;border-radius:4px;cursor:zoom-in}.topic-top h3{font-size:12px;line-height:1.6;margin:0;flex:1}.topic-top small{font-size:11px;color:var(--muted)}.slots{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.slot{aspect-ratio: .7;border:1px dashed #dbe2d4;border-radius:7px;background:#f7f8f2;display:grid;place-items:center;color:#c0cbb8;font-size:13px;overflow:hidden}.slot img{width:100%;height:100%;object-fit:contain;cursor:zoom-in}.hand-section{margin:26px 0;background:#e8edde;border:1px solid #d9e1cf;padding:18px;border-radius:18px}.hand-section h2{font-size:18px;margin:0}.hand-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}.hand-toolbar .muted{font-size:11px}.hand{display:flex;gap:10px;overflow-x:auto;padding:10px 3px 16px;scrollbar-color:#9cae8d transparent;min-height:210px}.hand-card{width:120px;flex:0 0 120px;background:white;border:2px solid transparent;box-shadow:0 2px 5px #3249360e;border-radius:9px;overflow:hidden;position:relative;display:flex;flex-direction:column}.hand-card.selected{border-color:#be8b18;box-shadow:0 0 0 3px #e8c65860;transform:translateY(-5px)}.hand-card.unavailable{opacity:.55}.card-select{padding:0;min-height:0;border-radius:0;flex:1;background:white;display:block;width:100%}.card-select img{width:100%;display:block;aspect-ratio:.7;object-fit:contain}.card-caption{font-size:10px;text-align:center;padding:6px 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.zoom-mini{width:100%;padding:6px;min-height:32px;border-radius:0;font-size:11px;background:#f3f5ee}.selected-badge{position:absolute;top:5px;left:5px;background:#efd05b;border-radius:50%;width:25px;height:25px;display:grid;place-items:center;font-size:13px;font-weight:800;pointer-events:none}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.actions .selection-summary{font-size:12px;margin-right:auto;color:var(--muted)}.action-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:12px 0}.action-options label{margin:0 0 7px}.log{font-size:12px;line-height:1.8;color:var(--muted);padding:15px 20px;border:1px solid var(--border);border-radius:14px;margin-top:22px}.log summary{font-weight:700;cursor:pointer}.log ol{padding-left:20px;max-height:220px;overflow:auto}.answer-panel{border:1px solid #ddc674;border-radius:18px;padding:25px;background:#fffdf1;margin:20px 0}.answer-panel h2{font-size:22px;margin:0 0 8px}.answer-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;max-width:790px;margin:20px auto}.answer-card{position:relative;background:white;padding:0;border:2px solid #dce3d3;overflow:hidden;border-radius:12px;display:block;min-width:0}.answer-card img{display:block;width:100%;aspect-ratio:.7;object-fit:contain}.answer-card.picked{border-color:#b98e27}.answer-card .selected-badge{width:32px;height:32px;font-size:17px}.answer-bottom{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.result-success{color:#276c47}.result-fail{color:#a55b28}.leaderboard{width:100%;border-collapse:collapse;font-size:14px}.leaderboard th,.leaderboard td{padding:14px 10px;border-bottom:1px solid var(--border);text-align:left}.leaderboard th{font-size:12px;color:var(--muted)}.leaderboard tr:first-of-type td{background:#f6f1d7}.notice{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:15px 22px;background:#243c30;color:white;border-radius:12px;box-shadow:0 8px 25px #0002;font-size:13px;z-index:10;max-width:90vw;width:max-content;line-height:1.7}.notice.error{background:#8a3d2b}dialog{border:0;border-radius:18px;padding:24px;max-height:95dvh;max-width:95vw;background:#fafbf5}dialog::backdrop{background:#14271cb8}#zoom-image{display:block;max-height:85dvh;max-width:80vw;object-fit:contain}.close-button{position:absolute;right:6px;top:6px;border-radius:50%;width:45px;padding:0;background:white;box-shadow:0 2px 8px #0003;font-size:27px}.empty{padding:28px;color:var(--muted);font-size:13px}button.full{width:100%;margin-top:16px}[hidden]{display:none!important}
@media(min-width:1500px){.landing{padding-top:95px}.hero h1{font-size:64px}}@media(max-width:1000px){.landing{gap:30px;padding:45px 5% 20px}.entry{padding:24px}.hero h1{font-size:40px}.board-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.room{padding:20px 3%}.hand-card{width:110px;flex-basis:110px}.flow{margin:10px 5% 25px;gap:15px;padding:20px 0}.flow-item{font-size:11px;gap:7px}.brand-caption{display:none}}@media(max-width:650px){.site-header{height:64px;padding:0 5%}.landing{grid-template-columns:1fr;gap:24px;padding:30px 6%}.hero h1{font-size:36px}.hero p{font-size:13px}.illustration{display:none}.hero .chips{margin-top:18px}.hero .eyebrow{margin-bottom:12px}.entry{padding:22px}.flow{flex-direction:column;margin:0 6% 20px}.flow-item{font-size:12px}.lobby-grid{grid-template-columns:1fr}.room-title h1{font-size:20px}.room-code strong{font-size:20px}.players{gap:6px}.player{min-width:96px;padding:10px}.player .name{font-size:11px}.player .score{font-size:16px}.board-grid{gap:9px}.topic-panel{padding:8px}.topic-top{gap:6px}.topic-top h3{font-size:10px}.topic-top img{height:37px;width:26px}.slots{gap:3px}.slot{font-size:10px}.hand-section{padding:12px}.hand-card{width:105px;flex-basis:105px}.answer-panel{padding:18px 12px}.answer-panel h2{font-size:18px}.answer-cards{gap:6px}.answer-card .selected-badge{width:25px;height:25px;font-size:13px}.actions button{padding:10px 14px}.actions .selection-summary{width:100%}.status-banner{font-size:12px;padding:12px}.status-banner strong{font-size:13px}.room-number-large{font-size:40px}.panel{padding:20px}.action-options{grid-template-columns:1fr}.leaderboard{font-size:12px}.leaderboard th,.leaderboard td{padding:12px 5px}}
