* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { font-family: Arial, sans-serif; color: #254a40; background: #f6f1e3; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button { font: bold 12px Arial, sans-serif; border: 0; border-radius: 5px; padding: 12px; cursor: pointer; color: #254a40; background: #e5e8d7; }
button:disabled { opacity: 0.55; cursor: default; }
button:focus, a:focus, input:focus { outline: 2px solid #bb7248; outline-offset: 2px; }
header { position: absolute; top: 0; left: 0; right: 0; height: 88px; padding: 0 17px; background: #f6f1e3; z-index: 2; }
#backLink { display: inline-block; color: #597568; text-decoration: none; font-size: 11px; padding: 15px 0 12px; min-height: 44px; }
#menuButton { float: right; margin-top: 3px; background: transparent; font-size: 10px; min-height: 42px; }
.heading { position: relative; margin-top: 1px; height: 30px; }
#playerDot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #f08248; margin: 0 7px 1px 0; }
#playerName { display: inline-block; max-width: 65%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 23px Georgia, serif; }
#network { float: right; font-size: 8px; letter-spacing: 1px; line-height: 30px; }
#stage { position: absolute; top: 88px; bottom: 313px; left: 0; right: 0; background: #c4ded4; }
#course { width: 100%; height: 100%; display: block; touch-action: none; }
#labels { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.golfer-label { position: absolute; padding: 3px 6px; background: #fcf6e5; border-bottom: 3px solid; border-radius: 3px; color: #254a40; font: bold 10px Arial, sans-serif; white-space: nowrap; transform: translate(-50%, -100%); }
.compact-label { padding: 3px 5px; }
.course-info { position: absolute; top: 15px; left: 17px; pointer-events: none; }
.course-info span { font-size: 8px; letter-spacing: 2px; font-weight: bold; display: block; }
.course-info b { display: block; font: 21px Georgia, serif; margin: 4px 0; }
.course-info small { font-size: 9px; letter-spacing: 1px; }
#overview { position: absolute; top: 12px; right: 12px; background: #f8f1df; font-size: 9px; min-height: 42px; }
#shotResult { position: absolute; bottom: 15px; left: 15px; right: 15px; text-align: center; font: 22px Georgia, serif; color: #244b3f; pointer-events: none; }
#controls { position: absolute; bottom: 0; left: 0; right: 0; height: 313px; padding: 15px 18px 14px; background: #f6f1e3; border-top: 1px solid #dedfc9; }
.stroke-line { font-size: 9px; font-weight: bold; letter-spacing: 1.4px; margin-bottom: 9px; height: 15px; }
#distance { float: right; color: #6b8172; font-weight: normal; letter-spacing: 0.5px; }
.aim-row { height: 54px; position: relative; padding: 0 48px; }
.aim-row button { position: absolute; top: 3px; width: 41px; height: 44px; font-size: 22px; padding: 0; }
#left { left: 0; } #right { right: 0; }
.aim-row label { font-size: 9px; letter-spacing: 1px; display: block; }
#angleValue { float: right; letter-spacing: 0; }
input[type=range] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 26px; margin: 4px 0 0; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 5px; background: #c9d5bd; border-radius: 3px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; background: #3d6e56; border: 3px solid #f6f1e3; border-radius: 50%; margin-top: -8px; }
input[type=range]::-moz-range-track { height: 5px; background: #c9d5bd; border-radius: 3px; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; background: #3d6e56; border: 3px solid #f6f1e3; border-radius: 50%; }
.power-row { margin-top: 3px; height: 54px; }
.power-row label { font-size: 9px; letter-spacing: 1px; display: block; }
#powerValue { float: right; color: #b56c42; font-size: 12px; letter-spacing: 0; }
#power::-webkit-slider-thumb { background: #c77c49; } #power::-moz-range-thumb { background: #c77c49; }
.accuracy-heading { margin-top: 1px; height: 17px; font-size: 9px; letter-spacing: 1px; }
.accuracy-heading small { float: right; font-size: 8px; letter-spacing: 0; color: #7a8976; }
#accuracy { position: relative; height: 18px; margin: 2px 0 13px; background: #e9bf83; border: 3px solid #e8e7d6; border-radius: 4px; }
#accuracy span { position: absolute; top: 0; bottom: 0; }
.zone-left { left: 25%; width: 18%; background: #bccd90; } .zone-centre { left: 43%; width: 14%; background: #739a62; } .zone-right { right: 25%; width: 18%; background: #bccd90; }
.centre-line { position: absolute; left: 50%; top: 0; height: 12px; border-left: 1px solid #f7f1de; }
#marker { position: absolute; left: 50%; top: -5px; width: 4px; height: 22px; border-radius: 2px; margin-left: -2px; background: #254a40; }
#hit { display: block; width: 100%; height: 60px; background: #285447; color: #fff9e9; font-size: 17px; letter-spacing: 1px; }
#hit small { display: block; font-size: 9px; font-weight: normal; letter-spacing: 0.3px; margin-top: 6px; opacity: 0.8; }
.menu { position: absolute; z-index: 5; top: 0; right: 0; bottom: 0; left: 0; background: rgba(30,60,47,0.7); overflow: auto; padding: 32px 20px; }
.menu-card { position: relative; max-width: 390px; margin: 0 auto; background: #f6f1e3; padding: 29px 23px 22px; border-radius: 8px; }
.close { position: absolute; top: 5px; right: 5px; background: transparent; font-size: 26px; width: 44px; height: 44px; padding: 0; }
.eyebrow { font-size: 8px; letter-spacing: 2px; }
.menu h1 { font: normal 30px/1.1 Georgia, serif; margin: 16px 0 25px; max-width: 230px; }
.menu label { font-size: 9px; letter-spacing: 1px; }
#nameInput { display: block; width: 100%; font-size: 17px; padding: 11px; border: 1px solid #b9c8b1; background: #fffbed; color: #254a40; border-radius: 4px; margin-top: 7px; }
#nameStatus { font-size: 9px; display: block; line-height: 1.5; margin-top: 7px; color: #73816c; }
#menuStatus { font-size: 12px; line-height: 1.5; margin: 18px 0; }
#start, #ready { width: 100%; min-height: 44px; margin-top: 9px; } #start { background: #285447; color: #fff9e9; }
.rules { text-align: center; font-size: 10px; line-height: 1.8; color: #7b8975; margin: 17px 0 0; }
#scores { padding: 0; margin: 0; list-style: none; }
#scores li { position: relative; padding: 8px 30px 6px 20px; border-top: 1px solid #dddccb; }
#scores i { position: absolute; width: 14px; height: 14px; border-radius: 50%; left: 0; top: 8px; color: #fff; font: bold 8px/14px Arial, sans-serif; text-align: center; }
#scores span { display: block; font-size: 12px; font-weight: bold; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#scores b { position: absolute; right: 0; top: 7px; font: 20px Georgia, serif; } #scores small { font-size: 9px; color: #7b8975; }
.error { position: absolute; z-index: 7; left: 10px; right: 10px; top: 91px; padding: 12px; background: #852f26; color: #fff; font-size: 12px; line-height: 1.5; }
@media (max-height: 700px) and (orientation: portrait) {
    header { height: 78px; } #stage { top: 78px; bottom: 287px; } #controls { height: 287px; padding-top: 11px; padding-bottom: 9px; }
    .aim-row { height: 49px; } .power-row { height: 49px; } #hit { height: 54px; } #accuracy { margin-bottom: 10px; }
}
@media (orientation: landscape) {
    header { right: 300px; height: 78px; } #stage { top: 78px; bottom: 0; right: 300px; } #controls { left: auto; width: 300px; height: 100%; padding-top: 24px; border-top: 0; border-left: 1px solid #dedfc9; }
    .course-info b { font-size: 17px; } #overview { top: auto; bottom: 10px; }
}
