/* The quiz: a start screen with the town chronicle, one round at a time, the result. Builds on arhiv.css (grain, prints, buttons). */
.pogodi-page { min-height: 100vh; min-height: 100svh; }
.pogodi-page .btn.big { min-height: 54px; padding: 0 34px; font-size: .9rem; letter-spacing: .04em; transition: transform .25s cubic-bezier(.2, .7, .2, 1), background .25s ease; }
.pogodi-page .btn.big:hover { transform: translateY(-2px); background: #a5e6ea; }
.pogodi-page .btn.big.ghost:hover { background: rgba(246, 244, 238, .08); }
.kv-link { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sand); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
#kv { --pad: clamp(20px, 4vw, 64px); }
#kv-network { margin: 1rem 0; line-height: 1.5; color: var(--sand); }
#kv .print { cursor: default; }
#kv .print:hover { transform: rotate(var(--r)); }

/* ---------- 1. start: the choice, the play button and the town chronicle ---------- */
.kv-intro { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 460px); grid-template-areas: "home chron" "more chron"; align-items: start; column-gap: clamp(40px, 5vw, 88px); max-width: 1360px; margin: 0 auto; padding: 82px var(--pad) 72px; }
.kv-home { grid-area: home; min-width: 0; }
.kv-chron-home { grid-area: chron; min-width: 0; padding-top: 30px; }
.kv-more { grid-area: more; min-width: 0; margin-top: 40px; }
.kv-intro .eyebrow { color: var(--sand); }
.kv-intro h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(3.3rem, 5.4vw, 5rem); line-height: .88; letter-spacing: -.02em; margin-bottom: 22px; }
.kv-intro h1 em { display: block; color: transparent; -webkit-text-stroke: 1.4px var(--sand); }
/* three prints fanned out above the title, the last with a question mark */
.kv-fan { position: relative; height: 160px; max-width: 520px; margin-bottom: 16px; }
.kv-fan figure { position: absolute; left: 50%; top: 50%; width: 180px; translate: -50% -50%; transform: rotate(var(--r)) translate(var(--dx), var(--dy)); animation: kv-deal .9s cubic-bezier(.2, .7, .2, 1) both, kv-bob 6s ease-in-out infinite; animation-delay: var(--d), calc(1s + var(--d) * 4); }
.kv-fan img { display: block; width: 100%; height: auto; border: 7px solid var(--print); box-shadow: 0 20px 44px rgba(0, 0, 0, .6); filter: sepia(.25); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.kv-fan figure:hover img { transform: scale(1.05) rotate(1deg); }
.kv-fan figure::after { content: "?"; position: absolute; right: -14px; bottom: -18px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--ink); font: 500 1.8rem/1 var(--serif); box-shadow: 0 10px 24px rgba(0, 0, 0, .5); animation: kv-ping 2.4s ease-out 1.4s infinite; }
.kv-fan figure:not(:last-child)::after { display: none; }
@keyframes kv-deal { from { opacity: 0; transform: rotate(0deg) translate(0, 60px) scale(.9); } }
@keyframes kv-bob { 50% { translate: -50% calc(-50% - 7px); } }
@keyframes kv-ping { 0% { box-shadow: 0 0 0 0 rgba(127, 214, 220, .55), 0 10px 24px rgba(0, 0, 0, .5); } 70%, 100% { box-shadow: 0 0 0 14px rgba(127, 214, 220, 0), 0 10px 24px rgba(0, 0, 0, .5); } }

/* the games: one list, the same choice as the tabs of the chronicle */
.kv-picker { border: 0; padding: 0; margin: 0; min-width: 0; max-width: 540px; }
.kv-picker legend { margin-bottom: 12px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(246, 244, 238, .72); }
.kv-modes { display: grid; gap: 8px; }
.kv-modes button { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; width: 100%; min-height: 56px; padding: 8px 20px; border: 1px solid rgba(255, 255, 255, .27); border-radius: 12px; text-align: left; transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s cubic-bezier(.2, .7, .2, 1); }
.kv-modes b { font-weight: 500; font-size: 1rem; }
.kv-modes small { font-size: .8rem; opacity: .72; }
.kv-modes button:hover { border-color: var(--sand); transform: translateX(3px); }
.kv-modes button[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: var(--ink); transform: none; }
.kv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; max-width: 540px; }
.kv-actions .btn { flex: 1 1 140px; }
#kv-ranked { flex: 1.6 1 220px; }
.kv-limit { margin-top: 10px; max-width: 540px; font-size: .82rem; line-height: 1.5; color: rgba(246, 244, 238, .66); }

/* the daily challenge, one line */
.kv-daily { display: flex; align-items: center; gap: 16px; width: 100%; max-width: 540px; margin-top: 24px; padding: 16px 0; border-top: 1px solid rgba(246, 244, 238, .16); border-bottom: 1px solid rgba(246, 244, 238, .16); text-align: left; }
.kv-daily-print { flex: none; width: 42px; height: 52px; padding: 3px 3px 10px; box-sizing: border-box; background: var(--print); box-shadow: 0 8px 18px rgba(0, 0, 0, .45); animation: kv-sway 4s ease-in-out infinite; }
.kv-daily-print span { display: grid; place-items: center; height: 100%; background: #23201b; color: var(--print); font: 500 1.4rem/1 var(--serif); }
.kv-daily-txt { flex: 1; min-width: 0; }
.kv-daily-txt b { display: block; font: 500 1.4rem/1.1 var(--serif); }
.kv-daily-txt small { display: block; margin-top: 5px; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(246, 244, 238, .66); font-variant-numeric: tabular-nums; }
.kv-daily-go { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sand); white-space: nowrap; transition: color .25s ease; }
.kv-daily:hover .kv-daily-go { color: var(--paper); }
.kv-daily:focus-visible { outline: 2px solid var(--sand); outline-offset: 4px; }
@keyframes kv-sway { 0%, 100% { rotate: -4deg; } 50% { rotate: -1deg; } }

/* ---------- the town chronicle: a register page, one name per line ---------- */
.kv-chron { position: relative; }
.kv-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* index tabs cut from paper: the open one is the page's own paper, the others older and a little crooked */
.kv-tabs { display: flex; align-items: flex-end; gap: 3px; padding: 0 8px; }
.kv-tabs button { position: relative; flex: 1 1 auto; min-width: 0; height: 42px; padding: 0 9px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: italic 400 1.08rem/1 var(--serif); color: #3d392f; background: linear-gradient(#d9d0ba, #c6bca3); clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 100%, 0 100%); transform-origin: bottom; transition: height .25s ease, filter .25s ease; }
.kv-tabs button:nth-child(1) { rotate: -1.2deg; }
.kv-tabs button:nth-child(2) { rotate: .8deg; }
.kv-tabs button:nth-child(3) { rotate: -.6deg; }
.kv-tabs button:nth-child(4) { rotate: 1deg; }
.kv-tabs button:hover { filter: brightness(1.06); }
.kv-tabs button[aria-selected="true"] { height: 50px; z-index: 1; rotate: 0deg; color: #1b1b1d; background: linear-gradient(#f5f0e4, var(--print)); filter: none; }
.kv-tabs button:focus-visible { outline: 2px solid #0f7a85; outline-offset: -5px; }
.kv-sheet { --pl: 46px; --pr: 18px; position: relative; padding: 24px var(--pr) 18px var(--pl); color: #1b1b1d; background-color: var(--print); background-image: var(--grain, none), linear-gradient(90deg, transparent 35px, rgba(156, 59, 44, .4) 35px 36px, transparent 36px); border-radius: 0 0 3px 3px; box-shadow: 0 30px 60px rgba(0, 0, 0, .6), 0 2px 4px rgba(0, 0, 0, .3), inset 0 0 50px rgba(120, 95, 50, .16); rotate: .3deg; }
.kv-sheet-k { text-align: center; font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: #55524a; }
#kv .kv-sheet h2 { margin-top: 4px; text-align: center; font: italic 400 clamp(2.2rem, 4vw, 2.7rem)/1 var(--serif); color: #1b1b1d; }
.kv-sheet-m { margin-top: 10px; padding-top: 8px; border-top: 3px double #1b1b1d; text-align: center; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: #55524a; }
/* the ruling belongs to the list, so every line holds one name */
.kv-lines { list-style: none; margin: 14px calc(-1 * var(--pr)) 0 calc(-1 * var(--pl)); padding: 0 var(--pr) 0 var(--pl); background: repeating-linear-gradient(180deg, transparent 0 43px, rgba(15, 122, 133, .25) 43px 44px); }
.kv-line { position: relative; display: flex; align-items: flex-end; gap: 10px; height: 44px; padding-bottom: 3px; font-family: Caveat, cursive; }
.kv-line .n { position: absolute; left: calc(7px - var(--pl)); bottom: 6px; width: 24px; text-align: right; font-weight: 500; font-size: 1.35rem; line-height: 1; color: #9c3b2c; }
.kv-line .w { flex: 1; min-width: 0; padding: .15em 0 0 var(--x, 0px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 1.8rem; line-height: 1.05; font-weight: 600; rotate: var(--tilt, 0deg); transform-origin: left bottom; }
.kv-line.top .w { font-size: 2.05rem; }
.kv-line .w.long { font-size: 1.45rem; }
.kv-line .s { font-size: 1.6rem; line-height: 1; font-weight: 600; rotate: -1deg; font-variant-numeric: tabular-nums; }
/* every name in another hand: ink, weight, tilt and indent change from line to line */
.kv-line:nth-child(4n+1) .w { color: #233f8c; font-weight: 700; }
.kv-line:nth-child(4n+2) .w { color: #1b1b1d; font-weight: 600; }
.kv-line:nth-child(4n+3) .w { color: #2d4fa8; font-weight: 500; }
.kv-line:nth-child(4n) .w { color: #4a4740; font-weight: 600; }
.kv-line:nth-child(5n+1) { --tilt: -2deg; }
.kv-line:nth-child(5n+2) { --tilt: 1.5deg; --x: 6px; }
.kv-line:nth-child(5n+3) { --tilt: -1deg; --x: 2px; }
.kv-line:nth-child(5n+4) { --tilt: 2deg; --x: 10px; }
.kv-line:nth-child(5n) { --tilt: -1.5deg; --x: 4px; }
.kv-line.me .w, .kv-line.me .s { color: #6b675d; font-weight: 400; rotate: 0deg; }
.kv-line.me .n { color: #55524a; }
.kv-line.empty { font-size: 1.5rem; color: #55524a; }
.kv-line.edit input { flex: 1; min-width: 0; padding: 0 0 0 6px; border: 0; border-radius: 0; background: none; font: 700 2rem/1.05 Caveat, cursive; color: #233f8c; rotate: -1deg; transform-origin: left bottom; }
.kv-line.edit input::placeholder { color: rgba(35, 63, 140, .45); }
.kv-line.edit input:focus { outline: none; box-shadow: 0 2px 0 #233f8c; }
.kv-note { margin-top: 6px; font: 500 1.3rem/1.2 Caveat, cursive; color: #55524a; rotate: -1deg; }
.kv-note:empty { display: none; }
/* the stamps reach over the lines around them, as on real paper, but each stays readable */
.kv-stamp { position: absolute; top: 50%; z-index: 2; width: 72px; height: 72px; margin-top: -36px; color: #9c3b2c; opacity: .86; pointer-events: none; }
.kv-line:nth-child(1) .kv-stamp { right: 35%; rotate: -14deg; width: 76px; height: 76px; margin-top: -38px; }
.kv-line:nth-child(2) .kv-stamp { right: 15%; rotate: 9deg; }
.kv-line:nth-child(3) .kv-stamp { right: 38%; rotate: -6deg; }
.kv-line.edit .kv-stamp { right: 17%; rotate: -9deg; }
/* ink is written, the stamps come down one after another */
@keyframes kv-write { from { clip-path: inset(-.5em 100% -.5em -.5em); } to { clip-path: inset(-.5em -.5em -.5em -.5em); } }
@keyframes kv-stamp { 0% { opacity: 0; transform: scale(2.3); } 55% { opacity: .95; transform: scale(.9); } 75% { transform: scale(1.04); } 100% { opacity: .86; transform: scale(1); } }
.kv-line .w, .kv-line .s, .kv-line.edit input { animation: kv-write .9s cubic-bezier(.5, .1, .3, 1) both; animation-delay: calc(.25s + var(--i) * .11s); }
.kv-line .s { animation-delay: calc(.4s + var(--i) * .11s); }
.kv-stamp { animation: kv-stamp .5s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(1.3s + var(--i) * .28s); }
.kv-sheet:not(.in) .kv-line * { animation-play-state: paused; }

.kv-dock { display: none; }

/* ---------- 2. one photograph ---------- */
.kv-round { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .9fr); grid-template-rows: auto 1fr; column-gap: clamp(28px, 5vw, 80px); padding: 84px var(--pad) 36px; }
.kv-top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 18px; }
.kv-dots { list-style: none; display: flex; gap: 7px; }
.kv-dots li { width: clamp(16px, 2.4vw, 34px); height: 4px; border-radius: 2px; background: rgba(246, 244, 238, .18); transition: background .4s ease; }
.kv-dots li.now { background: var(--paper); }
.kv-dots li.g { background: var(--sand); }
.kv-dots li.m { background: #d9b45a; }
.kv-dots li.b { background: #c9705a; }
.kv-score { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(246, 244, 238, .66); white-space: nowrap; }
.kv-score b { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; letter-spacing: 0; color: var(--paper); margin-left: 8px; font-variant-numeric: lining-nums; vertical-align: -3px; }
.kv-photo { display: flex; align-items: center; justify-content: center; min-height: 0; }
.kv-photo .print { --r: -1.4deg; max-width: 100%; animation: kv-in .8s cubic-bezier(.2, .7, .2, 1) both; }
.kv-photo img { display: block; max-width: 100%; max-height: min(66vh, 640px); width: auto; height: auto; border-width: 10px; }
@keyframes kv-in { from { opacity: 0; transform: rotate(3deg) translateY(40px) scale(.95); } }
.kv-panel { align-self: center; max-width: 520px; }
.kv-n { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sand); margin-bottom: 12px; font-variant-numeric: lining-nums; }
.kv-panel h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; color: rgba(246, 244, 238, .9); }
.kv-year { font-family: var(--serif); font-weight: 500; font-size: clamp(5.6rem, 11vw, 10.5rem); line-height: .9; margin: 10px 0 6px -4px; color: transparent; -webkit-text-stroke: 1.4px var(--sand); font-variant-numeric: lining-nums tabular-nums; transition: color .5s ease; }
.kv-year.done { color: var(--paper); -webkit-text-stroke: 0; }
/* the ruler: a tick per year, a longer one with the number every ten */
.kv-ruler { position: relative; height: 64px; margin: 0 11px; }
.kv-ticks { position: absolute; left: 0; right: 0; top: 0; height: 100%; background: repeating-linear-gradient(90deg, rgba(246, 244, 238, .3) 0 1px, transparent 1px calc(100% / var(--n, 114))); background-size: 100% 9px; background-repeat: no-repeat; }
.kv-ticks span { position: absolute; top: 0; width: 1px; height: 18px; background: rgba(246, 244, 238, .7); }
.kv-ticks span b { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); font: 400 .64rem/1 var(--sans); letter-spacing: .12em; color: rgba(246, 244, 238, .62); font-variant-numeric: lining-nums; }
#kv-range { -webkit-appearance: none; appearance: none; position: absolute; left: -11px; right: -11px; top: -8px; width: calc(100% + 22px); height: 44px; margin: 0; background: none; cursor: grab; }
#kv-range:active { cursor: grabbing; }
#kv-range::-webkit-slider-runnable-track { height: 44px; background: none; }
#kv-range::-moz-range-track { height: 44px; background: none; }
#kv-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 44px; border: 0; border-radius: 11px; background: linear-gradient(var(--paper), var(--paper)) center / 2px 100% no-repeat, radial-gradient(circle at 50% 11px, var(--paper) 10px, transparent 11px); filter: drop-shadow(0 0 8px rgba(127, 214, 220, .7)); }
#kv-range::-moz-range-thumb { width: 22px; height: 44px; border: 0; border-radius: 11px; background: linear-gradient(var(--paper), var(--paper)) center / 2px 100% no-repeat, radial-gradient(circle at 50% 11px, var(--paper) 10px, transparent 11px); }
#kv-range:focus-visible { outline: 1px solid var(--sand); outline-offset: 2px; }
#kv-range:disabled { cursor: default; opacity: .75; }
.kv-true { position: absolute; top: -8px; width: 2px; height: 44px; margin-left: -1px; background: var(--sand); opacity: 0; transform-origin: top; }
.kv-true::before { content: ""; position: absolute; left: -9px; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--sand); box-shadow: 0 0 0 6px rgba(127, 214, 220, .2); }
.kv-gap { position: absolute; top: 1px; height: 2px; background: linear-gradient(90deg, var(--sand), var(--paper)); opacity: 0; }
.kv-gap.rev { background: linear-gradient(90deg, var(--paper), var(--sand)); }
.shown .kv-true { opacity: 1; animation: kv-drop .6s cubic-bezier(.2, .7, .2, 1) both; }
.shown .kv-gap { opacity: 1; transition: opacity .5s .3s ease; }
@keyframes kv-drop { from { opacity: 0; transform: translateY(-26px); } }
.kv-step { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.kv-step > button:not(.btn) { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(246, 244, 238, .28); font-size: 1.4rem; line-height: 1; transition: border-color .25s ease, background .25s ease; }
.kv-step > button:not(.btn):hover { border-color: var(--sand); background: rgba(127, 214, 220, .1); }
.kv-step .btn { flex: 1; }
.kv-ans { margin-top: 20px; animation: lb-txt .6s .25s cubic-bezier(.2, .7, .2, 1) both; }
.kv-verdict { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.1; }
.kv-pts { margin-top: 6px; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sand); font-variant-numeric: lining-nums; }
.kv-cap { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(246, 244, 238, .16); font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.4; color: rgba(246, 244, 238, .86); }
.kv-ans-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 22px; }

/* a question without a photograph: a paper card in the place of the print */
.kv-card { width: min(100%, 520px); min-height: 280px; padding: clamp(26px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 22px; background: var(--print); color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); transform: rotate(-1deg); animation: kv-in .8s cubic-bezier(.2, .7, .2, 1) both; position: relative; }
.kv-card::before { content: "?"; position: absolute; right: -16px; top: -20px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); font: 500 2rem/1 var(--serif); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.kv-card-n { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(14, 18, 20, .55); }
.kv-card-q { font-family: var(--serif); font-size: clamp(1.45rem, 2.5vw, 2.05rem); line-height: 1.22; }
.kv-year.long { font-size: clamp(3.4rem, 7vw, 6.4rem); line-height: 1.1; }
.kv-opts { display: grid; gap: 10px; margin-top: 18px; }
.kv-opts button { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 56px; padding: 10px 18px; text-align: left; border: 1px solid rgba(246, 244, 238, .28); border-radius: 4px; font-size: 1.02rem; transition: border-color .25s ease, background .25s ease, transform .25s ease; }
.kv-opts button i { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(246, 244, 238, .4); font: normal .72rem/1 var(--sans); letter-spacing: .04em; }
.kv-opts button:not(:disabled):hover { border-color: var(--sand); background: rgba(127, 214, 220, .1); transform: translateX(3px); }
.kv-opts button:disabled { cursor: default; opacity: .55; }
.kv-opts button.ok { opacity: 1; background: var(--sand); border-color: var(--sand); color: var(--ink); }
.kv-opts button.ok i { border-color: var(--ink); }
.kv-opts button.no { opacity: 1; border-color: #c9705a; color: #e8a08c; text-decoration: line-through; }

/* ---------- 3. result ---------- */
.kv-end { min-height: 100vh; min-height: 100svh; padding: 110px var(--pad) 80px; max-width: 1180px; margin: 0 auto; }
.kv-end .eyebrow { color: var(--sand); }
.kv-final { display: flex; align-items: baseline; gap: 16px; font-family: var(--serif); font-weight: 500; line-height: .85; font-variant-numeric: lining-nums; }
.kv-final b { font-weight: 500; font-size: clamp(6rem, 17vw, 14rem); letter-spacing: -.02em; }
.kv-final span { font-size: clamp(1.4rem, 3vw, 2.4rem); color: rgba(246, 244, 238, .5); }
.kv-end h2 { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.05; color: var(--sand); margin-top: 18px; }
.kv-avg { margin-top: 10px; color: rgba(246, 244, 238, .78); }
/* a ranked game: the chronicle opens at the place of the score, the name is written on the empty line */
#kv-submit { max-width: 460px; margin: 34px 0 8px; }
#kv-submit .kv-tabs { display: none; }
#kv-submit .kv-sheet { border-radius: 3px; rotate: -.6deg; }
#kv-form { margin-top: 24px; }
#kv-form .btn { width: 100%; }
.kv-visible { margin-top: 10px; font-size: .82rem; line-height: 1.5; color: rgba(246, 244, 238, .66); }
.kv-end-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 30px 0 54px; }
.kv-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px 20px; }
.kv-list a { display: block; color: inherit; text-decoration: none; }
.kv-list img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 5px solid var(--print); box-shadow: 0 12px 28px rgba(0, 0, 0, .5); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.kv-list li:nth-child(odd) img { transform: rotate(-1.2deg); }
.kv-list li:nth-child(even) img { transform: rotate(1deg); }
.kv-list a:hover img { transform: rotate(0deg) scale(1.03); }
.kv-list p { margin-top: 12px; font-size: .8rem; color: rgba(246, 244, 238, .7); font-variant-numeric: lining-nums; }
.kv-list p b { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--paper); margin-right: 8px; }
.kv-list p i { font-style: normal; }
.kv-qcard { aspect-ratio: 4 / 3; padding: 12px 14px; display: flex; flex-direction: column; justify-content: space-between; background: var(--print); color: var(--ink); border: 5px solid var(--print); box-shadow: 0 12px 28px rgba(0, 0, 0, .5); }
.kv-qcard span { font: 500 1.6rem/1 var(--serif); }
.kv-qcard small { font-size: .72rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.kv-list li:nth-child(odd) .kv-qcard { transform: rotate(-1.2deg); } .kv-list li:nth-child(even) .kv-qcard { transform: rotate(1deg); }
.kv-list .g i { color: var(--sand); } .kv-list .m i { color: #d9b45a; } .kv-list .b i { color: #e08a74; }

@media (max-width: 899px) {
  .kv-intro { display: block; padding: 76px var(--pad) 110px; }
  .kv-fan { height: 150px; max-width: 360px; margin: 0 auto 18px; }
  .kv-fan figure { width: 130px; }
  .kv-fan img { border-width: 5px; }
  .kv-fan figure::after { width: 40px; height: 40px; font-size: 1.4rem; right: -10px; bottom: -14px; }
  .kv-intro h1 { margin-bottom: 20px; }
  .kv-intro .btn.big { padding: 0 20px; }
  .kv-chron-home { margin-top: 46px; padding-top: 0; }
  .kv-more { margin-top: 36px; }
  .kv-sheet { --pl: 44px; --pr: 14px; padding-top: 22px; rotate: 0deg; }
  .kv-sheet-m { letter-spacing: .14em; }
  .kv-dock { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 20px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(17, 22, 20, 0), #111614 40%); transform: translateY(110%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
  .kv-dock.on { transform: none; pointer-events: auto; }
  .kv-dock .btn { width: 100%; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
  .kv-round { display: flex; flex-direction: column; padding: 70px var(--pad) 24px; }
  .kv-top { padding-bottom: 12px; }
  .kv-dots:not(.lives) { min-width: 0; flex: 1; gap: 3px; }
  .kv-dots:not(.lives) li { min-width: 0; }
  /* the question and its answers sit in the middle of the screen, nearer the thumb */
  .kv-photo { flex: none; padding: 6px 0 14px; margin-top: auto; }
  .kv-photo img { max-height: 36svh; border-width: 7px; }
  .kv-panel { align-self: stretch; max-width: none; margin-bottom: auto; }
  .kv-n { margin-bottom: 6px; }
  .kv-panel h2 { font-size: 1.25rem; }
  .kv-year { font-size: clamp(4.4rem, 22vw, 6rem); margin: 4px 0 2px -2px; }
  .kv-ticks span:nth-child(even) b { display: none; }
  .kv-ticks span.scale-end b { display: block; }
  .kv-card { min-height: 0; padding: 22px; gap: 12px; margin-bottom: 14px; }
  .kv-card::before { top: auto; bottom: -20px; right: 16px; width: 46px; height: 46px; font-size: 1.6rem; }
  .kv-opts { gap: 8px; margin-top: 12px; }
  .kv-opts button { min-height: 52px; font-size: .98rem; }
  .kv-step { margin-top: 12px; }
  .kv-ans { margin-top: 12px; }
  .kv-cap { margin-top: 10px; padding-top: 10px; font-size: 1.05rem; }
  .kv-ans-act .btn { width: 100%; }
  .kv-end { padding-top: 90px; }
  .kv-end-act .btn { flex: 1 1 100%; }
  .kv-list { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
  .kv-list p b { display: block; }
}
@media (max-width: 599px) {
  .kv-modes button { min-height: 52px; padding: 8px 18px; }
  .kv-modes small { display: none; }
}
@media (max-width: 400px) {
  .kv-tabs { padding: 0 4px; }
  .kv-tabs button { padding: 0 6px; font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) {
  .kv-fan figure, .kv-fan figure::after, .kv-daily-print, .kv-photo .print, .kv-card, .kv-ans, .shown .kv-true, .kv-line *, .kv-stamp { animation: none; }
  .kv-dock { transition: none; }
}

/* source of an answer */
.kv-src{margin:.5rem 0 0;font-size:.82rem;opacity:.7;line-height:1.4}
.kv-src a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.kv-src a:hover{opacity:1}

.kv-bank { max-width: 34em; font-size: .86rem; line-height: 1.5; color: rgba(246, 244, 238, .7); }

/* list of sources on the start screen */
.kv-srcs { margin-top: 14px; max-width: 34em; font-size: .84rem; color: rgba(246, 244, 238, .7); }
.kv-srcs summary { cursor: pointer; width: fit-content; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; color: rgba(246, 244, 238, .8); }
.kv-srcs summary:hover { color: #f6f4ee; }
.kv-srcs p { margin: 10px 0 8px; line-height: 1.5; }
.kv-srcs ul { margin: 0; padding: 0 0 0 1.1em; line-height: 1.7; }
.kv-srcs a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.kv-srcs a:hover { color: #f6f4ee; }

/* three mistakes: the lives in the top bar */
.kv-dots.lives { gap: 10px; }
.kv-dots.lives li { width: 14px; height: 14px; border-radius: 50%; background: var(--sand); box-shadow: 0 0 0 4px rgba(127, 214, 220, .16); transition: background .4s ease, box-shadow .4s ease, transform .4s cubic-bezier(.2, .7, .2, 1); }
.kv-dots.lives li.lost { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(246, 244, 238, .35); transform: scale(.8); }

/* the result as a picture */
.kv-shot { margin: 30px 0 0; width: min(100%, 340px); }
.kv-shot img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 30px 70px rgba(0, 0, 0, .55); background: #111614; }
.kv-shot img:not([src]) { aspect-ratio: 4 / 5; }
.pogodi-page a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
@media (min-width: 900px) {
  .kv-end { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 60px; align-items: start; }
  .kv-end > * { grid-column: 1; }
  .kv-end .kv-shot { grid-column: 2; grid-row: 1 / span 5; margin-top: 0; }
  .kv-end .kv-list { grid-column: 1 / -1; }
}
#kv [hidden] { display: none !important; }
