/* MonkDoesStuff — same dark house style as hookline.fun (Montserrat 800 on
   #121216) with the Bungee gradient wordmark trick reused for the site logo
   and the in-card Hookline marks. */

:root {
  --bg: #121216;
  --panel: #1c1c24;
  --panel-2: #26262f;
  --text: #eaeaf0;
  --text-dim: #9a9aa8;
  --green: #1db954;
  --mint: #7ee2a0;
  --purple: #6c5ce7;
  --lilac: #a99bff;
  --gold: #f7c948;
  --red: #e0392e;
  --border: #34343f;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  /* Extra Bold is the house style, same as hookline.fun */
  font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
  background:
    radial-gradient(ellipse 90% 40% at 50% -5%, #1e1b2e 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

a { color: var(--mint); }

/* ---- masthead ---- */
#masthead { text-align: center; padding: 40px 16px 8px; }

#site-logo {
  font-family: "Bungee", "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  margin: 0;
  line-height: 1;
  letter-spacing: 0.01em;
  background: linear-gradient(100deg, var(--gold) 10%, #ff9d5c 45%, var(--red) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 14px rgba(247, 201, 72, 0.22));
  user-select: none;
}
#site-logo span {
  background: linear-gradient(100deg, var(--purple), var(--lilac));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* the .fun, worn small - same trick as the hookline.fun wordmark */
#site-logo .tld { font-size: 0.34em; margin-left: 5px; }
#site-tag { color: var(--text-dim); margin: 10px 0 22px; }

/* the wordmark is a button: back to Games from anywhere */
#logo-link { text-decoration: none; display: inline-block; }
#logo-link:hover #site-logo { filter: drop-shadow(0 4px 14px rgba(247, 201, 72, 0.38)) brightness(1.12); }

.icon { width: 14px; height: 14px; vertical-align: -2px; }

/* ---- tabs ---- */
#tabs { display: inline-flex; gap: 6px; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 5px; }
.tab {
  padding: 8px 26px;
  border-radius: 999px;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); }

/* ---- card grid ---- */
.grid {
  width: min(1100px, 94vw);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  padding: 34px 0 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
}
a.card { transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
a.card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: 0 14px 34px rgba(29, 185, 84, 0.18);
}

.card-art {
  position: relative;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 90% at 50% 110%, #26263a 0%, transparent 70%),
    var(--panel-2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.art-img { max-width: 78%; max-height: 72%; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); }

/* Hookline wordmark, exactly as hookline.fun renders it */
.hookline-mark {
  font-family: "Bungee", "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 4.2vw, 2.4rem);
  line-height: 1;
  background: linear-gradient(100deg, var(--green) 20%, var(--mint) 45%, var(--purple) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 14px rgba(29, 185, 84, 0.22));
  user-select: none;
}
.hookline-mark .tld {
  font-size: 0.34em;
  margin-left: 5px;
  background: linear-gradient(100deg, var(--lilac), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body.center { text-align: center; padding: 40px 24px; }
.card-body h2 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.card-body p { margin: 0; color: var(--text-dim); font-weight: 700; font-size: 0.92rem; line-height: 1.45; }

.cta {
  margin-top: auto;
  align-self: flex-start;
  background: var(--green);
  color: #08130b;
  font-weight: 800;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
}
a.card:hover .cta { filter: brightness(1.12); }

.badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--green);
  color: #08130b;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(29, 185, 84, 0.5);
}

/* ---- coming soon treatment ---- */
.card.soon .card-art > .hookline-mark,
.card.soon .card-art > .art-img {
  filter: grayscale(1) brightness(0.75) opacity(0.45);
}
.card.soon .card-body h2 { color: var(--text-dim); }

.stamp {
  position: absolute;
  font-family: "Bungee", "Segoe UI", sans-serif;
  font-size: 1.5rem;
  color: var(--red);
  border: 4px solid var(--red);
  border-radius: 8px;
  padding: 4px 16px;
  transform: rotate(-14deg);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
  box-shadow: inset 0 0 12px rgba(224, 57, 46, 0.25), 0 0 18px rgba(0, 0, 0, 0.45);
  background: rgba(18, 18, 22, 0.35);
  user-select: none;
}

.card.placeholder { grid-column: 1 / -1; border-style: dashed; background: transparent; }

/* TikTok sticker: marks the interactive TikTok versions */
.tiktok-badge {
  position: absolute;
  top: 10px; left: 10px;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px #000a, 0 0 0 2px #ffffff22;
  transform: rotate(-8deg);
  z-index: 2;
}
.tiktok-badge svg { width: 19px; height: 19px; color: #fff; filter: drop-shadow(1px 1px 0 #fe2c55) drop-shadow(-1px -1px 0 #25f4ee); }
/* stays full-colour even on the greyed coming-soon art */
.card.soon .tiktok-badge { filter: none; }

/* ---- install & play guide (hookline-tiktok.html) ---- */
.guide { width: min(760px, 94vw); display: flex; flex-direction: column; gap: 34px; padding: 26px 0 30px; }

.guide-hero {
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 26px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.guide-hero h2 { margin: 0; font-size: 1.3rem; }
.guide-hero p { margin: 0; color: var(--text-dim); font-weight: 700; font-size: 0.95rem; line-height: 1.5; max-width: 54ch; }

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  background: var(--green);
  color: #08130b;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 30px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(29, 185, 84, 0.3);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.download-btn:hover { transform: translateY(-2px); filter: brightness(1.12); }
.download-btn .icon { width: 20px; height: 20px; }
.download-note { font-size: 0.8rem !important; }

.guide-section { display: flex; flex-direction: column; gap: 18px; }
.guide-section h3 { margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: 12px; }
.section-num {
  font-family: "Bungee", "Segoe UI", sans-serif;
  font-weight: 400;
  background: linear-gradient(100deg, var(--green) 20%, var(--mint) 45%, var(--purple) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.5rem;
}

.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.step-text { display: flex; gap: 14px; align-items: baseline; padding: 16px 20px; }
.step-text p { margin: 0; font-weight: 700; font-size: 0.95rem; line-height: 1.5; color: var(--text); }
.step-text .step-aside { margin-top: 6px; color: var(--text-dim); font-size: 0.85rem; }
.step-num {
  flex: none;
  font-family: "Bungee", "Segoe UI", sans-serif;
  color: var(--gold);
  font-size: 1.05rem;
}
.step img { display: block; width: 100%; border-top: 1px solid var(--border); background: var(--panel-2); }

/* red pulsing callout: the "blocked by security settings" aside */
.pulse-alert {
  color: var(--red) !important;
  font-weight: 800 !important;
  animation: pulse-alert 1.6s ease-in-out infinite;
}
@keyframes pulse-alert {
  0%, 100% { opacity: 1; text-shadow: 0 0 0 rgba(224, 57, 46, 0); }
  50% { opacity: 0.55; text-shadow: 0 0 14px rgba(224, 57, 46, 0.55); }
}
@media (prefers-reduced-motion: reduce) {
  .pulse-alert { animation: none; }
}

.alt-launch {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 6px 14px;
}
.alt-launch > summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--red);
  padding: 10px 6px;
  user-select: none;
  animation: pulse-alert 1.6s ease-in-out infinite;
}
.alt-launch > summary:hover { animation-play-state: paused; opacity: 1; }
/* once it's open, the job is done - settle down and let people read */
.alt-launch[open] > summary { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .alt-launch > summary { animation: none; }
}
.alt-launch .step { margin: 12px 0; }

.guide-footnote {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.guide-footnote img { width: 200px; flex: none; border-radius: 8px; border: 1px solid var(--border); }
.guide-footnote p { margin: 0; color: var(--text-dim); font-weight: 700; font-size: 0.9rem; line-height: 1.5; }
@media (max-width: 560px) { .guide-footnote { flex-direction: column; } .guide-footnote img { width: 100%; } }

/* ---- footer ---- */
footer {
  margin-top: auto;
  padding: 26px 0 30px;
  color: var(--text-dim);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
footer p { margin: 0; }
#footer-links { display: flex; gap: 16px; }
#footer-links a { color: var(--text-dim); transition: color 0.15s ease, transform 0.15s ease; }
#footer-links a:hover { color: var(--text); transform: translateY(-2px); }
#footer-links svg { width: 22px; height: 22px; display: block; }
