* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    background: #000000;
    color: #ffffff;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    touch-action: manipulation;
}

body {
    overflow-x: hidden;
}

.phone-shell {
    position: relative;
    min-height: 100vh;
    padding: 14px;
    background: #000000;
}

.top-card,
.state-card,
.table-card {
    margin-bottom: 12px;
    padding: 16px;
    border: 2px solid #00e5ff;
    border-radius: 8px;
    background: #050505;
}

.top-card {
    position: relative;
    border-left-width: 6px;
}

.backToAppsButton {
    position: absolute;
    top: 14px;
    right: 14px;
    min-height: 40px;
    padding: 10px 12px;
    border: 2px solid #00e5ff;
    border-radius: 7px;
    background: #000000;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    text-decoration: none;
    text-shadow: 0 0 5px #00e5ff;
}

.backToAppsButton:active,
.backToAppsButton:focus {
    background: #ccff00;
    color: #000000;
    text-shadow: none;
}

.eyebrow {
    color: #ccff00;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    margin: 3px 0 14px;
    color: #ffffff;
    font-size: 40px;
    line-height: 1;
    text-shadow: 0 0 4px #ffffff, 0 0 12px #00e5ff, 3px 0 0 #ff1744, -3px 0 0 #00ff66;
}

.name-field {
    display: block;
}

.name-field span,
.section-title {
    display: block;
    margin-bottom: 7px;
    color: #c7fff0;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
}

.name-field input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 12px;
    border: 2px solid #00e5ff;
    border-radius: 7px;
    background: #000000;
    color: #ffffff;
    font-size: 21px;
}

.name-field input:focus {
    outline: none;
    border-color: #ccff00;
}

.lane-chip {
    display: inline-block;
    min-width: 96px;
    margin-bottom: 10px;
    padding: 7px 10px;
    border-radius: 7px;
    background: #ccff00;
    color: #000000;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
}

.status-text {
    min-height: 54px;
    overflow: hidden;
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.12;
    text-shadow: 0 0 8px #00e5ff;
}

.meter {
    height: 13px;
    margin-top: 15px;
    overflow: hidden;
    border-radius: 7px;
    border: 1px solid #11333a;
    background: #000000;
}

.meter-fill {
    width: 0;
    height: 100%;
    background: #ccff00;
}

.controls {
    width: 100%;
    margin-bottom: 12px;
    padding: 18px 16px 20px;
    border: 2px solid #00e5ff;
    border-radius: 8px;
    background: #050505;
}

.slider-label,
.slider-scale {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.slider-label span,
.slider-label strong,
.slider-scale span {
    display: table-cell;
}

.slider-label span {
    color: #c7fff0;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
}

.slider-label strong {
    color: #ccff00;
    font-size: 17px;
    text-align: right;
    text-shadow: 0 0 6px #00ff66;
}

.position-slider {
    display: block;
    width: 100%;
    height: 88px;
    margin: 18px 0 10px;
    touch-action: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.position-slider:focus {
    outline: none;
}

.position-slider::-webkit-slider-runnable-track {
    height: 18px;
    border: 2px solid #00e5ff;
    border-radius: 9px;
    background: #000000;
}

.position-slider::-webkit-slider-thumb {
    width: 62px;
    height: 62px;
    margin-top: -24px;
    border: 4px solid #000000;
    border-radius: 31px;
    background: #ccff00;
    -webkit-appearance: none;
    appearance: none;
}

.position-slider::-moz-range-track {
    height: 18px;
    border: 2px solid #00e5ff;
    border-radius: 9px;
    background: #000000;
}

.position-slider::-moz-range-thumb {
    width: 54px;
    height: 54px;
    border: 4px solid #000000;
    border-radius: 31px;
    background: #ccff00;
}

.slider-scale span {
    color: #c7fff0;
    font-size: 12px;
}

.slider-scale span:nth-child(2) {
    text-align: center;
}

.slider-scale span:nth-child(3) {
    text-align: right;
}

.orientation-button {
    width: 100%;
    height: 48px;
    margin-top: 16px;
    border: 2px solid #00e5ff;
    border-radius: 7px;
    background: #000000;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 5px #00e5ff;
}

.orientation-button.is-active {
    background: #ccff00;
    color: #000000;
    text-shadow: none;
}

.orientation-button.is-unavailable {
    color: #4a777f;
}

.orientation-status {
    min-height: 18px;
    margin-top: 8px;
    overflow: hidden;
    color: #c7fff0;
    font-size: 13px;
    line-height: 1.25;
}

.scoreboard {
    overflow: hidden;
}

.score-row {
    display: table;
    width: 100%;
    padding: 9px 0;
    border-top: 1px solid #143c46;
}

.score-name,
.score-meta {
    display: table-cell;
    vertical-align: middle;
}

.score-name {
    width: 68%;
    overflow: hidden;
    font-size: 17px;
    font-weight: bold;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ffffff;
}

.score-meta {
    color: #c7fff0;
    font-size: 14px;
    text-align: right;
}

.score-row.is-out .score-name {
    color: #ff3b5c;
}

.reset-button {
    width: 100%;
    height: 46px;
    margin-top: 12px;
    border: 2px solid #ff1744;
    border-radius: 7px;
    background: #000000;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 5px #ff1744;
}

.reset-button:active,
.reset-button:focus,
.orientation-button:active,
.orientation-button:focus {
    background: #00e5ff;
    color: #000000;
    text-shadow: none;
}

.network-pill {
    position: fixed;
    right: 12px;
    bottom: 10px;
    max-width: 48vw;
    padding: 6px 9px;
    overflow: hidden;
    border-radius: 7px;
    background: #ccff00;
    color: #000000;
    font-size: 12px;
    font-weight: bold;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-height: 650px) {
    .phone-shell {
        padding: 10px;
    }

    .top-card,
    .state-card,
    .table-card {
        margin-bottom: 8px;
        padding: 11px;
    }

    .backToAppsButton {
        top: 9px;
        right: 9px;
        min-height: 36px;
        padding: 9px 10px;
        font-size: 12px;
    }

    h1 {
        margin-bottom: 8px;
        font-size: 30px;
    }

    .position-slider {
        height: 68px;
        margin: 10px 0 6px;
    }

    .status-text {
        min-height: 36px;
        font-size: 19px;
    }
}
