:root {
  --bg: #F7FCFD;
  --accent: #FFDD00;
  --accent-disabled: #FFF18D;
  --text: #0a0a0a;
  --text-muted: #555;
  --error: #d33;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

.lang-switch {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.lang-switch button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.25rem 0.4rem;
  border-radius: 6px;
  font-weight: 600;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active { color: var(--text); text-decoration: underline; }

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent);
  color: #000;
  font-size: 40px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }

.tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
  white-space: pre-line;
}

.subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

form { display: flex; flex-direction: column; gap: 0.75rem; }

input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s;
}
input:focus { border-color: var(--accent); }

button#submit-btn {
  width: 100%;
  padding: 0.9rem;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
button#submit-btn:hover:not(:disabled) { background: #f0c800; }
button#submit-btn:disabled { background: var(--accent-disabled); cursor: not-allowed; }

.error {
  color: var(--error);
  font-size: 0.875rem;
  min-height: 1.2em;
}

#result {
  margin-top: 1rem;
  padding: 1rem;
  background: #f0fdf4;
  border-radius: 10px;
}
.position { font-size: 1.1rem; font-weight: 700; color: #166534; }
.tier-badge {
  margin-top: 0.5rem;
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--accent);
  color: #000;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.count { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }

footer {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (max-width: 480px) {
  body { padding: 0; justify-content: stretch; }
  .lang-switch { top: 0.75rem; right: 0.75rem; }
  .card {
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .logo { width: 72px; height: 72px; font-size: 44px; margin-bottom: 1.25rem; }
  h1 { font-size: 1.75rem; }
  .tagline { font-size: 1.25rem; }
  .subtitle { font-size: 1rem; margin-bottom: 1.75rem; }
  form { gap: 1rem; }
  input { padding: 1.1rem 1.25rem; font-size: 1.1rem; }
  button#submit-btn { padding: 1.1rem; font-size: 1.1rem; }
  .disclaimer { font-size: 0.9rem; margin-top: 2rem; }
  footer { margin-top: 2rem; }
}