/* Man Make Game shared styles */

@font-face {
  font-family: 'Luckiest Guy';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/luckiest-guy.woff2') format('woff2');
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/caveat-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/caveat-700.woff2') format('woff2');
}

:root {
  --bg-1: #241710;
  --bg-2: #6e3d18;
  --bg-3: #2c1b10;
  --bg-4: #160e08;
  --ink: #f4e6c8;
  --ink-dim: rgba(244, 230, 200, 0.62);
  --stroke: #241408;
  --orange: #ef7a36;
  --orange-2: #f5a838;
  --gold: #f6b659;
  --skin: #d99a6c;
  --hair: #3b2517;
  --fur: #b5894f;
  --rock: #7a6248;
  --rock-dark: #5f4a35;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Caveat', cursive;
  color: var(--ink);
  background: var(--bg-4);
  background-image:
    radial-gradient(120% 70% at 50% 0%, #241710 0%, rgba(36,23,16,0) 52%),
    radial-gradient(150% 120% at 50% 100%, #6e3d18 0%, #2c1b10 46%, #160e08 100%);
  background-attachment: fixed;
}

a { color: inherit; }

/* Site header and stone-tablet nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px clamp(16px, 4vw, 44px);
  background: rgba(22, 14, 8, 0.82);
  backdrop-filter: blur(7px);
  border-bottom: 2px solid rgba(122, 98, 72, 0.4);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.32em;
  font-family: 'Luckiest Guy', cursive;
  font-size: clamp(20px, 3vw, 27px);
  letter-spacing: 1px;
  color: var(--ink);
  text-decoration: none;
  -webkit-text-stroke: 2.5px var(--stroke);
  paint-order: stroke fill;
  white-space: nowrap;
}
.brand .brand-accent { color: var(--orange); }

.tablet-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 14px);
  flex-wrap: wrap;
}

.tablet {
  font-family: 'Luckiest Guy', cursive;
  font-size: clamp(13px, 1.6vw, 16px);
  letter-spacing: 0.6px;
  color: var(--ink);
  text-decoration: none;
  padding: 9px 16px 8px;
  border-radius: 13px 11px 14px 10px;
  background: linear-gradient(170deg, #8a6f50 0%, #6f583e 100%);
  border: 2px solid var(--stroke);
  box-shadow: 0 3px 0 var(--stroke), inset 0 2px 0 rgba(255, 233, 198, 0.22);
  transform: rotate(-1deg);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.tablet:nth-child(even) { transform: rotate(1deg); }
.tablet:hover {
  transform: translateY(-2px) rotate(0deg);
  box-shadow: 0 5px 0 var(--stroke), inset 0 2px 0 rgba(255, 233, 198, 0.3);
}
.tablet:active {
  transform: translateY(1px) rotate(0deg);
  box-shadow: 0 2px 0 var(--stroke), inset 0 2px 0 rgba(255, 233, 198, 0.22);
}
.tablet.is-active {
  background: linear-gradient(170deg, #f0a93b 0%, #e07a2c 100%);
  color: #2a1708;
  -webkit-text-stroke: 0;
}

/* Page body wrapper for content pages */
.page {
  flex: 1 0 auto;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 40px) clamp(56px, 8vw, 96px);
}

.page-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.95;
  margin: 0 0 0.45em;
  color: var(--ink);
  -webkit-text-stroke: 4px var(--stroke);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 #2a1a0e, 0 7px 0 #1d110a, 0 12px 18px rgba(0,0,0,0.4);
}
.page-title .accent { color: var(--orange); }

.lede {
  font-weight: 700;
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.3;
  color: var(--gold);
  max-width: 24ch;
  margin: 0 0 1.1em;
}

.prose {
  font-weight: 500;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.45;
  color: var(--ink);
}
.prose p { margin: 0 0 0.85em; max-width: 56ch; }

/* Product cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(18px, 3vw, 28px);
  margin-top: clamp(20px, 4vw, 36px);
}

.game-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(168deg, rgba(122,98,72,0.34) 0%, rgba(44,27,16,0.5) 100%);
  border: 2px solid rgba(122, 98, 72, 0.55);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,233,198,0.12);
}
.game-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
  gap: clamp(18px, 3vw, 30px);
  align-items: center;
  flex-wrap: wrap;
}

.badge-soon {
  align-self: flex-start;
  font-family: 'Luckiest Guy', cursive;
  font-size: 12px;
  letter-spacing: 0.8px;
  color: #2a1708;
  background: var(--gold);
  border: 2px solid var(--stroke);
  border-radius: 9px;
  padding: 3px 9px 2px;
  margin-bottom: 12px;
}
.badge-live {
  align-self: flex-start;
  font-family: 'Luckiest Guy', cursive;
  font-size: 12px;
  letter-spacing: 0.8px;
  color: #0c2a14;
  background: #6fd08a;
  border: 2px solid var(--stroke);
  border-radius: 9px;
  padding: 3px 9px 2px;
  margin-bottom: 12px;
}

.game-name {
  font-family: 'Luckiest Guy', cursive;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  margin: 0 0 0.3em;
  color: var(--orange-2);
  -webkit-text-stroke: 2px var(--stroke);
  paint-order: stroke fill;
}
.game-blurb {
  font-weight: 500;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 1em;
}

.card-body { flex: 1; min-width: 220px; }

/* Drop-in artwork slot. To use a real image, replace the inner
   markup of .art-slot with: <img src="images/your-art.png" alt="..."> */
.art-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background:
    repeating-linear-gradient(45deg, rgba(122,98,72,0.18) 0 12px, rgba(122,98,72,0.08) 12px 24px),
    linear-gradient(168deg, #3a2a1c 0%, #241710 100%);
  border: 2px dashed rgba(182, 150, 110, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.art-slot.icon-size { max-width: 168px; }
.featured .art-slot { width: clamp(160px, 30vw, 230px); flex: 0 0 auto; }
.art-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-slot .slot-hint {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-dim);
  text-align: center;
  padding: 10px;
}

/* App icon for a live title */
.app-icon {
  width: clamp(120px, 24vw, 168px);
  height: auto;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  border-radius: 22%;
  box-shadow: 0 10px 26px rgba(0,0,0,0.42);
  display: block;
}

/* Official store badges */
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; }
.store-badge { display: inline-block; transition: transform 0.12s ease; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge:active { transform: translateY(1px); }
.store-badge img { height: 48px; width: auto; display: block; }

/* Footer */
.site-footer {
  flex-shrink: 0;
  border-top: 2px solid rgba(122, 98, 72, 0.4);
  background: rgba(22, 14, 8, 0.6);
  padding: 22px clamp(16px, 4vw, 44px) 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
}
.footer-nav a {
  font-weight: 700;
  font-size: 19px;
  color: var(--gold);
  text-decoration: none;
}
.footer-nav a:hover { text-decoration: underline; }
.footer-copy {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.4px;
  color: var(--ink-dim);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* About page bone divider */
.bone-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: clamp(22px, 4vw, 36px) 0;
  color: rgba(182, 150, 110, 0.5);
}
.bone-rule::before,
.bone-rule::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(182,150,110,0.45), transparent);
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 4vw, 44px);
  margin-top: clamp(20px, 4vw, 34px);
  align-items: start;
}
.contact-info { font-weight: 500; }
.contact-info .info-label {
  font-family: 'Luckiest Guy', cursive;
  font-size: 16px;
  letter-spacing: 0.6px;
  color: var(--orange-2);
  margin: 0 0 6px;
}
.contact-info address {
  font-style: normal;
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 22px;
}
.contact-info a { color: var(--gold); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.contact-form {
  background: linear-gradient(168deg, rgba(122,98,72,0.3) 0%, rgba(44,27,16,0.5) 100%);
  border: 2px solid rgba(122, 98, 72, 0.55);
  border-radius: 20px;
  padding: clamp(18px, 3vw, 26px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field label {
  font-family: 'Luckiest Guy', cursive;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  font-family: 'Caveat', cursive;
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  background: rgba(22, 14, 8, 0.55);
  border: 2px solid rgba(182, 150, 110, 0.4);
  border-radius: 12px;
  padding: 10px 13px;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(244, 230, 200, 0.4); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--orange); }
.field textarea { resize: vertical; min-height: 120px; }

.btn-stone {
  font-family: 'Luckiest Guy', cursive;
  font-size: 18px;
  letter-spacing: 0.6px;
  color: #2a1708;
  background: linear-gradient(170deg, #f0a93b 0%, #e07a2c 100%);
  border: 2px solid var(--stroke);
  border-radius: 14px 12px 15px 11px;
  box-shadow: 0 4px 0 var(--stroke), inset 0 2px 0 rgba(255, 233, 198, 0.3);
  padding: 12px 24px 11px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-stone:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--stroke), inset 0 2px 0 rgba(255,233,198,0.35); }
.btn-stone:active { transform: translateY(1px); box-shadow: 0 2px 0 var(--stroke), inset 0 2px 0 rgba(255,233,198,0.3); }

.form-note {
  font-weight: 500;
  font-size: 16px;
  color: var(--ink-dim);
  margin: 14px 0 0;
  min-height: 1.2em;
}

/* Spam trap, kept out of sight and out of the tab order */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Legal / long-form readable body */
.legal {
  font-family: 'Segoe UI', system-ui, -apple-system, Helvetica, Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  color: #ece1cf;
  max-width: 70ch;
}
.legal .updated {
  font-size: 14.5px;
  color: var(--ink-dim);
  margin: 0 0 1.6em;
}
.legal h2 {
  font-family: 'Luckiest Guy', cursive;
  font-weight: 400;
  font-size: 21px;
  letter-spacing: 0.4px;
  color: var(--orange-2);
  margin: 1.8em 0 0.5em;
  -webkit-text-stroke: 0;
}
.legal p { margin: 0 0 1.05em; }
.legal ul { margin: 0 0 1.05em; padding-left: 1.3em; }
.legal li { margin: 0 0 0.55em; }
.legal a { color: var(--gold); }
.legal .legal-contact { line-height: 1.5; }
