/* Shared table playground: warm cards around one green felt surface. */
.pg-page{max-width:1120px}.pg-eyebrow{margin-top:28px}.pg-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0 34px}.pg-tab{border:1px solid #a7b993;border-radius:999px;background:#eef2df;color:#2b4e2b;padding:10px 17px;font-weight:750;cursor:pointer}.pg-tab.active{background:#315c30;color:#fff8d9;border-color:#315c30}.pg-tab:focus-visible,.pg-card:focus-visible,.pg-action:focus-visible,.pg-toolbar button:focus-visible{outline:3px solid #bd8532;outline-offset:3px}.pg-list-title{font-size:20px;margin:0 0 16px}.pg-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.pg-card{text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-height:220px;padding:19px;border:1px solid #d7d9bd;border-radius:14px;background:#fffdf3;color:#2c3627;cursor:pointer;box-shadow:0 4px 12px #1d3c1c14}.pg-card:hover{transform:translateY(-2px);box-shadow:0 9px 18px #1d3c1c25}.pg-card strong{font-size:17px;line-height:1.35}.pg-card span:not(.pg-number){font-size:13px;color:#687365;line-height:1.6}.pg-card small{margin-top:auto;color:#38653a;font-weight:800}.pg-number{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:#e6edda;color:#335c35;font-weight:800}.pg-scope{font-size:12px;line-height:1.65;color:#697566;margin:18px 0 0}.pg-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:16px 0;color:#60715f;font-size:12px}.pg-toolbar button{border:1px solid #ced9bb;background:#f4f4e5;border-radius:8px;color:#325b31;padding:8px 12px;cursor:pointer;font-weight:700}.pg-board{position:relative;min-height:295px;border:10px solid #455e36;border-radius:24px;background:radial-gradient(circle at 50% 35%,#85ad68 0,#568849 58%,#356b3b 100%);box-shadow:inset 0 0 0 3px #b5cc95,0 12px 23px #203e2850;overflow:hidden}.pg-board:before,.pg-board:after{content:"";position:absolute;left:12%;right:12%;height:11px;border-radius:8px;background:repeating-linear-gradient(90deg,#e9e5cf 0 21px,#487e49 22px 25px);box-shadow:0 4px 0 #315e35}.pg-board:before{top:17px}.pg-board:after{bottom:17px}.pg-seats{position:absolute;inset:42px 20px 42px;pointer-events:none}.pg-seat{position:absolute;background:#f3eac7;border:1px solid #e8d29f;border-radius:999px;padding:7px 14px;color:#2f542a;font-size:12px;font-weight:800;box-shadow:0 3px 7px #204b2b45}.pg-seat:nth-child(1){left:50%;top:0;transform:translateX(-50%)}.pg-seat:nth-child(2){left:0;top:45%}.pg-seat:nth-child(3){right:0;top:45%}.pg-seat.inactive{opacity:.46;text-decoration:line-through}.pg-board-center{position:absolute;inset:68px 25% 48px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:9px}.pg-board-center>span{font-size:10px;letter-spacing:.2em;font-weight:800;color:#e7f2cd}.pg-board-center>b{font-size:12px;color:#fff5d7;background:#264d2b;border-radius:999px;padding:5px 14px}.pg-felt-mark{font-size:39px;color:#e6df9e;opacity:.8}.pg-last{display:flex;flex-direction:column;gap:4px;align-items:center;color:#f3f3d9}.pg-last .tile{width:48px;height:66px}.pg-meta{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.pg-meta>div{display:flex;flex-direction:column;gap:4px;padding:10px 13px;background:#eef1e3;border:1px solid #d9deca;border-radius:10px;min-width:120px}.pg-meta small{font-size:11px;color:#687a69}.pg-meta strong{font-size:13px;color:#315235}.pg-note{font-size:13px;color:#596b58;line-height:1.6}.pg-hand,.pg-melds,.pg-discards,.pg-decisions,.pg-result{background:#fffdf4;border:1px solid #dddcc9;border-radius:14px;padding:20px;margin:16px 0}.pg-hand h2,.pg-decisions h2,.pg-result h2{font-size:20px;margin:0 0 15px}.pg-hand h2 small{font-size:12px;color:#6b7b69;font-weight:500}.pg-melds h3,.pg-discards h3{font-size:14px;margin:0 0 10px}.pg-meld{display:flex;align-items:center;gap:13px;flex-wrap:wrap}.pg-meld strong{font-size:12px;color:#4a6746}.pg-tiles,.pg-rack{display:flex;gap:5px;overflow-x:auto;padding:5px 2px 10px;max-width:100%;scrollbar-width:thin}.pg-rack .tile{width:49px;height:68px;flex:none}.pg-tiles .tile{width:39px;height:54px;flex:none}.pg-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.pg-action{border:1px solid #cfdcc8;background:#f0f5e9;color:#294a2c;border-radius:11px;min-height:85px;padding:14px;cursor:pointer;text-align:left;display:flex;flex-direction:column;gap:6px;position:relative}.pg-action:hover{background:#e5efd8;border-color:#8baa86}.pg-action-kind{font-size:10px;letter-spacing:.12em;color:#6f9168;font-weight:800}.pg-action>span:nth-child(2){font-weight:750;line-height:1.4;padding-right:14px}.pg-action i{position:absolute;right:13px;bottom:12px;font-style:normal}.pg-feedback{border-radius:11px;padding:14px 18px;line-height:1.6}.pg-feedback strong{font-size:13px}.pg-feedback p{font-size:13px;margin:5px 0 0}.pg-feedback.legal{background:#e5f0dc;color:#285431}.pg-feedback.illegal{background:#fff0df;color:#76512e}.pg-result{border-color:#d8d5a7;background:#fffbe9}.pg-result .eyebrow{font-size:10px;margin-bottom:9px}.pg-result p{line-height:1.7;color:#53634e}.pg-result-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
@media(max-width:800px){.pg-list{grid-template-columns:1fr}.pg-card{min-height:0}.pg-board{min-height:250px}.pg-actions{grid-template-columns:1fr}.pg-action{min-height:65px}.pg-board-center{left:23%;right:23%}.pg-hand,.pg-melds,.pg-discards,.pg-decisions,.pg-result{padding:16px}}
@media(max-width:420px){.pg-board{min-height:230px;border-width:7px}.pg-seats{inset:36px 10px 36px}.pg-seat{font-size:10px;padding:6px 8px}.pg-board-center{left:20%;right:20%;inset-block:67px 41px}.pg-board-center>span{font-size:7px}.pg-last .tile{width:40px;height:55px}.pg-rack .tile{width:42px;height:58px}.pg-meta>div{min-width:calc(50% - 5px);flex:1}.pg-tabs{gap:6px}.pg-tab{font-size:12px;padding:8px 11px}}

/* Daily 5-Puzzle Trainer */
.dp-page{max-width:860px}
.dp-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:20px}
.dp-streak-pill{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border-radius:999px;background:#fff4d8;border:1px solid #e5c373;color:#6f480e;font-weight:800;font-size:13px;white-space:nowrap}
.dp-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:18px 0 16px}
.dp-mode-tabs{display:flex;gap:8px;flex-wrap:wrap}
.dp-dots{display:flex;gap:6px;align-items:center}
.dp-dot{width:32px;height:32px;border-radius:10px;border:1px solid #d5cebd;background:#f7f4ec;color:#465947;font-weight:800;font-size:13px;cursor:pointer;transition:transform .14s ease,border-color .14s ease}
.dp-dot:disabled{opacity:.65;cursor:default}
.dp-dot.is-cur{border-color:#265031;box-shadow:0 0 0 2px #26503133;transform:translateY(-1px)}
.dp-dot.is-best{background:#2a6f44;border-color:#2a6f44;color:#fff}
.dp-dot.is-ok{background:#d79b2b;border-color:#d79b2b;color:#fff}
.dp-dot.is-miss{background:#c2483c;border-color:#c2483c;color:#fff}
.dp-card{background:#fffdf8;border:1px solid #e3dbc9;border-radius:18px;padding:22px 24px;box-shadow:0 12px 30px rgba(34,54,35,.06)}
.dp-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.dp-badge{display:inline-flex;align-items:center;padding:4px 11px;border-radius:999px;background:#e8f2e7;border:1px solid #bfd8bd;color:#1f4d2b;font-size:12px;font-weight:800}
.dp-step{font-size:13px;font-weight:700;color:#5a6c58}
.dp-prompt{margin:0 0 12px;font-size:16px;font-weight:700;line-height:1.5;color:#1e3222}
.dp-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.dp-chip{display:inline-flex;align-items:center;padding:3px 9px;border-radius:7px;background:#f2eee3;border:1px solid #dfd7c4;color:#425343;font-size:12px;font-weight:600}
.dp-sublabel,.dp-hand-label{font-size:12px;font-weight:800;color:#556854;margin:10px 0 6px;letter-spacing:.02em}
.dp-visible-row,.dp-melds-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-bottom:8px}
.dp-visible-row .tile{width:30px;height:42px}
.dp-hand-rack{display:flex;flex-wrap:wrap;gap:5px;padding:12px 10px;border-radius:14px;background:linear-gradient(180deg,#1f5944,#164132);border:2px solid #2b6e55;justify-content:center}
.dp-tile-btn{position:relative;padding:2px;border:2px solid transparent;border-radius:9px;background:transparent;cursor:pointer;transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease}
.dp-tile-btn .tile{width:46px;height:64px}
.dp-tile-btn:not(:disabled):hover{transform:translateY(-6px)}
.dp-tile-btn.is-best{border-color:#53df87;background:#53df872e;transform:translateY(-5px);box-shadow:0 6px 14px rgba(0,0,0,.28)}
.dp-tile-btn.is-ok{border-color:#f4c552;background:#f4c5522e}
.dp-tile-btn.is-miss{border-color:#f06a5c;background:#f06a5c2e}
.dp-hand-static{display:flex;flex-wrap:wrap;gap:4px;padding:12px 10px;border-radius:14px;background:linear-gradient(180deg,#1f5944,#164132);border:2px solid #2b6e55;justify-content:center}
.dp-hand-static .tile{width:44px;height:61px}
.dp-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}
.dp-choice-btn{padding:13px 14px;border-radius:12px;border:1.5px solid #d5ccb7;background:#faf6ec;color:#1e3222;font:inherit;font-size:15px;font-weight:700;cursor:pointer;text-align:center;transition:all .14s ease}
.dp-choice-btn:not(:disabled):hover{border-color:#2a6037;background:#edf6ed;transform:translateY(-1px)}
.dp-choice-btn.is-best{border-color:#267343;background:#e2f5e8;color:#164a2a}
.dp-choice-btn.is-miss{border-color:#c94c3e;background:#fdebe8;color:#7e251c}
.dp-feedback{margin-top:16px;padding:15px 16px;border-radius:14px;border:1.5px solid #d5ccb7;background:#f8f5ec}
.dp-feedback.is-best{border-color:#72bc8b;background:#eff9f2}
.dp-feedback.is-ok{border-color:#dfb759;background:#fdf8e7}
.dp-feedback.is-miss{border-color:#df8a7e;background:#fdf1ef}
.dp-fb-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:8px;font-size:14px;color:#1f3322}
.dp-outs-list{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.dp-out-chip{display:inline-flex;flex-direction:column;align-items:center;gap:2px;padding:4px 5px;border-radius:8px;background:#fff;border:1px solid #d7d2c2}
.dp-out-chip .tile{width:28px;height:39px}
.dp-out-chip small{font-size:11px;font-weight:800;color:#285735}
.dp-rank-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:6px 10px;border-radius:9px;margin-top:5px;background:#fff;border:1px solid #e2dccb;font-size:13px}
.dp-rank-row.is-best{border-color:#68b884;background:#f3fbf5}
.dp-rank-row.is-user{box-shadow:inset 3px 0 0 #265031}
.dp-rank-num{font-weight:800;color:#5a6e5b;width:24px}
.dp-rank-tile{display:inline-flex;align-items:center;gap:6px}
.dp-rank-tile .tile{width:24px;height:33px}
.dp-rank-meta{color:#3d513e}
.dp-grouped-hand{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 10px}
.dp-group{display:inline-flex;gap:2px;padding:4px 5px;border-radius:8px;background:#eaf0df;border:1px solid #c9d5b9}
.dp-group.is-exposed{background:#dfeede;border-color:#94bb91}
.dp-group.is-pair{background:#f7edd6;border-color:#ddc07b}
.dp-group .tile{width:32px;height:44px}
.dp-fan-pills{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.dp-fan-pill{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:999px;background:#fff;border:1px solid #d6ceba;font-size:12.5px;color:#233b27}
.dp-under-note{margin:8px 0 0;font-size:13px;font-weight:700;color:#a0372b}
.dp-next-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.dp-summary{text-align:center}
.dp-summary-score{display:inline-block;padding:6px 16px;border-radius:999px;background:#1f4d2d;color:#f7ecd0;font-weight:800;font-size:14px;margin-bottom:8px}
.dp-emoji-grid{font-size:30px;letter-spacing:4px;margin:10px 0}
.dp-summary-sub{margin:0 0 14px;font-size:13px;color:#566956}
.dp-vault-bonus{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:12px auto;padding:10px 14px;max-width:560px;border-radius:12px;background:#fff7e0;border:1px solid #e4c472;color:#5e3e0b;font-size:13px;font-weight:700;text-align:left}
.dp-share-preview{margin:14px auto;padding:14px 16px;max-width:480px;border-radius:12px;background:#f4f0e4;border:1px solid #dcd3be;color:#203222;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px;line-height:1.6;text-align:left;white-space:pre-wrap;word-break:break-word}
.dp-summary-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:16px}
.dp-review-bar{display:flex;justify-content:center;align-items:center;gap:6px;flex-wrap:wrap;margin-top:18px;padding-top:14px;border-top:1px solid #e6dfd0;font-size:12.5px;color:#576a57}
.dp-jump-btn{padding:5px 10px;border-radius:8px;border:1px solid #d6ceba;background:#faf6ec;color:#243827;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.dp-jump-btn:hover{border-color:#265031;background:#ebf4eb}
@media(max-width:600px){
  .dp-card{padding:16px 14px}
  .dp-tile-btn .tile{width:clamp(36px,calc((100vw - 68px) / 7.6),46px);height:auto;aspect-ratio:5/7}
  .dp-hand-static .tile{width:clamp(34px,calc((100vw - 70px) / 7.8),44px);height:auto;aspect-ratio:5/7}
  .dp-choices{grid-template-columns:1fr}
  .dp-group .tile{width:26px;height:36px}
}
