*{box-sizing:border-box} [hidden]{display:none!important} body{margin:0;background:#fff8ed;color:#092343;font-family:'Trebuchet MS',Arial,Helvetica,sans-serif;font-size:16px} button,input,select,textarea{font:inherit}button{min-height:44px;padding:10px 16px;border:1px solid #b9c3ce;border-radius:8px;color:#092343;background:#fffdf7;cursor:pointer}button:hover{background:#fff0d6}button:focus,input:focus,select:focus,a:focus,textarea:focus{outline:3px solid #3b79c6;outline-offset:3px}button:disabled{opacity:.42;cursor:default}button.primary{background:#103354;color:white;border-color:#103354}.large{font-size:19px;padding:16px 24px}.small{font-size:12px}.muted{color:#56677b}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:bold;color:#56677b;margin:0 0 10px}h1{font-family:'Trebuchet MS',Arial,Helvetica,sans-serif;font-size:42px;font-weight:normal;line-height:1.1;margin:0 0 12px}h2{font-size:23px;margin:0 0 10px}h3{font-size:19px;margin:22px 0 12px}p{line-height:1.5}a{color:#103354;overflow-wrap:break-word;word-wrap:break-word}label{display:block;margin:12px 0 6px}input,select{min-height:44px;padding:10px 12px;border:1px solid #b9c3ce;background:white;border-radius:7px;color:#092343}input{max-width:100%}input[type=radio]{min-height:0}textarea{width:100%;padding:10px;border:1px solid #b9c3ce;border-radius:6px;font:14px monospace}.topbar{display:flex;align-items:center;justify-content:space-between;min-height:65px;border-bottom:1px solid #dbd9d0;padding-bottom:12px}.topbar>div:last-child{display:flex;align-items:center;flex-wrap:wrap}.topbar button{margin:3px;font-size:13px}.brand{font-weight:bold;letter-spacing:1.3px;white-space:nowrap}.brand-mark{font-size:27px;vertical-align:middle;margin-right:8px}.brand-sub{display:block;font-size:9px;color:#56677b;letter-spacing:1.6px;margin:4px 0 0 35px}.connection{display:inline-block;margin-left:10px;padding:8px 13px;background:#f1dfc9;border-radius:24px;font-size:12px;white-space:nowrap}.connection.online{background:#e0efdf;color:#103354}.message{color:#52657b;min-height:20px;font-size:14px;margin:10px 0}.message:empty{display:none}.message.error{color:#a53b28;font-weight:bold}.tv-shell{padding:20px 3%;max-width:2100px;margin:auto}.welcome{text-align:center;max-width:850px;margin:70px auto}.welcome h1{font-size:55px}.lede{font-size:19px;color:#56677b;margin:20px 0 35px}.watch-form{margin:25px auto}.watch-form label{display:inline-block;margin-right:10px}.watch-form input{width:160px;text-transform:uppercase;margin-right:8px}body[data-role=tv] #game{height:calc(100vh - 130px);min-height:480px;display:flex;flex-direction:column}.round-heading{display:flex;justify-content:space-between;align-items:center;padding:18px 0 12px;flex-shrink:0}.round-heading h1{font-size:38px}.round-heading p{margin:4px 0}.clock-box{text-align:center;min-width:175px;margin-left:20px}.clock-box strong{font-size:70px;line-height:1;font-variant-numeric:tabular-nums;display:block;letter-spacing:-3px}.clock-caption{font-size:10px;letter-spacing:2px;display:block;margin-bottom:7px}.clock-box>span:last-child{font-size:12px;display:block;margin-top:6px}.lobby-join{display:flex;align-items:center;padding:14px 22px;background:#fff0d6;border:1px solid #ead8b8;border-radius:12px;margin:8px 0 18px;flex-shrink:0}.lobby-join img{width:170px;height:170px;margin-right:28px}.lobby-join p{margin:6px 0}.lobby-join h2{font-size:30px}.board-area{display:flex;position:relative;flex:1;min-height:180px;margin:0 -10px}.team-board{width:50%;display:flex;flex-direction:column;padding:0 10px;min-width:0}.board-area.single .team-board{width:100%}.board-heading{display:flex;justify-content:space-between;align-items:center;padding:8px 0 12px}.board-heading h2{font-size:23px;margin:0}.board-heading span{font-size:16px;color:#56677b}.canvas-holder{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;background:#fffefb;border-radius:12px;border:1px solid #b9c9dd;border-top:4px solid #2868bd;overflow:hidden}.orange .canvas-holder{border-top-color:#d47025}canvas{display:block;background:#fffefb;max-width:100%;max-height:100%}.drawing-overlay{position:absolute;left:10px;right:10px;top:0;bottom:0;background:#fff0d6;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px;border-radius:12px;border:2px solid #092343;z-index:2}.drawing-overlay h2{font-size:32px}.board-area.obscured canvas{visibility:hidden;filter:blur(24px)}.result-banner{text-align:center;padding:15px;background:#e3efdc;border-radius:10px;margin-top:12px;font-size:26px;font-weight:bold;animation:celebrate .5s ease-out}.result-banner.expired{background:#ffdfad}.game-footer{display:flex;justify-content:space-between;padding:14px 0 0;color:#56677b;font-size:12px;flex-shrink:0}.game-footer span:last-child{font-size:10px;letter-spacing:1px}.roster{display:flex;margin:12px -6px}.roster section{width:50%;padding:12px;margin:0 6px;border:1px solid #d7dce2;border-radius:8px;background:#f1f4f8}.roster h3{margin:0 0 8px;font-size:16px}.roster ul{list-style:none;padding:0;margin:0}.roster li{font-size:14px;line-height:1.6;word-wrap:break-word}.roster .away{color:#697482}.roster .artist{font-weight:bold}.tv-shell .roster{max-height:130px;overflow:auto;flex-shrink:0}.modal-backdrop{position:fixed;left:0;right:0;top:0;bottom:0;background:rgba(9,35,67,.6);z-index:20;display:flex;align-items:center;justify-content:center;padding:24px}.modal{background:#fff8ed;border:1px solid #092343;border-radius:15px;padding:28px;max-height:90vh;overflow:auto;width:100%;max-width:650px;box-shadow:0 18px 70px rgba(0,0,0,.18)}.modal .close{float:right;margin:0 0 12px 16px}.join-modal{text-align:center}.join-modal img{display:block;margin:20px auto;max-width:100%;height:auto}.lab-modal{max-width:900px}.lab-modal pre{white-space:pre-wrap;word-wrap:break-word;line-height:1.5;font-size:13px;background:#edf1f6;padding:14px;border-radius:7px}.lab-modal button{margin:4px}.lab-modal textarea{margin:10px 0}.phone-shell{max-width:780px;padding:16px 22px;margin:auto}.phone-shell .topbar{min-height:50px}.phone-shell .brand{font-size:13px;letter-spacing:.8px}.phone-shell .connection{font-size:10px;margin-left:5px;padding:7px 9px}.phone-welcome{text-align:left;margin:35px auto}.phone-welcome h1{font-size:39px}.phone-welcome>input{display:block;width:100%}.phone-welcome #roomInput{text-transform:uppercase;max-width:180px}.phone-welcome fieldset{border:0;padding:0;margin:20px -4px;display:flex}.phone-welcome legend{padding:0 4px}.team-choice{border:2px solid #b3c8dd;background:#e8eff8;border-radius:8px;padding:14px;margin:6px 4px;flex:1}.orange-choice{border-color:#e3be98;background:#f5eadc}.phone-welcome .primary{width:100%}.phone-status{display:flex;justify-content:space-between;align-items:center;margin:18px 0 12px}.phone-status h2{font-size:24px;margin:0}.phone-status p{margin:6px 0;font-size:13px}.phone-status .eyebrow{font-size:10px}.phone-clock{margin-left:12px;text-align:right;min-width:80px}.phone-clock strong{font-size:42px;letter-spacing:-2px;font-variant-numeric:tabular-nums}.phone-clock span{display:block;font-size:10px;color:#56677b}.player-actions{display:flex;justify-content:space-between;align-items:center;margin:10px 0}.player-actions span{font-size:12px;color:#56677b;margin-left:10px}.rotate-hint{background:#fff0d6;font-size:12px;padding:8px 12px;border-radius:6px;margin:8px 0}.artist-pad{display:flex;height:calc(100vh - 280px);min-height:240px;max-height:700px;background:#e5edf7;border:1px solid #9eb2cb;border-radius:10px;overflow:hidden}.draw-toolbar{width:74px;flex-shrink:0;display:flex;align-items:center;flex-direction:column;padding:8px 5px;background:#e5edf7;overflow-y:auto}.palette{display:flex;flex-wrap:wrap;justify-content:center;width:64px;flex-shrink:0}.palette button{min-height:26px;width:26px;height:26px;padding:0;border-radius:50%;margin:3px;border:2px solid #91a4bb}.palette button.selected{outline:2px solid #092343;outline-offset:1px}.draw-toolbar label{font-size:10px;margin:8px 0 3px}.draw-toolbar input{width:60px;min-height:25px;padding:0}.brush-preview{display:block;background:#192b3c;border-radius:50%;width:6px;height:6px;margin:8px;flex-shrink:0}.draw-toolbar>button{width:62px;min-height:38px;padding:5px;font-size:12px;margin:3px 0;flex-shrink:0}.draw-toolbar button.selected{background:#103354;color:white}.phone-canvas-holder{flex:1;min-width:0;position:relative;display:flex;align-items:center;justify-content:center;background:#d5e1ee;overflow:hidden}#drawCanvas{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.pad-lock{position:absolute;inset:0;left:0;right:0;top:0;bottom:0;background:rgba(255,248,237,.92);display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:bold;text-align:center;padding:20px}.artist-actions{text-align:center;margin:10px 0}.guess-button{background:#103354;color:white;font-size:21px;font-weight:bold;width:100%;max-width:500px;min-height:50px;border-color:#103354}.observer-card{padding:26px;background:#fff0d6;border:1px solid #ead8b8;border-radius:12px;margin:18px 0}.observer-card h2{font-family:'Trebuchet MS',Arial,Helvetica,sans-serif;font-size:28px;font-weight:normal}.observer-card p{font-size:14px}.control-buttons{display:flex;flex-wrap:wrap;margin:10px -4px}.control-buttons button{margin:4px}.controls-modal form{border-top:1px solid #d7dce2;padding:6px 0 18px;margin-top:12px}.controls-modal form input,.controls-modal form select{width:100%;margin-bottom:8px}.controls-modal form button{margin-top:5px}.confirm-modal{max-width:450px}.confirm-modal button{margin:8px 8px 0 0}.last-action{font-size:12px}.artist-mode .phone-shell{max-width:none}.artist-mode .topbar .brand{font-size:12px}@keyframes celebrate{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.result-banner{animation:none}}
@media (orientation:landscape) and (max-height:600px){.artist-mode .phone-shell{padding:5px 12px}.artist-mode .topbar{min-height:32px;padding-bottom:3px}.artist-mode .topbar button{min-height:28px;padding:4px 8px}.artist-mode .phone-status{margin:4px 0}.artist-mode .phone-status .eyebrow,.artist-mode #roundHint{display:none}.artist-mode .phone-status h2{font-size:18px}.artist-mode .phone-clock strong{font-size:28px}.artist-mode .phone-clock span{display:none}.artist-mode .player-actions{margin:3px 0}.artist-mode .player-actions button{min-height:30px;padding:4px 10px;font-size:12px}.artist-mode .artist-pad{height:calc(100vh - 168px);min-height:130px}.artist-mode .artist-actions{margin:4px 0}.artist-mode .guess-button{min-height:34px;font-size:16px;padding:5px 18px}.artist-mode .message{font-size:11px;margin:3px 0;min-height:0}.artist-mode .last-action{display:none}}
@media(max-width:650px){.phone-shell{padding:12px}.topbar{flex-wrap:wrap}.phone-shell .topbar>div:last-child{margin-left:auto}.phone-shell .topbar button{font-size:10px;padding:5px;min-height:32px}.modal-backdrop{padding:10px}.modal{padding:18px;max-height:95vh}.phone-status h2{font-size:21px}.phone-welcome h1{font-size:34px}.phone-shell .roster{display:block}.phone-shell .roster section{width:auto;margin-bottom:8px}.controls-modal .control-buttons button{flex:1;min-width:110px}.player-actions button{font-size:12px}.game-footer{display:block}.tv-shell .brand-sub{display:none}}
@media(max-height:850px) and (min-width:900px){.tv-shell{padding-top:12px}.topbar{min-height:50px;padding-bottom:6px}.round-heading{padding:10px 0}.round-heading h1{font-size:28px}.clock-box strong{font-size:54px}.lobby-join img{width:120px;height:120px}.lobby-join{padding:10px 18px;margin:4px 0 8px}.lobby-join p{font-size:13px}.tv-shell .roster{max-height:90px;margin:8px -6px}.board-heading{padding:5px 0 8px}.board-heading h2{font-size:20px}body[data-role=tv] #game{height:calc(100vh - 100px);min-height:400px}.game-footer{padding-top:8px;font-size:10px}}
.guess-button:hover{background:#1e4b75;color:white}
@media (orientation:landscape) and (max-height:600px){.draw-toolbar{padding:4px}.palette button{width:22px;height:22px;min-height:22px;margin:2px}.draw-toolbar label{margin:3px 0 1px}.draw-toolbar input{min-height:18px}.brush-preview{margin:3px}.draw-toolbar>button{min-height:28px;margin:2px 0}.artist-mode .phone-status h2{font-size:17px}}
.observer-card>button{margin:4px 8px 4px 0}
/* Everyday round controls stay on the player page; advanced settings stay in the dialog. */
.round-actions{justify-content:flex-start;align-items:flex-end;flex-wrap:wrap;margin:10px -4px}
.round-actions>*{margin:4px}.round-actions .round-choice{flex:0 1 150px;min-width:120px}
.round-choice label{font-size:11px;font-weight:bold;margin:0 0 4px}.round-choice select{width:100%;min-height:40px;padding:8px}
.round-actions #artistName{margin-left:auto;align-self:center}.round-actions button{min-height:40px}
.draw-toolbar{overflow:hidden}.draw-toolbar #clear{background:#fff2dc;border-color:#d38b28;min-height:36px;font-weight:bold}
.tool-scroll{display:flex;flex-direction:column;align-items:center;width:100%;flex:1;min-height:0;overflow-y:auto}
.tool-scroll>input{flex-shrink:0}.tool-scroll>button{width:62px;min-height:38px;padding:5px;font-size:12px;margin:3px 0;flex-shrink:0}
@media (orientation:landscape) and (max-height:600px){
.artist-mode .round-actions{margin:2px -3px;align-items:flex-end;flex-wrap:nowrap}.artist-mode .round-actions>*{margin:2px 3px}
.artist-mode .round-actions .round-choice{flex:0 1 130px;min-width:100px}.artist-mode .round-choice select{min-height:30px;height:30px;padding:4px;font-size:12px}
.artist-mode .round-choice label{font-size:10px;margin-bottom:2px}.artist-mode .round-actions #artistName{font-size:11px;margin-left:auto}
.artist-mode .artist-pad{height:calc(100vh - 186px)}.tool-scroll>button{min-height:28px;margin:2px 0}
}
@media(max-width:650px){.round-actions .round-choice{flex:1 1 120px}.round-actions #artistName{width:100%;margin-left:4px}}
@media (orientation:landscape) and (max-height:600px){
.draw-toolbar{width:94px}.draw-toolbar .palette{width:84px}.draw-toolbar #clear,.tool-scroll>button{width:82px}
}

/* CouchDoodle: warm paper, bold ink, and a little imperfect doodle energy.
   Keep legacy-friendly flex layouts and literal colors for the 2019 TV. */
body{background:#fff8ed;background-image:radial-gradient(#e6ddcd .8px,transparent .8px);background-size:22px 22px}
h1,h2,h3{font-weight:bold;letter-spacing:-.7px}
h1{line-height:1.08;letter-spacing:-1.8px}
button{border:2px solid #a6b2bf;border-radius:12px;background:#fffdf7;font-weight:bold;box-shadow:0 2px 0 #d9d5cb}
button:hover{background:#ffedd0;border-color:#092343}
button:active:not(:disabled){transform:translateY(2px);box-shadow:none}
button:disabled{box-shadow:none}
button.primary{background:#ffad32;border:2px solid #092343;color:#092343;box-shadow:3px 4px 0 #092343;border-radius:12px 15px 11px 14px}
button.primary:hover{background:#ffc464}
button.primary:active:not(:disabled){transform:translate(2px,2px);box-shadow:1px 2px 0 #092343}
button:focus,input:focus,select:focus,a:focus,textarea:focus{outline:3px solid #2868bd;outline-offset:3px}
input,select,textarea{border:2px solid #b9c3ce;border-radius:10px;background:#fffdf7}
input::placeholder{color:#697689}
label,legend{font-weight:bold}
a{color:#1c5596;text-decoration-thickness:2px}
.eyebrow{font-size:11px;letter-spacing:1.8px;color:#56677b}
.topbar{border-bottom:2px solid #e5ddcf;padding-bottom:8px}
.topbar>div:last-child{justify-content:flex-end}
.topbar button{font-size:12px;min-height:36px;padding:7px 11px;border-width:1px;box-shadow:none}
.brand{display:flex;align-items:center;white-space:normal;flex-shrink:0}
.brand-logo{display:block;width:112px;height:auto;mix-blend-mode:multiply}
.brand-sub{font-size:9px;line-height:1.6;letter-spacing:1.5px;margin:0 0 0 14px;max-width:100px}
.brand-name{display:none;font-size:16px;font-weight:bold;letter-spacing:-.5px}
.brand-name span{color:#d47025;margin-left:5px}
.connection{font-size:11px;padding:7px 11px;border:1px solid #e1cba5;background:#fff0d6}
.connection.online{border-color:#b8d1b5;color:#26512d;background:#e4f0e0}
.connection:before{content:'';display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:currentColor;vertical-align:middle}
.welcome{max-width:1180px;margin:46px auto 24px}
.welcome-main{display:flex;align-items:center;text-align:left}
.logo-card{position:relative;width:48%;margin:0 6% 0 0;padding:18px 12px 22px;background:#fff9ef;border:2px solid #092343;border-radius:24px 19px 28px 17px;box-shadow:7px 8px 0 #e6d7ba;transform:rotate(-2deg)}
.hero-logo{display:block;width:100%;height:auto;mix-blend-mode:multiply}
.paper-tape{position:absolute;left:38%;top:-14px;width:25%;height:28px;background:#a8c9ec;opacity:.85;transform:rotate(4deg)}
.logo-caption{text-align:center;margin:0;font-size:15px;font-weight:bold;color:#344f6b}
.doodle-spark{position:absolute;right:-26px;bottom:36px;font-size:62px;line-height:1;color:#ef9220;transform:rotate(12deg)}
.welcome-copy{flex:1;min-width:0}
.welcome h1{font-size:58px;line-height:1.05}
.marker-underline{position:relative;display:inline-block;z-index:0}
.marker-underline:after{content:'';position:absolute;left:-2px;right:-3px;height:12px;bottom:0;background:#ffc266;border-radius:50% 20% 45% 25%;transform:rotate(-2deg);z-index:-1}
.lede{font-size:18px;line-height:1.6;margin:22px 0 26px;max-width:420px;color:#52657b}
.large{font-size:19px;padding:15px 23px}
.large>span{margin-left:18px;font-size:23px}
.start-note{font-size:12px;color:#56677b;margin:14px 0 0}
.how-to{display:flex;list-style:none;text-align:left;padding:26px 0;margin:42px 0 0;border-bottom:2px dashed #dbcfba;border-top:2px dashed #dbcfba}
.how-to li{display:flex;align-items:center;flex:1;padding:0 18px}
.step-number{display:inline-block;flex-shrink:0;width:38px;height:38px;line-height:34px;text-align:center;margin-right:13px;border:2px solid #092343;border-radius:45% 53% 46% 51%;font-size:21px;font-weight:bold;background:#d8e9ff;transform:rotate(-6deg)}
.how-to li:nth-child(2) .step-number{background:#ffdfae;transform:rotate(7deg)}
.how-to li:nth-child(3) .step-number{background:#e5edc9;transform:rotate(-3deg)}
.how-to strong{display:block;font-size:15px}.how-to small{display:block;font-size:12px;margin-top:5px;color:#56677b;line-height:1.4}
.watch-form{margin:22px auto 0}.watch-form label{font-size:14px}.watch-form input{font-size:13px;letter-spacing:2px;width:155px}
.watch-form button{font-size:13px}.table-note{color:#687689;font-size:11px;margin:16px 0}
body[data-role=tv] #game{height:calc(100vh - 135px)}
.round-heading h1{font-size:35px}
.clock-box{background:#ffedcf;border:2px solid #092343;border-radius:16px 20px 14px 18px;padding:10px 15px;min-width:150px;box-shadow:3px 3px 0 #e7d7ba;transform:rotate(1deg)}
.clock-box strong{font-size:60px}.clock-caption{font-weight:bold}
.lobby-join{background:#fffdf7;border:2px dashed #c7b99d;border-radius:16px 22px 17px 20px}
.lobby-join img{background:white;border:1px solid #ddd8cb;border-radius:10px}
.lobby-join h2{letter-spacing:1px}
.board-heading h2{font-size:22px}.board-heading span{font-size:14px}
.canvas-holder{border:2px solid #b9c9dd;border-top:5px solid #2868bd;border-radius:14px 18px 12px 16px;box-shadow:0 3px 0 #d8e0e8}
.orange .canvas-holder{border-top-color:#d47025;box-shadow:0 3px 0 #ead9c3}
.roster section{background:#fffdf7;border:1px solid #d1d9e2;border-radius:12px}
.result-banner{border:2px solid #092343;box-shadow:3px 3px 0 #d3d9c1;border-radius:14px 18px 12px 16px}
.result-banner.expired{box-shadow:3px 3px 0 #e5cfaa}
.modal{border:2px solid #092343;border-radius:20px;box-shadow:7px 8px 0 rgba(9,35,67,.25)}
.modal h2{font-size:28px}.modal .eyebrow{margin-top:6px}
.phone-shell{max-width:700px}
.phone-shell .brand-logo{width:98px}
.phone-shell .topbar{flex-wrap:nowrap}
.phone-shell .topbar>div:last-child{flex-wrap:wrap}
.phone-shell .connection{margin:4px 0 4px 5px;font-size:10px}
.phone-welcome{margin:28px auto 30px;max-width:490px}
.phone-welcome h1{font-size:43px}
.phone-welcome .muted{font-size:15px;max-width:360px}
.phone-welcome>label{font-size:13px;margin-top:19px}
.phone-welcome>input{min-height:49px}
.phone-welcome #roomInput{max-width:none;letter-spacing:3px;font-weight:bold}
.phone-welcome legend{font-size:13px}
.team-choice{display:flex;align-items:center;padding:13px 9px;border-radius:13px;background:#e7f0ff;border-color:#87add9;cursor:pointer}
.team-choice input{margin:0 8px 0 0;width:18px;height:18px;flex-shrink:0}
.team-choice span{font-size:14px}.team-choice small{display:block;font-size:10px;font-weight:normal;line-height:1.4;margin-top:5px}
.orange-choice{border-color:#dda361;background:#ffedcf}
.phone-welcome .start-note{text-align:center;font-size:11px}
.phone-clock{padding:7px 12px;background:#ffedcf;border:2px solid #092343;border-radius:12px 15px 10px 14px;min-width:86px;text-align:center}
.phone-clock strong{font-size:36px;letter-spacing:-1px}
.round-actions{border-top:2px dashed #ded3bf;padding-top:8px}
.round-choice label{color:#56677b}.round-choice select{background:#fffdf7;border-color:#91a4bb;font-weight:bold}
.observer-card{border:2px solid #092343;border-radius:15px 20px 14px 18px;box-shadow:4px 4px 0 #ead9b9;background:#fff0d6}
.observer-card h2{font-size:28px;font-weight:bold}
.artist-pad{border:2px solid #9eb2cb;border-radius:12px}
.draw-toolbar button{box-shadow:none}.palette button{border:2px solid #91a4bb}
.palette button.selected{outline:2px solid #092343}
.draw-toolbar #clear{background:#ffdfaa;border:2px solid #bc7921;color:#092343;border-radius:8px}
.guess-button{background:#103354;color:#fffdf7;border:2px solid #092343;box-shadow:0 3px 0 #092343;border-radius:12px}
.guess-button:hover{background:#1e4b75;color:#fffdf7}
.rotate-hint{border:1px dashed #d4b47f;color:#66502e;background:#fff0d6}
.pad-lock{color:#092343}
@media(max-width:900px){
  .brand-sub{display:none}.welcome{margin-top:30px}.welcome h1{font-size:45px}
  .how-to li{padding:0 9px}.logo-caption{font-size:12px}.how-to strong{font-size:13px}
  .topbar>div:last-child{flex:1}.topbar button{font-size:11px;padding:6px 8px}
}
@media(max-width:650px){
  .tv-shell{padding:12px}.tv-shell .topbar{flex-wrap:nowrap}.tv-shell .topbar>div:last-child{max-width:260px}
  .welcome-main{display:block}.logo-card{width:85%;max-width:360px;margin:0 auto 35px;padding:6px 10px 16px}
  .welcome-copy{text-align:center}.welcome h1{font-size:42px}.welcome-copy .lede{margin:20px auto;font-size:16px}
  .how-to{margin-top:32px;padding:18px 0;display:block}.how-to li{margin:12px 0;padding:0 12px}
  .how-to strong{font-size:14px}.how-to small{font-size:12px}.watch-form label{display:block;margin-bottom:10px}
  .table-note{line-height:1.6}.phone-welcome h1{font-size:38px}
  .phone-shell .topbar button{min-height:32px}.phone-shell .brand-logo{width:94px}
  .phone-welcome{margin-top:24px}.phone-clock{min-width:78px;padding:7px 9px}
  .phone-clock strong{font-size:32px}.observer-card{padding:21px}
}
@media(max-height:850px) and (min-width:900px){
  .brand-logo{width:88px}.topbar{padding-bottom:5px}.brand-sub{max-width:none}
  .welcome{max-width:1050px;margin:30px auto 15px}.welcome h1{font-size:49px}
  .logo-card{width:44%;margin-right:7%;padding:8px 12px 14px}.logo-caption{font-size:13px}
  .how-to{margin-top:28px;padding:18px 0}.lede{font-size:17px;margin:17px 0 21px}
  .watch-form{margin-top:16px}.table-note{margin:12px 0}
  body[data-role=tv] #game{height:calc(100vh - 105px)}
  .clock-box{padding:6px 12px;min-width:145px}.clock-box strong{font-size:47px}
  .clock-caption{margin-bottom:3px}.round-heading h1{font-size:28px}
  .round-heading{padding:8px 0}.board-heading h2{font-size:20px}
}
@media (orientation:landscape) and (max-height:600px){
  .artist-mode .brand-logo{display:none}.artist-mode .brand-name{display:block}
  .artist-mode .topbar{min-height:30px;padding-bottom:2px}.artist-mode .topbar .connection{padding:3px 8px;margin-top:0;margin-bottom:0}
  .artist-mode .topbar button{min-height:28px}.artist-mode .phone-clock{background:none;border:0;box-shadow:none;padding:0;min-width:60px}
  .artist-mode .phone-clock strong{font-size:28px}.artist-mode .round-actions{padding-top:2px;border-top-width:1px}
  .artist-mode .round-actions #artistName{width:auto}.artist-mode .artist-pad{height:calc(100vh - 190px)}
  .artist-mode button{box-shadow:none}.artist-mode .guess-button{box-shadow:none}
}

/* Keep join validation next to the field, including when the phone keyboard opens. */
.phone-welcome input[aria-invalid="true"]{border:3px solid #b43624;background:#fff1e9}
.phone-welcome input[aria-invalid="true"]:focus{outline-color:#b43624}
.phone-welcome .field-error{margin:8px 0 0;padding:10px 12px;border-left:4px solid #b43624;border-radius:6px;background:#ffe5da;color:#912b1b;font-size:14px;font-weight:bold;line-height:1.4}

/* The joined player's current team color, not its original blue/orange slot. */
.phone-status .team-badge{display:inline-block;padding:7px 11px;margin:0 0 9px;border:1px solid transparent;border-radius:8px 11px 7px 10px;font-size:13px;font-weight:bold;line-height:1.4;overflow-wrap:break-word;word-wrap:break-word;max-width:100%}
.phone-status>div:first-child{min-width:0}
[data-team-fill]:hover:not(:disabled){filter:brightness(.94)}
@media (orientation:landscape) and (max-height:600px){
  .artist-mode .phone-status .team-badge{font-size:10px;padding:3px 7px;max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;margin:0 8px 0 0}
  .artist-mode .phone-status h2{display:inline-block;vertical-align:middle;font-size:14px}
}

/* Landscape sketchpad: one status row; the remaining height belongs to the pad.
   Round setup returns to the main page between rounds and stays one tap away
   while drawing. Preserve the shared 960:600 drawing coordinates. */
.drawing-shortcuts,.drawing-connection{display:none}
@media (orientation:landscape) and (max-height:600px){
  body.artist-mode{height:100vh;overflow:hidden}
  .artist-mode .phone-shell{height:100%;padding:4px 8px;display:flex;flex-direction:column}
  .artist-mode .topbar{display:none}
  .artist-mode #game{display:flex;flex-direction:column;flex:1;min-height:0;position:relative}
  .artist-mode .phone-status{flex-shrink:0;height:44px;margin:0 0 4px;justify-content:flex-start}
  .artist-mode .phone-status>div:first-child{flex:1;overflow:hidden}
  .artist-mode .phone-status .team-badge{display:inline-block;font-size:11px;margin:0 8px 0 0;padding:5px 8px;max-width:200px}
  .artist-mode .phone-status h2,.artist-mode #roundHint{display:none}
  .artist-mode .drawing-connection{display:inline-block;font-size:10px;color:#a53b28;max-width:180px;vertical-align:middle}
  .artist-mode .drawing-connection.online{color:#26512d}
  .artist-mode .drawing-connection:before{content:'●';margin-right:4px}
  .artist-mode .phone-clock{margin:0 10px;min-width:52px;flex-shrink:0}
  .artist-mode .phone-clock strong{font-size:28px}
  .artist-mode .drawing-shortcuts{display:flex;align-items:center;flex-shrink:0}
  .artist-mode .drawing-shortcuts button{min-height:40px;padding:6px 10px;font-size:13px;white-space:nowrap}
  .artist-mode .drawing-shortcuts .artist-actions{margin:0 8px 0 0}
  .artist-mode .drawing-shortcuts .artist-actions:empty{display:none}
  .artist-mode #playerActions{display:none}
  .artist-mode .round-tools-open #playerActions{display:flex;position:absolute;top:48px;left:0;right:0;z-index:5;margin:0;padding:10px;background:#fff8ed;border:2px solid #092343;border-radius:12px;box-shadow:0 5px 12px rgba(9,35,67,.2);flex-wrap:wrap}
  .artist-mode .round-tools-open #playerActions button,.artist-mode .round-tools-open #playerActions select{min-height:40px;height:auto;font-size:13px}
  .artist-mode .artist-pad{flex:1;height:auto;min-height:0;max-height:none;border-radius:10px}
  .artist-mode .draw-toolbar{width:152px;padding:6px;overflow:visible;position:relative}
  .artist-mode .draw-toolbar #clear{width:66px;min-height:36px;margin:0;align-self:flex-start;font-size:12px}
  .artist-mode .tool-scroll{overflow:visible;flex:none;min-height:0;padding-top:5px}
  .artist-mode .draw-toolbar .palette{width:136px;justify-content:space-between}
  .artist-mode .palette button{width:30px;height:30px;min-height:30px;margin:3px 1px}
  .artist-mode .draw-toolbar label{font-size:11px;margin:6px 0 0}
  .artist-mode .draw-toolbar input{width:126px;min-height:32px;height:32px;margin:0}
  .artist-mode .brush-preview{margin:3px;max-width:32px;max-height:32px}
  .artist-mode .tool-scroll #eraser{position:absolute;top:6px;right:6px;width:66px;min-height:36px;margin:0;font-size:12px}
  .artist-mode .message{flex-shrink:0;margin:0 0 3px;font-size:11px;max-height:32px;overflow:auto}
}
@media (orientation:landscape) and (max-height:600px) and (max-width:700px){
  .artist-mode .phone-status .team-badge{max-width:180px;margin-right:4px}
  .artist-mode .drawing-connection{display:block;font-size:9px;line-height:12px;max-width:none}
}
@media (orientation:landscape) and (max-height:310px){
  .artist-mode .brush-preview{display:none}
}
@media (orientation:landscape) and (max-height:600px){
  .artist-mode .drawing-shortcuts #fullscreen{width:40px;min-width:40px;padding:4px;margin-right:8px;font-size:23px;line-height:1}
}
