:root {
  --bg: #0b0c10;
  --muted: rgba(255,255,255,.72);
  --soft: rgba(255,255,255,.10);
  --soft2: rgba(255,255,255,.14);
  --radius: 22px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: #fff;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(900px 500px at 90% 30%, rgba(255,255,255,.06), transparent 60%),
    var(--bg);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

a { color: inherit; text-decoration: none; }

.app {
  width: min(980px, 100%);
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
}

header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--soft);
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand b {
  letter-spacing: .08em;
  font-size: 12px;
  opacity: .9;
}

.brand span {
  font-size: 18px;
  font-weight: 800;
}

.mini {
  font-size: 12px;
  color: var(--muted);
}

main { padding: 20px; }

.screen { display: none; }
.screen.active { display: block; }

.panel {
  background: rgba(0,0,0,.25);
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  padding: 18px;
}

.title {
  margin: 0 0 8px;
  font-size: 34px;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.4;
  max-width: 70ch;
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  border: 1px solid var(--soft2);
  background: rgba(255,255,255,.08);
  color: white;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, opacity .15s, background .15s;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
}

.btn:active {
  transform: translateY(0px);
  opacity: .92;
}

.btn.primary { background: rgba(255,255,255,.16); }

.muted { color: var(--muted); font-size: 13px; }

.how { display: none; margin-top: 12px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.progress {
  flex: 1;
  height: 10px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--soft);
}

.progress > div {
  height: 100%;
  width: 0%;
  background: rgba(255,255,255,.55);
  border-radius: 999px;
  transition: width .2s;
}

.round-info {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.img-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--soft);
  background: rgba(0,0,0,.2);
  position: relative;
  min-height: 260px;
}

.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--soft2);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
}

.choices {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feedback {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--soft);
  background: rgba(0,0,0,.22);
  color: var(--muted);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feedback b { color: #fff; }

.results {
  display: grid;
  gap: 14px;
}

.score {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.score .big {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.list {
  display: grid;
  gap: 10px;
}

.row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--soft);
  background: rgba(0,0,0,.20);
}

.pill {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--soft2);
  background: rgba(255,255,255,.06);
  font-weight: 900;
}

.navbar{
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 28px;
  padding: 12px 28px;
  background: white;
  backdrop-filter: blur(12px);
  border-radius: 999px; /* pill shape */
  z-index: 1000;
}

.navbar a{
  color: black;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.7;
  transition: 0.2s;
}

.navbar a:hover{
  opacity: 1;
}