/* towdle.com: the same look as the game (Lilita One + Nunito, painted farm, wood panels) */
:root {
  --ink: #3A2412; --muted: #6E5440; --gold: #FFD23F; --gold2: #F2A93B; --brown: #5B3B1F; --grass: #4AAE45;
  --paper: #FFF8E8; --line: #E8D9BE;
  --display: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 700 17px/1.6 var(--body); }
a { color: #A45412; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font: 400 26px var(--display); }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.top nav { display: flex; gap: 18px; font: 800 15px var(--body); }
.top nav a { color: inherit; text-decoration: none; opacity: .85; }
.top nav a:hover { opacity: 1; text-decoration: underline; }
.over .top { color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.45); }

/* hero: the painted farm from the game */
.hero { position: relative; background: #7DBE52 url(img/farm.webp) center 30% / cover no-repeat; color: #fff; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,40,10,.45), rgba(20,40,10,.15) 40%, rgba(40,24,8,.55)); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.heroIn { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px; padding-top: 24px; padding-bottom: 56px; }
.hero h1 { margin: 0; font: 400 clamp(52px, 9vw, 96px)/.95 var(--display); color: var(--gold); -webkit-text-stroke: 6px var(--brown); paint-order: stroke fill; text-shadow: 0 6px 0 var(--brown); letter-spacing: 1px; }
.hero .tag { margin: 18px 0 0; font: 800 clamp(18px, 2.4vw, 22px)/1.45 var(--body); text-shadow: 0 2px 8px rgba(0,0,0,.6); max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; align-items: center; }
.play { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 18px; border: 3px solid #8A4B12; background: linear-gradient(#FFE07A, var(--gold2)); color: var(--ink); text-decoration: none; font: 400 26px var(--display); box-shadow: 0 6px 0 #8A4B12, 0 10px 24px rgba(0,0,0,.35); }
.play:hover { filter: brightness(1.05); } .play:active { transform: translateY(3px); box-shadow: 0 3px 0 #8A4B12; }
.badge { display: inline-grid; padding: 8px 16px; border-radius: 12px; background: rgba(20,20,24,.82); color: #fff; font: 800 15px/1.15 var(--body); }
.badge small { font: 700 11px var(--body); opacity: .75; }
.phones { display: flex; justify-content: center; }
.phone { width: min(300px, 70vw); border-radius: 34px; border: 8px solid #1B1B1F; box-shadow: 0 24px 60px rgba(0,0,0,.45); overflow: hidden; transform: rotate(2deg); background: #1B1B1F; }

/* features */
.feats { padding: 56px 0 24px; }
.feats h2 { font: 400 clamp(32px, 5vw, 44px)/1.1 var(--display); margin: 0 0 28px; text-align: center; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #FFFDF7; border: 3px solid var(--line); border-radius: 24px; overflow: hidden; }
.card img { aspect-ratio: 390 / 560; object-fit: cover; object-position: top; width: 100%; border-bottom: 3px solid var(--line); }
.card .t { padding: 16px 18px 20px; }
.card h3 { margin: 0 0 4px; font: 400 26px var(--display); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.rigs { margin: 48px auto 0; max-width: 760px; text-align: center; color: var(--muted); }
.bottomCta { text-align: center; padding: 28px 0 64px; }

/* legal pages */
main.legal { max-width: 780px; margin: 0 auto; padding: 24px 16px 56px; font-weight: 600; }
main.legal h1 { font: 400 40px/1.1 var(--display); margin: 8px 0 4px; }
main.legal h2 { font: 400 24px var(--display); margin: 34px 0 6px; }
.eff { color: var(--muted); margin: 0 0 22px; }
.tbl { overflow-x: auto; } table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); } th { background: #F4E7CF; }

footer { background: #3B2A1E url(img/wood-dark.webp) center / 384px auto; color: #F5E6CC; padding: 28px 0 34px; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; }
footer a { color: #FFE07A; }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 820px) {
  .heroIn { grid-template-columns: 1fr; text-align: center; padding-bottom: 40px; }
  .hero .tag { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .phone { transform: none; width: min(260px, 70vw); }
  .grid3 { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .top nav { gap: 12px; font-size: 14px; }
}

/* Google Play (10 Nov 2026): the badge leads on Android and on a computer (with a QR code for the phone) */
.gp img { height: 64px; width: auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.qr { display: none; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 16px; background: #fff; color: var(--ink); font: 800 14px/1.3 var(--body); box-shadow: 0 6px 18px rgba(0,0,0,.3); text-shadow: none; }
.qr img { width: 116px; height: 116px; image-rendering: pixelated; } /* 29 modules x 4 px: sharp enough for every phone camera */
.desk .qr { display: inline-flex; }
/* App Store (13 Nov 2026): the official badge next to Google Play; Apple's badge has no padding of its own, Google's PNG has, so it is drawn lower to look the same size */
.as img { height: 50px; width: auto; margin: 7px 6px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); display: block; }
.ios .gp, .android .as { display: none; }
.ios .cta .as img { height: 54px; }
.cta .play { font-size: 20px; padding: 10px 20px; }
.android .cta .gp img { height: 72px; }
.bottomCta .stores { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; }

/* the store screenshots and the video, in a row you swipe */
.shots { padding: 24px 0 8px; }
.shots h2 { font: 400 clamp(32px, 5vw, 44px)/1.1 var(--display); margin: 0 0 20px; text-align: center; }
.shotRow { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(16px, calc((100vw - 1080px) / 2 + 16px)) 18px; scrollbar-width: none; }
.shotRow::-webkit-scrollbar { display: none; }
.shotRow > * { flex: 0 0 auto; width: min(240px, 62vw); aspect-ratio: 9 / 16; scroll-snap-align: center; border-radius: 20px; overflow: hidden; box-shadow: 0 8px 20px rgba(60,36,10,.25); }
.shotRow > img { object-fit: cover; height: auto; } .vid img { width: 100%; height: 100%; object-fit: cover; }
.vid { position: relative; padding: 0; border: 0; cursor: pointer; background: #1B1B1F; }
.vid .pb { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.6); color: #fff; font-size: 30px; padding-left: 6px; }
.vidF { border: 0; background: #000; }
.arrows { display: flex; justify-content: center; gap: 14px; }
.arrows button { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #8A4B12; background: linear-gradient(#FFE07A, var(--gold2)); color: var(--ink); font: 400 26px/1 var(--display); cursor: pointer; box-shadow: 0 4px 0 #8A4B12; }
.android .arrows, .ios .arrows { display: none; }
.bottomCta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.play.small { font-size: 18px; padding: 8px 18px; box-shadow: 0 4px 0 #8A4B12; }
