:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0c182a;
  color: #f4f7fc;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 50% 8%, #172c49 0, #0c182a 56%); }
button, input { font: inherit; }
.page { width: min(100%, 510px); min-height: 100vh; margin: 0 auto; padding: clamp(24px, 5vh, 48px) 20px 28px; display: flex; flex-direction: column; justify-content: center; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 0 25px; }
.brand-mark { width: 33px; height: 33px; border-radius: 9px; display: grid; place-items: center; background: #2885ed; font-weight: 850; font-size: 18px; line-height: 1; }
.brand-name { font-size: 17px; font-weight: 760; letter-spacing: .025em; }
.brand-name small { display: block; color: #8fb0d7; font-size: 10px; font-weight: 650; letter-spacing: .17em; margin-top: 2px; }
.tool { padding: clamp(21px, 5vw, 30px); border: 1px solid #2b4261; border-radius: 20px; background: #14263e; box-shadow: 0 24px 60px #04102050; }
.eyebrow { margin: 0 0 9px; color: #69afff; letter-spacing: .15em; font-size: 10px; font-weight: 750; }
h1 { margin: 0; font-size: clamp(24px, 6vw, 30px); line-height: 1.15; letter-spacing: -.035em; font-weight: 700; }
.intro { margin: 11px 0 26px; color: #b6c7dd; font-size: 14px; line-height: 1.5; }
label { display: block; margin-bottom: 9px; color: #e6eef9; font-size: 13px; font-weight: 650; }
input { display: block; width: 100%; min-height: 52px; padding: 12px 15px; border: 1px solid #3a587a; border-radius: 11px; outline: none; background: #0d1c30; color: #fff; font-size: 16px; }
input::placeholder { color: #7e9abb; }
input:focus { border-color: #55a7ff; box-shadow: 0 0 0 3px #3295fa30; }
.error { margin: 8px 0 0; color: #ffaaa4; font-size: 13px; line-height: 1.35; }
.result { margin: 24px 0 18px; padding: 20px 20px 18px; border: 1px solid #2a4260; border-radius: 15px; background: #0e2035; }
.result-label { color: #8fb0d7; font-size: 10px; font-weight: 740; letter-spacing: .14em; }
.code { display: block; margin: 11px 0 14px; font-size: clamp(40px, 11vw, 54px); line-height: 1.1; letter-spacing: .13em; font-weight: 720; font-variant-numeric: tabular-nums; }
.countdown { display: flex; justify-content: space-between; gap: 12px; color: #a2bad5; font-size: 12px; margin-bottom: 9px; }
progress { display: block; width: 100%; height: 6px; border: 0; border-radius: 100px; appearance: none; background: #2b4460; overflow: hidden; }
progress::-webkit-progress-bar { background: #2b4460; border-radius: 100px; }
progress::-webkit-progress-value { background: #3898fa; border-radius: 100px; }
progress::-moz-progress-bar { background: #3898fa; border-radius: 100px; }
.actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
button { min-height: 48px; border: 0; border-radius: 10px; padding: 0 20px; background: #2c87ee; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
button:hover:not(:disabled) { background: #49a0ff; }
button:focus-visible { outline: 3px solid #a8d5ff; outline-offset: 2px; }
button:disabled { background: #2d4968; color: #8ba5c2; cursor: not-allowed; }
button.clear { border: 1px solid #405b78; background: transparent; color: #d2e1f4; }
button.clear:hover { background: #203b5b; }
.feedback { min-height: 18px; margin: 8px 0 0; color: #89deb5; font-size: 12px; }
.refresh-note { margin: 5px 0 0; color: #9db4d0; font-size: 12px; text-align: center; }
.privacy { margin: 20px 0 0; padding-top: 17px; border-top: 1px solid #29425f; color: #9db4d0; font-size: 12px; line-height: 1.45; text-align: center; }
.links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 23px; text-align: center; }
.links a { color: #9db4d0; font-size: 11px; text-decoration: none; }
.links a:hover { color: #e7f2ff; text-decoration: underline; }
.links span { color: #7593b6; }
@media (max-width: 430px) {
  .page { min-height: 100dvh; padding: 22px 16px 25px; justify-content: flex-start; }
  .brand { margin-bottom: 22px; }
  .tool { padding: 21px 18px; }
  .result { padding: 18px 16px; }
  .code { letter-spacing: .095em; }
}
