/* =========================================================
THE BUTTON
HARITHA'S BOREDOM LAB — GAME 003
========================================================= */

:root {
--game-bg: #030407;
--game-surface: #090b10;

--game-text: #ffffff;
--game-muted: rgba(255, 255, 255, 0.4);
--game-faint: rgba(255, 255, 255, 0.18);

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

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

--button-size: 240px;
}

/* =========================================================
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;
}

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

.game-shell {
position: relative;

width: 100vw;
height: 100vh;

min-height: 620px;

overflow: hidden;

background:
radial-gradient(
circle at 50% 50%,
rgba(75, 141, 255, 0.035),
transparent 35%
),
var(--game-bg);
}

/* =========================================================
LAB 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:
70px 70px;

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

pointer-events: none;
}

/* =========================================================
VIGNETTE
========================================================= */

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

position: absolute;

inset: 0;

pointer-events: none;

background:
radial-gradient(
ellipse at center,
transparent 35%,
rgba(0, 0, 0, 0.55) 100%
);
}

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

.game-header {
position: absolute;

z-index: 30;

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, 4, 7, 0.72);

backdrop-filter:
blur(15px);
}

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

align-items: center;

gap: 12px;

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

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
========================================================= */

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

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

.button-intro h1 {
margin: 0;

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

line-height: 0.75;

letter-spacing: -0.1em;

font-weight: 800;
}

.button-intro h1 em {
color: transparent;

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

font-style: normal;

font-weight: 300;
}

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

font-size: 13px;

line-height: 1.8;

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

/* =========================================================
START BUTTON
========================================================= */

.start-button {
min-width: 170px;

margin-top: 40px;

padding:
17px
25px;

display: inline-flex;

align-items: center;

justify-content: 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);
}

/* =========================================================
BUTTON GAME
========================================================= */

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

.button-game.active {
opacity: 1;

visibility: visible;
}

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

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

transition:
color 0.3s ease;
}

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

margin-right: 8px;

color: var(--game-blue);

font-size: 7px;
}

/* =========================================================
PRESS COUNTER
========================================================= */

.press-counter {
position: absolute;

top: 135px;

right: 45px;

display: flex;

flex-direction: column;

align-items: flex-end;

gap: 5px;
}

.press-counter span {
font-family: monospace;

font-size: 6px;

letter-spacing: 0.17em;

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

.press-counter strong {
font-family: monospace;

font-size: 18px;

font-weight: 400;

letter-spacing: 0.04em;

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

/* =========================================================
BUTTON STAGE
========================================================= */

.button-stage {
position: relative;

width: 400px;
height: 400px;

display: grid;

place-items: center;
}

/* =========================================================
BUTTON AURA
========================================================= */

.button-aura {
position: absolute;

width: 340px;
height: 340px;

border-radius: 50%;

background:
radial-gradient(
circle,
rgba(75, 141, 255, 0.12),
transparent 65%
);

filter:
blur(20px);

opacity: 0.5;

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

/* =========================================================
THE BUTTON
========================================================= */

.the-button {
position: relative;

width: var(--button-size);
height: var(--button-size);

display: flex;

flex-direction: column;

align-items: center;

justify-content: center;

border: 0;

border-radius: 50%;

background:
radial-gradient(
circle at 50% 38%,
#151a24 0%,
#090c12 48%,
#05070b 100%
);

color: #ffffff;

cursor: pointer;

box-shadow:


inset
0 1px 1px
rgba(255, 255, 255, 0.12),

inset
0 -15px 25px
rgba(0, 0, 0, 0.5),

0 15px 45px
rgba(0, 0, 0, 0.55);


transition:
transform 0.12s ease,
box-shadow 0.12s ease;
}

.the-button::before {
content: "";

position: absolute;

inset: -8px;

border-radius: 50%;

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

.the-button::after {
content: "";

position: absolute;

inset: -18px;

border-radius: 50%;

border:
1px solid
rgba(255, 255, 255, 0.045);
}

.the-button:hover {
transform:
scale(1.025);

box-shadow:


inset
0 1px 1px
rgba(255, 255, 255, 0.16),

inset
0 -15px 25px
rgba(0, 0, 0, 0.5),

0 18px 55px
rgba(0, 0, 0, 0.6);


}

.the-button:active {
transform:
scale(0.96)
translateY(5px);

box-shadow:


inset
0 10px 25px
rgba(0, 0, 0, 0.6),

0 5px 20px
rgba(0, 0, 0, 0.5);


}

/* =========================================================
BUTTON LIGHT
========================================================= */

.button-light {
width: 12px;
height: 12px;

margin-bottom: 18px;

border-radius: 50%;

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

box-shadow:
0 0 12px
rgba(255, 255, 255, 0.1);

transition:
background 0.3s ease,
box-shadow 0.3s ease;
}

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

box-shadow:
0 0 20px
rgba(75, 141, 255, 0.65);
}

/* =========================================================
BUTTON TEXT
========================================================= */

.button-text {
font-family: monospace;

font-size: 17px;

font-weight: 700;

letter-spacing: 0.12em;
}

.button-subtext {
margin-top: 5px;

font-family: monospace;

font-size: 7px;

letter-spacing: 0.25em;

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

/* =========================================================
MESSAGE
========================================================= */

.button-message {
position: absolute;

bottom: 105px;

left: 50%;

transform:
translateX(-50%);

width: 90vw;

text-align: center;

font-family: monospace;

font-size: 8px;

letter-spacing: 0.18em;

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

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

.button-message.change {
animation:
messageChange 0.3s ease;
}

@keyframes messageChange {

0% {
opacity: 0;


transform:
  translateX(-50%)
  translateY(5px);


}

100% {
opacity: 1;


transform:
  translateX(-50%)
  translateY(0);


}

}

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

.reset-button {
position: absolute;

bottom: 35px;

left: 50%;

transform:
translateX(-50%);

padding:
9px
14px;

border: 0;

background: transparent;

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

cursor: pointer;

font-family: monospace;

font-size: 6px;

letter-spacing: 0.16em;

transition:
color 0.2s ease;
}

.reset-button:hover {
color:
rgba(255, 255, 255, 0.6);
}

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

.button-result {
position: absolute;

z-index: 15;

width:
min(
700px,
90vw
);

text-align: center;

opacity: 0;

visibility: hidden;

transform:
translateY(25px);

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

.button-result.active {
opacity: 1;

visibility: visible;

transform:
translateY(0);
}

.result-label {
display: block;

margin-bottom: 25px;

font-family: monospace;

font-size: 8px;

letter-spacing: 0.2em;

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

.button-result h2 {
margin: 0;

font-size:
clamp(
3rem,
7vw,
6.5rem
);

line-height: 0.9;

letter-spacing: -0.07em;

font-weight: 800;
}

.final-presses {
margin:
45px
auto
0;

padding:
20px
40px;

display: inline-flex;

align-items: center;

gap: 25px;

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

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

.final-presses span {
font-family: monospace;

font-size: 7px;

letter-spacing: 0.16em;

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

.final-presses strong {
font-family: monospace;

font-size: 30px;

font-weight: 400;

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

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

color: var(--game-muted);

font-size: 13px;
}

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

.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: 30;

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

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

.button-game.pressed
.the-button {

animation:
buttonPress 0.15s ease;

}

@keyframes buttonPress {

0% {
transform:
scale(1);
}

50% {
transform:
scale(0.94)
translateY(4px);
}

100% {
transform:
scale(1);
}

}

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

@media (max-width: 700px) {

.game-header {
height: 70px;


padding:
  0 20px;


}

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

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

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

.button-stage {
width: 330px;
height: 330px;
}

:root {
--button-size: 190px;
}

.button-aura {
width: 280px;
height: 280px;
}

.button-status {
top: 105px;
}

.press-counter {
top: 100px;


right: 20px;


}

.button-message {
bottom: 85px;
}

.reset-button {
bottom: 28px;
}

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

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

.button-stage {
width: 290px;
height: 290px;
}

:root {
--button-size: 165px;
}

.button-aura {
width: 240px;
height: 240px;
}

.button-text {
font-size: 14px;
}

.button-subtext {
font-size: 6px;
}

.button-light {
width: 9px;
height: 9px;


margin-bottom: 13px;


}

.button-result h2 {
font-size: 3rem;
}

.final-presses {
margin-top: 30px;


padding:
  17px
  25px;


}

}

@media (prefers-reduced-motion: reduce) {

.button-message.change,
.button-game.pressed .the-button {
animation: none;
}

}
