* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: Arial, Helvetica, sans-serif; background: #091016; color: #ecf0e9; -webkit-text-size-adjust: 100%; }
button, input { font: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 1px solid #34464e; background: #17262f; color: #eff4e9; border-radius: 9px; min-height: 44px; padding: 10px 16px; }
button:disabled { opacity: .38; cursor: default; }
a { color: #a8babd; text-decoration: none; }
button:focus, a:focus, input:focus { outline: 2px solid #d4ed8a; outline-offset: 3px; }
[hidden] { display: none !important; }
header { height: 63px; max-width: 510px; margin: auto; padding: 10px 23px; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between; }
header a { font-size: 12px; min-height: 44px; line-height: 44px; }
.wordmark { font-size: 27px; color: #eaf1e6; letter-spacing: -2px; font-weight: bold; }
main { width: 100%; max-width: 460px; margin: auto; padding: 6px 26px 0; }
.identity { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; min-height: 98px; margin-bottom: 14px; }
.identity svg { -webkit-flex-shrink: 0; flex-shrink: 0; margin-right: 17px; }
.identity div { min-width: 0; }
.eyebrow { color: #a1b1b5; font-size: 9px; letter-spacing: 1.4px; margin: 0 0 9px; }
h1 { margin: 0 0 7px; font-size: 26px; letter-spacing: -.7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#network { color: #81989f; font-size: 10px; }
#network.online { color: #cbe897; }
.metrics { border-top: 1px solid #2b3c44; border-bottom: 1px solid #2b3c44; display: -webkit-flex; display: flex; padding: 14px 0; }
.metrics div { width: 33.333%; }
.metrics div:nth-child(2) { text-align: center; }
.metrics div:last-child { text-align: right; }
.metrics span { display: block; font-size: 8px; color: #8ba0a6; letter-spacing: 1.4px; margin-bottom: 5px; }
.metrics strong { font-size: 25px; font-weight: normal; }
.metrics small { font-size: 11px; color: #769099; }
#clock { font-family: Consolas, monospace; }
.round-actions { text-align: center; min-height: 54px; padding: 0 0 8px; }
#status { font-size: 12px; line-height: 1.5; margin: 12px 0; color: #b6c4c5; }
.primary { background: #d4ed8a; color: #15241c; border: 0; width: 100%; font-weight: bold; }
#pause { padding: 9px 14px; font-size: 11px; min-height: 44px; }
.controls { position: relative; width: 282px; height: 282px; margin: 4px auto 0; touch-action: none; -ms-touch-action: none; -webkit-user-select: none; user-select: none; }
.direction { position: absolute; width: 88px; height: 88px; padding: 0; -webkit-user-select: none; user-select: none; }
.direction b { display: block; font-size: 36px; line-height: 39px; font-weight: normal; }
.direction span { font-size: 8px; letter-spacing: 1.5px; }
.direction.pressed { background: #d4ed8a; color: #12221b; border-color: #e5f9ba; }
.north { top: 0; left: 97px; } .east { top: 97px; right: 0; } .south { bottom: 0; left: 97px; } .west { top: 97px; left: 0; }
.pad-centre { position: absolute; top: 102px; left: 102px; width: 78px; text-align: center; pointer-events: none; color: #7b9199; }
.pad-centre span { display: block; font-size: 24px; margin-bottom: 5px; }
.pad-centre small { font-size: 8px; line-height: 1.4; letter-spacing: 1px; }
.instruction { font-size: 11px; line-height: 1.6; text-align: center; margin: 14px 0 21px; color: #8da3aa; }
.profile { border-top: 1px solid #243741; padding-top: 16px; }
.profile label { display: block; font-size: 11px; margin-bottom: 8px; color: #b4c3c5; }
.profile label span { float: right; font-size: 9px; color: #68858e; }
.profile input { height: 44px; width: 100%; color: #e7eee8; border: 1px solid #3b4e58; background: #12212a; border-radius: 6px; padding: 10px 13px; font-size: 16px; }
.profile p { color: #78929b; font-size: 9px; line-height: 1.5; margin: 8px 0 0; }
footer { max-width: 460px; padding: 22px 26px; margin: auto; display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; font-size: 8px; color: #607d88; letter-spacing: .8px; }
@media (max-height: 780px) and (orientation: portrait) { header { height: 54px; } .identity { min-height: 76px; margin-bottom: 9px; } .identity svg { width: 62px; height: 62px; } .metrics { padding: 10px 0; } .instruction { margin: 10px 0 13px; } .profile { padding-top: 11px; } footer { padding-top: 16px; } .controls { width: 250px; height: 250px; } .direction { width: 78px; height: 78px; } .north, .south { left: 86px; } .east, .west { top: 86px; } .pad-centre { top: 89px; left: 89px; width: 72px; } }
@media (max-width: 350px) { main { padding-left: 20px; padding-right: 20px; } .identity svg { margin-right: 11px; } h1 { font-size: 23px; } .eyebrow { font-size: 8px; } }
@media (orientation: landscape) and (max-height: 600px) {
    header { margin-left: 0; width: 44%; height: 55px; padding: 4px 22px; } main { max-width: none; padding: 0 25px; }
    .identity, .metrics, .round-actions { width: 40%; } .identity { min-height: 70px; margin-bottom: 7px; } .identity svg { width: 55px; height: 55px; margin-right: 12px; }
    h1 { font-size: 22px; } .eyebrow { font-size: 8px; } .metrics { padding: 8px 0; } .metrics strong { font-size: 22px; }
    .controls { position: absolute; left: 58%; top: 25px; width: 250px; height: 250px; margin: 0; }
    .direction { width: 78px; height: 78px; } .north, .south { left: 86px; } .east, .west { top: 86px; } .pad-centre { top: 89px; left: 89px; width: 72px; }
    .instruction { margin: 8px 0 12px; width: 40%; font-size: 10px; } .profile { width: 40%; padding-top: 10px; } .profile input { height: 44px; }
    footer { margin: 0; width: 44%; padding: 15px 25px; } #status { font-size: 11px; margin: 8px 0; }
}
