/* ===========================================================
   KIRNER BIERCLUB — Prototype Stylesheet
   =========================================================== */

:root {
  --forest: #1f4d3a;
  --forest-dark: #123324;
  --forest-tint: #e8f0ea;
  --gold: #d9a441;
  --gold-light: #f0c874;
  --cream: #faf5ea;
  --paper: #fffdf8;
  --ink: #1c2b22;
  --ink-soft: #4d5c53;
  --line: #e4dcc9;
  --red: #b5443b;
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 12px 30px -14px rgba(18, 51, 36, 0.35);
  --shadow-card: 0 2px 10px rgba(28, 43, 34, 0.06);
  --font-display: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0 0 0.4em; line-height: 1.15; }
p { margin: 0 0 0.8em; }
button { font-family: inherit; cursor: pointer; }

.bg-pattern {
  position: fixed;
  inset: 0;
  background-image: url('assets/pattern.svg');
  background-size: 120px 120px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--forest);
  color: var(--gold-light);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--forest-dark); }
.btn-ghost {
  background: transparent;
  border-color: var(--forest);
  color: var(--forest);
}
.btn-ghost:hover { background: var(--forest-tint); }
.btn-block { width: 100%; justify-content: center; margin-top: 16px; }
.btn-small { padding: 8px 16px; font-size: 0.82rem; }
.btn-gold {
  background: var(--gold);
  color: var(--forest-dark);
}
.btn-gold:hover { background: var(--gold-light); }
.btn-outline-light {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- Top Nav ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(250, 245, 234, 0.85);
  border-bottom: 1px solid var(--line);
}
.topnav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.03em; }
.brand-mark { width: 30px; height: 30px; }
.brand em { color: var(--forest); font-style: normal; font-weight: 800; }
.topnav-links { display: flex; gap: 22px; margin-left: 8px; flex: 1; }
.topnav-links a { font-size: 0.9rem; color: var(--ink-soft); font-weight: 500; }
.topnav-links a:hover { color: var(--forest); }
.topnav-cta { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 90px 28px 60px; text-align: center; z-index: 1; }
.hero-inner { max-width: 780px; margin: 0 auto; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--forest);
  font-weight: 700;
}
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-top: 14px; color: var(--ink); }
.hero h1 span { color: var(--forest); }
.hero-sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 560px; margin: 18px auto 30px; }
.hero-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 46px; }
.hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 26px;
  box-shadow: var(--shadow-card);
  text-align: left;
}
.hero-stat-num { font-family: var(--font-display); font-size: 2.2rem; color: var(--gold); font-weight: 700; }
.hero-stat-label { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Sections ---------- */
.section { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 70px 28px; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: none; }
.section-alt > * { max-width: 1124px; margin-left: auto; margin-right: auto; }
.kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 700; color: var(--gold); margin-bottom: 10px; }
.kicker-light { color: var(--gold-light); }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 780px; }
.section-lead { color: var(--ink-soft); max-width: 640px; font-size: 1.02rem; margin-bottom: 40px; }
.section-note { color: var(--ink-soft); font-size: 0.9rem; margin-top: 24px; font-style: italic; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.card h3 { font-size: 1.1rem; color: var(--forest-dark); }
.card p { color: var(--ink-soft); font-size: 0.94rem; }
.card-num { display: inline-block; font-family: var(--font-display); font-size: 1.4rem; color: var(--gold); margin-bottom: 8px; }
.card-highlight { background: var(--forest); color: #fff; }
.card-highlight h3, .card-highlight .learn { color: var(--gold-light); }
.card-highlight p { color: rgba(255,255,255,0.85); }
.learn { font-size: 0.85rem; font-weight: 600; color: var(--forest); margin-top: 10px; }

.check-list li { position: relative; padding-left: 22px; font-size: 0.94rem; color: var(--ink-soft); margin-bottom: 8px; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

.pillars .pillar { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 30px 24px; text-align: center; box-shadow: var(--shadow-card); }
.pillar-icon { font-size: 2rem; margin-bottom: 10px; }
.pillar h3 { color: var(--forest-dark); }
.pillar p { color: var(--ink-soft); font-size: 0.92rem; }

.roadmap-grid .roadmap-col { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-card); }
.roadmap-tag { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; margin-bottom: 16px; }
.tag-start { background: var(--forest-tint); color: var(--forest); }
.tag-engage { background: #fbe9cf; color: #935a12; }
.tag-scale { background: #f3e1e0; color: var(--red); }
.roadmap-col ul li { font-size: 0.9rem; padding: 7px 0; border-bottom: 1px dashed var(--line); color: var(--ink-soft); }
.roadmap-col ul li:last-child { border-bottom: none; }

.kpi-grid { grid-template-columns: repeat(3, 1fr); }
.kpi-card { background: var(--forest-tint); border-radius: var(--radius-md); padding: 22px; }
.kpi-card h3 { color: var(--forest-dark); font-size: 1rem; }
.kpi-card p { color: var(--ink-soft); font-size: 0.88rem; margin: 0; }

.closing {
  position: relative; z-index: 1;
  background: var(--forest-dark);
  color: #fff;
  text-align: center;
  padding: 90px 28px;
}
.closing h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); max-width: 760px; margin: 0 auto 26px; }
.closing-pillars { display: flex; gap: 12px; justify-content: center; color: var(--gold-light); font-weight: 700; margin-bottom: 26px; letter-spacing: 0.02em; }
.closing-next { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 30px; }

.site-footer {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 20px 28px; font-size: 0.8rem; color: var(--ink-soft);
  border-top: 1px solid var(--line); background: var(--paper);
}

/* ===========================================================
   PROTOTYPE (Phone mockup)
   =========================================================== */
.proto-section { text-align: left; }
.proto-stage {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: start;
  justify-content: center;
}
.proto-side {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 90px;
}
.proto-side h3 { font-size: 1.05rem; color: var(--forest-dark); }
.proto-feature-list li { font-size: 0.87rem; color: var(--ink-soft); padding: 8px 0; border-bottom: 1px dashed var(--line); }
.proto-feature-list li strong { color: var(--forest); }
.proto-feature-list li:last-child { border-bottom: none; }
.proto-hint { font-size: 0.78rem; color: var(--ink-soft); margin-top: 12px; text-align: center; }

.phone-shell {
  width: 340px;
  height: 700px;
  margin: 0 auto;
  background: var(--forest-dark);
  border-radius: 46px;
  padding: 14px;
  box-shadow: 0 30px 60px -20px rgba(18,51,36,0.5), 0 0 0 2px rgba(255,255,255,0.04) inset;
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 22px;
  background: var(--forest-dark);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 5;
}
.phone-statusbar {
  position: absolute;
  top: 14px; left: 14px; right: 14px;
  height: 32px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px;
  font-size: 0.72rem; font-weight: 700;
  color: #fff;
  z-index: 4;
}
.statusbar-icons { letter-spacing: 1px; font-size: 0.62rem; }
.phone-screen {
  position: relative;
  width: 100%;
  height: calc(100% - 78px);
  margin-top: 32px;
  background: var(--cream);
  border-radius: 30px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.phone-screen::-webkit-scrollbar { display: none; }
.phone-tabbar {
  position: absolute;
  bottom: 14px; left: 14px; right: 14px;
  height: 64px;
  background: var(--paper);
  border-radius: 22px;
  display: flex;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.tab-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; background: none; border: none; color: var(--ink-soft); font-size: 0.62rem; font-weight: 600;
  border-radius: 22px; transition: color 0.15s ease;
}
.tab-btn .tab-ico { font-size: 1.15rem; }
.tab-btn.active { color: var(--forest); }
.tab-btn.active .tab-ico { transform: translateY(-2px); }

/* ---- Generic screen layout helpers ---- */
.scr { padding: 20px 18px 100px; min-height: 100%; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.scr-header { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.scr-back { background: var(--paper); border: 1px solid var(--line); width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--forest); }
.scr-title { font-family: var(--font-display); font-size: 1.15rem; margin: 0; color: var(--ink); }
.scr-eyebrow { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 700; margin-bottom: 2px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  font-size: 0.9rem; background: var(--paper); font-family: inherit; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); }
.field-check { display: flex; align-items: flex-start; gap: 8px; font-size: 0.82rem; color: var(--ink-soft); }
.field-check input { width: auto; margin-top: 3px; }
.field-error { color: var(--red); font-size: 0.75rem; margin-top: 4px; display: none; }
.field.has-error input { border-color: var(--red); }
.field.has-error .field-error { display: block; }

/* ---- Login / Splash ---- */
.splash { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; padding: 30px; }
.splash-logo { width: 70px; height: 70px; margin-bottom: 16px; }
.splash h1 { font-size: 1.4rem; margin-bottom: 4px; }
.splash p { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 26px; }
.splash-form { width: 100%; max-width: 260px; text-align: left; }
.splash-links { margin-top: 18px; font-size: 0.82rem; }
.splash-links a { color: var(--forest); font-weight: 700; }

/* ---- Home ---- */
.home-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.home-greeting { font-family: var(--font-display); font-size: 1.3rem; }
.member-badge { display: flex; align-items: center; gap: 6px; background: var(--forest); color: var(--gold-light); padding: 6px 12px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; }
.stories-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 18px; }
.story-item { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; width: 62px; }
.story-ring { width: 54px; height: 54px; border-radius: 50%; background: conic-gradient(var(--gold), var(--forest), var(--gold)); display: flex; align-items: center; justify-content: center; padding: 3px; }
.story-ring.seen { background: var(--line); }
.story-ring-inner { width: 100%; height: 100%; border-radius: 50%; background: var(--forest-tint); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.story-item span { font-size: 0.6rem; color: var(--ink-soft); text-align: center; }

.section-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); font-weight: 700; margin: 18px 0 10px; }
.event-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-card); }
.event-card-tag { display: inline-block; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--forest); background: var(--forest-tint); padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; }
.event-card h4 { margin: 0 0 4px; font-size: 0.98rem; font-family: var(--font-display); }
.event-card .meta { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 10px; }
.event-card-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.chip { font-size: 0.7rem; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--forest); color: var(--forest); font-weight: 700; background: transparent; }
.chip.active { background: var(--forest); color: var(--gold-light); }

.notif-banner { display: flex; gap: 10px; align-items: flex-start; background: #fdf1de; border: 1px solid #f0d9ab; border-radius: var(--radius-sm); padding: 12px; margin-bottom: 16px; }
.notif-banner .ico { font-size: 1.2rem; }
.notif-banner p { margin: 0; font-size: 0.82rem; color: #7a4e10; }
.notif-banner strong { display: block; font-size: 0.85rem; margin-bottom: 2px; }

/* ---- Event Detail ---- */
.event-hero { height: 130px; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--forest), var(--forest-dark)); display: flex; align-items: flex-end; padding: 14px; color: #fff; margin-bottom: 16px; position: relative; overflow: hidden; }
.event-hero::after { content: '🍺'; position: absolute; font-size: 5rem; opacity: 0.18; right: -8px; top: -10px; }
.event-hero span { position: relative; font-weight: 700; font-size: 0.8rem; background: rgba(0,0,0,0.25); padding: 4px 10px; border-radius: 999px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.detail-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.detail-box span { display: block; font-size: 0.65rem; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.detail-box strong { font-size: 0.88rem; }
.attend-count { display: flex; align-items: center; gap: 8px; margin: 16px 0; font-size: 0.85rem; color: var(--ink-soft); }
.avatar-stack { display: flex; }
.avatar-stack span { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); border: 2px solid var(--paper); margin-left: -8px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: var(--forest-dark); }
.avatar-stack span:first-child { margin-left: 0; }
.action-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

/* ---- Bierlabor / Voting ---- */
.lab-intro { background: var(--forest); color: #fff; border-radius: var(--radius-md); padding: 18px; margin-bottom: 18px; }
.lab-intro .scr-eyebrow { color: var(--gold-light); }
.lab-intro h3 { color: #fff; margin-bottom: 4px; font-size: 1.05rem; }
.lab-intro p { color: rgba(255,255,255,0.8); font-size: 0.82rem; margin: 0; }
.lab-steps { display: flex; gap: 6px; margin: 14px 0 20px; }
.lab-step { flex: 1; text-align: center; font-size: 0.62rem; font-weight: 700; color: var(--ink-soft); padding-top: 8px; border-top: 3px solid var(--line); }
.lab-step.active { color: var(--forest); border-top-color: var(--forest); }
.lab-step.done { border-top-color: var(--gold); color: var(--gold); }
.vote-group { margin-bottom: 22px; }
.vote-group h4 { font-size: 0.9rem; margin-bottom: 10px; }
.vote-option { margin-bottom: 10px; cursor: pointer; }
.vote-option-row { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 5px; }
.vote-option-row strong { font-weight: 600; }
.vote-bar-track { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.vote-bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--forest)); border-radius: 999px; transition: width 0.6s cubic-bezier(.2,.8,.2,1); width: 0%; }
.vote-option.voted .vote-option-row strong { color: var(--forest); }
.vote-option.voted { position: relative; }
.upload-box { border: 2px dashed var(--line); border-radius: var(--radius-md); padding: 24px; text-align: center; cursor: pointer; background: var(--paper); }
.upload-box:hover { border-color: var(--forest); }
.upload-box input { display: none; }
.upload-preview { width: 100%; max-height: 160px; object-fit: cover; border-radius: var(--radius-sm); margin-top: 10px; }

/* ---- Gastro feed ---- */
.filter-row { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; }
.map-box { height: 140px; border-radius: var(--radius-md); background: repeating-linear-gradient(45deg, var(--forest-tint), var(--forest-tint) 10px, #dfe9e2 10px, #dfe9e2 20px); position: relative; margin-bottom: 16px; overflow: hidden; }
.map-pin { position: absolute; width: 22px; height: 22px; background: var(--red); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
.map-pin.you { background: var(--forest); }
.gastro-card { display: flex; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px; margin-bottom: 10px; align-items: center; }
.gastro-thumb { width: 50px; height: 50px; border-radius: var(--radius-sm); background: var(--forest-tint); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.gastro-info { flex: 1; min-width: 0; }
.gastro-info h4 { margin: 0 0 2px; font-size: 0.88rem; }
.gastro-info .meta { font-size: 0.74rem; color: var(--ink-soft); margin: 0; }
.gastro-dist { font-size: 0.68rem; font-weight: 700; color: var(--forest); white-space: nowrap; }

/* ---- Community / Challenges ---- */
.points-banner { background: linear-gradient(135deg, var(--gold), var(--gold-light)); border-radius: var(--radius-md); padding: 18px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; color: var(--forest-dark); }
.points-banner .num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; }
.challenge-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px; margin-bottom: 10px; }
.challenge-top { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 8px; }
.challenge-top strong { font-weight: 700; }
.progress-track { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--forest); border-radius: 999px; transition: width 0.5s ease; }
.badge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 8px; }
.badge { aspect-ratio: 1; border-radius: 16px; background: var(--forest-tint); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; opacity: 0.35; filter: grayscale(1); }
.badge.earned { opacity: 1; filter: none; background: var(--gold-light); }
.stammtisch-card { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px; margin-bottom: 10px; }
.stammtisch-card .ico { font-size: 1.4rem; }

/* ---- Profil / Membership card ---- */
.card-flip-wrap { perspective: 1000px; margin-bottom: 20px; }
.membership-card { position: relative; width: 100%; aspect-ratio: 1.586; transform-style: preserve-3d; transition: transform 0.6s cubic-bezier(.2,.8,.2,1); cursor: pointer; }
.membership-card.flipped { transform: rotateY(180deg); }
.mc-face { position: absolute; inset: 0; border-radius: 18px; backface-visibility: hidden; padding: 18px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-soft); }
.mc-front { background: linear-gradient(135deg, var(--forest) 0%, var(--forest-dark) 100%); }
.mc-back { background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest) 100%); transform: rotateY(180deg); align-items: center; }
.mc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.mc-logo { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 0.9rem; }
.mc-logo img { width: 22px; height: 22px; }
.mc-status { font-size: 0.6rem; background: var(--gold); color: var(--forest-dark); padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.mc-name { font-family: var(--font-display); font-size: 1.2rem; }
.mc-since { font-size: 0.65rem; opacity: 0.75; }
.mc-qr { width: 96px; height: 96px; background: #fff; border-radius: 10px; padding: 8px; display: grid; grid-template-columns: repeat(6,1fr); grid-template-rows: repeat(6,1fr); gap: 2px; }
.mc-qr div { background: var(--forest-dark); border-radius: 1px; }
.mc-qr div.off { background: transparent; }
.mc-back p { font-size: 0.65rem; opacity: 0.75; margin-top: 8px; }
.card-flip-hint { text-align: center; font-size: 0.72rem; color: var(--ink-soft); margin-bottom: 20px; }

.profile-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.profile-row:last-child { border-bottom: none; }
.profile-row .arrow { color: var(--ink-soft); }

/* ---- Contest wizard ---- */
.step-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 20px; }
.step-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.step-dot.active { background: var(--forest); width: 22px; border-radius: 999px; }
.step-dot.done { background: var(--gold); }
.confirm-screen { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 30px; }
.confirm-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--forest-tint); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; margin-bottom: 16px; animation: pop 0.4s ease; }
@keyframes pop { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 30; }
.confetti span { position: absolute; top: -10px; width: 8px; height: 14px; opacity: 0.9; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(680px) rotate(360deg); opacity: 0.2; } }

/* ---- Story overlay ---- */
.story-overlay {
  position: absolute; inset: 0; z-index: 50;
  background: radial-gradient(circle at top, var(--forest) 0%, var(--forest-dark) 70%);
  border-radius: 30px;
  display: flex; flex-direction: column; padding: 18px;
  animation: fadeIn 0.2s ease;
}
.story-progress { height: 3px; background: rgba(255,255,255,0.3); border-radius: 999px; overflow: hidden; margin-bottom: 18px; flex-shrink: 0; }
.story-progress-fill { height: 100%; width: 0%; background: #fff; }
.story-close { align-self: flex-end; background: rgba(255,255,255,0.15); border: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; font-size: 0.9rem; margin-bottom: 10px; }
.story-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.story-body .ico { font-size: 3.4rem; }

/* ---- Toast ---- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--forest-dark); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; box-shadow: var(--shadow-soft);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .proto-stage { grid-template-columns: 1fr; }
  .proto-side { position: static; }
  .phone-shell { margin: 0 auto; }
}
@media (max-width: 720px) {
  .topnav-links { display: none; }
  .grid-3, .kpi-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 60px; }
  .phone-shell { width: 100%; max-width: 340px; }
}
