* {
    box-sizing: border-box;
}

:root {
  --mainbg: #1e293b;
  --panelcolor: #111827;
  --bright: #38bdf8;
  --lighttext: #e2e8f0;
  --faded: #94a3b8;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: #0b1020;
  color: var(--lighttext);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.links {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: #38bdf8;
    border-radius: 50px;
    padding: 5px 10px;
}

.intro {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 50%, #1e40af, #0f172a);
    z-index: 9999;
}

.intro.hide {
    display: none;
}

.hidden {
    display: none !important;
}

.box {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.gamearena {
    width: 90%;
    max-width: 680px;
    text-align: center;
}

canvas {
    background: #020617;
    border: 4px solid #000000;
    border-radius: 8px;
    display: block;
    margin: 15px auto;
}

.ded {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(4px);
}

.ded button {
    background: #38bdf8;
    color: #0f172a;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    margin-top: 15px;
}

.dash {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background: #1e293b;
    border-bottom: 2px solid #38bdf8;
    margin-bottom: 5px;
    margin-top: 10%;
    font-size: 1.1rem;
}

.top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #334155;
    z-index: 100;
}

.navlinks {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.navlinks a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 12px 0;
    transition: 0.3s;
}

.navlinks a:hover {
    color: #38bdf8;
}

.about {
    max-width: 750px;
    margin: 80px auto;
}

.action {
display: table;
margin: 24px auto 0 auto;
padding: 12px 24px;
background: var(--bright);
color: #0b1120;
text-decoration: none;
border-radius: 12px;
font-weight: bold;
transition: filter 0.2s;
min-width: 120px;
font-size: xx-large;
}
.action:hover {
filter: brightness(1.8);
content: none;
}
.action:hover span {
display: none;
}
.action::after {
content: 'Dang it!!';
opacity: 0;
margin-left: -200px;
transition: all 0.25s ease;
}
.action:hover::after {
opacity: 1;
margin-left: 10px;
}
.tag {
    color: #94a3b8;
    font-style: italic;
}

.points {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #0f172a;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #334155;
}

.title {
    font-size: 3rem;
    color: #f1f5f9;
    letter-spacing: -1px;
}


.controls-image{
    display: block;
    margin: 20px auto;
    max-width: 100%;
    border: 2px solid #38bdf8;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);  
}