* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(120, 162, 215, 0.25), transparent 35%),
    linear-gradient(180deg, #2f477a 0%, #1d2e55 100%);
  color: #e8eef7;
}

body.theme-dark {
  background: radial-gradient(circle at top, rgba(50, 60, 75, 0.25), transparent 35%),
    linear-gradient(180deg, #111418 0%, #0a0e14 100%);
  color: #e2e8f0;
}

body.theme-xp {
  background: linear-gradient(180deg, #5b91d9 0%, #0f4a95 100%);
  color: #0c0c0c;
}

body.theme-xp main {
  background: linear-gradient(180deg, #dfe5ff 0%, #d4ddfb 100%);
  border-color: #9cb5e2;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

body.theme-xp h1,
body.theme-xp label,
body.theme-xp #status {
  color: #1f2a3d;
}

body.theme-xp input,
body.theme-xp select {
  background: #ffffff;
  border-color: #9cb5e2;
  color: #0c0c0c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.theme-xp input:focus,
body.theme-xp select:focus {
  border-color: #6592df;
  background: #eef3ff;
}

body.theme-xp button {
  background: linear-gradient(180deg, #f7fbff 0%, #9eb9f5 100%);
  color: #1b2f55;
  border-color: #9cb5e2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 3px 0 rgba(0, 0, 0, 0.08);
}

body.theme-xp button:hover {
  background: linear-gradient(180deg, #f4f8ff 0%, #8aa3e8 100%);
}

body.theme-xp button:active {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 0 rgba(0, 0, 0, 0.12);
}

body.theme-xp #result a {
  color: #2251a3;
}

body.theme-98 {
  background: linear-gradient(180deg, #7f9bc8 0%, #5e6f92 100%);
  color: #0b0b0b;
}

body.theme-98 main {
  background: #c8c8c8;
  border-color: #404040;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}

body.theme-98 h1,
body.theme-98 label,
body.theme-98 #status {
  color: #101010;
}

body.theme-98 input,
body.theme-98 select {
  background: #ffffff;
  border-color: #808080;
  color: #101010;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.theme-98 input:focus,
body.theme-98 select:focus {
  border-color: #0b2f90;
  background: #e8e8e8;
}

body.theme-98 button {
  background: linear-gradient(180deg, #e8e8e8 0%, #c0c0c0 100%);
  color: #101010;
  border-color: #808080;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 3px 0 rgba(0, 0, 0, 0.08);
}

body.theme-98 button:hover {
  background: linear-gradient(180deg, #f3f3f3 0%, #b8b8b8 100%);
}

body.theme-98 button:active {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 0 rgba(0, 0, 0, 0.12);
}

body.theme-98 #result a {
  color: #0b2f90;
}

body.theme-geocities {
  background: linear-gradient(180deg, #000033 0%, #330066 100%);
  color: #ffe680;
}

body.theme-geocities main {
  background: linear-gradient(180deg, #000000 0%, #1a0033 65%, #330066 100%);
  border-color: #ffb347;
  box-shadow: 0 18px 40px rgba(255, 255, 255, 0.1);
}

body.theme-geocities h1,
body.theme-geocities label,
body.theme-geocities #status {
  color: #ffe680;
}

body.theme-geocities input,
body.theme-geocities select {
  background: rgba(255, 255, 255, 0.95);
  border-color: #ffb347;
  color: #000000;
  box-shadow: none;
}

body.theme-geocities input:focus,
body.theme-geocities select:focus {
  border-color: #ffffff;
  background: #fff8c4;
}

body.theme-geocities button {
  background: linear-gradient(180deg, #ffb347 0%, #ffdf7c 100%);
  color: #000000;
  border-color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 3px 0 rgba(0, 0, 0, 0.12);
}

body.theme-geocities button:hover {
  background: linear-gradient(180deg, #ffd268 0%, #ffe994 100%);
}

body.theme-geocities button:active {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 2px 0 rgba(0, 0, 0, 0.16);
}

body.theme-geocities #result a {
  color: #00ffff;
  text-shadow: 0 0 6px rgba(0, 255, 255, 0.6);
}

body.theme-mac {
  background: linear-gradient(180deg, #d0d7e0 0%, #9ca5ae 100%);
  color: #222222;
}

body.theme-mac main {
  background: rgba(255, 255, 255, 0.95);
  border-color: #c8c8c8;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

body.theme-mac h1,
body.theme-mac label,
body.theme-mac #status {
  color: #1c1c1c;
}

body.theme-mac input,
body.theme-mac select {
  background: #f7f7f7;
  border-color: #c4c4c4;
  color: #1c1c1c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.theme-mac input:focus,
body.theme-mac select:focus {
  border-color: #6d8cc7;
  background: #ffffff;
}

body.theme-mac button {
  background: linear-gradient(180deg, #f2f2f5 0%, #dbe0e9 100%);
  color: #121212;
  border-color: #c4c4c4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 3px 0 rgba(0, 0, 0, 0.08);
}

body.theme-mac button:hover {
  background: linear-gradient(180deg, #ffffff 0%, #d3d7de 100%);
}

body.theme-mac button:active {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 0 rgba(0, 0, 0, 0.12);
}

body.theme-mac #result a {
  color: #2563eb;
}

main {
  max-width: 520px;
  margin: 64px auto;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

body.theme-dark main {
  background: #111720;
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}

h1 {
  margin-top: 0;
  color: #f3f8ff;
}

label,
input,
button,
select {
  display: block;
  width: 100%;
}

label {
  color: #d8e5ff;
  font-weight: 600;
  margin-bottom: 8px;
}

input,
select {
  margin: 10px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #e8eef7;
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.theme-dark input,
body.theme-dark select {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(173, 216, 255, 0.8);
  background: rgba(255, 255, 255, 0.14);
}

input::placeholder,
select::placeholder {
  color: #b7c7e3;
}

button {
  margin-top: 6px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: linear-gradient(180deg, #bdd7ff 0%, #5b8ceb 100%);
  color: #102a50;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 3px 0 rgba(0, 0, 0, 0.08);
}

body.theme-dark button {
  background: linear-gradient(180deg, #2f3b54 0%, #1b2638 100%);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 3px 0 rgba(0, 0, 0, 0.15);
}

button:hover {
  background: linear-gradient(180deg, #d8e7ff 0%, #6f95f2 100%);
}

body.theme-dark button:hover {
  background: linear-gradient(180deg, #33415d 0%, #1b2738 100%);
}

button:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 0 rgba(0, 0, 0, 0.12);
}

#status {
  margin-top: 18px;
  font-weight: 600;
  color: #d8e5ff;
}

#result {
  margin-top: 12px;
}

#result a {
  color: #b9d3ff;
  text-decoration: none;
  font-weight: 700;
}

.theme-switcher {
  margin-top: 16px;
}

.theme-switcher label {
  margin-bottom: 6px;
}

.theme-switcher select {
  margin-top: 0;
}

body.theme-dark #status {
  color: #cbd5e1;
}

body.theme-dark #result a {
  color: #8bb7ff;
}

.disclaimer {
  color: #ff6b6b;
  font-weight: bold;
  font-size: 0.9em;
  margin: 8px 0;
  padding: 8px;
  border: 1px solid #ff6b6b;
  border-radius: 6px;
  background: rgba(255, 0, 0, 0.1);
}

.disclaimer p {
  margin: 0 0 8px 0;
}

.disclaimer ul {
  margin: 8px 0;
  padding-left: 20px;
}

.disclaimer li {
  margin-bottom: 4px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  color: #d8e5ff;
  font-weight: 600;
}

.checkbox-label input {
  width: auto;
  margin: 0;
}
