/* The app’s own parts on top of the UI kit (kit.css): game extras, result screens, Time Attack, sheets, Send */
:root{--clay:#c9674f;--clay-tint:#F4DCD3;--sky:#4b88a0;--sky-tint:#D8E8EE}

/* Toasts sit at the top, clear of the result card and the game buttons */
.toast{bottom:auto;top:calc(env(safe-area-inset-top) + 74px);transform:translate(-50%,-12px);max-width:calc(100vw - 32px);text-align:center}
.toast.on{transform:translate(-50%,0)}
@media (max-width:700px){.home{padding-bottom:160px}}

/* ===== The game ===== */
.loading{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.loading span{width:44px;height:44px;border-radius:50%;border:4px solid rgba(255,255,255,.25);border-top-color:#fff;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.missmark{position:absolute;width:34px;height:34px;transform:translate(-50%,-50%);pointer-events:none;animation:miss .65s ease-out both}
.missmark::before,.missmark::after{content:"";position:absolute;left:50%;top:50%;width:26px;height:4px;border-radius:var(--r-xs);background:#fff;box-shadow:0 0 0 1.5px rgba(0,0,0,.35)}
.missmark::before{transform:translate(-50%,-50%) rotate(45deg)} .missmark::after{transform:translate(-50%,-50%) rotate(-45deg)}
@keyframes miss{0%{opacity:0;transform:translate(-50%,-50%) scale(.6)}20%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.1)}}
.spot.shown{border-color:var(--gold-tint)}
.spot.still{animation:none}
.btn.nudge{animation:nudge 1.6s ease-in-out 3}
@keyframes nudge{0%,100%{transform:none}10%{transform:translateY(-4px)}20%{transform:none}30%{transform:translateY(-2px)}40%{transform:none}}
.banner{position:fixed;z-index:6;left:50%;top:calc(max(12px,env(safe-area-inset-top)) + 58px);transform:translateX(-50%);max-width:min(560px,calc(100vw - 24px));
  padding:10px 16px;border-radius:var(--r-md);background:var(--gold-tint);font-weight:700;font-size:var(--fs-sm);text-align:center;box-shadow:0 4px 0 var(--gold),0 6px 18px rgba(0,0,0,.25)}
.timer.big{min-width:86px;font-size:var(--fs-md)}
.timer.low{background:#fbe3dc;color:#9a2f17}
.dots i.no{background:#7d6f5c}
.prog{min-width:0;flex:1;max-width:340px}
.findpill{max-width:100%;min-height:42px;justify-content:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;line-height:42px;font-weight:900}
[data-find] .cnt{display:inline-grid;place-items:center;min-width:26px;height:24px;margin-left:6px;padding:0 6px;border-radius:999px;background:var(--gold);color:#fff;font-size:var(--fs-xs);font-weight:900;vertical-align:1px;line-height:1}
.pill.small{min-height:30px;padding:0 12px;font-size:var(--fs-sm);font-weight:900;box-shadow:0 2px 0 rgba(0,0,0,.12)}
.prog .dots{background:rgba(255,253,248,.95);border-radius:999px;padding:5px 8px;box-shadow:0 2px 0 rgba(0,0,0,.12)}

/* Result card extras (Roulette) */
.res .vsline{margin-top:8px;font-size:var(--fs-md)}
.res .vsline b{font-variant-numeric:tabular-nums}
.res .vsline span{white-space:nowrap}
.nudgecard{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 10px;margin-top:12px;padding:12px 14px;border-radius:var(--r-md);background:var(--gold-tint);box-shadow:inset 0 0 0 1.5px var(--gold)}
.nudgecard b{font-weight:900;font-size:var(--fs-md)}
.nudgecard span{grid-column:1;font-size:var(--fs-sm);color:var(--muted)}
.nudgecard .ic{grid-row:1 / 3;grid-column:2}

/* What to look for */
.search{width:100%;min-height:50px;padding:0 16px;border-radius:var(--r-md);border:1.5px solid var(--line);font:inherit;font-size:var(--fs-md);background:#fff;color:var(--ink)}
.search:focus{outline:none;border-color:var(--green)}
.sheet .opts{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}

/* ===== Start and result screens ===== */
.wd{transition:transform .1s}
a.wd:hover{transform:translateY(-2px)}
.dresult{min-height:100dvh;padding:84px 16px 40px}

.dlegend span.miss::before{background:#e7dfd0}
.lb .link{margin-top:10px;font-size:var(--fs-sm)}

.msg{width:min(520px,100%);padding:30px 26px;text-align:center;display:grid;gap:14px;justify-items:center}
.msg h1{font-family:var(--head);font-weight:900;font-size:var(--fs-3xl);line-height:1.1}
.msg .xs-sub{margin:0}
.msg .btn{min-width:220px}
.big em{font-style:normal;color:var(--muted);margin:0 .12em}
.big small{font-family:Nunito,system-ui,sans-serif;font-weight:900;font-size:.3em;color:var(--muted);letter-spacing:0}

/* Time Attack result */
.speedres{width:min(560px,100%)}
.speedres .big{font-size:clamp(68px,10vw,96px)}
.speedres .after{margin-top:16px}

/* Home: the Time Attack tile, a stopwatch with the time running out (and your last score in it once you've played) */

/* Home: today's Daily squares once played */
 

/* ===== Sheets ===== */
.xs-field{display:grid;gap:6px;font-weight:700;font-size:var(--fs-sm)}
.xs-field span{font-weight:400;color:var(--muted)}
.xs-field input{min-height:48px;padding:0 14px;border-radius:var(--r-md);border:1.5px solid var(--line);font:inherit;font-weight:400;font-size:var(--fs-md);background:#fff;color:var(--ink)}
.xs-field input:focus{outline:none;border-color:var(--green)}
.xs-err{color:#9a2f17;font-weight:700;font-size:var(--fs-sm)}
.xs-err:empty{display:none}
.days{display:grid;gap:4px}

/* ===== Send us a photo (page) ===== */
.ticks{list-style:none;padding:0;display:grid;gap:6px;margin-top:14px;font-size:var(--fs-sm)}
.ticks li{position:relative;padding-left:26px}
.ticks li::before{content:"";position:absolute;left:2px;top:4px;width:12px;height:7px;border-left:3px solid var(--green);border-bottom:3px solid var(--green);transform:rotate(-45deg)}
.xs-sendpage{margin-top:20px}
.xs-mark{width:fit-content;max-width:100%;margin:0 auto}
.xs-mark img{max-width:100%;max-height:60vh;width:auto;height:auto}
.sendwin .xs-pin{display:grid;place-items:center;line-height:1}
.xs-pin{display:grid;place-items:center;line-height:1;cursor:pointer}

/* Daily: days in a row */
.streak{margin-top:10px;font-size:var(--fs-sm);color:var(--muted)}
.streak b{font-family:var(--head);font-weight:900;font-size:var(--fs-lg);color:var(--hot);margin-right:2px}
.dmain .streak{margin-top:16px}
/* Send: the age question */
.xs-field select{appearance:none;-webkit-appearance:none;min-height:48px;padding:0 38px 0 14px;border-radius:var(--r-md);border:1.5px solid var(--line);font:inherit;font-weight:400;font-size:var(--fs-md);color:var(--ink);
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c2c2c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center/16px}

.btn:disabled .ic{opacity:.6}

/* A newcomer's first photo: one card before the clock starts */
.intro{position:fixed;inset:0;z-index:7;display:grid;place-items:center;padding:20px;background:rgba(17,18,15,.82)}
.play .layer img:not([src]){visibility:hidden}
.intro .card{width:min(420px,100%);padding:26px 24px 22px;text-align:center}
.intro h2{font-family:var(--head);font-weight:900;font-size:var(--fs-2xl);line-height:1.1}
.intro p{margin:10px 0 18px;font-size:var(--fs-md);line-height:1.45;color:var(--muted)}
/* After a photo ends, the buttons that only work while playing step aside */
body.roundover [data-hint],body.roundover [data-skip]{visibility:hidden}
/* The hint button keeps its width as its words change, so the zoom next to it doesn't shift */
@media (min-width:641px){.gfoot [data-hint]{min-width:9.5em}}
/* Long animal names: two smaller lines instead of a cut-off name */
[data-find].long .ft{font-size:var(--fs-xs);line-height:1.15;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.findpill.long{line-height:1.15;display:flex;align-items:center;padding-top:4px;padding-bottom:4px}

@media (max-width:640px){
  
  /* On a phone the zoom box drops its number so every button can keep its word */
  .gfoot [data-pct]{display:none}
  .gfoot .btn span.l{display:inline}
  .gfoot .btn span.xl{display:none}
  .gfoot{gap:8px}
  .gfoot .btn.small{padding:0 13px}
}
/* Roulette start on a phone: the row of animals fades at the edge, so it's clear it scrolls */

.xs-why{font-size:var(--fs-sm);color:var(--muted);text-align:center}
.xs-why:empty{display:none}

/* Your photos (Daily, Duel): tap one to see it big, with where the animal was */

.viewer{position:fixed;inset:0;z-index:15;display:grid;place-items:center;padding:16px;background:rgba(17,18,15,.92);cursor:zoom-out}
.viewer figure{position:relative;line-height:0;max-width:100%}
.viewer img{display:block;max-width:calc(100vw - 32px);max-height:calc(100dvh - 90px);width:auto;height:auto;border-radius:var(--r-sm)}
.viewer .spot{animation:none}
.viewer figcaption{position:absolute;left:0;right:0;bottom:-34px;text-align:center;line-height:1.3;color:#fff;font-weight:700}
.viewer .round{position:fixed;top:14px;right:14px}
.gfoot .gone{visibility:hidden}
#app{position:relative;min-height:100dvh}

/* ===== Free Play start: animals as tags, difficulty as one segmented row ===== */
.tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.tag{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 17px;border-radius:999px;background:#fff;font-weight:800;font-size:var(--fs-md);color:var(--ink);
  box-shadow:inset 0 0 0 2px var(--line);cursor:pointer;transition:background .12s,box-shadow .12s,color .12s}
.tag:hover{box-shadow:inset 0 0 0 2px var(--edge)}
.tag[aria-pressed=true]{background:var(--green);color:#fff;box-shadow:none}
.tag:focus-visible,.seg button:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.tag .rm{display:grid;place-items:center;width:28px;height:28px;margin:0 -10px 0 2px;border-radius:50%;background:rgba(0,0,0,.08)}
.tag[aria-pressed=true] .rm{background:rgba(255,255,255,.25)}
.tag .rm .ic{width:12px;height:12px;stroke-width:3}
.tag.more{color:var(--green);box-shadow:inset 0 0 0 2px var(--green);padding-left:13px}
.tag.more .ic{width:18px;height:18px;stroke-width:2.6}
.tag.more[aria-expanded=true]{background:var(--green-tint)}
.seg{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-top:14px;padding:4px;border-radius:999px;background:#efe7d8}
.seg button{min-height:44px;border-radius:999px;font-weight:800;font-size:var(--fs-sm);color:var(--muted)}
.seg button[aria-pressed=true]{background:#fff;color:var(--ink);box-shadow:0 2px 0 rgba(0,0,0,.08),0 2px 8px rgba(60,45,20,.12)}
.sugg button{display:flex;align-items:center;gap:10px;width:100%;padding:7px 10px;border-radius:var(--r-sm);font-weight:700;font-size:var(--fs-sm);text-align:left}
.sugg button:hover,.sugg button:focus-visible{background:var(--green-tint);outline:none}
.sugg p{padding:10px;color:var(--muted);font-size:var(--fs-sm)}
.setup .progline{margin-top:14px;font-size:var(--fs-sm);color:var(--muted)}
.setup .progline b{color:var(--ink)}

/* ===== Time Attack: the rules, the clock's +/- seconds, the photos of a run ===== */
.rules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0 0;padding:0;list-style:none}
.rules li{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 6px;border-radius:var(--r-md);background:#fff;border:2px solid var(--line);text-align:center}
.rules b{font-family:var(--head);font-weight:900;font-size:var(--fs-xl);line-height:1;color:#9a2f17}
.rules .plus b{color:var(--green)}
.rules span{font-size:var(--fs-xs);font-weight:700;line-height:1.25;color:var(--muted)}
.setup .win .hud .clock{position:relative}
.bonus{position:absolute;right:0;top:calc(100% + 4px);padding:3px 8px;border-radius:999px;background:var(--green);color:#fff;font-style:normal;font-weight:900;font-size:var(--fs-xs);opacity:0;pointer-events:none}
.bonus.on{animation:bonus 1.1s ease-out both}
@keyframes bonus{0%{opacity:0;transform:translateY(-4px)}15%{opacity:1;transform:none}70%{opacity:1}100%{opacity:0;transform:translateY(6px)}}
.timer{position:relative}
/* .timer.big is also .big, whose em is muted: the badge needs the stronger selector */
.timer .delta{position:absolute;left:50%;top:calc(100% + 7px);margin:0;transform:translateX(-50%);padding:4px 11px;border-radius:999px;font-style:normal;font-weight:900;font-size:var(--fs-md);line-height:1.2;color:#fff;white-space:nowrap;opacity:0;pointer-events:none;box-shadow:0 2px 0 rgba(0,0,0,.2),0 4px 14px rgba(0,0,0,.3)}
.delta.up{background:var(--green)} .delta.down{background:#b5452a}
.delta.on{animation:delta 1s ease-out both}
@keyframes delta{0%{opacity:0;transform:translate(-50%,-6px)}15%{opacity:1;transform:translate(-50%,0)}70%{opacity:1}100%{opacity:0;transform:translate(-50%,8px)}}
/* A finished game's photos (Daily, Time Attack): the frame says how it went; tap one to play it again */
.strip{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:18px}
.strip button{width:54px;height:54px;border-radius:var(--r-sm);overflow:hidden;border:3px solid var(--green);padding:0;line-height:0;transition:transform .12s}
.strip button:hover{transform:translateY(-2px)}
.strip button.hint{border-color:var(--gold)}
.strip button.skipped,.strip button.miss{border-color:var(--line);opacity:.6}
.strip img{width:100%;height:100%;object-fit:cover}
.strip.sq10{display:grid;grid-template-columns:repeat(5,54px);justify-content:center}
@media (prefers-reduced-motion:reduce){.bonus.on,.delta.on{animation-duration:.01s}}
@media (max-width:700px){.rules b{font-size:var(--fs-lg)} .rules span{font-size:var(--fs-xs)} .strip button{width:46px;height:46px} .strip.sq10{grid-template-columns:repeat(5,46px)}}

/* ===== Home: the app icon over the name, three games, a line of links at the bottom ===== */
.appicon{width:clamp(72px,8vw,92px);height:auto;border-radius:22%;box-shadow:0 2px 0 rgba(0,0,0,.06),0 8px 22px rgba(60,45,20,.18);margin-bottom:14px}
.tools [data-snd][aria-pressed=false]{color:var(--muted)}
@media (max-width:700px){
}

/* Shared windows rise from the bottom on every screen: on a computer, a card in the middle of the bottom edge */
@media (min-width:1000px){
  .sheet.xs{left:50%;right:auto;top:auto;bottom:24px;width:min(520px,calc(100vw - 48px));max-height:calc(100dvh - 48px);border-radius:var(--r-lg);transform:translate(-50%,calc(100% + 40px));padding:26px 26px 24px}
  .sheet.xs.on{transform:translate(-50%,0)}
  #xscrim.on{background:rgba(30,25,15,.28);pointer-events:auto}
}
/* The animal to find, in the game bar */
[data-find] .tgt{font-style:normal;color:var(--green)}

/* ===== Free Play result: like or dislike; on a computer a wide card at the bottom, like on a phone ===== */
.res .foot{flex-wrap:wrap;gap:10px 14px}
.vote{display:inline-flex;align-items:center;gap:6px}
.vote .vq{font-size:var(--fs-sm);color:var(--muted)}
.vb{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;color:var(--muted);box-shadow:inset 0 0 0 1.5px var(--line);transition:background .12s,color .12s}
.vb .ic{width:18px;height:18px}
.vb:hover{color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--edge)}
.vb[aria-pressed=true]{background:var(--green);color:#fff;box-shadow:none}
.vb[data-vote="-1"][aria-pressed=true]{background:#7d6f5c}
@media (max-width:640px){.vote .vq{display:none}}
@media (min-width:1000px){
  .sheet.res{left:50%;right:auto;top:auto;bottom:20px;width:min(920px,calc(100vw - 40px));max-height:none;border-radius:var(--r-lg);padding:20px 24px 16px;
    transform:translate(-50%,calc(100% + 40px));display:grid;grid-template-columns:190px minmax(0,1fr) 220px;grid-template-areas:"head animal acts" "nudge nudge nudge" "foot foot foot";column-gap:20px;align-items:center}
  .sheet.res.on{transform:translate(-50%,0)}
  .res .rhead{grid-area:head}
  .res .big{font-size:var(--fs-5xl)}
  .res .animal{grid-area:animal;margin-top:0}
  .res .acts{grid-area:acts;grid-template-columns:1fr;margin-top:0}
  .res .nudgecard{grid-area:nudge;margin-top:14px}
  .res .foot{grid-area:foot;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
}
/* Playing a photo again, just for fun: no clock */
body.practice [data-timer]{visibility:hidden}

/* Daily result: one column, the day's board under your result */
.dres{grid-template-columns:minmax(0,1fr);max-width:600px}
.dmain .acts.one{grid-template-columns:1fr}

/* ===== Home tiles: a drawn picture, a plate with what's new for you, the name and one line, all centred ===== */
.tile.g-free{--t:#DDEBD8;--e:#3d7a4a} .tile.g-daily{--t:#F6E7BF;--e:#d4a030} .tile.g-time{--t:#D8E8EE;--e:#4b88a0}
.tile .plate{padding:5px 13px;border-radius:999px;background:#fff;font-weight:800;font-size:var(--fs-sm);line-height:1.2;color:var(--ink);font-variant-numeric:tabular-nums;box-shadow:0 2px 0 rgba(0,0,0,.07)}
.tile .plate.hot{background:var(--e);color:#fff}
.tile .streak{position:absolute;top:10px;right:10px;display:inline-flex;align-items:center;gap:2px;padding:4px 10px 4px 7px;border-radius:999px;background:#fff;color:#c4572f;font-weight:900;font-size:var(--fs-sm);line-height:1}
.tile .streak svg{width:15px;height:15px}
.tile .bar{flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:12px 14px 15px;text-align:center}
.tile .bar b{font-size:var(--fs-2xl);font-weight:900;letter-spacing:-.01em}
@media (max-width:700px){
  .tile .bar{padding:9px 10px 12px} .tile .bar b{font-size:var(--fs-lg)}
  .tile .plate{font-size:var(--fs-xs);padding:4px 11px}
}

/* More: the search opens over the choices below it, so nothing on the card moves */
.pickwrap{position:relative}
.find{position:absolute;z-index:20;left:-6px;right:-6px;top:calc(100% + 8px);padding:8px;border-radius:var(--r-md);background:#fff;box-shadow:0 14px 34px rgba(40,30,10,.22),0 0 0 1px var(--line)}
.find > .ic{position:absolute;left:22px;top:30px;width:18px;height:18px;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.find input{width:100%;min-height:46px;padding:0 14px 0 40px;border-radius:var(--r-sm);border:2px solid var(--line);background:#fff;font:inherit;font-size:var(--fs-md);color:var(--ink)}
.find input:focus{outline:none;border-color:var(--green)}
.sugg{margin-top:6px;max-height:250px;overflow:auto}
.sugg[hidden]{display:none}
.setup .progline{min-height:1.5em}

/* Buttons over the photo (Hint, Skip, zoom) all react the same quiet way: no lift, no coloured edge growing */
.gfoot .btn:hover,.gfoot .btn.gold:hover,.gfoot .btn.primary:hover{transform:none;box-shadow:0 4px 0 rgba(0,0,0,.18),0 6px 18px rgba(0,0,0,.25);filter:brightness(1.03)}
.gfoot .btn:active,.gfoot .btn.gold:active{transform:translateY(2px);box-shadow:0 2px 0 rgba(0,0,0,.18),0 4px 12px rgba(0,0,0,.25)}
.gfoot .btn.gold{background:#f6dfa0}

/* ===== Free Play result card: one clear line on top (what happened, your time), then the animal ===== */
.res .rtop{display:flex;align-items:center;gap:10px}
.res .rbadge{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#ece4d5;color:var(--muted)}
.res .rbadge.ok{background:var(--green);color:#fff;animation:badgepop .5s cubic-bezier(.2,.9,.3,1.35) both}
.res .rbadge .ic{width:20px;height:20px;stroke-width:3}
@keyframes badgepop{from{transform:scale(.4);opacity:0}to{transform:none;opacity:1}}
.res h2{flex:1;font-size:var(--fs-xl);font-weight:900;line-height:1.1;color:var(--ink);white-space:nowrap}
.res .rtime{font-weight:900;font-size:var(--fs-4xl);line-height:1;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.res .rsub{margin-top:8px;font-size:var(--fs-md);font-weight:700;color:var(--muted)}
.res .rsub b{color:var(--green)}
.res .animal{margin-top:14px;padding:14px 0 0;border-radius:0;background:none;border-top:1.5px solid var(--line)}
.res .aname{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-weight:900;font-size:var(--fs-xl);line-height:1.15}
.dchip{padding:3px 10px;border-radius:999px;background:#efe7d8;color:var(--muted);font-size:var(--fs-xs);font-weight:800;letter-spacing:.02em}
.dchip.easy{background:var(--green-tint);color:var(--green-dk)} .dchip.medium{background:var(--gold-tint);color:#7d5a12} .dchip.hard{background:#f3dcd3;color:#8a3b2b}
.res .afact{margin-top:5px;font-size:var(--fs-sm);line-height:1.45;color:#4d4a42}
.res .acts .btn.primary .ic{width:20px;height:20px;margin-right:-6px}
.res .fprog{font-size:var(--fs-sm);color:var(--muted)}
@media (prefers-reduced-motion:reduce){.res .rbadge.ok{animation:none}}
@media (max-width:640px){.res .rtime{font-size:var(--fs-3xl)} .res .acts .btn span{display:none} .res .acts .btn:not(.primary){padding:0 16px}}
@media (min-width:1000px){
  .sheet.res{grid-template-columns:290px minmax(0,1fr) 200px;column-gap:24px}
  .res .animal{margin-top:0;padding:2px 0 2px 24px;border-top:0;border-left:1.5px solid var(--line)}
  .res .rtime{font-size:var(--fs-3xl)}
}
/* The Free Play picture: three real photos from the game, fanned out in white frames */
.tile .photos .ph{position:absolute;top:9%;width:46%;aspect-ratio:1;padding:5px;border-radius:var(--r-sm);background:#fff;box-shadow:0 6px 14px rgba(40,30,10,.2)}
.tile .photos .ph img{display:block;width:100%;height:100%;border-radius:var(--r-sm);object-fit:cover;background:#cfe2c7}
.tile .photos .ph:empty::after{content:"";display:block;width:100%;height:100%;border-radius:var(--r-sm);background:#cfe2c7}
.tile .photos .ph:nth-child(1){left:1%;transform:rotate(-9deg)}
.tile .photos .ph:nth-child(2){left:27%;top:0;z-index:2;transform:rotate(1.5deg)}
.tile .photos .ph:nth-child(3){left:53%;transform:rotate(9deg)}
.tile .bar{padding:13px 14px 15px}

/* A photo link's first card: the photo itself, blurred behind it (no peeking before the clock starts) */
.intro .introbg{position:absolute;inset:-30px;width:calc(100% + 60px);height:calc(100% + 60px);object-fit:cover;filter:blur(14px) brightness(.55);pointer-events:none}
.intro .card{position:relative}
.intro .dare{margin:10px 0 0;padding:8px 12px;border-radius:var(--r-sm);background:var(--gold-tint);font-weight:700;font-size:var(--fs-sm);color:#5c4210}
/* Several animals: the badge in words */
[data-find] .cnt{display:inline-block;margin-left:8px;padding:2px 9px;border-radius:999px;background:var(--gold-tint);color:#5c4210;font-size:var(--fs-xs);font-weight:900;vertical-align:1px;line-height:1.5;min-width:0;height:auto}
/* A note where you tapped ("−2 s" in Time Attack) */
.floatnote{position:absolute;z-index:3;transform:translate(-50%,-150%);padding:3px 10px;border-radius:999px;background:#b5452a;color:#fff;font-weight:900;font-size:var(--fs-sm);white-space:nowrap;pointer-events:none;animation:floatnote 1.1s ease-out both}
@keyframes floatnote{0%{opacity:0;transform:translate(-50%,-110%)}15%{opacity:1;transform:translate(-50%,-150%)}75%{opacity:1}100%{opacity:0;transform:translate(-50%,-210%)}}
@media (prefers-reduced-motion:reduce){.floatnote{animation-duration:.01s}}
/* Playing a photo again: no Skip (Hint and Show answer, or ×, end it) */
body.practice [data-skip]{display:none}
/* The result card: its top block tinted, so the moment stands out; the footer in two clear rows */
.res .rhead{padding:14px 16px;border-radius:var(--r-md);background:var(--green-tint)}
.res.answer .rhead{background:#efe7d8}
.res .rtime{color:var(--green-dk)}
.res .rsub b{display:inline-block;padding:1px 9px;border-radius:999px;background:#fff;color:var(--green-dk)}
.res .foot{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px 12px}
.res .foot .fprog{grid-column:1 / -1;order:-1;text-align:center}
.vb{width:44px;height:44px}
@media (max-width:640px){.res .acts .btn span{display:inline} .res .acts .btn:not(.primary){padding:0 18px}}
/* The game bar: the task truly centred between × and the clock, all three on one line */
.gbar{display:grid;grid-template-columns:1fr auto 1fr;align-items:start}
.gbar > :first-child{justify-self:start}
.gbar > :last-child{justify-self:end}
/* With the result card open: the top bar stays usable above it; the bottom buttons hide behind it */
body:has(.sheet.res.on) .gbar{z-index:10}
body:has(.sheet.res.on) .gfoot{visibility:hidden}
/* Time Attack: "Time's up!" over the photo for a moment, taking the taps */
.timesup{position:fixed;inset:0;z-index:12;display:grid;place-items:center;background:rgba(20,18,12,.55);animation:fadein .2s both}
.timesup b{padding:14px 26px;border-radius:999px;background:#fff;font-weight:900;font-size:var(--fs-2xl);box-shadow:0 10px 30px rgba(0,0,0,.3)}
@keyframes fadein{from{opacity:0}to{opacity:1}}
.setup .dare{margin-top:14px;padding:9px 14px;border-radius:var(--r-md);background:var(--gold-tint);font-weight:700;font-size:var(--fs-sm);color:#5c4210}
.setup .progline[hidden]{display:none}
.speedres .acts.one{grid-template-columns:1fr}
@media (max-width:640px){.vote .vq{display:inline}}
/* Daily: "4/10" by the dots; the result's photo strip with room around it; missed photos clearly grey */
.dmain .strip{margin-top:20px}
.dlegend{margin-top:12px}
.dmain .xs-sub{margin-top:10px}
.strip button.miss{border-color:#948670;opacity:1}
.strip button.miss img{filter:grayscale(1) brightness(.9)}
.prog .dots{align-items:center}
/* Home: every tile laid out the same (the plate sits at the bottom of the picture area), readable plates, bigger links */
.tile .plate.hot{background:#fff;color:var(--ink);box-shadow:0 0 0 2px var(--e)}
.tile .streak{color:#a8452a}
.how button{min-height:44px;padding:0 14px;margin-left:-14px}
/* Daily's Hint: what it costs, small under the word */
[data-hinttxt].two{display:inline-flex;flex-direction:column;align-items:flex-start;line-height:1.05}
[data-hinttxt].two small{font-size:var(--fs-xs);font-weight:800;opacity:.75}

/* The home's few links: short and quiet, so the games stay the main thing */
.hlinks{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 22px;margin-top:26px;font-size:var(--fs-sm)}
.hlinks a{display:inline-flex;align-items:center;min-height:44px;padding:0 2px;font-weight:700;color:var(--muted);text-decoration:underline;text-decoration-color:var(--edge);text-underline-offset:4px}
.hlinks a:hover{color:var(--ink)}
@media (max-width:380px){.hlinks{gap:2px 16px}}

/* Notes during a game sit just above the bottom bar, clear of the task and the Daily dots */
body[data-state="play"] .toast{top:auto;bottom:calc(env(safe-area-inset-bottom) + 96px);transform:translate(-50%,12px)}
body[data-state="play"] .toast.on{transform:translate(-50%,0)}
.banner{transition:opacity .4s}
.banner.gone{opacity:0;pointer-events:none}
/* Bigger targets for a finger */
.res .foot .link{display:inline-flex;align-items:center;min-height:44px}
.gfoot .btn{white-space:nowrap}
@media (max-width:380px){.gfoot .btn.small{padding:0 11px} .vote .vq{display:none}}
/* On a phone the Start button stays in reach at the bottom of the screen, and a short screen gets a shorter preview */
@media (max-width:700px){
  .setup .go{position:sticky;bottom:calc(12px + env(safe-area-inset-bottom));z-index:3}
}
@media (max-width:700px) and (max-height:760px){.setup .win img{aspect-ratio:21/9}}

/* ===== Tiles: the picture and its plate as one group, a little above the middle, with room under the plate.
   Every picture has the same height (--arth), so the plates line up across a row ===== */
:root{--arth:120px}
.tile .face{aspect-ratio:auto;position:relative;justify-content:center;gap:14px;padding:22px 12px 28px}
body.first .tile .face{aspect-ratio:auto}
.tile .art{height:var(--arth);width:auto;filter:drop-shadow(0 6px 10px rgba(40,30,10,.16))}
.tile .art.photos{position:relative;display:block;height:var(--arth);width:calc(var(--arth) * 1.9);filter:none}
.tile .plate{position:static;transform:none;white-space:nowrap}
@media (max-width:700px){
  body.n3 .tile:first-child{grid-column:1 / -1}
  body.n3 .tile:last-child{grid-column:auto}
  :root{--arth:88px}
  .tile .face{gap:11px;padding:16px 8px 20px}
  /* Free Play on its own row: bigger photos */
  body.n3 .tile.g-free:first-child{--arth:min(190px,calc((100vw - 60px) / 2.1))}
  .tile .bar{padding:10px 10px 12px}
}
