/* Bird quiz of the day: the app's "Dawn Chorus field journal" look (theme/Tokens.kt). */
@font-face { font-family: "Alegreya"; src: url(/fonts/alegreya_800.woff2) format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Source Sans"; src: url(/fonts/sourcesans_400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans"; src: url(/fonts/sourcesans_700.woff2) format("woff2"); font-weight: 600 800; font-display: swap; }

:root {
  --sky-top: #6E6FB2; --sky-mid: #B98AB8; --sky-low: #F4A98A; --horizon: #FFD49A;
  --paper: #FBF3E3; --paper-deep: #F2E4C9; --edge: #D9C29A; --tape: rgba(247, 226, 168, .78);
  --ink: #2F2A3F; --ink-soft: #5E5470; --ink-faint: #9A8E9F; --on-sky: #3A2418; --on-sky-soft: #5B3F33;
  --enamel: #E0674B; --enamel-light: #F5936F; --enamel-deep: #B4462F;
  --teal: #3E8C8A; --brass: #D4A548;
  --r-species: #5E9E5A; --r-genus: #E2B33C; --r-family: #E58A4A; --r-order: #9A6A4A; --r-none: #D8CDBB;
  --display: "Alegreya", Georgia, serif; --body: "Source Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 18px 40px -18px rgba(47, 42, 63, .45), 0 4px 10px -6px rgba(47, 42, 63, .3);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 400 17px/1.55 var(--body); color: var(--ink);
  background: linear-gradient(180deg, #8C83BF 0, #C996B4 260px, #F3B49A 520px, #F8DDB8 760px, var(--paper) 1000px) no-repeat, var(--paper);
  min-height: 100vh; overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--enamel-deep); text-underline-offset: 3px; }
a:hover { color: var(--enamel); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
h1, h2 { font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .4em; }
h1 { font-size: clamp(40px, 10.5vw, 68px); }
h2 { font-size: clamp(24px, 5.6vw, 30px); }
p { margin: 0 0 1em; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.small, .fine { font-size: 14px; color: var(--ink-soft); }
.fine a { color: inherit; }

/* header */
.top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1160px; margin: 0 auto; padding: 12px 16px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--on-sky); padding: 4px 14px 4px 4px;
  border-radius: 999px; background: rgba(251, 243, 227, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.brand span { font: 800 22px/1 var(--display); display: flex; flex-direction: column; }
.brand em { font: 700 11px/1.3 var(--body); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--on-sky-soft); }
.top nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.top nav::-webkit-scrollbar { display: none; }
.top nav { background: rgba(251, 243, 227, .6); border-radius: 999px; padding: 2px; }
.top nav a { padding: 8px 10px; border-radius: 999px; color: var(--on-sky); text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; }
.top nav a:hover { background: rgba(255, 248, 238, .45); }
@media (max-width: 520px) { .top nav a:not(:last-child) { display: none; } }

/* the painted dawn behind the home hero */
.home { position: relative; }
.sky { position: absolute; inset: -72px 0 auto; height: 760px; overflow: hidden; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.sky img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
.hero { position: relative; z-index: 2; max-width: 1160px; margin: 0 auto; padding: 8px 16px 24px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.hero > * { min-width: 0; }
.intro { color: var(--on-sky); padding-top: 8px; }
.intro h1 { color: var(--on-sky); text-shadow: 0 1px 0 rgba(255, 240, 220, .5); }
.eyebrow { font: 700 13px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--on-sky-soft); margin-bottom: 12px; }
.lede { font-size: 19px; color: var(--on-sky-soft); max-width: 34em; }
.crumb { font-size: 14px; color: var(--on-sky-soft); margin-bottom: 10px; }
.crumb a { color: inherit; }
.keys { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px 14px; font-weight: 700; font-size: 15px; }
.keys li { display: flex; align-items: center; gap: 6px; }
.k { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.k.order { background: var(--r-order); } .k.family { background: var(--r-family); } .k.genus { background: var(--r-genus); } .k.species { background: var(--r-species); }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) 500px; gap: 48px; align-items: start; padding-top: 40px; }
  .intro { padding-top: 56px; position: sticky; top: 24px; }
  .sky { height: 900px; }
}

/* the game card */
.game { background: var(--paper); border-radius: 24px; padding: 14px 14px 18px; box-shadow: var(--shadow);
  border: 1px solid rgba(217, 194, 154, .7); position: relative; }
.regions { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px; scrollbar-width: none; }
.regions::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--edge); background: #fffaf0; color: var(--ink-soft); font: 700 14px/1 var(--body);
  padding: 9px 12px; border-radius: 999px; cursor: pointer; min-height: 36px; }
.chip.on { background: var(--teal); border-color: var(--teal); color: #fff; }

.polaroid { position: relative; margin: 10px 6px 4px; padding: 10px 10px 8px; background: #fffdf7; border-radius: 6px;
  transform: rotate(-1.4deg); box-shadow: 0 10px 22px -12px rgba(47, 42, 63, .55), 0 0 0 1px var(--edge); }
.tape { position: absolute; top: -12px; width: 84px; height: 26px; background: var(--tape); z-index: 2;
  box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.tape.l { left: -16px; transform: rotate(-28deg); } .tape.r { right: -16px; transform: rotate(26deg); }
.photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--paper-deep); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .7s, opacity .4s; }
.photo img.ready { opacity: 1; }
.tiles { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, 1fr); perspective: 600px; }
.tiles i { background: #F7EDD8 linear-gradient(135deg, transparent 46%, rgba(194, 160, 104, .55) 48%, rgba(194, 160, 104, .55) 52%, transparent 54%) center / 62% 62% no-repeat;
  border: 1px solid rgba(201, 176, 130, .55); transform-origin: 50% 0; transition: transform .55s cubic-bezier(.3, .6, .3, 1), opacity .55s; }
.tiles i:nth-child(odd) { background-color: #EFE1C3; }
.tiles i.up { transform: rotateX(-96deg) translateY(-6px); opacity: 0; }
.caption { margin: 8px 2px 0; font-size: 14px; color: var(--ink-soft); text-align: center; min-height: 22px; }

.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 12px; }
.rung { border: 1.5px dashed var(--edge); border-radius: 14px; padding: 8px 10px; min-height: 64px; background: #fffaf0;
  display: flex; flex-direction: column; justify-content: center; transition: background .4s, border-color .4s, color .4s; }
.rung span { font: 700 11px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.rung b { font: 800 16px/1.15 var(--display); color: var(--ink-faint); overflow-wrap: anywhere; }
.rung.on { border-style: solid; color: #fff; }
.rung.on span { color: rgba(255,255,255,.85); } .rung.on b { color: #fff; }
.rung.on.order { background: var(--r-order); border-color: var(--r-order); }
.rung.on.family { background: var(--r-family); border-color: var(--r-family); }
.rung.on.genus { background: var(--r-genus); border-color: var(--r-genus); }
.rung.on.genus b, .rung.on.genus span { color: #3A2808; }

.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 18px;
  border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; font: 700 17px/1 var(--body);
  background: linear-gradient(180deg, var(--enamel-light), var(--enamel) 55%); color: #FFF8EE;
  box-shadow: 0 3px 0 var(--enamel-deep), 0 8px 18px -10px rgba(180, 70, 47, .8); }
.btn:hover { color: #fff; filter: brightness(1.04); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--enamel-deep); }
.btn.ghost { background: #fffaf0; color: var(--ink); box-shadow: 0 2px 0 var(--edge); border: 1px solid var(--edge); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn img { width: 22px; height: 22px; }

.guess { position: relative; margin-top: 12px; }
.guess input { width: 100%; min-height: 56px; padding: 0 18px; font: 400 19px var(--body); color: var(--ink);
  border: 2px solid var(--edge); border-radius: 16px; background: #fff; }
.guess input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 4px rgba(62, 140, 138, .18); }
.guess input:disabled { background: var(--paper-deep); }
#sugg { position: absolute; left: 0; right: 0; top: 60px; z-index: 5; list-style: none; margin: 0; padding: 6px;
  background: #fff; border: 1px solid var(--edge); border-radius: 16px; box-shadow: var(--shadow);
  max-height: 320px; overflow-y: auto; scrollbar-width: none; }
#sugg::-webkit-scrollbar { display: none; }
#sugg li { padding: 10px 12px; border-radius: 10px; cursor: pointer; display: flex; flex-direction: column; }
#sugg li i { font-size: 14px; color: var(--ink-soft); }
#sugg li:hover, #sugg li.sel { background: var(--paper); }
.left { margin: 8px 4px 0; font-size: 14px; font-weight: 700; color: var(--ink-soft); }

.guesses { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.g { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 16px;
  border-radius: 12px; background: #fffaf0; border: 1px solid var(--edge); position: relative; overflow: hidden; }
.g::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--r-none); }
.g b { font-weight: 700; } .g span { font-size: 14px; color: var(--ink-soft); text-align: right; }
.g.order::before { background: var(--r-order); } .g.family::before { background: var(--r-family); }
.g.genus::before { background: var(--r-genus); } .g.species::before { background: var(--r-species); }
.g.species { background: #EEF6E8; border-color: #B9D6AE; }

.result { margin-top: 14px; padding: 18px 16px; border-radius: 18px; background: #fffdf7; border: 1px solid var(--edge); text-align: center; }
.result .wren { display: block; margin: -6px auto 4px; width: 96px; height: 96px; }
.result h2 { font-size: 24px; margin-bottom: 4px; }
.result .answer { font-size: 20px; margin-bottom: 6px; }
.result .answer i { color: var(--ink-soft); }
.result .row { margin: 12px 0; }
.result .more { border-top: 1px dashed var(--edge); padding-top: 12px; font-size: 15px; }
.result .more .store { display: inline-flex; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; }

/* notes under the hero */
.notes { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: 16px 16px 8px; display: grid; gap: 14px; }
.notes article { background: rgba(255, 253, 247, .8); border: 1px solid rgba(217, 194, 154, .6); border-radius: 20px; padding: 18px 18px 6px; }
.notes h2 { font-size: 24px; }
.notes a { font-weight: 700; }
@media (min-width: 760px) { .notes { grid-template-columns: repeat(3, 1fr); } .notes.one { grid-template-columns: 1fr; } }
.recent { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
@media (min-width: 760px) { .recent { grid-template-columns: repeat(2, 1fr); } }
.recent a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #fffaf0; border: 1px solid var(--edge); text-decoration: none; color: var(--ink); }
.recent span { color: var(--ink-soft); font-size: 15px; }

/* app block */
.app { max-width: 1160px; margin: 24px auto 0; padding: 22px 16px; display: grid; gap: 18px; align-items: center;
  background: linear-gradient(160deg, #4F5291 0, #6E6FB2 45%, #B98AB8 100%); color: #FFF8EE; border-radius: 28px; }
.app h2 { color: #FFF8EE; }
.app p { color: rgba(255, 248, 238, .9); }
.app-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 6px 16px -6px rgba(0,0,0,.5); margin-bottom: 12px; }
.shots { display: flex; gap: 10px; justify-content: center; }
.shots img { width: 30%; max-width: 150px; height: auto; border-radius: 16px; box-shadow: 0 14px 28px -14px rgba(0,0,0,.6); }
.shots img:nth-child(2) { transform: translateY(-14px); }
@media (min-width: 760px) { .app { grid-template-columns: 1.1fr 1fr; padding: 36px 40px; margin: 32px 16px 0; }
  @media (min-width: 1192px) { .app { margin: 32px auto 0; } } }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 18px 0 14px; border-radius: 14px;
  background: #16141F; color: #fff; text-decoration: none; font: 700 18px/1.05 var(--body); }
.store small { display: block; font: 400 12px/1.2 var(--body); opacity: .85; }
.store:hover { color: #fff; background: #000; }
.store.soon { opacity: .55; cursor: default; }

/* document pages */
.doc { max-width: 820px; margin: 0 auto; padding: 8px 16px 0; }
.paper { background: var(--paper); border-radius: 24px; padding: 24px 18px 12px; box-shadow: var(--shadow); border: 1px solid rgba(217,194,154,.7); }
.paper .crumb { color: var(--ink-soft); }
.paper h1 { font-size: clamp(34px, 8.5vw, 52px); }
.paper h2 { margin-top: 1.3em; }
.paper .lede { color: var(--ink-soft); }
@media (min-width: 760px) { .paper { padding: 40px 48px 20px; } .doc { padding-top: 24px; } }
.steps, .tips { padding-left: 1.2em; } .steps li, .tips li { margin-bottom: .6em; }
.demo { margin: 12px 0 18px; }
.credit { margin: 14px 0 18px; }
.credit img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: var(--paper-deep); }
.credit figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
.reglist, .days { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.reglist a, .days a { display: block; padding: 12px 14px; border-radius: 12px; background: #fffaf0; border: 1px solid var(--edge); text-decoration: none; font-weight: 700; color: var(--ink); }
.ans { border-top: 1px dashed var(--edge); padding-top: 6px; }
.ans h2 { font-size: 26px; margin-top: .8em; }
.hints { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.hints li { padding: 8px 12px; border-radius: 12px; background: #fffaf0; border: 1px solid var(--edge); }
.hints span { display: inline-block; min-width: 72px; font: 700 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
details { margin: 8px 0 14px; }
summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
details[open] summary { background: var(--ink-soft); }
details .name { font-size: 22px; margin: 12px 0 4px; }
.calls { list-style: none; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .calls { grid-template-columns: 1fr 1fr; } }
.call { padding: 12px; border-radius: 16px; background: #fffaf0; border: 1px solid var(--edge); }
.call .btn { width: 100%; }
.call details { margin-bottom: 0; }
.pager { margin-top: 18px; font-weight: 700; }

/* footer */
.foot { margin-top: 40px; padding: 28px 16px 40px; background: #2F2A3F; color: rgba(255, 248, 238, .82); font-size: 15px; }
.foot-in { max-width: 1160px; margin: 0 auto; }
.foot a { color: #FFE6A8; }
.foot-nav { line-height: 2; }
.tools-h { font: 800 20px/1.2 var(--display); color: #FFF8EE; margin: 18px 0 4px; }
.foot .fine { color: rgba(255, 248, 238, .6); margin-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
