/* style.css */

:root {
  --bg: #f6f7f9;
  --text: #111;
  --muted: #444;
  --muted2: #777;
  --border: #e6e8ec;
  --shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
  --shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.18);
  --btn: #111;
  --btnText: #fff;
  --overlay: rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--text);
}

.card {
  width: min(520px, 92vw);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

h1 {
  margin: 0 0 10px;
  font-size: 34px;
  letter-spacing: 0.5px;
}

p {
  margin: 0 0 22px;
  line-height: 1.45;
  color: var(--muted);
}

button {
  appearance: none;
  border: 0;
  border-radius: 0;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: var(--btn);
  color: var(--btnText);
  min-width: 180px;
}

button:active { transform: translateY(1px); }

button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

button[disabled] {
  cursor: not-allowed;
  opacity: 0.65;
}

.hint {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted2);
}

/* Modal / overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.overlay.show { display: flex; }

.modal {
  width: min(520px, 96vw);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 22px;
  box-shadow: var(--shadow-strong);
  text-align: center;
}

.modal h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.btnrow {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.filebtn {
  width: 100%;
  min-width: unset;
}
