:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#eee8db;background:#112d2b;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 50% 15%,#26534a 0%,#163a35 40%,#102b29 100%)}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}.hidden{display:none!important}.shell{max-width:1120px;padding:32px 24px 16px;margin:auto}.mast{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff2c;padding-bottom:24px;margin-bottom:32px}.eyebrow,.subhead{color:#c1ae7a;font-size:.69rem;font-weight:800;letter-spacing:.2em}.mast h1{font-family:Georgia,serif;font-weight:normal;font-size:clamp(2.7rem,5vw,4.5rem);margin:4px 0}.mast h1 em{color:#edbc76;font-weight:normal}.mast p,.panel p,.note p{color:#aabdb5;line-height:1.6;margin:0}.badge{color:#ebc68e;border:1px solid #d4aa7566;padding:10px 15px;border-radius:100px;font-size:.7rem;font-weight:800;letter-spacing:.16em;white-space:nowrap}.panel{max-width:700px;margin:54px auto 120px;background:#f5efdf;color:#203630;padding:32px;border-radius:18px;box-shadow:0 20px 60px #081a1780}.panel-title{display:flex;gap:18px;align-items:flex-start;margin-bottom:30px}.step{background:#dbe3d5;color:#366154;width:40px;height:40px;display:grid;place-items:center;border-radius:50%;font-weight:800;flex-shrink:0}.panel h2{font:normal 2rem Georgia,serif;margin:0 0 5px}.panel p{color:#62756c}.panel label{display:block;font-size:.83rem;font-weight:700;margin-bottom:8px}.panel input,.copyrow input{width:100%;border-radius:9px;border:1px solid #b6c4b9;padding:14px 15px;background:#fff;color:#263c33;outline-color:#b3844b}.choices{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:22px}.big-choice{display:flex;flex-direction:column;text-align:left;gap:8px;background:white;border:1px solid #d7ddce;padding:22px;border-radius:12px;color:#263c33;min-height:150px;transition:.2s}.big-choice:hover{border-color:#b17e48;transform:translateY(-2px)}.choice-icon{color:#b47c48;font-size:2rem}.big-choice strong{font-size:1rem}.big-choice small{color:#60746a}.primary{background:#d4a369;color:#1a312b;border:0;border-radius:9px;padding:13px 22px;font-weight:800;margin-top:16px}.primary:not(:disabled):hover{background:#f0be80}.scoreboard{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;background:#f3eddf;color:#243b32;border-radius:16px 16px 0 0;padding:22px 30px;gap:10px}.scorebox{display:flex;gap:12px;align-items:baseline}.scorebox span{font-size:.95rem;font-weight:700;overflow-wrap:anywhere}.scorebox strong{font:normal 3.25rem Georgia,serif;color:#a3563f}.scorebox.right{justify-content:flex-end;flex-direction:row-reverse;text-align:right}.score-mid{text-align:center;font-size:.7rem;letter-spacing:.13em;font-weight:800;color:#6b7566}.score-mid div{font-size:1.15rem;color:#263b35;letter-spacing:.06em;margin:5px}.score-mid small{font-size:.7rem;letter-spacing:0}.playfield{min-height:440px;background:linear-gradient(145deg,#25594c,#1b463d);box-shadow:0 16px 35px #06191555;border-radius:0 0 16px 16px;padding:26px 30px 34px;border:1px solid #ffffff1a}.topline,.peg-header,.hand-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.status{color:#f5d09c;font:normal 1.45rem Georgia,serif}.turn,.hand-head span:last-child{color:#c8d5c6;font-size:.8rem}.starter-area{text-align:center;margin:22px 0}.starter-area .card{margin:10px auto}.peg-header{margin:22px 0 12px}.peg-header strong{color:#f3d29d;font-size:.81rem;letter-spacing:.12em}.peg-cards{display:flex;gap:12px;overflow:auto;min-height:110px;padding-bottom:12px}.peg-item{text-align:center;flex:0 0 64px}.peg-item .card{transform:scale(.75);transform-origin:top left;margin-bottom:-20px}.peg-item span{font-size:.65rem;color:#d0dbce}.hand-head{border-top:1px solid #ffffff30;padding-top:20px;margin-top:24px}.cards{display:flex;flex-wrap:wrap;gap:12px;min-height:118px;margin:16px 0}.card{position:relative;display:flex;flex-direction:column;justify-content:space-between;width:72px;height:100px;background:#fffaf0;border-radius:8px;color:#26302b;border:2px solid #ece4d1;box-shadow:0 4px 8px #08231c77;text-align:left;padding:6px;flex-shrink:0}.card:not(:disabled):hover{transform:translateY(-5px)}.card.red{color:#bd4c40}.card.selected{transform:translateY(-10px);outline:3px solid #e6ba7b}.card span{font-size:1.02rem;font-weight:800;line-height:1}.card span small{display:block;font-size:.78rem;margin-top:2px}.card b{font-size:1.5rem;text-align:center;line-height:1}.card .corner{text-align:right;font-size:.76rem}.invite{max-width:620px;margin:60px auto;padding:24px;border-radius:12px;background:#ffffff13}.invite h3{font:normal 1.8rem Georgia,serif;margin:0 0 7px}.invite p{color:#c6d7ce}.copyrow{display:flex;gap:8px;margin-top:18px}.copyrow input{min-width:0}.copyrow button{background:#edc28b;border:0;padding:0 14px;border-radius:8px;font-weight:bold;white-space:nowrap}.show-area{margin-top:22px;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.show-row{background:#ffffff12;border:1px solid #ffffff20;border-radius:10px;padding:13px}.show-row h3{font:normal 1rem Georgia,serif;margin:0 0 12px}.show-row p{font-size:.72rem;color:#c7d7c9;line-height:1.5}.mini-cards{display:flex;gap:4px;flex-wrap:wrap}.mini-cards span{background:#f7f1e6;color:#253c34;padding:5px;border-radius:4px;font-weight:700;font-size:.75rem}.bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin-top:24px}.note,.history{background:#ffffff0c;padding:18px 22px;border-radius:10px}.bottom-grid h3{font:normal 1.3rem Georgia,serif;color:#ebc18b;margin:0 0 9px}.history p{font-size:.83rem;color:#bdcfc4;margin:0 0 6px}footer{text-align:center;color:#92ad9e;font-size:.75rem;margin:38px 0 12px}.message{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#f7e5cb;color:#603923;padding:12px 18px;border-radius:9px;box-shadow:0 8px 25px #0006;max-width:min(90vw,550px);z-index:2}@media(max-width:650px){.shell{padding:18px 12px}.mast{align-items:flex-start}.mast p{font-size:.8rem}.badge{font-size:.58rem;padding:8px}.panel{padding:22px;margin:25px 0 60px}.choices{grid-template-columns:1fr}.big-choice{min-height:0;padding:15px}.scoreboard{padding:15px 12px;gap:4px}.scorebox{flex-direction:column;gap:0}.scorebox.right{flex-direction:column;text-align:right}.scorebox strong{font-size:2.4rem}.scorebox span{font-size:.72rem}.score-mid{font-size:.54rem}.score-mid div{font-size:.8rem}.score-mid small{font-size:.55rem}.playfield{padding:20px 14px}.card{width:60px;height:88px}.cards{gap:8px}.show-area,.bottom-grid{grid-template-columns:1fr}.copyrow{flex-direction:column}.copyrow button{padding:11px}.status{font-size:1.2rem}}
.secondary{background:transparent;border:1px solid #b58954;color:#8d5c37;border-radius:8px;padding:12px 16px;font-weight:700;margin-top:18px}.secondary.full{width:100%}.secondary:hover{background:#e4dbc4}.tour-toolbar{text-align:center;margin:26px auto}.tour-toolbar h2,.tour-banner h2{font:normal 2.8rem Georgia,serif;margin:10px 0}.tour-toolbar p,.tour-banner p,.tour-panel p{color:#b6cabe;line-height:1.5}.tour-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0}.tour-panel{background:#f5efdf;color:#253c34;border-radius:14px;padding:24px;margin-bottom:18px}.tour-panel h3{font:normal 1.6rem Georgia,serif;margin:0 0 16px}.tour-panel p{color:#5f7267}.tour-panel label{display:block;font-size:.8rem;font-weight:700;margin:15px 0 7px}.tour-panel input,.tour-panel select{width:100%;border-radius:7px;border:1px solid #b5c3b6;background:white;color:#263b33;padding:12px}.tour-panel .copyrow button{padding:0 14px}.formrow{display:grid;grid-template-columns:1fr 1fr;gap:12px}.listing{display:flex;justify-content:space-between;gap:12px;background:#e9e4d5;color:#28483d;text-decoration:none;border-radius:8px;padding:12px;margin:10px 0}.listing:hover{background:#dbe8d6}.listing small{color:#697967}.textbutton{display:inline-block;color:#f1c58d;background:transparent;border:0;text-decoration:none;font-weight:700;padding:10px 0;cursor:pointer}.tour-banner{padding:22px 26px;border-radius:14px;background:#255548;margin:15px 0 24px}.tour-banner p{margin:0}.participant{border-bottom:1px solid #d5dccf;padding:8px 0;margin:0!important}.match{border:1px solid #d9d6c7;border-radius:8px;margin:9px 0 16px;padding:10px;background:#fffdf6}.match-player{padding:8px 10px;border-bottom:1px solid #e5e6de}.match-player:last-of-type{border:0}.match-winner{font-weight:800;color:#23764c;background:#e6f2e6}.match-you:after{content:' · You';font-size:.72rem;color:#ad7e47}.match-link{display:block;color:#286854;font-weight:800;padding:10px;text-decoration:none}.match small{display:block;color:#829087;padding:8px}#tournamentBracket h4{color:#af7744;margin:23px 0 8px}#returnTournament{margin:0 0 8px}@media(max-width:650px){.tour-grid,.formrow{grid-template-columns:1fr}.tour-panel{padding:18px}.listing{flex-direction:column;gap:4px}}
.card:disabled{opacity:1}
.card span{font-size:1.2rem}
.card span small{font-size:.93rem}
.card .corner{font-size:.9rem}
.peg-cards{min-height:156px}
.peg-item{flex:0 0 76px}
.peg-item .card{width:72px;height:98px;transform:none;transform-origin:center;margin-bottom:7px;padding:7px}
.peg-item .card span{font-size:1.26rem}
.peg-item .card span small{font-size:.96rem}
.peg-item .card b{font-size:1.65rem}
.peg-item .card .corner{font-size:.92rem}
.peg-item>span{display:block;font-size:.74rem;font-weight:700;white-space:nowrap}
.peg-item .peg-points{color:#1f3a2d;background:#efcb8c;padding:5px 6px;border-radius:6px;margin-top:5px;font-size:.7rem;line-height:1.25;white-space:normal}
.show-row h3{display:flex;align-items:center;justify-content:space-between;gap:10px}
.hand-points{display:inline-block;flex-shrink:0;color:#203b2f;background:#f0c889;border-radius:8px;padding:5px 9px;font:800 1.4rem ui-sans-serif,system-ui,sans-serif}
.show-row p{font-size:.79rem;color:#e3e9d9}
.scorebox.earned strong{color:#267a4f;animation:scorePulse .7s ease-out}
.score-overlay{position:fixed;z-index:5;left:50%;top:32%;transform:translateX(-50%);pointer-events:none;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:185px;max-width:80vw;padding:14px 27px;background:#f8eed8;color:#234336;border:3px solid #e7bb77;border-radius:16px;box-shadow:0 15px 55px #041915aa;text-align:center;animation:scoreRise 1.8s ease-out forwards}
.score-overlay small{font-size:.85rem;font-weight:800}
.score-overlay strong{font:800 3rem ui-sans-serif,system-ui,sans-serif;line-height:1;color:#ab5c38}
.score-overlay span{font:normal 1.2rem Georgia,serif}
@keyframes scoreRise{0%{opacity:0;translate:0 18px;scale:.88}15%{opacity:1;translate:0 0;scale:1}75%{opacity:1;translate:0 -4px;scale:1}100%{opacity:0;translate:0 -25px;scale:1}}
@keyframes scorePulse{0%{scale:1}40%{scale:1.25}100%{scale:1}}
@media(max-width:650px){.peg-item{flex-basis:68px}.peg-item .card{width:64px;height:90px}.peg-item .card span{font-size:1.12rem}.peg-item .card span small{font-size:.88rem}.peg-item .card .corner{font-size:.85rem}}
.crib-banner{display:flex;align-items:center;gap:13px;padding:11px 28px;background:#efc98d;color:#244032;box-shadow:inset 0 1px #fff5, inset 0 -1px #45391c30}
.crib-symbol{display:grid;place-items:center;flex:0 0 35px;height:35px;border-radius:50%;background:#275a48;color:#fff0d9;font-size:1.55rem}
.crib-banner div{display:flex;flex-direction:column;gap:1px}
.crib-banner small{font-size:.64rem;font-weight:900;letter-spacing:.14em}
.crib-banner strong{font:normal 1.45rem Georgia,serif}
.crib-note{margin-left:auto;font-size:.76rem;font-weight:650;text-align:right}
.scorebox.crib-owner span{color:#9b5a2e;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px}
@media(max-width:650px){.crib-banner{padding:10px 15px}.crib-banner strong{font-size:1.2rem}.crib-note{max-width:100px;font-size:.67rem}}
.cut-area{padding:30px 0 12px;text-align:center}
.cut-area h2{font:normal 2rem Georgia,serif;color:#f5d09c;margin:8px 0}
.cut-area>p{max-width:610px;margin:0 auto 22px;color:#d6e4d8;line-height:1.5}
.cut-scroll{overflow-x:auto;max-width:800px;margin:auto;padding:8px 2px 16px}
.cut-cards{display:grid;grid-template-columns:repeat(13,1fr);gap:8px;min-width:675px}
.cut-card{height:73px;min-width:0;border:3px solid #edcfab;border-radius:7px;color:#f2d9b2;background:repeating-linear-gradient(45deg,#762d37 0,#762d37 7px,#963c45 7px,#963c45 12px);box-shadow:0 4px 8px #071e1aaa,inset 0 0 0 2px #6b252d;font-size:1.5rem;font-weight:800;transition:transform .15s}
.cut-card:not(:disabled):hover,.cut-card:not(:disabled):focus-visible{transform:translateY(-9px);outline:3px solid #f5d696;outline-offset:2px}
.cut-card:disabled{opacity:1}
.cut-card.my-cut{color:#263b31;background:#f4d49c;border-color:#fff5d1;transform:translateY(-7px)}
.cut-card.taken-cut{border-color:#bac4b5;color:#dce3d8;filter:saturate(.45)}
.cut-status{font:normal 1.15rem Georgia,serif;color:#f4d098!important;margin:12px auto!important}
.cut-results{margin:20px auto;max-width:560px;padding:24px;background:#ffffff13;border:1px solid #ffffff31;border-radius:13px}
.cut-result-cards{display:flex;justify-content:center;gap:48px}
.cut-reveal{display:flex;flex-direction:column;align-items:center;gap:12px}
.cut-reveal strong{font-size:.9rem}
.cut-results h3{font:normal 1.45rem Georgia,serif;color:#f2cb8b;margin:20px 0 5px}
.cut-results p{color:#d4e4d7}
@media(max-width:650px){.cut-area{padding-top:18px}.cut-area h2{font-size:1.7rem}.cut-result-cards{gap:28px}}
.board-panel{background:#1d443b;padding:16px 24px 18px;border-left:1px solid #ffffff20;border-right:1px solid #ffffff20}
.board-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#ebc78f;margin-bottom:8px}
.board-heading strong{font-size:.73rem;letter-spacing:.16em}
.board-heading small{font-size:.73rem;color:#d2decf}
.board-scroll{overflow-x:auto;padding-bottom:3px}
#cribbageBoard{display:block;width:100%;min-width:720px;height:auto;filter:drop-shadow(0 7px 9px #0b211d88)}
.board-legend{display:flex;justify-content:center;gap:26px;flex-wrap:wrap;margin-top:10px;font-size:.79rem;font-weight:800}
.board-player{display:flex;align-items:center;gap:8px;overflow-wrap:anywhere}
.board-player:before{content:'';width:13px;height:13px;flex:0 0 13px;border:2px solid #3d2b24;border-radius:50%}
.board-player-zero:before{background:#ecce80}.board-player-one:before{background:#a63d4d}
@media(max-width:650px){.board-panel{padding:13px 12px}.board-heading small{font-size:.63rem}.board-legend{gap:12px;font-size:.7rem}}

/* Keep a full game visible on a typical desktop screen. Narrow screens scroll
   the physical board horizontally so its holes and skunk marker remain clear. */
.shell{max-width:1160px;padding-top:12px}
.mast{padding-bottom:10px;margin-bottom:12px}
.mast h1{font-size:clamp(2.2rem,4vw,3.1rem);margin:0}
.mast p{font-size:.81rem;line-height:1.3}
.scoreboard{padding:9px 25px}
.scorebox strong{font-size:2.65rem}
.score-mid div{margin:2px}
.board-panel{padding:8px 22px 9px}
.board-heading{margin-bottom:3px}
#cribbageBoard{max-width:920px;min-width:700px;margin:auto}
.board-legend{margin-top:3px}
.crib-banner{padding:6px 24px}
.crib-symbol{height:29px;flex-basis:29px;font-size:1.25rem}
.crib-banner strong{font-size:1.22rem}
.playfield{min-height:0;padding:12px 24px 16px}
.status{font-size:1.22rem}
.board-layout{display:grid;grid-template-columns:minmax(0,1fr) 108px;align-items:center;gap:12px}
.board-layout:has(#starterArea.hidden){grid-template-columns:1fr}
.starter-area{margin:0;padding:10px 7px;border-radius:10px;background:#f1e1c1;color:#384738;text-align:center}
.starter-area .subhead{color:#69472c;font-size:.64rem;letter-spacing:.08em}
.starter-area .card{margin:7px auto 5px;width:64px;height:90px}
.starter-area small{display:block;font-size:.64rem;line-height:1.3}
#pegArea{margin-top:12px}
.peg-header{margin:0 0 6px}
.peg-cards{min-height:118px;padding-bottom:4px;gap:8px}
.peg-item{flex-basis:68px}
.peg-item .card{width:62px;height:84px;margin-bottom:2px}
.peg-item .card span{font-size:1.1rem}
.peg-item .card span small{font-size:.84rem}
.peg-item .card b{font-size:1.35rem}
.peg-item .card .corner{font-size:.82rem}
.peg-item>span{font-size:.66rem}
.peg-item .peg-points{font-size:.65rem;padding:3px}
.hand-head{padding-top:10px;margin-top:7px}
.cards{min-height:98px;margin:10px 0}
.card{width:65px;height:90px}
.show-area{margin-top:10px}
.show-row{padding:8px}
.show-row h3{margin-bottom:6px}
.rules-details{color:#d3ddcf;font-size:.76rem;margin:6px 2px 0;padding:4px 10px}
.rules-details summary{cursor:pointer;color:#edc88e;font-weight:700}
.rules-details p{margin:7px 0 3px;line-height:1.5}
footer{margin:10px 0 4px}
.cut-area{padding:10px 0 4px}
.cut-area h2{font-size:1.6rem;margin:3px 0}
.cut-area>p{margin-bottom:7px}
.cut-scroll{padding:4px 2px 8px}
.cut-cards{gap:6px}
.cut-card{height:58px}
@media(max-width:650px){
  .shell{padding:12px 10px}
  .mast{gap:8px}
  .mast h1{font-size:2rem}
  .mast p{display:none}
  .badge{font-size:.55rem}
  .scoreboard{padding:10px}
  .scorebox strong{font-size:2.3rem}
  .board-panel{padding:8px 10px}
  .board-heading small{font-size:.58rem;text-align:right}
  #cribbageBoard{min-width:700px}
  .board-legend{justify-content:space-around;gap:4px}
  .crib-banner{padding:6px 10px}
  .playfield{padding:12px 10px 16px}
  .peg-cards{min-height:119px}
  .peg-item{flex-basis:64px}
  .peg-item .card{width:58px;height:80px}
  .cards{gap:6px}
  .card{width:60px;height:85px}
  .show-area{grid-template-columns:1fr}
}
.table-nav{display:flex;align-items:center;justify-content:flex-end;gap:16px;min-height:28px}
.table-nav #returnTournament{margin:0 auto 0 0}
.table-nav .textbutton{font-size:.78rem;padding:4px 0}
.resume-game{display:block;margin:18px 0 0;color:#7a4a2e;font-weight:800;text-decoration:none}
.resume-game:hover,.resume-game:focus-visible{text-decoration:underline}
@media(max-width:650px){.table-nav .textbutton{font-size:.7rem}.table-nav{gap:8px}}
/* The pegging caption is pale on felt, but the ranks are ink on a light card. */
.peg-item .card{color:#172d27}
.peg-item .card.red{color:#a8322e}
.peg-item .card span,.peg-item .card span small{color:inherit}
.cut-card.my-cut.cut-face{background:#fffaf0;color:#172d27;border-color:#f1c979;box-shadow:0 4px 10px #061b16a6,inset 0 0 0 1px #fff;font-size:1.05rem;white-space:nowrap;padding:0 2px}
.cut-card.my-cut.cut-face.red{color:#a8322e}
.rules-dialog{width:min(760px,calc(100vw - 24px));max-width:none;max-height:88vh;margin:auto;padding:0;border:2px solid #d6b381;border-radius:17px;background:#f8f2e5;color:#243c33;box-shadow:0 24px 80px #071a17bb}
.rules-dialog::backdrop{background:#081d1bd1}
.rules-dialog-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#f8f2e5;border-bottom:1px solid #d6d4c3;padding:16px 24px}
.rules-dialog-head .eyebrow{color:#895d35}
.rules-dialog h2{font:normal 1.8rem Georgia,serif;margin:2px 0 0}
.rules-close{width:38px;height:38px;border:0;border-radius:50%;background:#e8dfce;color:#28463a;font-size:1.6rem;line-height:1}
.rules-close:hover{background:#dac8aa}
.rules-content{max-height:calc(88vh - 82px);overflow-y:auto;padding:4px 24px 23px;line-height:1.5}
.rules-content section{padding:12px 0;border-bottom:1px solid #d8d5c8}
.rules-content section:last-child{border:0}
.rules-content h3{font:normal 1.35rem Georgia,serif;color:#275849;margin:0 0 5px}
.rules-content p{margin:0 0 8px;font-size:.91rem}
.rules-table-wrap{overflow-x:auto}
.rules-content table{width:100%;border-collapse:collapse;font-size:.87rem}
.rules-content th,.rules-content td{padding:6px 9px;border-bottom:1px solid #d8d5c8;text-align:left}
.rules-content th:last-child,.rules-content td:last-child{width:155px;font-weight:800;white-space:nowrap}
.rules-content thead{background:#e7e4d4}
.rules-content .rules-example,.rules-content .rules-source{margin-top:10px;color:#526a5c;font-size:.82rem}
.rules-content a{color:#245e4b;font-weight:700}
@media(max-width:780px){
  .board-layout{grid-template-columns:1fr}
  .starter-area{order:-1;display:flex;align-items:center;justify-content:center;gap:11px;padding:5px}
  .starter-area .card{width:52px;height:72px;margin:0}
  .starter-area small{max-width:110px;text-align:left}
  .rules-dialog-head{padding:13px 16px}
  .rules-dialog h2{font-size:1.45rem}
  .rules-content{padding:4px 16px 18px}
}
.chat-panel{border:1px solid #ffffff25;border-top:0;border-radius:0 0 12px 12px;background:#173d35;color:#f2e9d6;padding:0 20px 13px}
.chat-panel:not([open]){padding-bottom:0}
.chat-panel summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:9px;min-height:39px;color:#f4cf92;font-size:.85rem;font-weight:800}
.chat-panel summary::-webkit-details-marker{display:none}
.chat-panel summary::before{content:'▸';font-size:1rem;transition:transform .15s}
.chat-panel[open] summary::before{transform:rotate(90deg)}
.chat-unread{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 5px;background:#efc987;border-radius:100px;color:#284033;font-size:.73rem}
.chat-messages{height:185px;overflow-y:auto;overscroll-behavior:contain;border:1px solid #ffffff1b;border-radius:8px;background:#0f302b;padding:10px 13px}
.chat-empty{color:#b6c9bf;font-size:.84rem;margin:5px 0}
.chat-message{display:flex;flex-direction:column;align-items:flex-start;margin:0 0 9px;gap:2px}
.chat-message.own{align-items:flex-end}
.chat-meta{color:#afc7ba;font-size:.68rem}
.chat-text{max-width:88%;overflow-wrap:anywhere;padding:7px 10px;border-radius:10px;background:#315c4d;font-size:.86rem;line-height:1.35;white-space:pre-wrap}
.chat-message.own .chat-text{background:#ead2a5;color:#263d33}
.chat-form{display:flex;gap:8px;margin-top:9px}
.chat-form input{flex:1;min-width:0;border:1px solid #a6b9a9;border-radius:8px;background:#fffaf0;color:#243e32;padding:9px 11px}
.chat-form button{border:0;border-radius:8px;background:#e9bc7d;color:#21392e;font-weight:800;padding:8px 15px}
.chat-form button:disabled{opacity:.6}
@media(max-width:650px){.chat-panel{padding:0 10px 10px}.chat-panel:not([open]){padding-bottom:0}.chat-messages{height:170px}}
.mast h1{font-size:clamp(1.85rem,4vw,3.1rem);white-space:nowrap}
.score-mid>span{font-size:.65rem;letter-spacing:0}
@media(max-width:650px){.mast h1{font-size:clamp(1.55rem,6.3vw,2rem)}.score-mid>span{font-size:.52rem}}
.site-footer{color:#aabeb0}
.donation-note{margin:0 0 9px;line-height:1.5;font-size:.85rem}
.donation-note a{color:#f3cc91;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.donation-note a:hover{color:#ffe3b7}
.footer-links{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 20px}
.site-footer button{border:0;background:transparent;color:#e8c089;font-size:inherit;text-decoration:underline;text-underline-offset:3px;padding:4px;cursor:pointer}
.site-footer button:hover{color:#ffe1af}
.terms-date{color:#657b70;font-size:.79rem!important}
.sound-toggle{border:1px solid #e7bd83a8;border-radius:100px;background:#173e36;color:#f6d19b;padding:8px 12px;font-size:.75rem;font-weight:700;white-space:nowrap}
.sound-toggle:hover,.sound-toggle:focus-visible{background:#285849}
@media(max-width:650px){.sound-toggle{font-size:.69rem;padding:7px 9px}.mast{align-items:center}}
.tour-chat{background:#173d35;border:1px solid #ffffff31;border-radius:14px;padding:17px 20px;margin:0 0 18px;color:#f2e9d6}
.tour-chat h3{font:normal 1.45rem Georgia,serif;color:#f2cc91;margin:0 0 5px}
.tour-chat>p{font-size:.82rem;color:#bfd2c6;margin:0 0 12px}
.tour-chat .chat-messages{height:190px}
@media(max-width:650px){.tour-chat{padding:14px 12px}.tour-chat .chat-messages{height:165px}}
.match-result{display:block;margin:10px 8px 3px;padding:8px 10px;border-radius:7px;background:#dcebdd;color:#206044;font-size:.86rem}
.tournament-countdown{margin:10px 0 0;color:#ffe0a6;font-size:.86rem;font-weight:700}
.participant{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px}
.participant strong{margin-right:auto;overflow-wrap:anywhere}
.presence{font-size:.72rem;font-weight:800}
.presence.online{color:#26734d}.presence.offline{color:#a44836}
.boot-player{border:1px solid #b76f5f;border-radius:6px;background:#fff8ed;color:#86352c;padding:5px 9px;font-size:.72rem;font-weight:800}
.boot-player:hover{background:#f9e4d9}
.away-notice{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;background:#fff1d2;color:#704527;border:1px solid #d9b77f;border-radius:10px;padding:10px 15px;margin:0 0 8px;font-size:.85rem}
.away-notice span{font-weight:800;white-space:nowrap}
