:root{--green:#183d35;--ink:#263e35;--muted:#69766d;--cream:#f6f3eb;--gold:#bb8b3e;--line:#dddcd0}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font:15px/1.55 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}header{max-width:1360px;margin:auto;padding:27px 40px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{color:var(--green);font:42px Georgia,serif;text-decoration:none;display:flex;align-items:center;gap:13px}.brand span{font-size:27px}.brand small{display:block;font:8px/1.5 sans-serif;letter-spacing:2px;margin-top:3px}.pill{border:1px solid #c9cbbd;border-radius:30px;padding:8px 15px;font-size:10px;letter-spacing:2px}main{max-width:1280px;margin:auto;padding:36px 30px}h1,h2{font-family:Georgia,serif;font-weight:normal;line-height:1.1}h1{font-size:50px;margin:12px 0 22px}h2{font-size:27px;margin:10px 0 20px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:650;color:var(--muted)}.welcome{display:grid;grid-template-columns:1.1fr 1fr;gap:80px;padding:45px 25px}.intro h1{font-size:66px}.intro p{max-width:360px;color:var(--muted);font-size:17px}.paper{background:#fffdf7;border:1px solid var(--line);border-radius:12px;padding:28px}.paper h2{margin-top:4px}.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}label{display:block;font-size:12px;font-weight:600;margin:0 0 17px}input,select{font:14px inherit;width:100%;margin-top:7px;padding:12px;border:1px solid #cccfc2;border-radius:6px;background:#fffef9;color:var(--ink);min-height:44px}button,.button{border:1px solid #c5ccbe;border-radius:6px;background:transparent;color:var(--green);padding:11px 16px;font:inherit;font-size:13px;cursor:pointer;display:inline-block;text-decoration:none;min-height:44px}button:hover,.button:hover{background:#e9ecdf}button:disabled{opacity:.45;cursor:default}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#26584b}.primary span{float:right}.welcome .primary{width:100%}.check{display:flex;align-items:center;gap:10px;font-weight:400}.check input{width:17px;min-height:17px;margin:0;accent-color:var(--green)}.fine,.caption{font-size:12px!important;color:var(--muted)}.hero-cards{height:230px;display:flex;align-items:center;padding-left:40px}.hero-cards>span{display:block;font:40px Georgia,serif;background:#fffdf7;border:1px solid #d7d5c6;border-radius:12px;width:115px;height:165px;padding:12px;box-shadow:0 15px 30px #1d382314;transform:rotate(-15deg)}.hero-cards>span:nth-child(2){transform:rotate(0deg);margin-left:-27px;margin-top:-12px}.hero-cards>span:nth-child(3){transform:rotate(15deg);margin-left:-27px}.hero-cards small{display:block;font-size:50px;text-align:center}.red{color:#aa4c43}.narrow{max-width:500px;margin:60px auto}.toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.table-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.table-heading h1{margin-bottom:23px;font-size:42px}.gold{color:var(--gold)}.statusbar{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;background:#e9ecdf;border:1px solid #d5dacb;border-radius:8px;margin:8px 0 18px;gap:12px;font-size:13px}.statusbar strong{text-align:center}.seats{display:grid;grid-template-columns:1fr 1fr;gap:14px}.seat{position:relative;border:1px solid #31594c;border-radius:12px;min-height:218px;background:var(--green);color:#fff8e9;padding:22px;overflow:hidden}.seat.active{outline:3px solid #bd9453;outline-offset:2px}.seat.empty{background:#eaece2;color:var(--muted);border:1px dashed #b9c3b3;display:flex;flex-direction:column;justify-content:center;align-items:center}.seat-title{font:26px Georgia,serif}.seat-meta{font-size:11px;letter-spacing:1px;color:#bfcfc2}.seat-score{position:absolute;right:20px;bottom:17px;text-align:right;font:32px Georgia,serif}.seat-score small{display:block;font:9px sans-serif;letter-spacing:2px}.seat-bid{margin-top:14px;display:flex;gap:20px;font-size:11px;color:#d6e1d6}.seat-bid b{display:block;font:24px Georgia,serif;color:#fff8e9}.video-corner{position:absolute;right:14px;top:14px;width:112px;height:82px;background:#2a5147;border:1px solid #678074;border-radius:8px;overflow:hidden;display:grid;place-items:center;color:#bfcfc2}.video-corner video{width:100%;height:100%;object-fit:cover}.video-corner:has(video:not([src])){font-size:12px}.seat-card{position:absolute;left:50%;top:50%;transform:translate(-50%,-25%)}.card{display:inline-flex;flex-direction:column;justify-content:space-between;background:#fffef8;color:#243e35;border:1px solid #d1cebc;border-radius:7px;width:69px;height:96px;padding:7px 9px;font:23px Georgia,serif;box-shadow:0 3px 5px #0001}.card.red{color:#a34a41}.card small{font-size:26px;align-self:flex-end}.card:disabled{opacity:.45}.card.playable:hover{transform:translateY(-9px);background:#fff}.card-back{width:25px;height:37px;display:inline-block;background:repeating-linear-gradient(45deg,#638172,#638172 2px,#456c5a 2px,#456c5a 5px);border:1px solid #c7d1bf;border-radius:3px;margin:17px 0 0 -10px}.card-back:first-child{margin-left:0}.hand-panel{margin:20px 0;border:1px solid var(--line);border-radius:12px;background:#fffdf7;padding:22px 28px}.hand-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.hand-heading h2{margin-bottom:13px}.hand-heading>span{font-size:12px;color:var(--muted)}.hand{display:flex;justify-content:center;gap:8px;padding:17px 0 22px;flex-wrap:wrap;min-height:125px}.controls{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}.bid-btn{min-width:44px}.below{display:grid;grid-template-columns:1fr 1fr;gap:18px}.below p{font-size:13px}#schedule,#rules{margin-bottom:18px}#event-form label{margin:0}.scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px;margin-bottom:20px;text-align:left}th,td{padding:9px 7px;border-bottom:1px solid var(--line)}td small{color:var(--muted)}details{margin:12px 0}summary{cursor:pointer;font-size:13px}#activity{padding-left:20px;font-size:12px;color:var(--muted)}#notice{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:15px 24px;background:#263e35;color:white;border-radius:10px;box-shadow:0 6px 25px #0003;z-index:5;max-width:90vw}footer{padding:40px 0 5px;font-size:9px;letter-spacing:1.7px;color:var(--muted);display:flex;justify-content:space-between;gap:20px}footer span{font-size:17px;letter-spacing:8px}[hidden]{display:none!important}:focus-visible{outline:3px solid #c08a37;outline-offset:3px}.memory{border-left:2px solid var(--gold);padding-left:12px;font-family:Georgia,serif}.memory small{display:block;font:10px sans-serif;color:var(--muted)}@media(max-width:850px){.welcome{gap:30px;padding:25px 0}.intro h1{font-size:48px}.below{grid-template-columns:1fr}.table-heading{align-items:flex-start;flex-direction:column}.video-corner{width:85px;height:64px}.seat{padding:15px;min-height:205px}.seat-title{font-size:22px}.statusbar{flex-wrap:wrap}.statusbar strong{order:3;width:100%}}@media(max-width:600px){header{padding:18px}.brand span{font-size:23px}.brand small{font-size:6px}.pill{font-size:8px;padding:6px 10px}main{padding:20px 14px}.welcome{grid-template-columns:1fr}.intro{padding:10px}.intro h1{font-size:48px}.hero-cards{display:none}.intro .caption{margin-top:22px}.paper{padding:22px}.seats{gap:10px}.seat{min-height:220px;padding:12px}.video-corner{top:52px;right:10px;width:72px;height:57px}.seat-bid{gap:13px;margin-top:65px}.seat-card{top:45%;left:30%}.seat-card .card{width:45px;height:63px;font-size:17px;padding:4px}.seat-card .card small{font-size:20px}.seat-score{font-size:25px;bottom:12px;right:12px}.seat-score small{font-size:7px}.card-back{width:17px;height:28px}.hand-panel{padding:18px 12px}.hand{gap:5px}.hand .card{width:56px;height:81px}.hand-heading{align-items:flex-start;flex-direction:column;gap:0}.two{grid-template-columns:1fr}.toolbar button{font-size:12px}.below .hand-heading{flex-direction:row}footer{font-size:7px}}

.release-seat{position:absolute;right:135px;top:15px;font-size:10px;color:#e4dfd0;border-color:#627c6f;padding:3px 7px;min-height:28px}.release-seat:hover{background:#31594c}@media(max-width:600px){.release-seat{right:10px;top:auto;bottom:50px;max-width:70px}}

.practice-button{width:100%;margin-top:10px}.practice-banner{background:#e9ecdf;border:1px solid #c8d2bf;border-radius:8px;padding:12px 18px;font-size:13px}.practice-banner a{color:var(--green)}

/* Played cards, last trick and rejoin */
.seat-points{display:none}.seat-card.last .card{opacity:.75}.seat-card em{display:block;margin-top:4px;font:italic 11px Georgia,serif;color:#e9cf9c;text-align:center}.seat.won-trick{box-shadow:inset 0 0 0 2px #bd9453}.rejoin{width:100%;text-align:center;margin:-6px 0 18px;background:#e9ecdf}.hand-panel.my-turn{border-color:var(--gold);box-shadow:0 0 0 2px #bb8b3e40}

/* Phone: compact tiles, status pinned to the top and your hand pinned to the bottom so the whole table fits on one screen */
@media(max-width:600px){
#game .statusbar{position:sticky;top:0;z-index:4;margin:6px 0 10px;padding:9px 12px;font-size:11px;box-shadow:0 4px 10px #f6f3eb}
#game .statusbar strong{font-size:14px}
.seats{gap:8px}
.seat{min-height:132px;padding:10px 11px}
.seat-title{font-size:18px;padding-right:50px;line-height:1.15;overflow-wrap:anywhere}
.seat-title small{font-size:12px}
.seat-meta{font-size:9px;padding-right:50px}
.seat-points{display:inline;color:#fff8e9;font-weight:600;letter-spacing:.5px}
.seat-score,.seat .card-back{display:none}
.video-corner{top:10px;right:10px;width:44px;height:44px;font-size:11px}
.seat-bid{position:absolute;left:11px;bottom:10px;margin:0;gap:12px;font-size:9px}
.seat-bid b{font-size:20px}
.seat-card{left:auto;top:auto;right:10px;bottom:10px;transform:none}
.seat-card .card{width:40px;height:56px;font-size:15px;padding:3px 5px}
.seat-card .card small{font-size:17px}
.seat-card em{position:absolute;right:46px;bottom:2px;white-space:nowrap;margin:0}
.release-seat{right:10px;top:auto;bottom:10px}
.hand-panel{position:sticky;bottom:0;z-index:4;margin:12px -14px 0;padding:10px 12px 12px;border-radius:14px 14px 0 0;box-shadow:0 -6px 18px #1d382322}
.hand-panel .hand-heading .eyebrow,.hand-panel .hand-heading h2{display:none}
.hand-heading>span{font-size:13px;font-weight:600;color:var(--green)}
.hand{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;gap:4px;padding:8px 0 10px;min-height:0}
.hand .card{flex:0 1 44px;min-width:37px;width:44px;height:64px;font-size:17px;padding:4px 5px}
.hand .card small{font-size:19px}
.hand .card.playable:hover{transform:none}
.hand>p{margin:6px auto}
.hand>.card:first-child{margin-left:auto}.hand>.card:last-child{margin-right:auto}
.controls{gap:5px}
.call-label{display:none}
.bid-btn{min-width:34px;padding:0}
.controls .fine{width:100%;text-align:center;margin:2px 0 0}
td small{white-space:nowrap}th,td{padding:8px 5px}
}

.set-row th{background:#e9ecdf;font:13px Georgia,serif;color:var(--green);padding:6px 7px}

/* Faces fill the player's tile once their camera is on; name, call and points sit on top. */
.seat-title,.seat-meta{position:relative;z-index:1}.seat-score,.seat-card,.seat-bid,.release-seat{z-index:1}
.seat:has(.video-corner video){background:#10251f}
.seat .video-corner:has(video){inset:0;width:auto;height:auto;border:0;border-radius:0;z-index:0;background:#10251f}
.seat .video-corner:has(video)::after{content:'';position:absolute;inset:0;background:linear-gradient(#000a,#0000 38%,#0000 55%,#000b);pointer-events:none}
.seat:has(.video-corner video) :is(.seat-title,.seat-meta,.seat-bid,.seat-score){text-shadow:0 1px 3px #000c}
.seat:has(.video-corner video) .seat-title{padding-right:0}
.video-corner video.self{transform:scaleX(-1)}
.camera-prompt{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fffdf7;border:1px solid var(--line);border-radius:10px;padding:10px 14px;margin:0 0 12px;font-size:13px}
@media(max-width:600px){.seat:has(.video-corner video){min-height:160px}.camera-prompt{padding:8px 10px;font-size:12px}.camera-prompt button{min-height:38px;padding:6px 12px}}

.voice-toggle{font-size:12px;min-height:36px;padding:6px 12px;border-radius:20px;white-space:nowrap}.voice-toggle.on{background:#e9ecdf;border-color:var(--green)}.voice-toggle.listening{background:var(--green);color:#fff;animation:pulse 1.4s infinite}@keyframes pulse{50%{box-shadow:0 0 0 6px #183d3522}}
.change-call{font-size:12px;min-height:36px;padding:6px 12px}.change-row{display:flex;flex-wrap:wrap;gap:5px;align-items:center;justify-content:center}.bid-btn.current{background:var(--green);color:#fff}
@media(max-width:600px){.hand-heading{flex-direction:row!important;flex-wrap:wrap;align-items:center!important;justify-content:space-between;gap:6px!important}.voice-toggle{font-size:11px;min-height:32px;padding:4px 10px}}

/* 300 milestone and Hall of Fame */
.milestone{position:fixed;inset:0;z-index:20;background:#0d2019e6;display:grid;place-items:center;padding:16px}
.milestone-card{background:#fffdf7;border-radius:18px;padding:26px 24px;max-width:440px;width:100%;text-align:center;box-shadow:0 20px 60px #0007;animation:pop .5s ease-out}
@keyframes pop{0%{transform:scale(.7);opacity:0}70%{transform:scale(1.04)}100%{transform:scale(1);opacity:1}}
.milestone-big{font:bold 76px/1 Georgia,serif;color:var(--gold);text-shadow:0 3px 0 #183d3522}
.milestone-card h2{margin:10px 0 6px}.milestone-card p{color:var(--muted);margin:0 0 14px}
.milestone-camera{position:relative;border-radius:12px;overflow:hidden;background:#10251f;aspect-ratio:4/3;margin-bottom:14px}
.milestone-camera video,.milestone-camera img{width:100%;height:100%;object-fit:cover;display:block}.milestone-camera video{transform:scaleX(-1)}
.milestone-count{position:absolute;inset:0;display:grid;place-items:center;font:bold 110px Georgia,serif;color:#fff;text-shadow:0 4px 20px #000a;pointer-events:none}
.milestone-count.flash{background:#fff;animation:flash .4s forwards}@keyframes flash{to{background:transparent}}
.milestone-actions{justify-content:center}
.hall-panel{margin:0 0 18px}.hall-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px}
.hall-entry{background:var(--green);color:#fff8e9;border-radius:12px;overflow:hidden}
.hall-entry .pic{aspect-ratio:4/3;background:#2a5147;display:grid;place-items:center;font-size:44px}.hall-entry img{width:100%;height:100%;object-fit:cover;display:block}
.hall-entry .who{padding:10px 12px}.hall-entry b{display:block;font:20px Georgia,serif}.hall-entry small{display:block;color:#bfcfc2;font-size:11px;line-height:1.4}
.hall-entry .score{font:26px Georgia,serif;color:#e9cf9c}

/* Video tiles keep the camera's 4:3 shape so whole faces show; wide screens put all four players in one row. */
.seat:has(.video-corner video){aspect-ratio:4/3;min-height:0}
.seat .video-corner:has(video) video{object-position:center 35%}
@media(min-width:1000px){.seats{grid-template-columns:repeat(4,1fr)}.seat{min-height:200px}.seat-title{font-size:22px}}
