/* ============================================================
   App Games Daily — Inbox / Email newsletter aesthetic
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: #f5f5f4;
  color: #1c1917;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #15803d;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: #1c1917;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0 0 12px;
}

p:last-child {
  margin-bottom: 0;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 0;
}

/* ============================================================
   Email-client wrapper
   ============================================================ */

.container {
  max-width: 1920px;
  margin: 0 auto;
}

.mailwrap {
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.sheet {
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 4px;
}

.sheet + .sheet {
  margin-top: 16px;
}

/* ============================================================
   Cookie banner
   ============================================================ */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 13px;
  display: block;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(28, 25, 23, 0.08);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner .container {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-banner span {
  color: #44403c;
  flex: 1 1 280px;
  min-width: 0;
}

.cookie-banner button {
  background: #15803d;
  color: #ffffff;
  border: 0;
  padding: 8px 16px;
  border-radius: 3px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.cookie-banner button:hover {
  background: #126b34;
}

/* ============================================================
   Navbar — slim toolbar above the email
   ============================================================ */

.navbar {
  border-bottom: 1px solid #e7e5e4;
  background: #fafaf9;
}

.navbar .container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-logo a {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: #1c1917;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-logo a:hover {
  text-decoration: none;
  color: #15803d;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
}

.nav-links a {
  color: #57534e;
}

.nav-links a:hover {
  color: #15803d;
  text-decoration: none;
}

/* ============================================================
   Email header (subject line block)
   ============================================================ */

.email-head {
  padding: 22px 24px 20px;
  border-bottom: 1px solid #e7e5e4;
}

.email-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: #78716c;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.email-meta .from strong {
  color: #1c1917;
  font-weight: 500;
}

.email-subject {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  margin: 6px 0 8px;
}

.email-preview {
  color: #57534e;
  font-size: 14px;
  margin: 0;
}

/* ============================================================
   Section labels — like email folders / chips
   ============================================================ */

.section-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #78716c;
  padding: 14px 24px 8px;
  border-bottom: 1px solid #f5f5f4;
}

.section-body {
  padding: 16px 24px 20px;
}

.section-body h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 10px;
}

.section-body p {
  font-size: 14.5px;
  color: #292524;
}

.section-body p + h2,
.section-body p + h3 {
  margin-top: 18px;
}

.section-body h3 {
  font-size: 14.5px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #1c1917;
}

.section-body ul,
.section-body ol {
  margin: 6px 0 12px;
  padding-left: 20px;
}

.section-body li {
  font-size: 14.5px;
  color: #292524;
  margin-bottom: 4px;
}

.section-body strong {
  color: #1c1917;
  font-weight: 600;
}

.section-body a {
  color: #15803d;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.section-body a:hover {
  color: #126b34;
}

.section-note {
  margin-top: 14px;
  padding: 10px 12px;
  background: #fafaf9;
  border: 1px solid #e7e5e4;
  border-left: 2px solid #15803d;
  border-radius: 3px;
  font-size: 13px;
  color: #44403c;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  line-height: 1.55;
}

/* ============================================================
   Games — inbox row list
   ============================================================ */

.inbox {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1100px) {
  .inbox {
    grid-template-columns: repeat(2, 1fr);
  }
  .game-row {
    border-right: 1px solid #f5f5f4;
  }
  .game-row:nth-child(2n) {
    border-right: 0;
  }
}

@media (min-width: 1500px) {
  .inbox {
    grid-template-columns: repeat(3, 1fr);
  }
  .game-row {
    border-right: 1px solid #f5f5f4;
  }
  .game-row:nth-child(2n) {
    border-right: 1px solid #f5f5f4;
  }
  .game-row:nth-child(3n) {
    border-right: 0;
  }
}

.game-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid #f5f5f4;
}

.game-row:last-child {
  border-bottom: 0;
}

.game-row .game-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid #e7e5e4;
  object-fit: cover;
}

.game-row .game-body {
  min-width: 0;
}

.game-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.game-name {
  font-size: 15px;
  font-weight: 600;
  color: #1c1917;
}

.game-dev {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  color: #a8a29e;
}

.game-desc {
  font-size: 13.5px;
  color: #44403c;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-shots {
  display: flex;
  gap: 6px;
  margin: 8px 0 8px;
  flex-wrap: wrap;
}

.game-shots img {
  width: 80px;
  height: 50px;
  object-fit: cover;
  border: 1px solid #e7e5e4;
  border-radius: 3px;
}

.game-link {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: #15803d;
  background: none;
  border: 0;
  padding: 0;
  display: inline-block;
}

.game-link:hover {
  text-decoration: underline;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-list {
  padding: 4px 24px 16px;
}

.faq-item {
  border-bottom: 1px solid #f5f5f4;
  padding: 12px 0;
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-q {
  font-weight: 600;
  font-size: 14.5px;
  color: #1c1917;
  margin: 0 0 4px;
}

.faq-a {
  font-size: 14px;
  color: #44403c;
  margin: 0;
}

/* ============================================================
   Reviews
   ============================================================ */

.reviews-list {
  padding: 4px 24px 16px;
}

.review {
  border-bottom: 1px solid #f5f5f4;
  padding: 14px 0;
}

.review:last-child {
  border-bottom: 0;
}

.review-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.review-name {
  font-weight: 600;
  font-size: 14px;
  color: #1c1917;
}

.review-meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: #a8a29e;
}

.review-text {
  font-size: 13.5px;
  color: #44403c;
  margin: 0;
}

/* ============================================================
   Process — numbered list
   ============================================================ */

.process-list {
  list-style: none;
  counter-reset: stepc;
  margin: 0;
  padding: 4px 24px 18px;
}

.process-list li {
  counter-increment: stepc;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f4;
}

.process-list li:last-child {
  border-bottom: 0;
}

.process-list li::before {
  content: counter(stepc, decimal-leading-zero);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: #15803d;
  padding-top: 2px;
}

.process-title {
  font-weight: 600;
  font-size: 14px;
  color: #1c1917;
  display: block;
  margin-bottom: 2px;
}

.process-desc {
  font-size: 13.5px;
  color: #44403c;
}

/* ============================================================
   Subscribe (reply form)
   ============================================================ */

.subscribe-wrap {
  padding: 16px 24px 20px;
}

.subscribe-wrap p {
  font-size: 14px;
  color: #57534e;
  margin-bottom: 14px;
}

#subscribeForm {
  display: grid;
  gap: 10px;
}

.form-field {
  display: grid;
  gap: 4px;
}

.form-field label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: #78716c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-field input {
  font-family: inherit;
  font-size: 14px;
  color: #1c1917;
  background: #fafaf9;
  border: 1px solid #e7e5e4;
  border-radius: 3px;
  padding: 9px 11px;
  width: 100%;
}

.form-field input:focus {
  outline: none;
  border-color: #15803d;
  background: #ffffff;
}

.btn {
  display: inline-block;
  background: #15803d;
  color: #ffffff;
  border: 0;
  border-radius: 3px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background: #126b34;
  text-decoration: none;
  color: #ffffff;
}

.btn-block {
  width: 100%;
  margin-top: 4px;
}

.consent-field { margin-bottom: 14px; }
.consent { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 13px; color: #57534e; line-height: 1.5; }
.consent input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; accent-color: #15803d; }

.form-success {
  display: none;
  font-size: 13px;
  color: #15803d;
  padding: 8px 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 3px;
  margin-top: 6px;
}

.form-success.show {
  display: block;
}

/* ============================================================
   Footer
   ============================================================ */

.email-foot {
  margin-top: 16px;
  padding: 18px 4px;
  text-align: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  color: #78716c;
  line-height: 1.7;
}

.email-foot a {
  color: #57534e;
}

.email-foot a:hover {
  color: #15803d;
}

.email-foot .footlinks {
  margin: 4px 0;
}

.email-foot .footlinks a {
  margin: 0 4px;
}

.email-foot .footaddr {
  margin-top: 6px;
  color: #a8a29e;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 560px) {
  body {
    font-size: 14px;
  }

  .mailwrap {
    padding: 12px 8px 48px;
  }

  .navbar .container {
    padding: 10px 12px;
  }

  .nav-links {
    gap: 10px;
    font-size: 11.5px;
  }

  .email-head,
  .section-body,
  .faq-list,
  .reviews-list,
  .subscribe-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .process-list {
    padding-left: 16px;
    padding-right: 16px;
  }

  .game-row {
    padding-left: 16px;
    padding-right: 16px;
  }

  .email-subject {
    font-size: 21px;
  }

  .section-label {
    padding-left: 16px;
    padding-right: 16px;
  }

  .game-shots img {
    width: 72px;
    height: 46px;
  }
}

/* Centered subscribe form — final pass */
#subscribe { display: flex; justify-content: center; }
#subscribe > .container { width: 100%; }
#subscribe > .container > *,
#subscribe .form-wrap,
#subscribe .subscribe-wrap,
#subscribe .subscribe-card,
#subscribe .mailwrap,
#subscribe .card { margin-left: auto !important; margin-right: auto !important; }
#subscribe form, #subscribe form > * { text-align: left; }
#subscribe .section-head, #subscribe h2, #subscribe .form-subtitle, #subscribe .subtitle, #subscribe .sub, #subscribe .kicker { text-align: center; }