
:root {
  --bg: #f5f7fb;
  --card-bg: #ffffff;
  --accent: #45b8ac;
  --accent-dark: #35857d;
  --text-main: #334155;
  --text-muted: #64748b;
  --border-soft: #e2e8f0;
  --radius-lg: 14px;
  --radius-md: 8px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #e0f7fa 0, #f5f7fb 55%, #edf2ff 100%);
  color: var(--text-main);
}

.wrapper {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 1.25rem;
}

.card {
  width: 100%;
  max-width: 860px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Header band with image */
.card-header {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #e0f2fe;
}

.card-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.1);
}

/* Taller hero header on index; show whole image */
.index-page .card-header {
  height: 380px;
}

.index-page .card-header img {
  object-fit: cover;
  object-position: 50% 20%;
}

.card-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.1));
}

.card-header-title {
  position: absolute;
  left: 1.75rem;
  bottom: 1.3rem;
  color: #f9fafb;
}

.card-header-title h1 {
  margin: 0;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.card-header-title p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: rgba(241, 245, 249, 0.9);
}

/* Main content */
.card-body {
  padding: 1.75rem 1.75rem 2rem;
}

.lead {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.walking-directions {
  background: linear-gradient(135deg, rgba(69, 184, 172, 0.09), rgba(56, 189, 248, 0.06));
  border-left: 4px solid var(--accent);
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.4rem;
  font-size: 0.96rem;
}

.walking-directions strong {
  color: var(--accent-dark);
}

.question-text {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

input[type="text"] {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #f8fafc;
  font-size: 0.96rem;
  color: var(--text-main);
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(69, 184, 172, 0.35);
}

/* Buttons row */
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.8rem 0 0.2rem;
}

button,
a.button {
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  white-space: nowrap;
}

.button-primary {
  background: var(--accent);
  color: white;
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-ghost {
  background: rgba(148, 163, 184, 0.16);
  color: var(--text-main);
}

.button-ghost:hover {
  background: rgba(148, 163, 184, 0.28);
}

/* Hint / answer / photo blocks */
.reveal-block {
  margin-top: 0.6rem;
  padding: 0.8rem 0.9rem;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(148, 163, 184, 0.8);
  font-size: 0.95rem;
}

.reveal-block img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-top: 0.4rem;
}

.hidden {
  display: none;
}

/* Footer nav */
.footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-nav .question-meta {
  flex: 1;
  text-align: center;
}

.footer-nav a.button-primary,
.footer-nav button.button-primary {
  margin-left: 0;
}

/* Summary page */
.summary-item {
  padding: 1.1rem 1.1rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: #f8fafc;
  margin-bottom: 1rem;
}

.summary-item h2 {
  margin-top: 0;
  font-size: 1rem;
}

.summary-meta {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0.3rem 0 0.5rem;
}

@media (max-width: 640px) {
  .card-body {
    padding: 1.4rem 1.2rem 1.6rem;
  }

  .card-header-title {
    left: 1.1rem;
    bottom: 1.05rem;
  }

  .footer-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .footer-nav .question-meta {
    text-align: left;
  }

  .footer-nav a.button-primary,
  .footer-nav button.button-primary {
    width: 100%;
  }
}
