/* ===========================================================
   This Is Locked landing page
   The game's "HD blocky" look: flat fills, 3px ink outlines,
   hard offset shadows, square corners, no gradients. Colours
   mirror the app's style.css tokens; gold is the hero.
   =========================================================== */

@font-face {
  font-family: 'Bungee';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('bungee.woff2') format('woff2');
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('rubik.woff2') format('woff2');
}

:root {
  --gold:      #e0b03a;
  --gold-deep: #c39a33;
  --ink:       #16181d;
  --ink-soft:  #646872;
  --page:      #ffffff;
  --panel:     #ffffff;
  --panel-2:   #eef0f5;
  --rule:      #ececed;
  --night:     #15171d;
  --night-2:   #1f232b;
  --night-ink: #e9eaee;
  --night-soft:#868b97;
  --blue:      #2f7bff;
  --red:       #ff4b3e;
  --green:     #2ec267;
  --purple:    #8a5cf5;
  --wood:      #c8743a;

  --line: 3px solid var(--ink);
  --lift: 5px;

  --font-display: 'Bungee', 'Arial Black', Impact, sans-serif;
  --font-body: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  background: var(--page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ===========================================================
   Shell: full-bleed colour bands around a centred column
   =========================================================== */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(32px, env(safe-area-inset-left));
  padding-right: max(32px, env(safe-area-inset-right));
}
.band--gold {
  background: var(--gold);
  border-bottom: var(--line);
  padding-top: max(24px, env(safe-area-inset-top));
}
.band--night {
  background: var(--night);
  color: var(--night-ink);
  border-top: var(--line);
  padding-bottom: max(40px, env(safe-area-inset-bottom));
}

/* Shared block: a panel in an ink outline with a hard shadow */
.card {
  background: var(--panel);
  border: var(--line);
  box-shadow: var(--lift) var(--lift) 0 var(--ink);
}

/* Buttons press down into their shadow */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 15px;
  text-decoration: none;
  padding: 13px 20px;
  border: var(--line);
  box-shadow: var(--lift) var(--lift) 0 var(--ink);
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: calc(var(--lift) + 1px) calc(var(--lift) + 1px) 0 var(--ink); }
.btn:active { transform: translate(var(--lift), var(--lift)); box-shadow: 0 0 0 var(--ink); }
.btn--ink  { background: var(--ink);  color: #fff; }
.btn--gold { background: var(--gold); color: var(--ink); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Top bar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0 24px;
}
.back-link {
  font-family: var(--font-display);
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--panel);
  border: var(--line);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.08s, box-shadow 0.08s;
}
.back-link:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.studio-tag {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(22, 24, 29, 0.7);
}
.studio-tag a { text-decoration: none; color: var(--ink); }
.studio-tag a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 24px 0 72px;
}
.hero__content { display: flex; flex-direction: column; gap: 26px; min-width: 0; }

.brand { display: flex; align-items: center; gap: 22px; }
.brand__icon {
  flex-shrink: 0;
  width: 124px;
  height: 124px;
  padding: 0;
  border: var(--line);
  background: var(--ink);
  box-shadow: var(--lift) var(--lift) 0 var(--ink);
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
}
.brand__icon:active { transform: translate(var(--lift), var(--lift)); box-shadow: 0 0 0 var(--ink); }
.brand__icon svg { display: block; width: 100%; height: 100%; }
.padlock__shackle { transition: transform 0.28s cubic-bezier(0.3, 1.6, 0.5, 1); }
.brand__icon.is-open .padlock__shackle { transform: translateY(-120px); }

.brand__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero__tag {
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.4;
  max-width: 460px;
  text-wrap: pretty;
}
.hero__tag em {
  font-style: normal;
  font-weight: 700;
  background: var(--ink);
  color: var(--gold);
  padding: 0 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.stores { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex;
  width: 168px;
  height: 52px;
  transition: transform 0.12s;
}
.store-badge img { width: 100%; height: 100%; object-fit: contain; display: block; }
.store-badge:hover { transform: translateY(-2px); }


/* Two phones, overlapping, like the store listing */
.hero__shot {
  position: relative;
  display: flex;
  justify-content: center;
  min-width: 0;
  padding: 10px 0 20px;
}
.phone {
  background: var(--ink);
  border: 6px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(22, 24, 29, 0.85);
}
.phone img {
  display: block;
  width: 100%;
  aspect-ratio: 1320 / 2868;
  object-fit: cover;
  background: var(--page);
}
.hero__shot .phone { width: min(255px, 44%); }
.phone--back  { transform: rotate(-5deg) translate(28px, 28px); }
.phone--front { transform: rotate(3deg) translateX(-28px); position: relative; z-index: 1; }

/* ===========================================================
   Section headings
   =========================================================== */
.section { padding: 88px 0; }
.section__head {
  text-align: center;
  margin: 0 auto 48px;
  max-width: 680px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.05;
  margin-bottom: 14px;
  text-wrap: balance;
}
.section__lede {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}
.band--night .section__lede { color: var(--night-soft); }

/* ===========================================================
   How it plays
   =========================================================== */
.mechanics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mechanic { padding: 26px 24px 24px; }
.mechanic__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  background: var(--gold);
  border: var(--line);
}
.mechanic__icon svg { width: 24px; height: 24px; }
.mechanic h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.mechanic p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

/* ===========================================================
   Worlds
   =========================================================== */
.worlds {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.world {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px 22px;
  border-top-width: 10px;
}
.world--overworld { border-top-color: var(--blue); }
.world--basement  { border-top-color: var(--purple); }
.world--workshop  { border-top-color: var(--wood); }
.world--garden    { border-top-color: var(--green); }
.world__icon { width: 64px; height: 64px; margin-bottom: 14px; }
.world__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  margin-bottom: 8px;
}
.world__desc { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; flex: 1; }
.world__tag {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 11px;
  padding: 4px 10px;
  border: 2px solid var(--ink);
  background: var(--panel-2);
}
.world__tag--gold { background: var(--gold); }

.supporter {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
  padding: 22px 26px;
  background: var(--green);
  color: #fff;
}
.supporter__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  padding: 6px;
  background: #fff;
  border: var(--line);
}
.supporter h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 4px;
}
.supporter p { font-size: 15.5px; line-height: 1.55; }
.supporter strong { font-weight: 700; }

/* ===========================================================
   Gallery
   =========================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 960px;
  margin: 0 auto;
  gap: 26px;
  align-items: start;
}
.shot { margin: 0; text-align: center; }
.shot:nth-child(even) { margin-top: 40px; }
.shot .phone { box-shadow: 8px 8px 0 var(--ink); transition: transform 0.15s; }
.shot:hover .phone { transform: translate(-2px, -2px); }
.shot figcaption {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 14px;
}

/* ===========================================================
   Web version (dark band)
   =========================================================== */
/* A blocky browser window framing the link to the web version */
.browser {
  border: 3px solid var(--night-ink);
  box-shadow: 10px 10px 0 #000;
  background: var(--page);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  background: var(--night-2);
  border-bottom: 3px solid var(--night-ink);
}
.browser__dots { display: flex; gap: 7px; }
.browser__dots i { width: 12px; height: 12px; border: 2px solid var(--night-ink); }
.browser__dots i:nth-child(1) { background: var(--red); }
.browser__dots i:nth-child(2) { background: var(--gold); }
.browser__dots i:nth-child(3) { background: var(--green); }
.browser__url {
  flex: 1;
  min-width: 0;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--night-ink);
  background: var(--night);
  border: 2px solid var(--night-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser__view {
  position: relative;
  height: 400px;
  color: var(--ink);
}
.browser__lock { width: 76px; height: 76px; border: var(--line); box-shadow: 4px 4px 0 var(--ink); }
.browser__poster {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 32px 20px;
  text-align: center;
}
.browser__poster .btn { align-self: center; font-size: 17px; padding: 16px 26px; }
.browser__hint { font-family: var(--font-display); font-size: 22px; line-height: 1.2; color: var(--ink); }
.browser__note { font-size: 14px; color: var(--ink-soft); }

/* ===========================================================
   Footer
   =========================================================== */
.foot {
  text-align: center;
  padding: 24px 0 8px;
  font-size: 13px;
  color: var(--night-soft);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.foot__sep { color: #3a3f4a; }
.foot a { color: var(--night-ink); text-decoration: none; }
.foot a:hover { color: var(--gold); }

.socials {
  flex-basis: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}
.socials .socials__link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--night-2);
  border: 2px solid var(--night-ink);
  box-shadow: 3px 3px 0 #000;
  color: var(--night-ink);
  transition: transform 0.08s, box-shadow 0.08s, color 0.15s;
}
.socials .socials__link:hover { color: var(--gold); }
.socials .socials__link:active { transform: translate(3px, 3px); box-shadow: 0 0 0 #000; }
.socials svg { width: 17px; height: 17px; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1000px) {
  .mechanics { grid-template-columns: repeat(2, 1fr); }
  .worlds { grid-template-columns: repeat(2, 1fr); }
  .gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 22px;
    padding: 4px 12px 16px 4px;
    margin: 0 -4px;
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 190px; scroll-snap-align: center; }
  .shot:nth-child(even) { margin-top: 0; }
}
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding: 8px 0 56px;
  }
  .hero__content { align-items: center; }
  .brand { flex-direction: column; gap: 18px; }
  .hero__tag { max-width: 480px; }
  .stores { justify-content: center; }
  .btn { align-self: center; }
  .hero__shot { order: -1; }
  .hero__shot .phone { width: min(210px, 42%); }
}
@media (max-width: 600px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .studio-tag { font-size: 10px; letter-spacing: 0.12em; }
  .brand__icon { width: 92px; height: 92px; }
  .section { padding: 60px 0; }
  .section__head { margin-bottom: 36px; }
  .mechanics, .worlds { grid-template-columns: 1fr; gap: 20px; }
  .supporter { flex-direction: column; text-align: center; padding: 22px 20px; }
  .browser { box-shadow: 6px 6px 0 #000; }
  .browser__view { height: auto; min-height: 0; }
  .browser__poster { padding: 44px 18px; }
  .browser__dots { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
