*{box-sizing:border-box}
body{margin:0;color:#263332;background:#f4f7f6;font-family:"Yu Gothic",Meiryo,sans-serif;line-height:1.7}
.page-one-page{width:min(1040px,calc(100% - 32px));margin:16px auto 32px}h1{font-size:clamp(24px,4vw,32px);margin:0}h2{font-size:21px;margin:0 0 10px}.series-label{font-size:12px;letter-spacing:.15em;color:#52736c}.breadcrumb{font-size:14px}a{color:#17695a}
button,input,select{font:inherit;min-height:44px;border:1px solid #a8bdb3;border-radius:8px;padding:7px 12px;max-width:100%}button{cursor:pointer;background:#17695a;color:#fff;font-weight:700}button:disabled{cursor:default;opacity:.45}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #e7aa38;outline-offset:2px}[hidden]{display:none!important}
.poker-shell{position:relative;border:1px solid #d7e4df;border-radius:16px;margin:20px 0;padding:58px 0 0;overflow:hidden;background:#fff;min-width:0}.help-open{position:absolute;left:12px;top:12px;z-index:40}.poker-look-reset{position:absolute;top:12px;left:50%;transform:translateX(-50%);z-index:40;font-size:12px}
#game-stage{position:relative;isolation:isolate;color:#fff;background:#172c2d;display:flex;flex-direction:column;min-height:580px;padding:8px;gap:8px;overflow:hidden}.table-view{position:absolute;inset:0;z-index:-1}#scene{display:block;width:100%;height:100%}.look-enabled{touch-action:none;cursor:grab}.look-enabled:active{cursor:grabbing}#game-stage.active-game{min-height:0}.active-game .table-view{position:relative;inset:auto;z-index:0;order:1;flex:none;height:145px;border-radius:8px;overflow:hidden}
#status{order:0;flex:none;margin:0;padding:7px 10px;background:#102a2de8;border-radius:8px;font-size:13px;line-height:1.4;pointer-events:none;overflow-wrap:anywhere}#reconnect{order:1;align-self:flex-end;z-index:35}.menu-panel{width:350px;max-width:100%;padding:16px;background:#102a2df2;border:1px solid #64847b;border-radius:12px;z-index:5}#entry{order:2;margin:8px 0}.entry-buttons{display:grid;gap:8px}.entry-buttons button{min-height:48px}.controls{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.controls button{flex:1;min-width:80px}.menu-panel label{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:12px 0}input{width:160px;min-width:0}select{min-width:110px}summary{cursor:pointer;min-height:44px;padding:8px 0}
#room{order:3;min-width:0}.room-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px;font-size:13px}.room-top button{margin-left:auto;font-size:12px;padding:5px 8px}.room-top #room-code{font-size:28px;letter-spacing:.06em;overflow-wrap:anywhere}.active-game .room-top #room-code{font-size:16px;letter-spacing:0}#phase{font-size:13px}#lobby{margin-top:12px}#seats{padding-left:24px}
#play{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);align-items:start;gap:8px;min-width:0}#play>section{min-width:0;background:#102a2df0;border:1px solid #64847b;border-radius:10px;padding:9px}#player-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:0 0 5px;padding:0;list-style:none}#player-list li{min-width:0;padding:4px 6px;border:1px solid #74948a;border-radius:6px;font-size:12px;line-height:1.4;overflow-wrap:anywhere}#player-list .actor{border:2px solid #ffe49b}#turn{display:block;color:#ffe49b;font-size:19px;line-height:1.5}#pile{margin:4px 0;font-size:13px}#table-state{margin:4px 0;font-weight:700;color:#ffe49b;font-size:14px}#action-guide{font-size:13px;line-height:1.5;margin:5px 0}#own-title{margin:0;font-size:15px}#move{margin:4px 0;font-size:13px;line-height:1.5;color:#ffe49b;overflow-wrap:anywhere}#result-summary{padding:7px;background:#fff8dd;color:#28392f;border-radius:8px;font-size:19px;font-weight:700;line-height:1.5}
.cards{display:flex;flex-wrap:wrap;gap:5px;margin:6px 0}.card{display:flex;flex:none;align-items:center;justify-content:center;width:52px;height:74px;padding:0;background:#fffdf4;border:2px solid #aaa997;border-radius:7px;color:#162d35;font:700 23px Georgia,serif;box-shadow:0 2px 5px #0003}.card.red{color:#b6303e}#table-card{justify-content:center}#table-card .card{width:65px;height:86px;font-size:29px}#own-cards{max-height:145px;overflow:auto;padding:3px 2px;overscroll-behavior:contain}#own-cards .card{width:46px;height:62px;min-width:46px;min-height:62px;font-size:19px;opacity:.72;touch-action:manipulation}#own-cards .card.playable{border:3px solid #ffdc70;background:#fff6cf;box-shadow:0 0 0 1px #4b3000;opacity:1}#own-cards .card.selected{border:3px solid #ffd45e;background:#fff0ad;transform:translateY(-2px)}#suit-choice{min-width:0;margin:6px 0;padding:3px 7px;border:1px solid #9bb8a9;border-radius:8px}#suit-choice legend{font-size:13px}#suit-choice .controls{margin:3px 0;gap:5px}#suit-choice button{min-width:100px;font-size:13px}#declare[aria-pressed="true"],[data-suit][aria-pressed="true"]{background:#ffe49b;color:#29372b;border:2px solid #fff}
#tutorial-panel{order:2;flex:none;min-width:0;padding:8px 12px;background:#fff8dd;color:#29372b;border:2px solid #dfa638;border-radius:10px;font-size:13px;line-height:1.5}#tutorial-panel p{margin:4px 0}#tutorial-panel .controls{margin:6px 0 0;gap:5px}#tutorial-panel button{font-size:12px;min-height:44px;padding:5px 8px}#wallet{color:#263332;background:#fff;border-radius:8px;padding:6px}#prize-table{font-size:13px;line-height:1.6;margin:8px 0}#prize-table table{border-collapse:collapse;width:100%}#prize-table td,#prize-table th{padding:3px;border-bottom:1px solid #78988b;text-align:left}
#poker-help{width:min(740px,calc(100% - 24px));max-height:88dvh;border:1px solid #a8bdb3;border-radius:14px;padding:0;color:#263332}#poker-help[open]{display:flex;flex-direction:column}#poker-help::backdrop{background:#071b26b3}#poker-help header{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px;background:#edf5f1}#poker-help h2,#poker-help form{margin:0}.help-body{overflow:auto;padding:4px 18px 18px;font-size:14px}.is-game-fullscreen.poker-shell{padding-top:64px;height:100%;overflow:auto}.is-game-fullscreen #game-stage{min-height:100%}.is-game-fullscreen .help-open{left:auto;right:12px}.instructions{border-top:1px solid #d3e0e5;padding:12px 0;font-size:14px}.instructions h2{font-size:18px}.instructions p{max-width:70ch}.instructions details{background:#eaf5ed;border:1px solid #d0e2d5;border-radius:8px;padding:0 12px;margin:10px 0}
@media(max-width:600px){.page-one-page{width:calc(100% - 20px);margin-top:10px}.poker-shell{margin-top:12px}#game-stage{padding:5px;gap:5px;min-height:560px}.active-game .table-view{height:105px}.menu-panel{width:100%;padding:12px;background:#102a2de8}#entry:has([data-screen="character"]:not([hidden])){margin-top:180px}.room-top{gap:5px;margin-bottom:5px}.room-top #room-code{font-size:24px}.active-game .room-top #room-code{font-size:15px}#phase{font-size:12px}#play{grid-template-columns:minmax(0,1fr);gap:5px}#play>section{padding:6px}#play>section:first-child{display:grid;grid-template-columns:70px minmax(0,1fr);column-gap:7px;align-items:center}#player-list,#turn,#result-summary,#action-guide{grid-column:1/-1}#player-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;margin-bottom:3px}#player-list li{font-size:11px;padding:3px 4px}#turn{font-size:16px}#table-card{grid-column:1;grid-row:4/6;margin:3px 0}#table-card .card{width:50px;height:66px;font-size:25px}#pile{grid-column:2;grid-row:4;margin:2px 0}#table-state{grid-column:2;grid-row:5;margin:2px 0;font-size:13px;line-height:1.5}#action-guide{font-size:12px;margin:3px 0}#own-title{font-size:14px}#own-cards{max-height:137px;margin:4px 0}#play .controls{gap:5px;margin:6px 0}#play .controls button{font-size:13px;padding:6px;min-height:44px;min-width:90px}#suit-choice .controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}#suit-choice button{min-width:0}#tutorial-panel{padding:7px;font-size:13px}#tutorial-panel button{font-size:12px;min-width:88px}#move{font-size:12px}#result-summary{font-size:17px}}
