/* Google Fonts for modern digital look */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap');

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: radial-gradient(ellipse at 50% 30%, #282a36 0%, #191b22 80%, #101015 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
  user-select: none;
  overflow: hidden;
}

div {
  background: rgba(40, 42, 54, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.3), 0 1.5px 0 0 #4dffff;
  border: 2.5px solid rgba(77, 255, 255, 0.3);
  padding: 48px 36px 36px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.number {
  font-size: 5rem;
  color: #00ffd0;
  text-shadow:
    0 0 16px #03e9f4,
    0 0 48px #00ffd0,
    0 1px 0 #fff;
  letter-spacing: 2px;
  margin: 0 0 16px 0;
  font-family: 'Orbitron', 'Consolas', monospace;
  transition: color 0.3s, text-shadow 0.4s;
}

.number.wrong {
  font-size: 2rem !important;
  line-height: 1.3;
  color: #ff427f !important;
  word-break: break-all;
}

input.input {
  width: 340px;
  max-width: 80vw;
  padding: 14px 20px;
  border-radius: 16px;
  border: none;
  outline: none;
  font-size: 1.45rem;
  font-family: 'Orbitron', 'Consolas', monospace;
  background: rgba(35, 38, 48, 0.85);
  color: #d4fffb;
  box-shadow: 0 0 12px #00fff7b0;
  margin-bottom: 16px;
  text-align: center;
  transition: box-shadow 0.3s, background 0.25s;
}
input.input:focus {
  background: rgba(0, 29, 41, 0.95);
  box-shadow: 0 0 24px #00ffd0, 0 0 8px #00ffd0 inset;
  color: #fff;
}

::placeholder {
  color: #7befffbb;
  opacity: 1;
  letter-spacing: 1px;
}

.restart {
  margin-top: 16px;
  padding: 0.85em 2.4em;
  font-size: 1.15rem;
  font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
  border: none;
  border-radius: 14px;
  background: rgba(30, 220, 240, 0.08);
  color: #19ffe0;
  cursor: pointer;
  box-shadow:
    0 0 8px #12ffe3c8,
    0 0 24px #19ffe07a inset;
  letter-spacing: 1.5px;
  text-shadow:
    0 0 8px #12ffe3d0,
    0 1px 0 #fff;
  position: relative;
  overflow: hidden;
  transition:
    background 0.25s,
    color 0.2s,
    box-shadow 0.3s,
    transform 0.12s;
}

.restart::after {
  content: '';
  position: absolute;
  left: -60%;
  top: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, rgba(0,255,255,0.07) 0%, rgba(0,255,255,0.21) 70%, rgba(255,255,255,0.08) 100%);
  transform: skewX(-24deg);
  transition: left 0.5s;
  z-index: 1;
  pointer-events: none;
}

.restart:hover {
  background: rgba(25, 255, 224, 0.2);
  color: #fff;
  box-shadow:
    0 0 16px #12ffe3,
    0 0 36px #00fff7c0 inset;
  transform: scale(1.04);
}

.restart:hover::after {
  left: 110%;
  transition: left 0.45s cubic-bezier(.41,.77,.74,1.01);
}


.restart:active {
  background: rgba(25, 255, 224, 0.32);
  color: #fff;
  box-shadow:
    0 0 30px #12ffe3,
    0 0 48px #00fff7c0 inset;
  transform: scale(0.98);
}

div::after {
  content: "POWER OF 2";
  display: block;
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: #15fff0;
  text-shadow: 0 0 6px #1be9ff, 0 1px 0 #fff;
  margin-top: 20px;
  opacity: 0.95;
  pointer-events: none;
  font-family: 'Orbitron', monospace;
  text-align: center;
}

@media (max-width: 600px) {
  div {
    padding: 26px 10vw 30px 10vw;
  }
  .number {
    font-size: 2.8rem;
  }
  input.input {
    width: 90vw;
    font-size: 1.05rem;
  }
  .restart {
    font-size: 0.97rem;
    padding: 0.7em 1.3em;
  }
}
