*{box-sizing:border-box}html{background:#17130f;color:#fff5df;font:24px/1.4 Arial,sans-serif}body{margin:0;padding:3vh 4vw;min-height:100vh}header,footer{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}header{font-size:24px}#connection{color:#dac8a8}h1{font-size:48px;line-height:1.15;margin:28px 0}p{margin:12px 0}.pair-layout{display:flex;align-items:center;justify-content:center;gap:5vw}.instructions{max-width:760px}.instructions>p{font-size:30px}.instructions .alternative{font-size:24px;max-width:680px}.tv-code{font-size:128px;line-height:1.25;font-weight:bold;letter-spacing:.1em;white-space:nowrap;color:#fff}.qr{flex:none;text-align:center}.qr img{width:27vw;height:27vw;max-width:360px;max-height:360px;min-width:200px;min-height:200px;display:block}.qr img[hidden]{display:none}.code-note{margin-top:22px;color:#eadac0}#fallback{font-size:20px;color:#dac8a8}footer{margin-top:28px;font-size:20px}a,button{color:#fff5df;background:#3d3428;border:0;border-radius:6px;padding:12px 18px;font:inherit;line-height:1.3;min-height:48px;text-decoration:none}a:focus,button:focus{outline:4px solid #fff;outline-offset:4px}button[hidden],[hidden]{display:none!important}#board{padding:0 3vw 18px;background:#163c2e;border-radius:16px}.table-heading{display:flex;align-items:center;justify-content:space-between;gap:24px}.table-heading h1{font-size:44px}#tableCode{white-space:nowrap}#phase{font-size:28px}.dice{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:18px;margin:28px 0;min-height:136px}.die{display:block;position:relative;width:128px;height:128px;background:#fffaf0;border-radius:15px;color:#1c1710;flex:none}.pip{position:absolute;width:17%;height:17%;background:#1c1710;border-radius:50%;margin:-8.5% 0 0 -8.5%}.die.kept{background:#c8e3cb}#turnScore{font-size:32px;text-align:center}table{border-collapse:collapse;width:100%;font-size:28px}th,td{text-align:left;padding:9px 16px}th:last-child,td:last-child{text-align:right}tbody tr.current{background:#28553f}#rules{font-size:22px;color:#e5debf}@media(max-width:900px){html{font-size:20px}body{padding:20px 4vw}h1{font-size:34px;margin:22px 0}.instructions>p{font-size:23px}.instructions .alternative{font-size:20px}.tv-code{font-size:76px}.qr img{width:220px;height:220px;min-width:0;min-height:0}.die{width:90px;height:90px}.dice{gap:12px;min-height:90px}.table-heading h1{font-size:30px}table{font-size:22px}}@media(max-width:600px){.pair-layout{flex-direction:column;gap:20px;align-items:flex-start}.qr{align-self:center}.tv-code{font-size:66px}h1{font-size:30px}.die{width:72px;height:72px}.table-heading{display:block}#phase,#turnScore{font-size:23px}footer{font-size:18px}}

.board-layout{display:flex;align-items:center;gap:3vw}.play-area{width:62%;min-width:0}.score-area{width:38%;min-width:0}.score-area td:first-child{overflow-wrap:break-word;word-wrap:break-word}.dice{margin:18px 0}.score-area table{font-size:26px}.score-area th,.score-area td{padding:8px 12px}@media(max-width:900px){.score-area table{font-size:21px}.score-area th,.score-area td{padding:7px}}@media(max-width:600px){.board-layout{display:block}.play-area,.score-area{width:100%}}

@media(min-width:901px) and (max-height:800px){.table-heading h1{margin:20px 0}.score-area table{font-size:24px}footer{margin-top:12px}}

/* Couch-distance sizing, without shrinking the compact 720p layout. */
.dice{max-width:450px;margin-left:auto;margin-right:auto}.tv-code.tv-status{font-size:36px;letter-spacing:0;white-space:normal;overflow-wrap:break-word}
@media(min-width:1500px) and (min-height:900px){
 header{font-size:32px}h1{font-size:64px;margin:36px 0}.instructions{max-width:980px}.instructions>p{font-size:40px}.instructions .alternative{font-size:30px;max-width:900px}.tv-code{font-size:180px}.tv-code.tv-status{font-size:48px}.qr img{width:420px;height:420px;max-width:420px;max-height:420px}.code-note{font-size:30px;margin-top:30px}#fallback{font-size:26px}
 .table-heading h1{font-size:56px;margin:24px 0}#tableCode{font-size:30px}#phase{font-size:36px}.dice{max-width:600px;gap:24px;margin-top:24px;margin-bottom:24px}.die{width:176px;height:176px;border-radius:20px}#turnScore{font-size:42px}.score-area table{font-size:32px}.score-area th,.score-area td{padding:10px 14px}#rules{font-size:28px}footer{font-size:24px;margin-top:20px}
}
