:root{font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;color:#243b30;background:#f5f7f3;font-synthesis:none;--green:#177650;--line:#dde6dd;--muted:#7c8b80}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}header{height:54px;padding:0 20px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:14px}.brand{font-size:20px;font-weight:750;white-space:nowrap}.brand small{font-size:9px;letter-spacing:2px;color:var(--muted);margin-left:10px}nav{display:flex;align-items:center;gap:12px;font-size:12px}button,input,select{font:inherit}button{border:1px solid #d5e0d5;border-radius:9px;background:#fff;color:#254b36;padding:10px 15px;cursor:pointer;font-weight:600;touch-action:manipulation}button:hover:enabled{background:#edf4eb}button:disabled{opacity:.4;cursor:not-allowed}.primary{background:var(--green);border-color:var(--green);color:#fff}.primary:hover:enabled{background:#105d3e}.danger{color:#b54e4e}.panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px}main{max-width:1320px;margin:auto;padding:24px}.login{max-width:460px;margin:8vh auto}.login h1{font-size:34px;letter-spacing:-1px;margin:14px 0}.eyebrow{color:var(--muted);font-size:10px;letter-spacing:2px}p{font-size:13px;line-height:1.8;color:#748479}h2{font-size:17px;margin:22px 0 14px}label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#65776a}input,select{width:100%;border:1px solid #d8e2d8;border-radius:8px;padding:11px;background:#fcfdfb;outline-color:var(--green);color:#264732}form{display:grid;gap:14px}.fine{font-size:11px;line-height:1.7;color:var(--muted)}.table-app{overflow:hidden}.table-app header{height:54px}.table-app main{padding:0;max-width:none}#room{position:fixed;inset:54px 0 0;display:grid;grid-template-rows:30px minmax(0,1fr) 62px auto;padding:0 14px max(7px,env(safe-area-inset-bottom));background:#fafcf8}.stage-top{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:0 7px;font-size:11px;color:var(--muted)}.arena{position:relative;min-height:0;width:min(100%,1450px);margin:auto;height:100%}.felt{position:absolute;left:18%;top:26%;width:64%;height:47%;border-radius:45%;background:radial-gradient(ellipse,#eff6ed,#dcebdd);border:1px solid #d1e1d2;box-shadow:0 0 0 7px #edf1e8,0 0 0 9px #d8e1d4;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px}.table-mark{color:#92a091;font-size:10px;letter-spacing:2px}.cards{display:flex;justify-content:center;gap:5px}.board{margin:12px 0 7px}.card{display:inline-flex;width:clamp(32px,4.3vw,55px);height:clamp(44px,5.6vw,73px);flex-direction:column;justify-content:center;align-items:center;line-height:1.05;background:#fff;border:1px solid #d7e1d3;border-radius:6px;box-shadow:0 2px 3px #304d2310;font-size:clamp(19px,2.8vw,31px);font-weight:700}.card.red{color:#b54b4b}.card.back{background:repeating-linear-gradient(45deg,#e0eadb,#e0eadb 3px,#eaf1e4 3px,#eaf1e4 6px);color:#9bb096}.felt>strong{font-size:clamp(16px,2vw,25px);margin-top:6px}.felt p{font-size:11px;max-width:90%;text-align:center;line-height:1.5;margin:6px 0;max-height:38px;overflow:auto}#result-open{font-size:10px;padding:5px 10px;margin-top:4px;background:#f9fcf5}.seats{position:absolute;inset:0}.seat{position:absolute;transform:translate(-50%,-50%);width:clamp(110px,11vw,154px);border:1px solid #d9e2d6;border-radius:12px;background:#fbfdf9;padding:9px 11px;box-shadow:0 2px 4px #233b2010;font-size:11px;z-index:2}.seat.me{background:#f0f7ec;border-color:#9bc5a6}.seat.turn{outline:2px solid #218652;outline-offset:2px}.seat.folded{opacity:.48}.seat.empty{background:#f7faf4;border-style:dashed;min-height:65px;color:#9da99c}.seat strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.seat .balance{font-size:clamp(16px,1.8vw,23px);font-weight:700;margin:4px 0}.seat small{font-size:9px;color:#8b998b;display:block}.seat .cards{justify-content:flex-start;margin-top:5px;min-height:0}.seat .card{width:23px;height:31px;font-size:14px;border-radius:4px}.seat-actions{font-size:9px;line-height:1.4;color:#41664b;max-height:41px;overflow:auto;margin-top:4px;overflow-wrap:anywhere}.seat-actions b{font-weight:500;color:#93a08f}.seat .badge{display:inline-block;font-size:8px;background:#bfaa76;color:#fff;padding:2px 4px;border-radius:20px;margin-right:3px}.online-dot{color:#1b8653}.offline-dot{color:#a4aea1}.hero-strip{display:flex;justify-content:space-between;align-items:center;width:min(100%,1450px);margin:auto;height:100%;padding:0 5px;gap:18px}.hero-strip>div:first-child{display:flex;align-items:center;gap:10px}.hero-strip .card{width:28px;height:40px;font-size:19px}.hero-strip #notice{text-align:center;color:#6e836f;font-size:11px;max-width:60%;line-height:1.5}.stack-box{text-align:right;white-space:nowrap}.stack-box span,.stack-box small{display:block;color:var(--muted);font-size:9px}.stack-box strong{display:block;font-size:23px;line-height:1.15}.play-dock{border-top:1px solid #e5ebe0;width:min(100%,1150px);margin:auto;text-align:center;padding-top:5px;min-height:58px}#turn-message{margin:0 0 5px;font-size:12px;color:#37533c}.action-buttons{display:flex;justify-content:center;gap:7px;flex-wrap:wrap}.action-buttons button{font-size:13px;min-height:42px;padding:9px 16px}.action-buttons #quick-actions{display:contents}.action-buttons button small{display:block;font-size:10px;opacity:.7;font-weight:400}#start{min-width:180px}#start-hint{margin:5px 0 0;min-height:13px}.button-row{display:flex;gap:8px;flex-wrap:wrap}.button-row button{flex:1}.table-settings{display:grid;gap:15px}.table-settings form{display:grid;grid-template-columns:1fr auto;align-items:end}.table-settings button{padding:11px}#drawer-backdrop{position:fixed;inset:0;background:#15281755;z-index:20}#side-panel{position:fixed;right:0;top:0;bottom:0;width:min(430px,100%);background:#fff;z-index:21;box-shadow:-8px 0 40px #0002;overflow:auto;padding:18px 20px max(20px,env(safe-area-inset-bottom))}.drawer-heading{display:flex;align-items:center;justify-content:space-between}.drawer-heading button{border:0;font-size:16px;padding:8px}.drawer-tabs{display:flex;gap:6px;position:sticky;top:-18px;background:#fff;padding:16px 0 10px;z-index:2}.drawer-tabs button{padding:9px 13px;flex:1;font-size:12px}.drawer-tabs button.selected{background:#e8f2e5;border-color:#9fbf9f}#side-panel section>button,#admin-tools{display:block;margin-top:14px}#admin-tools{font-size:13px;color:#217344}#side-panel h2:first-child{margin-top:12px}#side-panel #role-caption{margin-top:18px}.request-row,.manage-row{padding:12px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}.request-row button,.manage-row button{padding:7px 10px;font-size:11px;margin-left:4px}#request-badge,#manage-badge{color:#b65345;font-weight:700}.scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:11px;white-space:nowrap;text-align:right}th,td{padding:11px 7px;border-bottom:1px solid var(--line)}th{font-size:10px;color:var(--muted);font-weight:500}td:first-child,th:first-child{text-align:left}.positive{color:#21844f}.negative{color:#bb5050}details{margin-top:20px}summary{font-size:12px;font-weight:600;cursor:pointer}.rules p{font-size:11px;line-height:1.9}.rules pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:10px}#commitment{overflow-wrap:anywhere}#audit-form{margin-top:12px}.events{list-style:none;margin:0;padding:0;max-height:300px;overflow:auto}.events li{padding:8px 0;border-bottom:1px solid #edf0e9;font-size:11px;line-height:1.7}.events time{font-size:9px;color:var(--muted);display:block}#receipts{font-size:11px;line-height:2;margin-top:12px}dialog{border:1px solid #d9e5d5;border-radius:16px;padding:24px;color:#254532;width:min(460px,calc(100% - 30px));max-height:85dvh;overflow:auto;box-shadow:0 15px 70px #0003}dialog::backdrop{background:#14291755}dialog h2{margin:0 0 14px}dialog>button{margin-top:20px;width:100%}.winner-line{font-size:15px;margin:12px 0;padding:14px;background:#f0f7ec;border-radius:9px}.winner-line strong{color:#227e4b;font-size:22px;display:block;margin-top:4px}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);max-width:90vw;background:#25432e;color:#fff;padding:14px 20px;border-radius:10px;font-size:13px;z-index:50;box-shadow:0 4px 22px #0002}[hidden]{display:none!important}.admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}.admin-grid>a:hover{border-color:#97bf9d}.admin-grid h2{margin:0 0 8px}.admin-grid p{margin:0;font-size:12px}.heading{margin-bottom:25px}.ledger{margin-top:20px}footer{font-size:11px;color:var(--muted);margin:20px 0}
@media(max-width:700px){header{height:45px;padding:0 10px}.table-app header{height:45px}.brand{font-size:16px}.brand small{display:none}nav{gap:7px;font-size:10px}nav button{padding:7px 10px;font-size:11px}#identity{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#room{inset:45px 0 0;padding:0 4px max(7px,env(safe-area-inset-bottom));grid-template-rows:25px minmax(0,1fr) 53px auto}.stage-top{font-size:9px;gap:4px;padding:0 4px}.stage-top #subtitle{font-size:8px}.seat{width:clamp(74px,22vw,105px);padding:6px;border-radius:9px}.seat strong{font-size:10px}.seat .balance{font-size:16px;margin:3px 0}.seat small{font-size:8px}.seat .cards{gap:3px;margin-top:3px}.seat .card{width:19px;height:25px;font-size:12px}.seat-actions{font-size:8px;max-height:24px;line-height:1.4;margin-top:3px}.seat-actions b{display:none}.seat.empty{min-height:49px;font-size:9px}.seat .badge{font-size:7px;padding:1px 3px}.felt{left:16%;width:68%;top:29%;height:42%;box-shadow:0 0 0 4px #edf1e8,0 0 0 5px #d8e1d4;padding:7px}.table-mark{font-size:7px;letter-spacing:1px}.board{gap:3px;margin:7px 0 3px}.board .card{width:clamp(23px,7vw,35px);height:clamp(33px,9.5vw,47px);font-size:18px}.felt>strong{font-size:17px;margin-top:4px}.felt p{font-size:9px;line-height:1.4;margin:3px 0;max-height:28px}#result-open{font-size:9px;padding:4px 8px}.hero-strip{gap:6px;padding:0 8px}.hero-strip>div:first-child{gap:5px}.hero-strip>div:first-child>.fine{display:none}.hero-strip .card{width:24px;height:34px;font-size:16px}.hero-strip #notice{font-size:9px;max-width:50%}.stack-box strong{font-size:21px}.stack-box span,.stack-box small{font-size:8px}.play-dock{padding:5px 5px 0}#turn-message{font-size:10px;margin:0 0 5px}.action-buttons{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.action-buttons button{font-size:11px;padding:6px 3px;min-height:40px}.action-buttons button small{font-size:9px}#start-hint{font-size:9px;margin-top:4px}.login{margin:5vh auto;padding:22px}.login h1{font-size:30px}#side-panel{padding:14px 16px}.drawer-tabs{top:-14px}.drawer-tabs button{padding:9px 10px}main{padding:18px}}
@media(max-height:620px) and (min-width:701px){.seat .cards{display:none}.seat-actions{max-height:23px}.seat{padding:6px 9px}.board .card{height:40px;width:30px;font-size:22px}.table-mark{display:none}.felt p{font-size:10px}.hero-strip .card{height:30px;width:23px;font-size:16px}#room{grid-template-rows:25px minmax(0,1fr) 40px auto}.action-buttons button{min-height:34px;padding:6px 12px}}
@media(max-height:480px) and (max-width:700px){.seat .cards,.seat-actions{display:none}.seat{padding:4px 6px}.seat .balance{font-size:13px}.board .card{height:28px;width:21px;font-size:15px}.felt{top:28%;height:43%}.felt p,.table-mark{display:none}#room{grid-template-rows:20px minmax(0,1fr) 35px auto}.hero-strip .card{height:26px;width:19px;font-size:14px}.action-buttons{grid-template-columns:repeat(7,1fr)}.action-buttons button{min-height:31px;font-size:9px}#turn-message{font-size:9px;margin:0 0 2px}.stack-box strong{font-size:17px}}
.seats.count-4 .seat:nth-child(1){left:50.00%;top:86.00%;}.seats.count-4 .seat:nth-child(2){left:11.00%;top:50.00%;}.seats.count-4 .seat:nth-child(3){left:50.00%;top:14.00%;}.seats.count-4 .seat:nth-child(4){left:89.00%;top:50.00%;}.seats.count-5 .seat:nth-child(1){left:50.00%;top:86.00%;}.seats.count-5 .seat:nth-child(2){left:12.91%;top:61.12%;}.seats.count-5 .seat:nth-child(3){left:27.08%;top:20.88%;}.seats.count-5 .seat:nth-child(4){left:72.92%;top:20.88%;}.seats.count-5 .seat:nth-child(5){left:87.09%;top:61.12%;}.seats.count-6 .seat:nth-child(1){left:50.00%;top:86.00%;}.seats.count-6 .seat:nth-child(2){left:16.23%;top:68.00%;}.seats.count-6 .seat:nth-child(3){left:16.23%;top:32.00%;}.seats.count-6 .seat:nth-child(4){left:50.00%;top:14.00%;}.seats.count-6 .seat:nth-child(5){left:83.77%;top:32.00%;}.seats.count-6 .seat:nth-child(6){left:83.77%;top:68.00%;}.seats.count-7 .seat:nth-child(1){left:50.00%;top:86.00%;}.seats.count-7 .seat:nth-child(2){left:19.51%;top:72.45%;}.seats.count-7 .seat:nth-child(3){left:11.98%;top:41.99%;}.seats.count-7 .seat:nth-child(4){left:33.08%;top:17.57%;}.seats.count-7 .seat:nth-child(5){left:66.92%;top:17.57%;}.seats.count-7 .seat:nth-child(6){left:88.02%;top:41.99%;}.seats.count-7 .seat:nth-child(7){left:80.49%;top:72.45%;}.seats.count-8 .seat:nth-child(1){left:50.00%;top:86.00%;}.seats.count-8 .seat:nth-child(2){left:22.42%;top:75.46%;}.seats.count-8 .seat:nth-child(3){left:11.00%;top:50.00%;}.seats.count-8 .seat:nth-child(4){left:22.42%;top:24.54%;}.seats.count-8 .seat:nth-child(5){left:50.00%;top:14.00%;}.seats.count-8 .seat:nth-child(6){left:77.58%;top:24.54%;}.seats.count-8 .seat:nth-child(7){left:89.00%;top:50.00%;}.seats.count-8 .seat:nth-child(8){left:77.58%;top:75.46%;}.seats.count-9 .seat:nth-child(1){left:50.00%;top:86.00%;}.seats.count-9 .seat:nth-child(2){left:24.93%;top:77.58%;}.seats.count-9 .seat:nth-child(3){left:11.59%;top:56.25%;}.seats.count-9 .seat:nth-child(4){left:16.23%;top:32.00%;}.seats.count-9 .seat:nth-child(5){left:36.66%;top:16.17%;}.seats.count-9 .seat:nth-child(6){left:63.34%;top:16.17%;}.seats.count-9 .seat:nth-child(7){left:83.77%;top:32.00%;}.seats.count-9 .seat:nth-child(8){left:88.41%;top:56.25%;}.seats.count-9 .seat:nth-child(9){left:75.07%;top:77.58%;}
#modal-backdrop{position:fixed;inset:0;background:#14291766;z-index:30}.modal-panel{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);background:#fff;z-index:31;border:1px solid #d9e5d5;border-radius:16px;padding:24px;color:#254532;width:min(460px,calc(100% - 30px));max-height:85dvh;overflow:auto;box-shadow:0 15px 70px #0003}.modal-panel h2{margin:0 0 14px}.modal-panel>button{margin-top:20px;width:100%}
.seat .seat-actions{display:block;max-height:64px;overflow:auto;scrollbar-width:thin;line-height:1.45}.street-actions{display:flex;align-items:center;gap:3px;padding:2px 0;border-radius:4px}.seat .seat-actions b{display:block;flex:none;font-size:8px;font-weight:650;color:#637961}.move-chain{display:flex;gap:3px;overflow-x:auto;white-space:nowrap;min-width:0;scrollbar-width:none;flex-direction:row}.action-chip{display:inline-block;flex:none;border-radius:4px;padding:2px 4px;background:#edf1e7;color:#58684f;font-size:9px;font-weight:550}.action-chip.latest-move{font-weight:750}.kind-check{background:#e1edff;color:#245ca3}.kind-call{background:#def0e2;color:#21613a}.kind-raise{background:#ffebc6;color:#85520b}.kind-allin{background:#f5def4;color:#803879}.kind-fold{background:#ffdddd;color:#a23939}.current-street{background:#edf5e8}.current-street .latest-move{box-shadow:inset 0 0 0 1px #83b98a}.seat.folded{opacity:1;background:#f7f9f4}.seat.folded .balance,.seat.folded>.cards{opacity:.48}.seat.bot-available{cursor:pointer;border-color:#7ca7bc;box-shadow:0 0 0 1px #91bdd333}.seat.bot-available:hover,.seat.bot-available:focus{outline:2px solid #649db9;outline-offset:1px}.bot-seat-hint{display:block;font-size:8px;font-weight:650;color:#276c8d;margin-top:5px}.bot-seat-hint:empty{display:none}#toggle-seat-approval{margin:0 0 8px}#seat-approval-status{margin:0 0 14px}
@media(max-width:700px){.action-buttons{grid-template-columns:repeat(5,minmax(0,1fr))}.action-buttons button{min-width:0;overflow-wrap:anywhere}.seat .seat-actions{max-height:48px}.seat .seat-actions b{display:block;font-size:7px}.action-chip{font-size:8px;padding:2px 3px}.bot-seat-hint{font-size:8px}.seat{width:clamp(73px,21vw,102px)}}
@media(max-height:480px){.seat .seat-actions{display:block;max-height:20px}.street-actions{padding:0}.action-chip{padding:1px 2px}.bot-seat-hint{font-size:7px;margin-top:2px}.action-buttons{grid-template-columns:repeat(9,minmax(0,1fr))}}

header nav {
  min-width: 0;
}
#identity {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#site-navigation {
  position: relative;
  flex: none;
  margin: 0;
}
#site-navigation summary {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
}
#site-navigation summary:hover,
#site-navigation[open] summary,
#site-navigation a:hover {
  background: #f2f5f3;
}
#site-navigation ul {
  position: absolute;
  z-index: 10;
  top: calc(100% + 7px);
  right: 0;
  min-width: 176px;
  margin: 0;
  padding: 5px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 22px #243b3026;
}
#site-navigation a {
  display: block;
  padding: 9px 11px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
}
#site-navigation summary:focus-visible,
#site-navigation a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
@media (max-width: 700px) {
  #site-navigation summary {
    padding: 6px 8px;
    font-size: 11px;
  }
}
