<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#0b1424">
<title>Reaction Rush | Global Arcade</title>
<link rel="stylesheet" href="../styles.css">

<style>
.reaction-page {
width: min(900px, 92%);
margin: 35px auto;
}

.reaction-card {
background: #142238;
border: 1px solid #263b56;
border-radius: 18px;
padding: 32px 20px;
text-align: center;
transition: background-color 0.15s ease;
}

.reaction-card h1 {
color: #ffffff;
margin: 12px 0;
}

.reaction-card p {
color: #aebdd0;
}

.reaction-area {
background: #0b1424;
border: 1px solid #263b56;
border-radius: 12px;
padding: 35px 15px;
margin: 25px 0;
transition: background-color 0.12s ease;
}

.reaction-area.ready {
background: #21c987;
border-color: #21c987;
}

#message {
font-size: 24px;
font-weight: 800;
color: #ffffff;
margin: 10px;
}

.reaction-area.ready #message {
color: #06291c;
}

#score {
min-height: 28px;
color: #80f0c0;
font-size: 20px;
font-weight: bold;
margin: 15px 0;
}

#start {
background: #80f0c0;
color: #071426;
border: 0;
border-radius: 9px;
padding: 13px 25px;
font-size: 16px;
font-weight: bold;
cursor: pointer;
min-width: 145px;
}

#start:disabled {
opacity: 0.8;
cursor: wait;
}

.reaction-area.ready #start {
background: #071f17;
color: #ffffff;
}

.reaction-instructions {
font-size: 13px;
margin-top: 20px;
}

.ad-placeholder {
margin-top: 24px;
padding: 25px 10px;
border: 1px dashed #40516a;
border-radius: 10px;
color: #8392a8;
text-align: center;
font-size: 12px;
}
</style>
</head>

<body>

<header class="site-header">
<a href="../index.html" class="logo">G GLOBAL ARCADE</a>
<a href="../index.html">← All games</a>
</header>

<main class="reaction-page">

<section class="reaction-card">

<small>REFLEX CHALLENGE</small>

<h1>⚡ Reaction Rush</h1>

<p>Wait for green, then tap as quickly as you can.</p>

<div class="reaction-area" id="reaction-area">

<div id="message" aria-live="polite">
Ready?
</div>

<div id="score" aria-live="polite"></div>

<button id="start" type="button">
Start challenge
</button>

</div>

<p class="reaction-instructions">
Don't tap early. The timer starts after the screen changes to green.
</p>

</section>

<div class="ad-placeholder">
ADVERTISEMENT<br>
Ad placement placeholder
</div>

</main>

<script src="reaction.js" defer></script>

</body>
</html>