/* Trickle: one long scrolling page in the game's own evening palette.
   Deep plum night, warm cream type, lamp-light amber, rain blue and Aqua's pink bow.
   Handwritten headlines (Caveat), rounded body text (Nunito), the houses glowing through rainy glass.
   Built on the same layout as wreckingballcrew.com. */
@font-face { font-family: "Trickle Hand"; src: url("/fonts/hand-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Trickle Body"; src: url("/fonts/body-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Trickle Body"; src: url("/fonts/body-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Trickle Body"; src: url("/fonts/body-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Trickle Body"; src: url("/fonts/body-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --night: #1d1724;
  --night-2: #261d2f;
  --night-3: #322640;
  --line: #3e3046;
  --ink: #f7ecdd;
  --ink-soft: #c9b8ad;
  --amber: #f2a65a;
  --amber-soft: #ffd59a;
  --blue: #8bbbe8;
  --pink: #ff86ad;
  --paper: #fbf3e6;
  --paper-ink: #3a2c35;
  --hand: "Trickle Hand", "Bradley Hand", "Segoe Print", cursive;
  --body: "Trickle Body", ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--night); color: var(--ink); font: 600 18px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

/* headlines: handwritten, with a soft lamp glow */
.head { margin: 0; font: 700 clamp(48px, 6.6vw, 88px)/.95 var(--hand); color: var(--ink); text-shadow: 0 0 28px rgba(242,166,90,.35); text-wrap: balance; }
.lead { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-soft); max-width: 36ch; }
.lead b { color: var(--ink); font-weight: 800; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 80% at 70% 40%, rgba(242,166,90,.16), transparent 60%), linear-gradient(180deg, #2a2038 0%, var(--night) 100%);
  border-radius: 0 0 50% 50% / 0 0 clamp(36px, 7vw, 110px) clamp(36px, 7vw, 110px); }
.hero::before { content: ""; position: absolute; inset: -10%; z-index: -1; background: url("/img/hero-blur.jpg") center / cover no-repeat; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(29,23,36,.92) 0%, rgba(29,23,36,.55) 45%, rgba(29,23,36,.25) 100%); }
.hero-inner { display: grid; gap: clamp(30px, 5vw, 70px); align-items: center; padding-block: clamp(40px, 7vh, 90px) clamp(70px, 10vh, 120px); }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.05fr .95fr; min-height: min(100svh, 940px); } }
.hero-copy { display: grid; gap: 20px; justify-items: start; }
@media (max-width: 899px) { .hero-copy { justify-items: center; text-align: center; } .hero-copy .lead { margin-inline: auto; } }
.logo { margin: 0; font: 700 clamp(96px, 15vw, 196px)/.8 var(--hand); color: var(--ink); letter-spacing: -.01em; text-shadow: 0 0 40px rgba(242,166,90,.45), 0 4px 0 rgba(0,0,0,.25); }
.slogan { margin: 0; font: 700 clamp(28px, 3.4vw, 44px)/1.05 var(--hand); color: var(--amber-soft); }
.tag { margin: 0; font: 800 14px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--night); background: var(--blue); padding: 9px 14px; border-radius: 999px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 6px; }
@media (max-width: 899px) { .hero-cta { justify-content: center; } }
.store { display: inline-grid; text-align: left; background: #000; color: #fff; border-radius: 12px; padding: 9px 20px 10px; line-height: 1.05; text-decoration: none; border: 1.5px solid #a6a6a6; }
.store small { font: 600 12px var(--body); letter-spacing: .02em; }
.store b { font: 800 24px var(--body); letter-spacing: -.01em; }

/* the arched window the hero house is seen through, with rain running down the glass */
.window { position: relative; justify-self: center; width: min(100%, 440px); aspect-ratio: 2 / 3; border-radius: 220px 220px 18px 18px / 160px 160px 18px 18px; padding: 14px;
  background: linear-gradient(160deg, #5b4560, #2c2233 60%, #3b2d42); box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 90px rgba(242,166,90,.18), inset 0 2px 0 rgba(255,255,255,.12); }
.window .glass { position: relative; width: 100%; height: 100%; border-radius: 206px 206px 8px 8px / 148px 148px 8px 8px; overflow: hidden; background: #2a2038; }
.window .glass img { width: 100%; height: 100%; object-fit: cover; }
.window canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sill { position: absolute; left: -6%; right: -6%; bottom: -16px; height: 26px; border-radius: 6px; background: linear-gradient(#6a5262, #3b2d42); box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.window .aqua-peek { position: absolute; z-index: 3; width: clamp(64px, 7vw, 92px); right: -5%; bottom: 2px; }

.down { position: absolute; z-index: 2; left: 50%; bottom: clamp(18px, 3vw, 34px); width: 46px; height: 46px; margin-left: -23px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--night); box-shadow: 0 3px 0 rgba(0,0,0,.3); text-decoration: none; }
.down svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: no-preference) { .down { animation: nudge 1.8s ease-in-out infinite; } }
@keyframes nudge { 50% { transform: translateY(6px); } }

/* ---------- sections ---------- */
section.band { padding-block: clamp(72px, 10vw, 140px); }
.row { display: grid; gap: clamp(40px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .row { grid-template-columns: 1fr 1fr; } .row.flip .copy { order: 2; } }
.copy { display: grid; gap: 20px; align-content: center; min-width: 0; }
.row > *, .note-wrap > * { min-width: 0; }
@media (max-width: 899px) { .copy { text-align: center; justify-items: center; } }
.stage { position: relative; min-width: 0; display: grid; justify-items: center; }

/* iPhone frames for the game screens */
.phone { position: relative; margin: 0; width: min(78vw, 330px); aspect-ratio: 645 / 1398; padding: 10px; border-radius: 52px; background: linear-gradient(150deg, #4a3b52, #18131d 55%, #3a2d42);
  box-shadow: 0 28px 60px rgba(0,0,0,.5), 0 0 0 1.5px rgba(255,255,255,.08) inset, 0 0 70px rgba(242,166,90,.12); transform: rotate(var(--tilt, 0deg)); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 43px; }
.phone::after { content: ""; position: absolute; top: 20px; left: 50%; width: 30%; height: 26px; margin-left: -15%; border-radius: 20px; background: #0b080e; }
.phone.l { --tilt: -3deg; }
.phone.r { --tilt: 3deg; }

/* little game pieces floating around the screens */
.prop { position: absolute; z-index: 3; pointer-events: none; filter: drop-shadow(0 10px 8px rgba(0,0,0,.35)); }
.prop svg { display: block; width: 100%; height: auto; }
.p-aqua { width: clamp(78px, 9vw, 120px); left: 2%; top: 4%; }
.p-heart { width: clamp(34px, 3.6vw, 48px); right: 6%; top: 10%; transform: rotate(14deg); }
.p-heart2 { width: clamp(26px, 2.8vw, 36px); left: 8%; bottom: 14%; transform: rotate(-16deg); }
@media (min-width: 900px) { .p-aqua { left: 4%; } }
@media (prefers-reduced-motion: no-preference) {
  .p-aqua { animation: bob 3.6s ease-in-out infinite alternate; }
  .p-heart, .p-heart2 { animation: float 4.4s ease-in-out infinite alternate; }
  @keyframes bob { from { transform: translateY(-6px) rotate(-4deg); } to { transform: translateY(8px) rotate(5deg); } }
  @keyframes float { from { translate: 0 -5px; } to { translate: 0 7px; } }
}

/* the note left on the windowsill */
.note-wrap { display: grid; gap: clamp(48px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .note-wrap { grid-template-columns: 1fr 1fr; } }
.note { position: relative; justify-self: center; width: 100%; max-width: 520px; background: var(--paper); color: var(--paper-ink); border-radius: 6px; padding: clamp(26px, 3.4vw, 40px);
  box-shadow: 0 22px 50px rgba(0,0,0,.45); transform: rotate(-2deg); display: grid; gap: 12px;
  background-image: repeating-linear-gradient(transparent 0 33px, rgba(139,187,232,.35) 33px 34px); background-position: 0 58px; }
.note::before { content: ""; position: absolute; top: -16px; left: 50%; width: 120px; height: 34px; margin-left: -60px; background: rgba(255,226,180,.75); transform: rotate(3deg); box-shadow: 0 2px 4px rgba(0,0,0,.12); }
.note .to { font: 800 13px var(--body); letter-spacing: .16em; text-transform: uppercase; color: #8b6f7a; display: flex; justify-content: space-between; border-bottom: 2px solid rgba(58,44,53,.2); padding-bottom: 8px; }
.note p { margin: 0; font: 700 clamp(25px, 2.6vw, 30px)/34px var(--hand); }
.note .sign { font-size: clamp(34px, 3.4vw, 42px); color: #c2557c; transform: rotate(-3deg); margin-top: 4px; }
.seal { position: absolute; right: 22px; bottom: 22px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #ff9fbf, #d9557f 60%, #b83f67); box-shadow: 0 3px 6px rgba(0,0,0,.25), inset 0 -3px 6px rgba(0,0,0,.2); transform: rotate(-10deg); }
.seal svg { width: 30px; fill: rgba(255,255,255,.85); }

/* houses gallery */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.house { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: var(--night-2); box-shadow: 0 16px 34px rgba(0,0,0,.4); transform: rotate(var(--tilt, 0deg)); }
.house img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.house figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(20,15,26,.88)); display: grid; gap: 0; }
.house b { font: 700 clamp(22px, 2.2vw, 28px)/1.05 var(--hand); color: var(--ink); }
.house span { font: 800 11px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--amber-soft); }
.gallery .house:nth-child(4n+1) { --tilt: -1.5deg; }
.gallery .house:nth-child(4n+2) { --tilt: 1.2deg; margin-top: 18px; }
.gallery .house:nth-child(4n+3) { --tilt: -1deg; margin-top: -6px; }
.gallery .house:nth-child(4n+4) { --tilt: 1.6deg; margin-top: 12px; }

/* three phones fanned out */
.fan { position: relative; min-width: 0; display: flex; justify-content: center; align-items: center; padding-block: 10px; }
.fan .phone { width: min(34vw, 250px); flex: none; }
@media (min-width: 900px) { .row.wide { grid-template-columns: 1.25fr 1fr; } .fan .phone { width: min(17vw, 240px); } }
.fan .phone:nth-child(1) { --tilt: -7deg; margin-right: -9%; margin-top: 30px; }
.fan .phone:nth-child(2) { z-index: 2; }
.fan .phone:nth-child(3) { --tilt: 7deg; margin-left: -9%; margin-top: 30px; }
@media (max-width: 600px) { .fan .phone { width: 36vw; border-radius: 34px; padding: 6px; } .fan .phone img { border-radius: 29px; } .fan .phone::after { top: 12px; height: 14px; } }

/* rain divider */
.rain-line { height: 60px; background:
  radial-gradient(circle at 10% 30%, rgba(139,187,232,.5) 0 3px, transparent 4px),
  radial-gradient(circle at 34% 70%, rgba(139,187,232,.4) 0 2px, transparent 3px),
  radial-gradient(circle at 58% 40%, rgba(139,187,232,.5) 0 3px, transparent 4px),
  radial-gradient(circle at 82% 65%, rgba(139,187,232,.4) 0 2px, transparent 3px);
  background-size: 180px 60px; opacity: .8; }

/* night band: the whole house glows */
.nightband { position: relative; color: var(--ink); background: #0f1420 url("/img/night.jpg") right center / cover no-repeat; border-radius: 50% 50% 0 0 / clamp(30px, 6vw, 90px) clamp(30px, 6vw, 90px) 0 0; overflow: hidden; }
.nightband::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,13,24,.95) 0%, rgba(17,13,24,.8) 40%, rgba(17,13,24,.1) 78%); }
@media (max-width: 899px) { .nightband::before { background: rgba(17,13,24,.78); } }
.nightband .wrap { position: relative; }
.nightband .head { max-width: 11ch; }
.nightband .lead { color: #e2d6cc; }
.nightband .copy { padding-block: clamp(40px, 6vw, 90px); }

/* fair and simple */
.fair { width: 100%; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 40px; text-align: left; }
.fair div { background: var(--night-2); border: 1.5px solid var(--line); border-radius: 18px; padding: 24px 22px; box-shadow: 0 12px 30px rgba(0,0,0,.25); display: grid; gap: 6px; align-content: start; }
.fair b { font: 900 clamp(30px, 2.7vw, 36px)/1.05 var(--body); letter-spacing: -.01em; color: var(--amber-soft); }
.fair span { color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
.center { text-align: center; display: grid; justify-items: center; gap: 20px; }

/* closing */
.closing { padding-block: clamp(80px, 11vw, 150px) clamp(90px, 12vw, 160px); background: radial-gradient(60% 70% at 50% 60%, rgba(242,166,90,.14), transparent 70%); }
.closing .head { font-size: clamp(56px, 8.6vw, 120px); line-height: 1; margin-bottom: 6px; }
.closing .icon { width: 108px; border-radius: 24px; box-shadow: 0 16px 40px rgba(0,0,0,.45), 0 0 50px rgba(139,187,232,.25); }

/* ---------- footer ---------- */
.foot { background: #140f19; color: var(--ink-soft); padding-block: 42px max(36px, env(safe-area-inset-bottom)); font-size: 15px; }
.foot .wrap { display: grid; gap: 26px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding-top: 22px; }
.foot .mk { width: 89px; height: auto; opacity: .85; }
.foot .store { border-color: #555; }

/* gentle scroll motion where the browser supports it; everything is fully visible without it */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    @keyframes rise { from { transform: translateY(46px) rotate(var(--tilt, 0deg)); } to { transform: translateY(0) rotate(var(--tilt, 0deg)); } }
  }
}

/* ---------- support and legal pages ---------- */
.doc-top { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #2a2038, var(--night)); border-radius: 0 0 50% 50% / 0 0 40px 40px; padding: 30px 0 46px; text-align: center; }
.doc-top::before { content: ""; position: absolute; inset: -20%; z-index: -1; background: url("/img/hero-blur.jpg") center 40% / cover no-repeat; opacity: .5; }
.doc-top a { text-decoration: none; display: inline-flex; align-items: center; gap: 14px; }
.doc-top img { width: 56px; border-radius: 13px; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.doc-top .logo { font-size: clamp(64px, 9vw, 92px); }
.doc { padding-block: 56px 90px; }
.doc .wrap { max-width: 780px; }
.doc h1 { margin: 0 0 8px; font: 700 clamp(52px, 7vw, 76px)/.95 var(--hand); text-shadow: 0 0 24px rgba(242,166,90,.3); }
.doc .meta { margin: 0 0 6px; font-size: 15px; color: var(--ink-soft); }
.doc .co { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; font-size: 15px; color: var(--ink-soft); }
.doc .co img { width: 89px; height: auto; }
.doc h2 { margin: 38px 0 10px; font: 700 34px/1.05 var(--hand); color: var(--amber-soft); }
.doc h3 { margin: 22px 0 6px; font-size: 18px; font-weight: 800; }
.doc p, .doc li { font-size: 17px; color: #e9ddd2; }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--ink); font-weight: 800; }
.doc .summary { background: var(--night-2); border: 1.5px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 8px 0 8px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.doc .summary p:last-child, .doc .summary ul:last-child { margin-bottom: 0; }
.doc a { color: var(--ink); text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.faq { display: grid; gap: 12px; margin-top: 10px; }
.faq details { background: var(--night-2); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 28px/1 var(--hand); color: var(--amber); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; }
.mail { display: inline-block; font: 800 clamp(20px, 2.8vw, 26px)/1.1 var(--body); background: var(--amber); color: var(--night) !important; padding: 12px 18px; border-radius: 14px; box-shadow: 0 8px 24px rgba(242,166,90,.25); text-decoration: none !important; word-break: break-all; }
