:root{font-family:system-ui,-apple-system,sans-serif;color:#e9f3ff;background:#0c1830;font-size:17px;color-scheme:dark}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,summary{touch-action:manipulation}button{padding:.7rem 1rem;border:1px solid #607695;border-radius:14px;background:#223956;color:#f5f8ff;cursor:pointer;min-height:48px}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #ffd85d;outline-offset:3px}a{color:#8ed6ff}header{display:flex;align-items:center;gap:1rem;justify-content:space-between;padding:.65rem 1rem;background:#101f39;position:sticky;top:0;z-index:3;min-height:64px}header a{text-decoration:none}header small{font-size:.65rem;display:block;letter-spacing:.12em}main{max-width:1250px;margin:auto;padding:1rem}h1{font-size:clamp(1.9rem,4vw,3.3rem);line-height:1.1;margin:.7rem 0}p{line-height:1.45}.eyebrow{font-size:.75rem;font-weight:800;letter-spacing:.16em;color:#83d8eb}.card{max-width:920px;margin:1rem auto;padding:1.5rem;border:1px solid #3c5878;border-radius:24px;background:linear-gradient(140deg,#192e4c,#101e37)}[hidden]{display:none!important}.primary{background:#efc95b;color:#17223a;font-weight:800;border-color:#efc95b}.fact b{font-size:1.1rem}label{display:block;margin:1rem 0;font-weight:700}select,input{display:block;width:100%;padding:.65rem;border-radius:10px;background:#14243f;border:1px solid #7486a0;color:white;margin-top:.4rem}#episode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1.5rem 0}#episode-grid button{padding:1.2rem;text-align:left;border-radius:20px;display:flex;flex-direction:column;gap:.55rem;background:#1f3957}#episode-grid strong{font-size:1.25rem}#episode-grid small{color:#b9d5e7;line-height:1.45}#episode-grid .suggested{color:#ffe278;font-weight:750}.offline-panel{border-top:1px solid #436080;margin-top:1.5rem;padding-top:1rem;font-size:.9rem}.offline-badge{background:#ffd85d;color:#173050;border-radius:6px;padding:.3rem}.mission-bar,.facts-bar{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}.mission-bar{justify-content:space-between}#level-badge{color:#ffe278;font-weight:800}.facts-bar{font-size:.8rem;margin:.5rem 0}.facts-bar b{color:#ffe278}#cue{font-size:1rem;font-weight:650;min-height:1.4rem;margin:.5rem 0}#rink-host{width:100%;height:clamp(280px,54vh,620px);min-height:280px;border:3px solid #637e97;border-radius:18px;overflow:hidden;background:#e8f3f6;touch-action:none;user-select:none}#rink-host svg{width:100%;height:100%;display:block}#rink-host [role=button]{cursor:pointer}#rink-host [role=button]:focus{outline:none;filter:drop-shadow(0 0 4px #edc650)}.action-bar{background:#10243e;padding:.7rem 1rem;border-radius:15px;margin-top:.5rem}.action-bar p{margin:.3rem 0}#selection{font-weight:700;min-height:1.4rem}.buttons{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}.buttons .primary{margin-left:auto;min-width:170px}.window-track{height:6px;background:#3b5672;border-radius:4px;margin-top:.65rem;overflow:hidden}#window-fill{display:block;height:100%;background:#ffd85d;width:100%}#clock-note{font-size:.8rem;color:#b4d2e2}details{padding:.7rem 0}summary{cursor:pointer;min-height:44px;padding:.65rem 0;font-weight:750}.close-details{position:sticky;top:65px;display:block;margin-left:auto;z-index:2;background:#1c3958}details:not([open])>.close-details{display:none}.stars{font-size:1.8rem;font-weight:800;color:#ffdc62}#recap-reads article{padding:1rem;border:1px solid #4a6986;border-radius:16px;margin:1rem 0}#recap-reads h2{font-size:1.1rem;color:#e8d28e}#recap-reads p{margin:.45rem 0}dialog{max-width:500px;width:calc(100% - 2rem);color:#eef5ff;background:#152b48;border:2px solid #7a95ab;border-radius:20px;padding:1.4rem;position:fixed;max-height:85dvh;overflow:auto}dialog::backdrop{background:#060f25bb}dialog button{display:block;margin:.5rem 0;width:100%}.review-warning{color:#ffda76}#keyboard input{max-width:240px}@media(max-width:650px){header{gap:.5rem;font-size:.8rem}header button{padding:.5rem}main{padding:.5rem}.card{padding:1rem;margin:.5rem auto}#episode-grid{grid-template-columns:1fr}#rink-host{height:48dvh}.facts-bar{gap:.4rem;font-size:.7rem}.mission-bar{font-size:.85rem}.buttons{gap:.3rem}.buttons button{padding:.6rem;font-size:.9rem}.buttons .primary{min-width:130px}#cue{font-size:.9rem}}@media(orientation:landscape) and (max-height:650px){header{min-height:42px;padding:.3rem .75rem}main{padding:.4rem}#rink-host{height:53dvh;min-height:180px}.mission-bar button{min-height:36px;padding:.3rem .6rem}#cue{margin:.25rem 0}.action-bar{padding:.35rem .6rem}.buttons button{min-height:40px;padding:.4rem .75rem}.facts-bar{margin:.3rem 0}}

/* Keep the read, rink and execution controls together on tablet screens. */
#arena #selection{line-height:1.45;height:2.9em;min-height:2.9em;overflow-y:auto}
@media(max-width:650px){#arena #selection{height:4.35em;min-height:4.35em}}
#arena{height:calc(100dvh - 108px);min-height:500px;display:flex;flex-direction:column}#arena>*{flex-shrink:0}#arena #rink-host{flex:1;min-height:180px;height:auto}#arena #keyboard[open]{flex-shrink:1;overflow:auto}#arena .mission-bar,#arena .facts-bar,#arena #cue{background:#0c1830}
@media(orientation:landscape) and (max-height:650px){#arena{height:calc(100dvh - 60px);min-height:420px}}
