/* The cozy look: Lustlands' page, and its card on the studio's page (everything here hangs off `.cozy`). The game's own
   meadow green, cream paper with a thick ink outline and an ink drop under it, rounded corners, its rounded font with
   lettering like its title, light rays and petals drifting down. */

.cozy {
  --ink: #3a2a20;
  --cream: #fbf1e4;
  --paper: #fffaf0;
  --meadow: #8db36a;
  --meadow-light: #b5d98a;
  --meadow-deep: #5f8f44;
  --pink: #f0a3b6;
  --rose: #e2506e;
  --gold: #f2bd3d;
  --violet: #7440a0;
  color: var(--ink);
}

body.cozy {
  background: var(--meadow);
}

body.cozy::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    repeating-conic-gradient(from 0deg at 50% -8%, rgb(255 250 240 / 0.13) 0deg 7deg, transparent 7deg 20deg),
    linear-gradient(180deg, var(--meadow-light), var(--meadow) 55%, var(--meadow-deep));
}

/* Petals drifting down (site.js scatters them). */
.petals {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.petals i {
  position: absolute;
  top: -20px;
  width: 13px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  opacity: 0.8;
  animation: petal-fall linear infinite;
}

.petals i:nth-child(3n) {
  background: var(--paper);
}

@keyframes petal-fall {
  to {
    translate: var(--drift, 60px) 110vh;
    rotate: 540deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .petals {
    display: none;
  }
}

/* The game's lettering: cream, a thick ink outline, an ink drop under it. */
.cozy .word {
  font-weight: 1000;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--cream);
  -webkit-text-stroke: 0.14em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.08em 0 var(--ink);
}

.cozy .card,
.card.cozy {
  position: relative;
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 24px;
  box-shadow: 0 8px 0 var(--ink), 0 20px 34px rgb(40 30 10 / 0.25);
  padding: 14px;
}

.cozy .window {
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 15px;
  background: var(--cream);
}

.cozy .window img,
.cozy .window video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cozy .pill {
  display: inline-block;
  padding: 5px 18px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  font-weight: 900;
  box-shadow: 0 4px 0 var(--ink);
}

.cozy .pill.rose {
  background: var(--rose);
  color: var(--cream);
}

.cozy .pill.gold {
  background: var(--gold);
}

.cozy .pill.green {
  background: var(--meadow);
}

.cozy .pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.cozy .btn-c {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  cursor: pointer;
  padding: 11px 28px 13px;
  border: 4px solid var(--ink);
  border-radius: 18px;
  background: var(--rose);
  box-shadow: 0 6px 0 var(--ink);
  color: var(--cream);
  font-weight: 1000;
  font-size: 21px;
  text-decoration: none;
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  transition: translate 0.12s ease, box-shadow 0.12s ease;
}

.cozy .btn-c:hover {
  translate: 0 -2px;
  box-shadow: 0 8px 0 var(--ink);
}

.cozy .btn-c:active {
  translate: 0 4px;
  box-shadow: 0 2px 0 var(--ink);
}

.cozy .btn-c.paper {
  background: var(--cream);
  color: var(--ink);
  -webkit-text-stroke: 0;
}

.cozy .btn-c.green {
  background: var(--meadow);
}

.cozy .btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
}

/* A heart badge (the game's stamp). */
.cozy .heart {
  position: relative;
  display: grid;
  place-items: center;
  width: 118px;
  aspect-ratio: 1;
  rotate: 8deg;
}

.cozy .heart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cozy .heart span {
  position: relative;
  margin-top: -8px;
  font-weight: 1000;
  font-size: 22px;
  color: var(--cream);
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  text-align: center;
  line-height: 1.05;
}

/* ---- Lustlands' own page ---- */

.cozy .top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 4px solid var(--ink);
  box-shadow: 0 4px 0 rgb(58 42 32 / 0.2);
}

.cozy .brand {
  font-family: "Nunito", sans-serif;
  font-weight: 1000;
  font-size: 23px;
  letter-spacing: 0;
}

.cozy .nav a {
  padding: 5px 16px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 3px 0 var(--ink);
  font-weight: 900;
  text-decoration: none;
  transition: translate 0.12s ease;
}

.cozy .nav a:hover {
  translate: 0 -2px;
}

.cozy .nav a[aria-current="page"] {
  background: var(--meadow);
}

.cozy .nav a.cta {
  background: var(--rose);
  color: var(--cream);
}

.cozy .lang-now {
  padding: 4px 14px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 3px 0 var(--ink);
  color: var(--ink);
  font-weight: 900;
}

.cozy .lang-now[aria-expanded="true"] {
  background: var(--meadow-light);
}

.cozy .lang-list {
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 6px 0 var(--ink), 0 16px 30px rgb(40 30 10 / 0.25);
}

.cozy .lang-list button {
  border-radius: 10px;
  font-weight: 800;
}

.cozy .lang-list button:hover,
.cozy .lang-list button:focus-visible {
  background: var(--meadow-light);
  outline: none;
}

.cozy .lang-list button[aria-current="true"] {
  background: var(--ink);
  color: var(--cream);
}

.cozy .hero {
  position: relative;
  z-index: 1;
  padding: 70px 0 60px;
}

.cozy .hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.cozy .hero .word {
  font-size: clamp(64px, 9vw, 132px);
}

.cozy .hero .copy {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.cozy .hero .copy p {
  font-size: 20px;
  font-weight: 700;
}

.cozy .hero .card {
  rotate: 1.5deg;
}

.cozy .hero .window {
  aspect-ratio: 16 / 9;
}

.cozy .hero .heart {
  position: absolute;
  right: -30px;
  bottom: -40px;
}

.cozy .section {
  position: relative;
  z-index: 1;
  padding: 70px 0;
}

.cozy .section-head {
  display: grid;
  gap: 14px;
  justify-items: start;
  margin-bottom: 34px;
}

.cozy .section-head .word {
  font-size: clamp(40px, 6vw, 70px);
}

.cozy .section-head p {
  max-width: 760px;
  font-size: 19px;
  font-weight: 700;
}

.cozy .lead-card {
  max-width: 860px;
  font-size: 19px;
  font-weight: 700;
}

/* How it plays: three steps. */
.cozy .steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.cozy .step {
  display: grid;
  gap: 14px;
}

.cozy .step .window {
  aspect-ratio: 16 / 10;
}

.cozy .step h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 1000;
}

.cozy .step h3 b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--gold);
  box-shadow: 0 3px 0 var(--ink);
}

.cozy .step p {
  font-weight: 700;
}

/* The four lands, like the game's land picker: each card in its land's colours. */
.cozy .lands {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cozy .land {
  --land-soft: color-mix(in srgb, var(--land-accent) 22%, var(--land-paper));
  display: grid;
  gap: 12px;
  align-content: start;
  background: var(--land-paper, var(--paper));
  box-shadow: inset 0 0 0 5px var(--land-paper, var(--paper)), inset 0 0 0 8px var(--land-soft, var(--pink)), 0 8px 0 var(--ink), 0 20px 34px rgb(40 30 10 / 0.25);
}

.cozy .land .window {
  position: relative;
  aspect-ratio: 16 / 10;
}

.cozy .land .tag {
  position: absolute;
  left: 50%;
  bottom: 10px;
  translate: -50% 0;
  padding: 2px 20px 5px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--land-accent);
  box-shadow: 0 3px 0 var(--ink);
  color: var(--cream);
  font-weight: 1000;
  font-size: 22px;
  white-space: nowrap;
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
}

.cozy .girls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.cozy .girl {
  display: grid;
  gap: 2px;
  justify-items: center;
  text-align: center;
  min-width: 0;
}

.cozy .girl img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 12%;
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--ink);
  margin-bottom: 4px;
  background: var(--cream);
}

.cozy .girl b {
  font-size: 15px;
  font-weight: 1000;
}

.cozy .girl small {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  opacity: 0.75;
}

.cozy .land .flavor {
  font-style: italic;
  font-weight: 700;
  font-size: 15px;
}

.cozy .land .legacy {
  padding: 8px 12px;
  border: 2px dashed rgb(58 42 32 / 0.45);
  border-radius: 12px;
  background: var(--land-soft, var(--pink));
  font-size: 13.5px;
  font-weight: 800;
}

/* The features. */
.cozy .features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.cozy .feature {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
  align-items: center;
}

.cozy .feature .window {
  aspect-ratio: 16 / 10;
}

.cozy .feature h3 {
  font-size: 23px;
  font-weight: 1000;
  margin-bottom: 6px;
}

.cozy .feature p {
  font-weight: 700;
  font-size: 16px;
}

.cozy .gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--ink);
  transition: translate 0.2s ease;
}

.cozy .gallery img:hover {
  translate: 0 -3px;
}

.cozy .support-c {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
  padding: 36px 24px 40px;
}

.cozy .support-c .word {
  font-size: clamp(36px, 5vw, 60px);
}

.cozy .support-c p {
  max-width: 680px;
  font-size: 18px;
  font-weight: 700;
}

.cozy .gate {
  background: rgb(95 143 68 / 0.97);
}

.cozy .gate-box {
  display: grid;
  gap: 20px;
  justify-items: center;
  padding: 34px 28px 36px;
}

.cozy .gate-box .word {
  font-size: clamp(48px, 9vw, 86px);
}

.cozy .gate-box p {
  font-size: 18px;
  font-weight: 700;
}

.cozy .foot {
  position: relative;
  z-index: 1;
  padding: 44px 0 36px;
  background: var(--cream);
  border-top: 4px solid var(--ink);
  font-weight: 700;
  font-size: 15px;
}

/* ---- Lustlands' card on the studio's page ---- */

.project-lu.cozy {
  display: grid;
  gap: 16px;
  rotate: 1deg;
}

.project-lu .window {
  aspect-ratio: 16 / 10;
}

.project-lu .word {
  font-size: clamp(42px, 5vw, 64px);
  margin-top: -2px;
}

.project-lu p {
  font-weight: 700;
}

.project-lu .heart {
  position: absolute;
  right: -26px;
  top: -34px;
  width: 104px;
}

@media (max-width: 1000px) {
  .cozy .lands {
    grid-template-columns: repeat(2, 1fr);
  }

  .cozy .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .cozy .hero .wrap,
  .cozy .steps {
    grid-template-columns: 1fr;
  }

  .cozy .hero .heart {
    right: -6px;
  }
}

@media (max-width: 560px) {
  .cozy .lands,
  .cozy .feature {
    grid-template-columns: 1fr;
  }

  .project-lu .heart {
    right: -6px;
  }
}

/* ---- the demo ---- */

.cozy .demo {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 34px;
  align-items: center;
  padding: 18px;
  rotate: -0.6deg;
}

.cozy .demo-shot {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  padding: 0;
  cursor: pointer;
}

.cozy .demo-shot img {
  transition: scale 0.4s ease, filter 0.4s ease;
}

.cozy .demo-shot:hover img {
  scale: 1.04;
  filter: brightness(1.06);
}

.cozy .demo-shot .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgb(58 42 32 / 0.28), transparent 62%);
}

.cozy .demo-shot .play svg {
  width: clamp(84px, 11vw, 132px);
  filter: drop-shadow(0 6px 0 var(--ink));
  transition: scale 0.15s ease;
}

.cozy .demo-shot:hover .play svg {
  scale: 1.08;
}

.cozy .demo-copy {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.cozy .demo-copy .word {
  font-size: clamp(42px, 5.4vw, 72px);
}

.cozy .demo-copy p {
  font-size: 18px;
  font-weight: 700;
}

.cozy .demo-facts {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 800;
}

.cozy .demo-facts li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.cozy .demo-facts li::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--rose);
  translate: 0 1px;
}

.cozy .demo-note {
  font-size: 15px !important;
  opacity: 0.75;
}

.cozy .btn-c.small {
  padding: 5px 16px 7px;
  border-radius: 14px;
  font-size: 16px;
  box-shadow: 0 4px 0 var(--ink);
}

.demo-modal.cozy,
.cozy .demo-modal {
  background: rgb(36 52 24 / 0.86);
  backdrop-filter: blur(4px);
}

.cozy .demo-box {
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 8px 0 var(--ink), 0 30px 60px rgb(0 0 0 / 0.45);
}

.cozy .demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 10px 14px;
  border-bottom: 4px solid var(--ink);
  background: var(--cream);
}

.cozy .demo-bar b {
  font-size: 22px;
  font-weight: 1000;
}

.cozy .demo-bar .grow {
  flex: 1;
}

.cozy .demo-bar .pill {
  padding: 1px 12px;
  font-size: 14px;
}

.cozy .demo-end {
  background: rgb(36 52 24 / 0.72);
}

.cozy .demo-end .card {
  display: grid;
  gap: 16px;
  justify-items: center;
  max-width: 640px;
  padding: 30px 28px 32px;
  text-align: center;
}

.cozy .demo-end .word {
  font-size: clamp(40px, 6vw, 66px);
}

.cozy .demo-end p {
  font-size: 18px;
  font-weight: 700;
}

.cozy .demo-end .btns {
  justify-content: center;
}

/* ---- the crypto wallet, in the support card ---- */

.cozy .donate-c {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  width: min(720px, 100%);
  margin-top: 8px;
  padding-top: 22px;
  border-top: 3px dashed rgb(58 42 32 / 0.35);
  text-align: start;
}

.cozy .donate-c > div {
  display: grid;
  gap: 10px;
}

.cozy .donate-c .qr {
  width: 124px;
  height: 124px;
  padding: 5px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: #fff;
}

.cozy .donate-c h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 22px;
  font-weight: 1000;
}

.cozy .donate-c code {
  padding: 6px 10px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--cream);
}

.cozy .donate-c .btn-c {
  padding: 5px 16px 7px;
  font-size: 16px;
  box-shadow: 0 4px 0 var(--ink);
}

.cozy .donate-c small {
  font-size: 14px;
  opacity: 0.75;
}

.cozy .pill.sol {
  padding: 1px 14px 3px;
  background: linear-gradient(100deg, #9945ff, #14f195);
  color: var(--cream);
  font-size: 15px;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
}

@media (max-width: 860px) {
  .cozy .demo {
    grid-template-columns: 1fr;
    rotate: 0deg;
  }
}

@media (max-width: 560px) {
  .cozy .donate-c {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .cozy .donate-c h3 {
    justify-content: center;
  }
}

/* Keyboard focus: a ring that follows the rounded corners. */
.cozy .btn-c:focus-visible,
.cozy .nav a:focus-visible,
.cozy .lang-now:focus-visible,
.cozy .demo-shot:focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 4px;
}
