.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* =========================================================
THE NUMBER
HARITHA'S BOREDOM LAB — GAME 002
========================================================= */

:root {
--game-bg: #04060a;
--game-surface: #090c12;
--game-surface-2: #0d1119;

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

--game-blue: #4b8dff;
--game-blue-soft: rgba(75, 141, 255, 0.15);

--game-border: rgba(255, 255, 255, 0.1);
}

/* =========================================================
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,
input {
font: inherit;
}

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

.game-shell {
position: relative;

width: 100vw;
height: 100vh;

min-height: 650px;

overflow: hidden;

background:
radial-gradient(
circle at 50% 48%,
rgba(45, 90, 180, 0.06),
transparent 42%
),
var(--game-bg);
}

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

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

position: absolute;

inset: 0;

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

background-size:
50px 50px;

mask-image:
radial-gradient(
ellipse at center,
black 15%,
transparent 80%
);

pointer-events: none;
}

/* =========================================================
SCAN LINES
========================================================= */

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

position: absolute;

inset: 0;

background:
repeating-linear-gradient(
to bottom,
transparent 0,
transparent 4px,
rgba(255, 255, 255, 0.012) 5px
);

pointer-events: none;

opacity: 0.4;
}

/* =========================================================
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(4, 6, 10, 0.7);

backdrop-filter:
blur(14px);
}

.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;
}

.game-header-info {
position: absolute;

left: 50%;

transform:
translateX(-50%);

display: flex;

gap: 12px;

align-items: center;

font-family: monospace;

font-size: 7px;

letter-spacing: 0.16em;

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

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

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

text-decoration: none;

font-family: monospace;

font-size: 8px;

letter-spacing: 0.16em;

transition:
color 0.2s ease;
}

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

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

.game-main {
position: relative;

z-index: 5;

width: 100%;
height: 100%;

display: grid;

place-items: center;
}

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

.number-intro {
position: absolute;

z-index: 10;

width:
min(
700px,
90vw
);

text-align: center;

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

.number-intro.hidden {
opacity: 0;

transform:
translateY(-25px);

visibility: hidden;

pointer-events: none;
}

.game-label {
display: block;

margin-bottom: 28px;

font-family: monospace;

font-size: 8px;

letter-spacing: 0.22em;

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

.number-intro h1 {
margin: 0;

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

line-height: 0.75;

letter-spacing: -0.1em;

font-weight: 800;
}

.number-intro h1 em {
color: transparent;

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

font-style: normal;

font-weight: 300;
}

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

font-size: 13px;

line-height: 1.8;

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

.number-intro p strong {
color: #ffffff;

font-weight: 500;
}

/* Start button */

.start-button {
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.22);

background: transparent;

color: #ffffff;

cursor: pointer;

font-family: monospace;

font-size: 8px;

letter-spacing: 0.18em;

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

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

font-size: 15px;

transition:
transform 0.25s 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);
}

/* =========================================================
NUMBER GAME
========================================================= */

.number-game {
position: absolute;

inset: 0;

display: flex;

flex-direction: column;

align-items: center;

justify-content: center;

opacity: 0;

visibility: hidden;

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

.number-game.active {
opacity: 1;

visibility: visible;
}

/* =========================================================
STATUS
========================================================= */

.number-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.4);

white-space: nowrap;
}

.number-status::before {
content: "●";

margin-right: 8px;

color: var(--game-blue);

font-size: 7px;
}

/* =========================================================
CENTRAL DISPLAY
========================================================= */

.number-display {
position: relative;

width:
min(
520px,
86vw
);

text-align: center;
}

.display-label {
display: block;

margin-bottom: 15px;

font-family: monospace;

font-size: 7px;

letter-spacing: 0.2em;

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

/* Guess display */

.guess-display {
min-height: 160px;

display: flex;

align-items: center;

justify-content: center;

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

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

.guess-display span {
font-family: monospace;

font-size:
clamp(
7rem,
15vw,
13rem
);

line-height: 0.8;

letter-spacing: -0.08em;

font-weight: 400;

color: #ffffff;

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

.guess-display span.updated {
animation:
numberPop 0.25s ease;
}

@keyframes numberPop {

0% {
opacity: 0;

```
transform:
  scale(0.85);
```

}

100% {
opacity: 1;

```
transform:
  scale(1);
```

}

}

/* Hint */

.hint-display {
min-height: 20px;

margin-top: 18px;

font-family: monospace;

font-size: 8px;

letter-spacing: 0.16em;

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

transition:
color 0.25s ease;
}

.hint-display.high,
.hint-display.low {
color: var(--game-blue);
}

.hint-display.correct {
color: #ffffff;

text-shadow:
0 0 20px
rgba(255, 255, 255, 0.25);
}

/* =========================================================
GUESS FORM
========================================================= */

.guess-form {
display: flex;

align-items: stretch;

width:
min(
520px,
86vw
);

margin-top: 35px;
}

.guess-form input {
width: 100%;

min-width: 0;

height: 58px;

padding:
0
20px;

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

border-right: 0;

outline: none;

background:
rgba(255, 255, 255, 0.025);

color: #ffffff;

font-family: monospace;

font-size: 18px;

letter-spacing: 0.05em;

text-align: center;

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

.guess-form input::placeholder {
color:
rgba(255, 255, 255, 0.2);
}

.guess-form input:focus {
border-color:
rgba(75, 141, 255, 0.6);

background:
rgba(75, 141, 255, 0.04);
}

/* Remove number arrows */

.guess-form input::-webkit-outer-spin-button,
.guess-form input::-webkit-inner-spin-button {
margin: 0;

-webkit-appearance: none;
}

.guess-form input[type="number"] {
appearance: textfield;
}

/* Guess button */

.guess-button {
width: 135px;

flex-shrink: 0;

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

background:
var(--game-blue);

color: #ffffff;

cursor: pointer;

font-family: monospace;

font-size: 8px;

letter-spacing: 0.15em;

transition:
filter 0.2s ease,
transform 0.2s ease;
}

.guess-button span {
margin-left: 12px;

font-size: 14px;
}

.guess-button:hover {
filter: brightness(1.15);

transform:
translateX(3px);
}

/* =========================================================
GAME INFORMATION
========================================================= */

.game-information {
width:
min(
520px,
86vw
);

margin-top: 45px;

display: grid;

grid-template-columns:
repeat(3, 1fr);

border-top:
1px solid
var(--game-border);
}

.game-information > div {
min-height: 65px;

padding:
15px
12px;

display: flex;

flex-direction: column;

align-items: center;

justify-content: center;

gap: 7px;

border-right:
1px solid
var(--game-border);
}

.game-information > div:last-child {
border-right: 0;
}

.game-information span {
font-family: monospace;

font-size: 6px;

letter-spacing: 0.15em;

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

.game-information strong {
font-family: monospace;

font-size: 9px;

font-weight: 500;

letter-spacing: 0.1em;

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

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

.number-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;
}

.number-result.active {
opacity: 1;

visibility: visible;

transform:
translateY(0);
}

.result-label {
display: block;

font-family: monospace;

font-size: 8px;

letter-spacing: 0.2em;

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

/* Result number */

.result-number {
margin-top: 25px;
}

.result-number > span {
display: block;

margin-bottom: 10px;

font-family: monospace;

font-size: 7px;

letter-spacing: 0.16em;

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

.result-number strong {
display: block;

font-size:
clamp(
7rem,
14vw,
12rem
);

line-height: 0.8;

letter-spacing: -0.08em;

font-weight: 800;
}

/* Result score */

.result-score {
max-width: 450px;

margin:
45px
auto
0;

display: grid;

grid-template-columns:
repeat(2, 1fr);

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

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

.result-score > div {
min-height: 75px;

padding:
15px;

display: flex;

flex-direction: column;

justify-content: center;

align-items: center;

gap: 8px;
}

.result-score > div:first-child {
border-right:
1px solid
var(--game-border);
}

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

font-size: 6px;

letter-spacing: 0.16em;

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

.result-score strong {
font-family: monospace;

font-size: 10px;

letter-spacing: 0.08em;
}

/* Result buttons */

.result-actions {
display: flex;

justify-content: center;

gap: 10px;

margin-top: 40px;
}

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

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);
}

/* =========================================================
ACCESSIBILITY
========================================================= */

.sr-only {
position: absolute;

width: 1px;
height: 1px;

padding: 0;

margin: -1px;

overflow: hidden;

clip: rect(
0,
0,
0,
0
);

white-space: nowrap;

border: 0;
}

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

@media (max-width: 700px) {

.game-header {
height: 70px;

padding: 0 20px;

}

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

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

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

.number-status {
top: 105px;
}

.guess-display {
min-height: 120px;
}

.guess-form {
margin-top: 28px;
}

.guess-form input {
height: 54px;

font-size: 16px;

}

.guess-button {
width: 110px;
}

.game-information {
margin-top: 30px;
}

.result-number strong {
font-size: 7rem;
}

.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: 560px;
}

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

.guess-display span {
font-size: 6rem;
}

.guess-form {
width: 90vw;
}

.guess-button {
width: 100px;
}

.game-information {
width: 90vw;
}

.result-number strong {
font-size: 6rem;
}

}
