:root{color-scheme:dark;font:16px system-ui;background:#123b40;color:#f9edce}*{box-sizing:border-box}body{margin:0;min-height:100dvh;display:flex;flex-direction:column;background:radial-gradient(ellipse at top,#376b69,#102f35 80%)}button,a{font:inherit;color:inherit}button{border:1px solid #d2b374;border-radius:8px;background:#284d50;padding:12px 18px;cursor:pointer}button:disabled{opacity:.45;cursor:default}a{text-decoration:none}a:focus-visible,button:focus-visible{outline:3px solid #ffcd69;outline-offset:3px}header{display:flex;gap:18px;align-items:center;padding:12px 24px;background:#102c31;border-bottom:1px solid #9b8050}header div{flex:1}h1{font:clamp(20px,3vw,34px) Georgia;margin:4px 0}header small{font-size:10px;letter-spacing:2px}main{display:grid;grid-template-columns:minmax(150px,240px) minmax(0,680px);gap:24px;justify-content:center;padding:16px;flex:1;min-height:0}aside{text-align:center}aside h2{font:22px Georgia;margin:8px}aside p{font-size:12px;margin:6px}.host-picture{width:100%;height:145px;max-width:180px}.caller{background:#112c30;border:1px solid #9c8658;border-radius:12px;padding:10px;margin:12px 0}.caller small{letter-spacing:2px;font-size:10px}.photo{display:block;background-image:url('assets/photo-cards-v1.webp');background-size:600% 400%;aspect-ratio:1;border-radius:7px;width:100%}.caller .photo{max-width:140px;margin:8px auto}.picture-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.picture-card{position:relative;background:#f4e9ca;color:#19383c;padding:5px;border:3px solid #d9c498;border-radius:10px;min-width:0}.picture-card .photo{max-height:clamp(50px,12vh,110px);aspect-ratio:auto;height:clamp(50px,12vh,110px)}.picture-card strong{font-size:clamp(11px,1.5vw,15px);display:block;margin-top:3px}.picture-card small{font-size:10px;display:block}.picture-card.marked{border-color:#ffd867;box-shadow:inset 0 0 0 2px #328d79}.picture-card.marked:after{content:'✓';position:absolute;right:6px;top:6px;background:#135f4e;color:#fff;border:2px solid #f9d979;border-radius:50%;width:28px;height:28px;display:grid;place-items:center;font-size:20px}.picture-card.winning{outline:3px solid #ffd660}#status{min-height:44px;margin:0 0 10px;line-height:1.4}#metrics{margin:8px 0;font-size:13px}footer{padding:12px 20px;background:#102c31;border-top:1px solid #9b8050;text-align:center}.actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.primary{background:#e4bd73;color:#162c2c;font-weight:700}#saveNote{display:block;margin-top:8px;color:#d6d2bd}.rival-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:3px;margin-top:8px}.rival-grid span{font-size:9px;padding:4px;border:1px solid #7f8d76}.rival-grid .marked{background:#488e78}.history-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.history-grid p{margin:4px;font-size:12px}dialog{background:#173b40;color:#f9edce;border:1px solid #d2b374;border-radius:14px;max-width:680px;width:92vw;max-height:85dvh;overflow:auto;padding:22px}dialog::backdrop{background:#000b}#close{float:right}dialog p{line-height:1.6}@media(max-width:650px){header{gap:10px;padding:8px 10px}header>a{font-size:12px}header button{padding:7px}main{grid-template-columns:1fr;gap:8px;padding:10px}aside{display:grid;grid-template-columns:65px 1fr 95px;align-items:center;gap:5px}aside .host-picture{height:75px}aside h2{font-size:15px}aside>p,aside>details{display:none}.caller{grid-column:3;grid-row:1/4;margin:0;padding:4px}.caller .photo{width:48px;margin:2px auto}.caller small{font-size:8px;letter-spacing:0}.caller b{font-size:10px}#rivalSummary{grid-column:2;font-size:11px}.picture-board{gap:5px}.picture-card .photo{height:clamp(42px,10vh,85px)}.picture-card{padding:3px}.picture-card small{display:none}#status{font-size:13px;min-height:36px;margin:0 0 6px}footer{padding:8px}.actions{gap:6px}.actions button{padding:9px 8px;font-size:12px}#saveNote{font-size:10px}}@media(max-height:550px) and (min-width:500px){header{padding:6px 14px}h1{font-size:20px}main{grid-template-columns:140px minmax(0,620px);gap:12px;padding:8px}.host-picture{height:65px}.caller{margin:4px 0;padding:4px}.caller .photo{width:58px;margin:3px auto}.picture-card .photo{height:clamp(18px,6vh,32px)}.picture-card strong{font-size:11px}.picture-card small{display:none}.picture-board{gap:4px}#status{min-height:28px;font-size:12px;margin-bottom:4px}aside{display:block}aside p{display:none}aside h2{font-size:16px}footer{padding:6px}.actions button{padding:7px 12px}#saveNote{margin-top:4px;font-size:10px}}
/* Keep the complete board and actions in view, including the optional music button. */
body{height:100dvh;min-height:0;overflow:hidden}header{flex-shrink:0}header div{min-width:0}header .music-control{font-size:12px;padding:8px;white-space:nowrap}main{overflow:hidden}.play{display:flex;flex-direction:column;min-height:0}.picture-board{flex:1;min-height:0;grid-template-rows:repeat(4,minmax(0,1fr))}.picture-card{display:flex;flex-direction:column;min-height:0;overflow:hidden}.picture-card .photo{flex:1;min-height:0;height:auto;max-height:none}.picture-card strong{flex-shrink:0}#status,#metrics,footer{flex-shrink:0}footer .actions{flex-wrap:nowrap}
@media(max-width:650px){header{display:grid;grid-template-columns:1fr auto auto auto;gap:6px}header>div{grid-column:1/-1;grid-row:1}header small{font-size:8px;letter-spacing:1px}h1{font-size:19px;margin:1px 0}header>a,header button{font-size:11px}header>div+button{grid-column:2;grid-row:2}header>a:first-child{grid-column:1;grid-row:2}header>a:last-of-type{grid-column:3;grid-row:2}header .music-control{grid-column:4;grid-row:2;padding:6px}main{grid-template-rows:85px minmax(0,1fr);padding:8px;gap:6px}aside{grid-template-columns:65px 1fr 100px;grid-template-rows:45px 25px;min-height:0}aside>div:first-child{grid-column:1;grid-row:1/3}aside h2{grid-column:2;grid-row:1;margin:0}aside #rivalSummary{grid-row:2}.caller{grid-row:1/3;max-height:85px;overflow:hidden}.caller .photo{height:46px;width:46px}.caller b{display:block;line-height:1.1}#status{min-height:30px;font-size:12px;line-height:1.25}#metrics{font-size:11px;margin:5px 0}.picture-card strong{font-size:10px;line-height:1.1;margin-top:2px}.actions button{font-size:11px;padding:9px 5px;min-width:0}#saveNote{line-height:1.2}}
@media(max-height:550px) and (min-width:651px){header{gap:10px;padding:5px 12px}header h1{font-size:18px}header small{font-size:8px}header button{padding:5px 10px;font-size:12px}header>a{font-size:12px}aside>details{display:none}.caller b{font-size:11px}.picture-card strong{font-size:10px;line-height:1}#metrics{font-size:10px;margin:4px 0}#status{min-height:26px;line-height:1.15}.picture-card{padding:2px}footer .actions button{padding:6px 12px;font-size:12px}}
@media(max-height:550px) and (min-width:651px){.picture-card{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:3px}.picture-card .photo{width:34px;height:34px;aspect-ratio:1;max-height:100%}.picture-card strong{margin:0;font-size:10px}.picture-card.marked:after{width:16px;height:16px;font-size:12px;right:2px;top:2px}}
@media(min-width:651px){main{grid-template-rows:minmax(0,1fr)}aside{min-height:0}}
@media(max-height:550px) and (min-width:651px){.host-picture{height:55px}aside h2{margin:4px}.caller .photo{width:48px;height:48px}.caller{padding:3px;margin:3px 0}#rivalSummary{font-size:11px;line-height:1.1}.picture-card .photo{width:30px;height:30px}.picture-card{grid-template-columns:30px minmax(0,1fr)}}
