:root {
  --wu-red: #CC3300;
  --wu-red-dark: #a82a00;
  --wu-red-light: #e04a1a;
  --white: #ffffff;
  --off-white: #fafafa;
  --black: #1a1a1a;
  --text-dark: #222222;
  --text-mid: #555555;
  --text-light: #888888;
  --result-red: #cc0000;
  --border-light: #e0e0e0;
  --bg-cream: #f8f5f0;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Rubik', sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header / Logo area ── */
.site-header {
  background: var(--white);
  border-bottom: 4px solid var(--wu-red);
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.logo-svg {
  width: 100px;
  height: 85px;
  flex-shrink: 0;
}
.header-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.header-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--wu-red);
  line-height: 1.15;
}
.header-since {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-light);
}

/* ── Header Nav ── */
.logo-link {
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}
.header-nav {
  margin-left: auto;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: var(--wu-red);
}
.nav-link--active {
  color: var(--wu-red);
}

/* ── Main wrapper ── */
.main-wrapper {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

/* ── 2-column grid ── */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* ── Left panel (form) ── */
.left-panel {
  background: var(--wu-red);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
  text-align: center;
}
.form-input {
  width: 100%;
  max-width: 240px;
  padding: 9px 12px;
  font-family: 'Rubik', sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  border: 2px solid transparent;
  border-radius: 5px;
  outline: none;
  background: var(--white);
  color: var(--text-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  border-color: rgba(255,255,255,0.6);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.15);
}
.form-input::placeholder {
  color: #bbb;
}

.field-spacer {
  height: 0.75rem;
}

.submit-btn {
  margin-top: 1rem;
  padding: 9px 28px;
  background: var(--white);
  color: var(--wu-red);
  font-family: 'Rubik', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.submit-btn:hover {
  background: var(--off-white);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* ── Right panel (content) ── */
.right-panel {
  background: var(--white);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.result-name-input {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}
.result-label {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-mid);
  margin-bottom: 0.6rem;
}
.wu-name {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 800;
  color: var(--result-red);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.result-postscript {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-mid);
}

/* Welcome text (shown when no result) */
.welcome-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}
.welcome-subtitle {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-mid);
  margin-bottom: 0.8rem;
  line-height: 1.5;
}
.welcome-wu {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--wu-red);
  letter-spacing: 0.04em;
}

/* Error text */
.error-icon {
  margin-bottom: 0.5rem;
}
.error-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}
.error-text {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.5;
}
.error-text a {
  color: var(--wu-red);
  text-decoration: none;
  font-weight: 600;
}
.error-text a:hover {
  text-decoration: underline;
}

/* ── Merch / Affiliate area ── */
.merch-area {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem 1rem;
}
.merch-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  text-align: center;
}
.merch-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}
.merch-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-dark);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.merch-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.merch-card img {
  width: 100%;
  max-width: 120px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin-bottom: 0.5rem;
}
.merch-card-title {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.merch-card-price {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-light);
}

/* ── Ad / Links area ── */
.ad-area {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem 1.5rem;
}
.ad-area-inner {
  padding: 1.25rem 1.5rem;
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  border-radius: 8px;
}
.ad-area-label {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}
.ad-placeholder {
  display: flex;
  justify-content: center;
}
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 1.25rem 2rem;
  margin-top: auto;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-light);
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  .site-header {
    padding: 1.25rem 1.5rem;
  }
  .logo-svg {
    width: 72px;
    height: 62px;
  }
  .header-title {
    font-size: 1.1rem;
  }
  .main-wrapper {
    padding: 1.25rem 1rem;
  }
  .merch-area {
    padding: 0 1rem 0.75rem;
  }
  .merch-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ad-area {
    padding: 0 1rem 1.25rem;
  }
  .ad-slot ins {
    width: 100% !important;
    max-width: 728px;
  }
}
@media (max-width: 500px) {
  .merch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-nav {
    gap: 1rem;
  }
}
@media (max-width: 400px) {
  .left-panel, .right-panel {
    padding: 1.25rem 1rem;
  }
  .logo-svg {
    width: 56px;
    height: 48px;
  }
  .header-title {
    font-size: 0.95rem;
  }
}
