* {
  box-sizing: border-box;
  }

html,
body {
margin: 0;
min-height: 100%;
background: #080a0d;
color: #f2f2f2;
font-family: Inter, Arial, sans-serif;
}

body {
min-height: 100vh;
display: flex;
justify-content: center;
overflow-x: hidden;
}

.page {
width: min(1100px, 100%);
padding: 30px 20px 60px;
}

header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 50px;
}

.logo {
font-weight: 900;
letter-spacing: -1px;
font-size: 22px;
}

.logo span {
color: #ff3b30;
}

.tagline {
color: #707782;
font-size: 13px;
letter-spacing: 2px;
text-transform: uppercase;
}

.hero {
text-align: center;
margin-bottom: 35px;
}

.eyebrow {
color: #ff3b30;
font-size: 12px;
font-weight: 800;
letter-spacing: 4px;
text-transform: uppercase;
margin-bottom: 12px;
}

h1 {
margin: 0;
font-size: clamp(48px, 9vw, 92px);
line-height: .9;
letter-spacing: -5px;
}

.hero p {
max-width: 600px;
margin: 22px auto 0;
color: #858c96;
line-height: 1.6;
}

.game {
position: relative;
border: 1px solid #242932;
background: #101318;
border-radius: 18px;
overflow: hidden;
}

.game-bar {
height: 64px;
border-bottom: 1px solid #242932;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 22px;
}

.metrics {
display: flex;
gap: 28px;
}

.metric {
min-width: 80px;
}

.metric-label {
display: block;
color: #707782;
font-size: 10px;
text-transform: uppercase;
letter-spacing: 2px;
margin-bottom: 3px;
}

.metric-value {
font-size: 22px;
font-weight: 800;
font-variant-numeric: tabular-nums;
}

#range {
position: relative;
height: min(62vw, 560px);
min-height: 360px;
overflow: hidden;
cursor: none;
background:
radial-gradient(circle at 50% 40%, #20252c 0%, #12161b 45%, #0b0e11 100%);
}

/* Highly visible custom aiming cursor */

#crosshair {
position: fixed;
width: 32px;
height: 32px;
pointer-events: none;
z-index: 1000;
display: none;
transform: translate(-50%, -50%);
}

#crosshair::before,
#crosshair::after {
content: "";
position: absolute;
background: #ff3b30;
box-shadow: 0 0 3px #000;
}

#crosshair::before {
width: 32px;
height: 2px;
top: 15px;
left: 0;
}

#crosshair::after {
width: 2px;
height: 32px;
left: 15px;
top: 0;
}

.crosshair-dot {
position: absolute;
width: 6px;
height: 6px;
background: #fff;
border: 1px solid #111;
border-radius: 50%;
left: 13px;
top: 13px;
}

#range::before {
content: "";
position: absolute;
inset: 0;
opacity: .12;
background:
linear-gradient(90deg, transparent 49.8%, #fff 50%, transparent 50.2%),
linear-gradient(0deg, transparent 49.8%, #fff 50%, transparent 50.2%);
pointer-events: none;
}

#range::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 20%;
background: linear-gradient(transparent, rgba(0,0,0,.45));
pointer-events: none;
}

.target {
position: absolute;
width: 76px;
height: 76px;
padding: 0;
border: 0;
border-radius: 50%;
transform: translate(-50%, -50%);
cursor: none;
background:
radial-gradient(
circle,
#111 0 14%,
#eee 14% 29%,
#111 29% 43%,
#eee 43% 57%,
#111 57% 100%
);
box-shadow:
0 5px 20px rgba(0,0,0,.6),
0 0 0 2px #eee;
z-index: 2;
}

.target::after {
content: "";
position: absolute;
width: 4px;
height: 4px;
background: #fff;
border-radius: 50%;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}

.target.hit {
animation: hit .18s ease-out forwards;
pointer-events: none;
}

@keyframes hit {
0% {
transform: translate(-50%, -50%) scale(1);
opacity: 1;
}


100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
}


}

#startScreen,
#finishScreen {
position: absolute;
z-index: 10;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
background: rgba(5, 7, 9, .88);
backdrop-filter: blur(5px);
padding: 25px;
}

#finishScreen {
display: none;


/*
 * The original overlay could clip the bottom of the
 * results when the shot analysis made the modal taller
 * than the game area. Allow the overlay itself to scroll.
 */
overflow-y: auto;
align-items: flex-start;


}

#finishScreen .modal {
margin: auto;
}

.modal {
max-width: 700px;
width: 100%;
}

.modal h2 {
margin: 8px 0 12px;
font-size: 42px;
letter-spacing: -2px;
}

.modal p {
color: #858c96;
line-height: 1.6;
margin: 0 auto 25px;
}

button.action {
border: 0;
background: #ff3b30;
color: white;
font-size: 14px;
font-weight: 900;
letter-spacing: 1px;
text-transform: uppercase;
padding: 15px 25px;
border-radius: 8px;
cursor: pointer;
}

button.action:hover {
background: #ff5147;
}

.final-summary {
display: flex;
justify-content: center;
gap: 40px;
margin: 20px 0 25px;
}

.final-stat strong {
display: block;
font-size: 32px;
}

.final-stat span {
color: #707782;
font-size: 10px;
letter-spacing: 2px;
text-transform: uppercase;
}

/* Shot analysis */

.shot-analysis {
margin: 25px 0;
text-align: left;
}

.shot-analysis-title {
color: #858c96;
font-size: 11px;
letter-spacing: 2px;
text-transform: uppercase;
margin-bottom: 12px;
}

.shot-grid {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 10px;
}

.shot-card {
border: 1px solid #242932;
background: #0d1014;
border-radius: 8px;
padding: 8px;
text-align: center;
}

.shot-number {
color: #707782;
font-size: 9px;
letter-spacing: 1px;
margin-bottom: 6px;
}

.shot-target {
position: relative;
width: 78px;
height: 78px;
margin: auto;
border-radius: 50%;
background:
radial-gradient(
circle,
#111 0 10%,
#eee 11% 24%,
#111 25% 39%,
#eee 40% 56%,
#111 57% 100%
);
box-shadow: 0 0 0 1px #eee;
}

.shot-marker {
position: absolute;
width: 8px;
height: 8px;
background: #ff3b30;
border: 1px solid white;
border-radius: 50%;
transform: translate(-50%, -50%);
box-shadow: 0 0 5px #000;
}

.shot-score {
margin-top: 6px;
font-size: 11px;
font-weight: 800;
}

.shot-zone {
color: #707782;
font-size: 9px;
margin-top: 2px;
}

.below {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 18px;
margin-top: 18px;
}

.card {
border: 1px solid #242932;
background: #101318;
border-radius: 14px;
padding: 22px;
}

.card h3 {
margin: 0 0 18px;
font-size: 12px;
letter-spacing: 2px;
text-transform: uppercase;
color: #858c96;
}

.score-row {
display: flex;
justify-content: space-between;
border-bottom: 1px solid #242932;
padding: 10px 0;
font-size: 14px;
}

.score-row:last-child {
border-bottom: 0;
}

.score-time {
font-variant-numeric: tabular-nums;
font-weight: 800;
}

.rules {
color: #858c96;
font-size: 14px;
line-height: 1.8;
}

footer {
text-align: center;
margin-top: 40px;
color: #454b54;
font-size: 11px;
letter-spacing: 2px;
text-transform: uppercase;
}

@media (max-width: 650px) {


header {
    margin-bottom: 35px;
}

.tagline {
    display: none;
}

h1 {
    letter-spacing: -3px;
}

.below {
    grid-template-columns: 1fr;
}

#range {
    min-height: 400px;
}

.target {
    width: 62px;
    height: 62px;
}

.shot-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

.shot-target {
    width: 54px;
    height: 54px;
}

.shot-card {
    padding: 5px;
}

.final-summary {
    gap: 20px;
}


}


.bullet-hole {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #050505;
    border: 1px solid #111;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.35),
        0 1px 3px rgba(0,0,0,.9);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 4;
}

.bullet-hole::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid rgba(255,59,48,.7);
    animation: bulletImpact .22s ease-out forwards;
}

@keyframes bulletImpact {
    from {
        opacity: 1;
        transform: scale(.6);
    }
    to {
        opacity: 0;
        transform: scale(1.8);
    }
}


.bullet-hole {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #050505;
    border: 1px solid #000;
    box-shadow: 0 0 0 1px rgba(255,255,255,.35);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
}

.bullet-hole::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(255,59,48,.75);
    border-radius: 50%;
    animation: bulletImpact .2s ease-out forwards;
}

@keyframes bulletImpact {
    0% {
        opacity: 1;
        transform: scale(.5);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}


.target {
    image-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

