/* linkknil.com — style C: cream paper, one colour block, ink-plum footer. */
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/Fredoka-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/Fredoka-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #fff7ea;
  --ink: #3b2233;
  --inkSoft: #8c6a7c;
  --footerOn: #fff7ea;
  --challenge: #22c3d6;
  --challengeInk: #0b3f47;
  --challengeShade: #1596a8;
  --daily: #ffd84d;
  --dailyInk: #7a5200;
  --line: rgba(59, 34, 51, 0.12);
  --radius-block: clamp(1.5rem, 6vw, 2.5rem);
  --radius-btn: 999px;
  --pad: clamp(1.15rem, 4.5vw, 2.5rem);
  --max: 68rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid #3d7cff;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-family: "Fredoka", sans-serif;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

.wm {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1;
}
.wm > span {
  display: inline-block;
  text-shadow: 0 0.07em 0 var(--sh);
}
.wm .wm-sp { width: 0.28em; }
.wm > span:nth-child(1) { color: #f2465b; --sh: #c42b42; }
.wm > span:nth-child(2) { color: #ff8a2a; --sh: #d2651a; }
.wm > span:nth-child(3) { color: #ffc43a; --sh: #d2930f; }
.wm > span:nth-child(4) { color: #35c46a; --sh: #1f9a4f; }
.wm > span:nth-child(5) { color: #3d7cff; --sh: #2556cf; }
.wm > span:nth-child(7) { color: #9a5cf5; --sh: #7239cb; }
.wm > span:nth-child(8) { color: #ff6bb0; --sh: #d64a8c; }
.wm > span:nth-child(9) { color: #22c3d6; --sh: #1596a8; }
.wm > span:nth-child(10) { color: #ff8a2a; --sh: #d2651a; }
.wm > span:nth-child(11) { color: #f2465b; --sh: #c42b42; }

.wrap {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 1rem var(--pad) 2.5rem;
  flex: 1 0 auto;
  min-width: 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0 1.1rem;
  min-width: 0;
}
.site-header .wm { font-size: clamp(1.25rem, 5vw, 1.85rem); }
.studio-mark {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--inkSoft);
  text-decoration: none;
}

.label {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--inkSoft);
  margin: 0 0 0.55rem;
}

h1, h2, .display {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
}

.lede {
  margin: 0.85rem 0 0;
  font-size: 1.05rem;
  color: var(--ink);
  max-width: 34rem;
  overflow-wrap: break-word;
}

.block {
  background: var(--cream);
  border-radius: var(--radius-block);
  padding: var(--pad);
  position: relative;
  min-width: 0;
}
.block-challenge {
  background: var(--challenge);
  color: var(--challengeInk);
}
.block-challenge .label { color: #0b5560; }
.block-challenge h1 { color: #fff; text-shadow: 0 0.05em 0 rgba(11, 63, 71, 0.18); }
.block-daily {
  background: var(--daily);
  color: var(--dailyInk);
}
.block-daily .label { color: var(--dailyInk); }
.block-daily h1 { color: var(--ink); }

.hero { padding: 0.4rem 0 1.4rem; }
.hero .lede { font-size: 1.12rem; max-width: 40ch; }
.hero h1,
.block h1 {
  font-size: clamp(2.05rem, 9.2vw, 4.4rem);
  max-width: 100%;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  width: 100%;
  max-width: 100%;
  padding: 0.8rem 1.2rem;
  border: 0;
  border-radius: var(--radius-btn);
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 0 #1f0f1a;
  color: var(--cream);
  background: var(--ink);
}
.btn:hover { filter: brightness(1.06); }
.btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #1f0f1a;
}
.btn svg { flex: 0 0 auto; }
.btn-cream {
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 5px 0 rgba(31, 15, 26, 0.28);
}
.btn-cream:active { box-shadow: 0 2px 0 rgba(31, 15, 26, 0.28); }
.btn-copy {
  width: auto;
  min-height: 40px;
  padding: 0.35rem 0.9rem;
  font-size: 0.95rem;
  box-shadow: 0 3px 0 rgba(31, 15, 26, 0.22);
}
.btn-copy:active { box-shadow: 0 1px 0 rgba(31, 15, 26, 0.22); }

.banner {
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  border-radius: 1.1rem;
  background: rgba(255, 247, 234, 0.55);
  font-size: 1.02rem;
}
.block-daily .banner { background: rgba(59, 34, 51, 0.08); }

.code-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.15rem;
}
.code {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: inherit;
  opacity: 0.72;
}
.label-inline {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.chip {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--cream);
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  margin: 0.35rem 0 0.2rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.live { min-height: 1.2em; }

.game-card {
  background: #fff;
  border-radius: var(--radius-block);
  padding: var(--pad);
  box-shadow: 0 0 0 4px var(--line);
  min-width: 0;
}
.game-card-top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  min-width: 0;
}
.game-card-top > div { min-width: 0; flex: 1; }
.game-icon {
  width: 72px;
  height: 72px;
  border-radius: 1.15rem;
  flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(59, 34, 51, 0.18);
}
.game-card h2 {
  font-size: clamp(1.7rem, 6vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.game-card .one-liner {
  margin: 0.4rem 0 0;
  color: var(--inkSoft);
  font-size: 0.98rem;
  overflow-wrap: break-word;
}
.game-card .actions { margin-top: 1.1rem; }

.shots {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 1.25rem -0.15rem 0;
  padding: 0.15rem 0.15rem 0.85rem;
  -webkit-overflow-scrolling: touch;
}
.shots figure {
  margin: 0;
  flex: 0 0 42%;
  min-width: 8.5rem;
  max-width: 12.5rem;
  scroll-snap-align: start;
}
.shots img {
  width: 100%;
  border-radius: 1.15rem;
  box-shadow: 0 10px 24px rgba(59, 34, 51, 0.16);
  background: #f3e6ee;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-family: "Fredoka", sans-serif;
  font-size: 0.92rem;
  text-decoration: none;
  background: var(--cream);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
}
.pill-yellow { background: var(--daily); color: var(--dailyInk); box-shadow: none; }

.prose { max-width: 46rem; }
.prose h1 { font-size: clamp(2.1rem, 8vw, 3.4rem); margin: 0 0 0.4rem; }
.prose .meta { color: var(--inkSoft); margin: 0 0 1.6rem; overflow-wrap: anywhere; }
.prose h2 {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 2rem 0 0.6rem;
}
.prose p, .prose li { font-size: 1.02rem; line-height: 1.65; }
.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose a {
  color: #0b5560;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
.prose a:hover { color: var(--challengeShade); }

.page-404 h1 { font-size: clamp(4.5rem, 22vw, 8rem); }

.site-footer {
  background: var(--ink);
  color: var(--footerOn);
  margin-top: auto;
  padding: 1.15rem var(--pad) 1.3rem;
}
.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1.25rem;
}
.site-footer .wm { font-size: clamp(1.15rem, 4.5vw, 1.55rem); }
.footer-domain {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}
.footer-meta {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.92rem;
  color: rgba(255, 247, 234, 0.72);
}
.footer-meta a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}

html:not([data-platform]) .only-android,
html:not([data-platform]) .only-other,
html:not([data-valid]) .only-valid,
html:not([data-valid]) .only-invalid { display: none !important; }
html[data-platform="android"] .only-other { display: none !important; }
html[data-platform="other"] .only-android { display: none !important; }
html[data-valid="false"] .only-valid { display: none !important; }
html[data-valid="true"] .only-invalid { display: none !important; }

@media (max-width: 799px) {
  .footer-inner { align-items: flex-start; }
  .footer-domain { flex: 1 0 100%; }
}

@media (min-width: 800px) {
  .wrap { padding: 1.5rem 2rem 3rem; }
  .actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }
  .actions .btn { width: auto; min-width: 16rem; }
  .game-card {
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) minmax(20rem, 1.3fr);
    gap: 1.5rem 2rem;
    align-items: center;
  }
  .game-card-copy { grid-column: 1; }
  .shots {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .shots figure {
    flex: 1 1 0;
    max-width: none;
    min-width: 0;
  }
  .hero { padding-bottom: 2rem; max-width: 40rem; }
  .block { padding: 2rem 2.2rem 2.15rem; }
  .footer-meta { flex: 0 1 auto; }
}

@media (min-width: 1100px) {
  .shots { gap: 1rem; }
}
