/* =========================================================
DON'T BLINK
HARITHA'S BOREDOM LAB — GAME 001
========================================================= */

:root {
--game-bg: #03050a;
--game-surface: #080b12;
--game-border: rgba(255, 255, 255, 0.11);

--game-text: #ffffff;
--game-muted: rgba(255, 255, 255, 0.42);
--game-faint: rgba(255, 255, 255, 0.2);

--game-blue: #4b8dff;
--game-blue-bright: #75a9ff;

--game-max: 1500px;
}

/* =========================================================
RESET
========================================================= */

*,
*::before,
*::after {
box-sizing: border-box;
}

html,
body {
margin: 0;

width: 100%;
min-height: 100%;

background: var(--game-bg);

color: var(--game-text);

font-family:
Arial,
Helvetica,
sans-serif;
}

body {
overflow: hidden;
}

button,
a {
font: inherit;
}

/* =========================================================
GAME SHELL
========================================================= */

.game-shell {
position: relative;

width: 100vw;
height: 100vh;

min-height: 600px;

overflow: hidden;

background:
radial-gradient(
circle at 50% 50%,
rgba(30, 70, 150, 0.06),
transparent 40%
),
var(--game-bg);
}

/* =========================================================
BACKGROUND GRID
========================================================= */

.game-shell::before {
content: "";

position: absolute;

inset: 0;

background-image:
linear-gradient(
rgba(255, 255, 255, 0.035) 1px,
transparent 1px
),
linear-gradient(
90deg,
rgba(255, 255, 255, 0.035) 1px,
transparent 1px
);

background-size: 65px 65px;

opacity: 0.65;

pointer-events: none;

mask-image:
radial-gradient(
ellipse at center,
black 10%,
transparent 75%
);
}

/* =========================================================
AMBIENT LIGHT
========================================================= */

.game-shell::after {
content: "";

position: absolute;

width: 600px;
height: 600px;

left: 50%;
top: 50%;

transform:
translate(-50%, -50%);

border-radius: 50%;

background:
rgba(50, 110, 255, 0.035);

filter: blur(100px);

pointer-events: none;
}

/* =========================================================
HEADER
========================================================= */

.game-header {
position: absolute;

z-index: 20;

top: 0;
left: 0;
right: 0;

height: 82px;

padding:
0
35px;

display: flex;

align-items: center;

justify-content: space-between;

border-bottom:
1px solid
var(--game-border);

background:
rgba(3, 5, 10, 0.55);

backdrop-filter:
blur(15px);
}

/* Brand */

.game-brand {
display: flex;

align-items: center;

gap: 12px;

color: #ffffff;

text-decoration: none;

font-family: monospace;

font-size: 8px;

letter-spacing: 0.15em;
}

.brand-mark {
width: 34px;
height: 34px;

display: grid;

place-items: center;

border:
1px solid
rgba(255, 255, 255, 0.25);

font-size: 9px;

font-weight: 800;

letter-spacing: -0.08em;
}

/* Header info */

.game-header-info {
position: absolute;

left: 50%;

transform:
translateX(-50%);

display: flex;

align-items: center;

gap: 12px;

font-family: monospace;

font-size: 7px;

letter-spacing: 0.16em;

color:
rgba(255, 255, 255, 0.32);
}

.separator {
color: var(--game-blue);
}

/* Exit */

.exit-game {
color:
rgba(255, 255, 255, 0.45);

text-decoration: none;

font-family: monospace;

font-size: 8px;

letter-spacing: 0.16em;

transition:
color 0.25s ease;
}

.exit-game:hover {
color: #ffffff;
}

/* =========================================================
MAIN
========================================================= */

.game-main {
position: relative;

z-index: 5;

width: 100%;
height: 100%;

display: grid;

place-items: center;
}

/* =========================================================
INTRO SCREEN
========================================================= */

.game-intro {
position: absolute;

z-index: 10;

width: min(650px, 90vw);

text-align: center;

transition:
opacity 0.5s ease,
transform 0.5s ease,
visibility 0.5s ease;
}

.game-intro.hidden {
opacity: 0;

transform:
translateY(-25px);

visibility: hidden;

pointer-events: none;
}

/* Label */

.game-label {
display: block;

margin-bottom: 28px;

font-family: monospace;

font-size: 8px;

letter-spacing: 0.22em;

color: var(--game-blue);
}

/* Title */

.game-intro h1 {
margin: 0;

font-size:
clamp(
5rem,
12vw,
11rem
);

line-height: 0.76;

letter-spacing: -0.09em;

font-weight: 800;
}

.game-intro h1 em {
color: transparent;

-webkit-text-stroke:
1px
rgba(255, 255, 255, 0.45);

font-weight: 300;

font-style: normal;
}

/* Description */

.game-intro p {
margin:
38px
auto
0;

font-size: 13px;

line-height: 1.8;

color: var(--game-muted);
}

/* Start button */

.start-button {
position: relative;

min-width: 160px;

margin-top: 40px;

padding:
17px
25px;

display: inline-flex;

justify-content: center;

align-items: center;

gap: 25px;

border:
1px solid
rgba(255, 255, 255, 0.25);

background: transparent;

color: #ffffff;

cursor: pointer;

font-family: monospace;

font-size: 8px;

letter-spacing: 0.18em;

transition:
background 0.3s ease,
border-color 0.3s ease,
transform 0.3s ease;
}

.start-button span {
color: var(--game-blue);

font-size: 15px;

transition:
transform 0.3s ease,
color 0.3s ease;
}

.start-button:hover {
background: var(--game-blue);

border-color: var(--game-blue);

transform:
translateY(-3px);
}

.start-button:hover span {
color: #ffffff;

transform:
translateX(5px);
}

/* =========================================================
REACTION GAME
========================================================= */

.reaction-game {
position: absolute;

inset: 0;

display: grid;

place-items: center;

opacity: 0;

visibility: hidden;

transition:
opacity 0.5s ease,
visibility 0.5s ease;
}

.reaction-game.active {
opacity: 1;

visibility: visible;
}

/* Status */

.game-status {
position: absolute;

top: 125px;

left: 50%;

transform:
translateX(-50%);

font-family: monospace;

font-size: 8px;

letter-spacing: 0.2em;

color:
rgba(255, 255, 255, 0.38);

white-space: nowrap;
}

/* Reaction area */

.reaction-area {
position: relative;

width: min(52vw, 430px);
height: min(52vw, 430px);

min-width: 260px;
min-height: 260px;

border: 0;

background: transparent;

cursor: default;

border-radius: 50%;
}

.reaction-area.ready {
cursor: pointer;
}

/* Target core */

.target-core {
position: absolute;

width: 90px;
height: 90px;

left: 50%;
top: 50%;

transform:
translate(-50%, -50%)
scale(0);

border-radius: 50%;

background:
var(--game-blue);

opacity: 0;

box-shadow:
0 0 30px
rgba(75, 141, 255, 0.8),

```
0 0 80px
rgba(75, 141, 255, 0.45),

0 0 150px
rgba(75, 141, 255, 0.2);
```

transition:
opacity 0.15s ease,
transform 0.15s ease;
}

.reaction-area.ready .target-core {
opacity: 1;

transform:
translate(-50%, -50%)
scale(1);
}

/* Target rings */

.target-ring {
position: absolute;

left: 50%;
top: 50%;

transform:
translate(-50%, -50%)
scale(0.6);

border:
1px solid
rgba(255, 255, 255, 0.12);

border-radius: 50%;

opacity: 0;

transition:
opacity 0.2s ease,
transform 0.5s ease;
}

.ring-1 {
width: 170px;
height: 170px;
}

.ring-2 {
width: 260px;
height: 260px;
}

.ring-3 {
width: 350px;
height: 350px;
}

.reaction-area.ready .target-ring {
opacity: 1;

transform:
translate(-50%, -50%)
scale(1);
}

.reaction-area.ready .ring-1 {
transition-delay: 0.03s;
}

.reaction-area.ready .ring-2 {
transition-delay: 0.08s;
}

.reaction-area.ready .ring-3 {
transition-delay: 0.13s;
}

/* Instruction */

.game-instruction {
position: absolute;

bottom: 80px;

left: 50%;

transform:
translateX(-50%);

font-family: monospace;

font-size: 7px;

letter-spacing: 0.2em;

color:
rgba(255, 255, 255, 0.25);
}

/* =========================================================
STATES
========================================================= */

.reaction-game.waiting .target-core {
opacity: 0;

transform:
translate(-50%, -50%)
scale(0);
}

.reaction-game.waiting .target-ring {
opacity: 0;
}

.reaction-game.too-early {
animation:
shake 0.3s ease;
}

.reaction-game.result-flash {
animation:
flash 0.25s ease;
}

@keyframes shake {

0%,
100% {
transform: translateX(0);
}

25% {
transform: translateX(-7px);
}

75% {
transform: translateX(7px);
}

}

@keyframes flash {

50% {
filter:
brightness(1.8);
}

}

/* =========================================================
RESULT SCREEN
========================================================= */

.game-result {
position: absolute;

z-index: 15;

width: min(650px, 90vw);

text-align: center;

opacity: 0;

visibility: hidden;

transform:
translateY(25px);

transition:
opacity 0.5s ease,
transform 0.5s ease,
visibility 0.5s ease;
}

.game-result.active {
opacity: 1;

visibility: visible;

transform:
translateY(0);
}

/* Label */

.result-label {
display: block;

font-family: monospace;

font-size: 8px;

letter-spacing: 0.2em;

color:
rgba(255, 255, 255, 0.35);
}

/* Time */

.result-time {
display: flex;

justify-content: center;

align-items: baseline;

gap: 12px;

margin-top: 18px;
}

.result-time strong {
font-size:
clamp(
6rem,
13vw,
12rem
);

line-height: 0.8;

letter-spacing: -0.08em;

font-weight: 800;
}

.result-time span {
font-family: monospace;

font-size: 10px;

letter-spacing: 0.18em;

color: var(--game-blue);
}

.game-result p {
margin:
30px
auto
0;

font-size: 13px;

color: var(--game-muted);
}

/* Result buttons */

.result-actions {
display: flex;

justify-content: center;

gap: 10px;

margin-top: 45px;
}

.result-button {
min-width: 145px;

padding:
15px
20px;

border:
1px solid
rgba(255, 255, 255, 0.17);

background: transparent;

color: rgba(255, 255, 255, 0.65);

text-decoration: none;

cursor: pointer;

font-family: monospace;

font-size: 7px;

letter-spacing: 0.15em;

transition:
background 0.25s ease,
border-color 0.25s ease,
color 0.25s ease;
}

.result-button:hover,
.result-button.primary {
color: #ffffff;

border-color: var(--game-blue);
}

.result-button.primary:hover {
background: var(--game-blue);
}

/* =========================================================
FOOTER
========================================================= */

.game-footer {
position: absolute;

z-index: 20;

left: 35px;
right: 35px;
bottom: 22px;

display: flex;

justify-content: space-between;

align-items: center;

font-family: monospace;

font-size: 6px;

letter-spacing: 0.15em;

color:
rgba(255, 255, 255, 0.2);
}

/* =========================================================
RESPONSIVE
========================================================= */

@media (max-width: 700px) {

.game-header {
height: 70px;

padding:
0
20px;
}

}

.game-header-info {
display: none;
}

.game-brand {
font-size: 7px;
}

.game-label {
margin-bottom: 22px;
}

.game-intro h1 {
font-size:
clamp(
4rem,
18vw,
7rem
);
}

.game-intro p {
font-size: 12px;
}

.reaction-area {
width: 78vw;
height: 78vw;
}

.target-ring.ring-3 {
width: 75vw;
height: 75vw;
}

.target-ring.ring-2 {
width: 55vw;
height: 55vw;
}

.target-ring.ring-1 {
width: 36vw;
height: 36vw;
}

.target-core {
width: 65px;
height: 65px;
}

.game-status {
top: 105px;
}

.game-instruction {
bottom: 65px;
}

.game-footer {
left: 20px;
right: 20px;
}

.game-footer span:nth-child(2) {
display: none;
}

.result-actions {
flex-direction: column;

align-items: center;


}

.result-button {
width: 200px;
}

}

@media (max-width: 420px) {

.game-shell {
min-height: 520px;
}

.game-intro h1 {
font-size: 4rem;
}

.game-intro p {
margin-top: 28px;
}

.start-button {
margin-top: 30px;
}

.result-time strong {
font-size: 5.5rem;
}

}
