/* public/shared.css */
* {
  box-sizing: border-box;
  margin: 0;
}

:root {
  --bg: #0f1420;
  --card: #1a2233;
  --accent: #4f8ef7;
  --accent-2: #f7a44f;
  --text: #e8ecf4;
  --muted: #93a0b8;
  --ok: #3ecf8e;
  --warn: #f7c948;
  --bad: #f25f5c;
}

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

main {
  width: 100%;
  max-width: 720px;
}

h1 {
  text-align: center;
  margin: .5rem 0 .25rem;
  font-size: 1.5rem;
}

.subtitle {
  color: var(--muted);
  text-align: center;
  margin-bottom: 1.25rem;
}

.card {
  background: var(--card);
  border-radius: 14px;
  margin-bottom: 1rem;
  padding: 1rem;
}

.images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.choice {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.choice img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #000;
  border-radius: 10px;
  width: 100%;
}

button, .btn {
  font: inherit;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: .8rem 1rem;
  font-weight: 600;
}

button:disabled {
  opacity: .45;
  cursor: default;
}

.btn-b {
  background: var(--accent-2);
}

.btn-ghost {
  border: 1px solid var(--muted);
  color: var(--text);
  background: none;
}

.bar-wrap {
  overflow: hidden;
  position: relative;
  background: #0b0f18;
  border-radius: 10px;
  height: 2.4rem;
  margin: .4rem 0 1rem;
}

.bar {
  display: flex;
  align-items:  center;
  width: 0%;
  height: 100%;
  padding-left: .75rem;
  transition: width .6s;
  font-weight: 700;
}

.bar.a {
  background: var(--accent);
}

.bar.b {
  background: var(--accent-2);
}

.bar-label {
  display: flex;
  color: var(--muted);
  justify-content: space-between;
  font-size: .95rem;
}

.report dt {
  color: var(--muted);
  margin-top: .6rem;
  font-size: .85rem;
}

.report dd {
  word-break: break-word;
  margin: .1rem 0 0;
}

.state {
  display: inline-block;
  border-radius: 999px;
  padding: .3rem .8rem;
  font-weight: 700;
}

.state.trusted {
  color: var(--ok);
  background: #3ecf8e26;
}

.state.valid {
  color: var(--warn);
  background: #f7c94826;
}

.state.invalid, .state.none {
  color: var(--bad);
  background: #f25f5c26;
}

.drop {
  border: 2px dashed var(--muted);
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  border-radius: 14px;
  padding: 2rem 1rem;
}

.drop.armed {
  border-color: var(--accent);
  color: var(--text);
}

.hint {
  color: var(--muted);
  font-size: .9rem;
}

.msg {
  text-align: center;
  min-height: 1.4rem;
  margin-top: .75rem;
}

.error {
  color: var(--bad);
}

.success {
  color: var(--ok);
}

nav.footer {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

nav.footer a {
  color: var(--muted);
  font-size: .85rem;
}

@media (width >= 640px) {
  h1 {
    font-size: 1.9rem;
  }
}
