/* BitBite Games — studio site */
:root {
  --cream: #F5E6C8;
  --cream-dark: #E8D4A8;
  --teal: #7BA8A0;
  --teal-deep: #4A6F68;
  --teal-ink: #2A3A3A;
  --orange: #E87838;
  --orange-hot: #D46528;
  --white: #FFFBF3;
  --shadow: rgba(42, 58, 58, 0.18);
  --radius: 16px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--teal-ink);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--teal-deep); text-decoration: none; }
a:hover { color: var(--orange); }

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

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 230, 200, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--teal);
  padding: 0.75rem 1.25rem;
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--teal-ink);
  text-decoration: none;
}
.logo:hover { color: var(--teal-ink); }

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--teal);
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 2px 0 var(--teal-deep);
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 8px 10px 10px 10px;
  background: var(--orange);
  border-radius: 50% 50% 45% 45%;
  box-shadow: 0 -6px 0 -2px var(--cream);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.nav-links a {
  color: var(--teal-deep);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* —— Layout —— */
main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.site-footer {
  border-top: 2px solid var(--cream-dark);
  background: var(--teal-ink);
  color: var(--cream);
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer a { color: var(--teal); }
.site-footer a:hover { color: var(--orange); }
.site-footer .tagline {
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
  color: var(--orange);
}

/* —— Hero —— */
.hero {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  padding: 1rem 0 2rem;
}
@media (min-width: 720px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    padding: 2rem 0 2.5rem;
  }
}

.hero-copy h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.hero-copy .studio-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal-deep);
  margin-bottom: 0.75rem;
}

.locked-tagline {
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  font-weight: 800;
  color: var(--orange);
  margin: 0.75rem 0 1.25rem;
  letter-spacing: -0.01em;
}

.hero-blurb {
  font-size: 1.05rem;
  max-width: 36em;
  color: var(--teal-ink);
  opacity: 0.92;
  margin-bottom: 1.5rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange-hot);
  box-shadow: 0 4px 0 var(--orange-hot);
}
.btn-primary:hover {
  background: var(--orange-hot);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--teal-deep);
  border-color: var(--teal);
}
.btn-ghost:hover {
  background: var(--teal);
  color: var(--white);
}

/* —— Hero art (CSS cavern + Ina) —— */
.hero-art {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 340px;
  margin: 0 auto;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #9BC4BC 0%, var(--teal) 35%, #5A8A82 70%, #3D5A5A 100%);
  overflow: hidden;
  box-shadow: 0 12px 32px var(--shadow);
  border: 3px solid var(--teal-deep);
}

.cavern-walls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cavern-walls::before,
.cavern-walls::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28%;
  background: var(--cream);
  opacity: 0.95;
}
.cavern-walls::before {
  left: 0;
  border-radius: 0 40% 35% 0 / 0 20% 25% 0;
  box-shadow: inset -8px 0 0 var(--cream-dark);
}
.cavern-walls::after {
  right: 0;
  border-radius: 40% 0 0 35% / 20% 0 0 25%;
  box-shadow: inset 8px 0 0 var(--cream-dark);
}

.hero-ina {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.25));
  animation: floaty 2.4s ease-in-out infinite;
  z-index: 2;
}

@keyframes floaty {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 10px)); }
}

.coin-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFE08A, #E8A820);
  border: 2px solid #C48610;
  z-index: 1;
  animation: twinkle 1.8s ease-in-out infinite;
}
.coin-dot:nth-child(1) { left: 38%; top: 22%; animation-delay: 0s; }
.coin-dot:nth-child(2) { left: 58%; top: 58%; animation-delay: 0.4s; }
.coin-dot:nth-child(3) { left: 42%; top: 72%; animation-delay: 0.9s; }

@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

/* —— Sections —— */
.section { margin: 2.5rem 0; }
.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--teal-ink);
}
.section-title span {
  display: inline-block;
  border-bottom: 3px solid var(--orange);
  padding-bottom: 0.15rem;
}

/* —— Game card —— */
.game-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 560px) {
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

.game-card {
  background: var(--white);
  border: 3px solid var(--teal);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 0 var(--cream-dark);
  transition: transform 0.15s ease, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}
.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 var(--cream-dark);
}

.game-card-art {
  height: 140px;
  background:
    linear-gradient(180deg, #9BC4BC, var(--teal) 60%, #4A6F68);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-card-art img {
  width: 56px;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}
.game-card-body {
  padding: 1.1rem 1.2rem 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.game-card-body h3 {
  font-size: 1.2rem;
  font-weight: 800;
}
.game-card-body .tag {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--orange);
}
.game-card-body p {
  font-size: 0.95rem;
  flex: 1;
  opacity: 0.9;
}
.game-card-body .btn { align-self: flex-start; margin-top: 0.35rem; font-size: 0.95rem; padding: 0.65rem 1.2rem; }

/* —— Stub pages —— */
.page-hero {
  margin-bottom: 1.75rem;
}
.page-hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}
.page-hero .lede {
  font-size: 1.05rem;
  max-width: 40em;
  opacity: 0.92;
}

.stub-box {
  background: var(--white);
  border: 3px dashed var(--teal);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  margin: 1.25rem 0;
}
.stub-box h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.stub-box ul {
  margin: 0.75rem 0 0 1.25rem;
}
.stub-box li { margin-bottom: 0.35rem; }

.press-meta {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}
@media (min-width: 520px) {
  .press-meta { grid-template-columns: 1fr 1fr; }
}
.meta-card {
  background: var(--cream-dark);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.meta-card dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--teal-deep);
}
.meta-card dd {
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 0.2rem;
}

.about-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}
.about-card {
  background: var(--white);
  border: 3px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.about-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--teal-deep);
}

.pill {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

/* —— Partners strip —— */
.partners-card {
  background: var(--white);
  border: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 0 var(--cream-dark);
}
.partners-card p {
  flex: 1 1 16rem;
  max-width: 40em;
  margin: 0;
}

/* —— Contact intents —— */
.intent-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .intent-grid { grid-template-columns: repeat(3, 1fr); }
}
.intent-card {
  background: var(--white);
  border: 3px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.intent-card h2 {
  font-size: 1.15rem;
  color: var(--teal-deep);
}
.intent-card .btn {
  align-self: flex-start;
  font-size: 0.95rem;
  padding: 0.65rem 1.15rem;
  margin-top: auto;
}
.intent-note {
  font-size: 0.85rem;
  opacity: 0.85;
}
