*{box-sizing:border-box;font-family:'Comfortaa',cursive;}
body{background:#1E1E1E;color:#fff;margin:0;padding:20px;}
body {
  background: linear-gradient(120deg, #1e1e1e, #141414, #1e1e1e);
  background-size: 400% 400%;
  animation: bgMove 15s ease infinite;
}
body {
  background: #101010;
  min-height: 100vh;
}
@keyframes softAppear {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes correctPulse {
  0% { box-shadow: 0 0 0 rgba(77,255,154,0); }
  50% { box-shadow: 0 0 20px rgba(77,255,154,0.7); }
  100% { box-shadow: 0 0 0 rgba(77,255,154,0); }
}

.correct {
  animation: correctPulse 0.6s ease;
}
input.letter,
select {
  transition: 
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

input.letter:focus,
select:focus {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}
.glass {
  animation: softAppear 0.6s ease;
}
html, body {
  overscroll-behavior: none;
}
@keyframes bgMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.15);
}
button {
  transition: 0.3s ease;
}
input.letter {
  display: inline-block;
  vertical-align: middle;

  height: 36px;
  line-height: 36px;

  box-sizing: border-box;
}
.task {
  word-break: keep-all;
}
input.letter {
  padding: 0;
}
button:hover {
  box-shadow: 0 0 20px rgba(255,255,255,0.15);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 12px 30px rgba(0,0,0,0.6);
}
.btn-outline-orange:hover {
  box-shadow: 0 0 25px rgba(255,165,0,0.4);
}

.container{max-width:1329px;margin:auto;}
.topbar{display:flex;justify-content:space-between;align-items:center;}
.topbar-right{display:flex;gap:14px;align-items:center;}
.btn-errors{
  border:2px solid #fff;
  color:#fff;
  padding:4px 14px;
  font-size:14px;
}
button{
  padding:10px 28px;
  font-size:16px;
  border-radius:999px;
  cursor:pointer;
  background:transparent;
}

.btn-outline-white{border:2px solid #fff;color:#fff;}
.btn-outline-orange{border:2px solid orange;color:#fff;}
.btn-outline-red{border:2px solid #ff4d4d;color:#ff4d4d;}
.btn-outline-orange:hover { background:orange; color:#000000; }
.btn-outline-white:hover { background:#fff; color:#000000; }
.btn-outline-red:hover {background:#ff4d4d;color:#000000;}
.btn-reset:hover { background:#fff; color:#000000; }
.btn-errors:hover {background:#fff;color:#000000;}
input,select{
  padding:6px 8px;
  border-radius:999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 2px solid rgba(255,255,255,0.08);
  color:#fff;
}
    select:hover, option:hover {
      background:#3a3a3a;
    }
    option {
      background:#3a3a3a;
      border-radius:999px;
    }
.main-photo {
  display:block;
  width:100%;
  max-width:700px;
  margin:0 auto 40px;
  border-radius:24px;
}
 input, select {
      padding:6px 8px;
      border-radius:999px;
      color:#fff;
      outline:none;
      transition:0.3s;
      appearance:none;
      -webkit-appearance:none;
    }
input.letter{width:40px;text-align:center;}
select{width:100px;text-align:center;}
.task{line-height:2;font-size:18px;margin-top:30px;}
.correct {
  background: rgba(77,255,154,0.15);
  border-color: #4dff9a;
  box-shadow: 0 0 12px rgba(77,255,154,0.4);
}

.wrong {
  background: rgba(255,77,77,0.15);
  border-color: #ff4d4d;
  box-shadow: 0 0 12px rgba(255,77,77,0.4);
}
.attempt{
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.15);
  border-radius:20px;
  padding:16px 20px;
  margin:20px auto 0;
  max-width:520px;
  box-shadow:0 4px 10px rgba(0,0,0,.4);
  position:relative;
}
.attempt h3{margin:0 0 8px;}
.attempt .percent{font-size:22px;font-weight:600;}
.attempt .time{
  position:absolute;
  top:18px;
  right:240px;
  font-size:18px;
}
input.letter {
  box-sizing: border-box;
  flex-shrink: 0;
}
.btn-delete{
  position:absolute;
  top:4px;
  right:10px;
  border:0px solid #ff4d4d;
  color:#ff4d4d;
  border-radius:999px;
  padding:1px 1px;
}
.btn-errors{
  position:absolute;
  right:60px;
  top:50%;
  transform:translateY(-50%);
}
.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.8);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:999;
}
.modal:not(.hidden){display:flex;}
.hidden{display:none!important;}
.modal-box{
  padding:30px;
  border-radius:24px;
  max-width:900px;
  width:100%;
  max-height:80vh;
  overflow:auto;
}
@media (max-width: 768px) {
input.letter {
  height: 34px;
  line-height: 34px;
  font-size: 14px;
}
  body {
    padding: 12px;
  }

  h1 {
    font-size: 22px;
  }

  .main-photo {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .task {
    font-size: 16px;
    line-height: 1.8;
    padding: 16px;
  }

input.letter {
  width: 42px;
  min-width: 42px;
  max-width: 42px;

  height: 36px;
  line-height: 36px;

  font-size: 14px;
  text-align: center;

  padding: 0;
}
  input:disabled,
select:disabled {
  opacity: 1;
  background: #2a2a2a;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}
  select {
    width: 90px;
    font-size: 14px;
  }

  .topbar {
    flex-direction: column;
    gap: 10px;
  }

  .topbar-right {
    flex-wrap: wrap;
    justify-content: center;
  }

  button {
    padding: 8px 18px;
    font-size: 14px;
  }

  .attempt {
    max-width: 100%;
  }

  .attempt .time {
    position: static;
    margin-top: 6px;
    font-size: 14px;
  }

  .btn-errors {
    position: static;
    transform: none;
    margin-top: 10px;
  }
}
.task {
  background: rgba(255,255,255,0.02);
  border-radius: 20px;
  padding: 24px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
.percent {
  transition: transform 1s ease;
}
.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  z-index: -1;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  animation: fadeUp 0.6s ease;
}
body[class^="theme-"] .sphere,
body[class^="theme-"] .layer1,
body[class^="theme-"] .layer2,
body[class^="theme-"] .ambient-glow{
display:none!important;
}