/* spot the fake todd (#fake) — sekcja gry. Wartości 1:1 z makiety (Toddverse.dc.html, sekcja #fake). */

.fake { position: relative; overflow: hidden; background: var(--green); color: var(--paper); padding: clamp(64px, 9vw, 120px) 0; scroll-margin-top: 60px; border-top: 3px solid var(--ink); }
html[data-only] .fake { padding: 16px 0; }
html[data-only] .fake__head, html[data-only] .fake__side { display: none; }
.fake__rays { position: absolute; left: 50%; top: 40%; width: 2000px; height: 2000px; margin: -1000px 0 0 -1000px; background: repeating-conic-gradient(from 0deg, #5E6B20 0deg 7deg, transparent 7deg 14deg); }
.fake__in { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 clamp(12px, 4vw, 40px); display: flex; flex-direction: column; gap: clamp(24px, 3.5vw, 36px); }
.fake__h2 { font-size: clamp(44px, 7.4vw, 96px); }
.fake__row { display: flex; flex-wrap: wrap; gap: clamp(24px, 3vw, 40px); align-items: flex-start; justify-content: center; }

/* ramka gry */
.fk-frame { position: relative; flex: 0 1 430px; width: 100%; max-width: 430px; aspect-ratio: 3/5; border: 3px solid var(--ink); border-radius: 28px; overflow: hidden; background: #3F5B47; box-shadow: 0 0 0 6px var(--paper), 9px 10px 0 6px var(--ink); user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.fk-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; cursor: pointer; }

/* HUD */
.fk-hud { position: absolute; left: 0; right: 0; top: 0; padding: 12px 12px 0; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.fk-bar { position: relative; height: 22px; border: 3px solid var(--ink); border-radius: 999px; background: var(--paper); overflow: hidden; box-shadow: 3px 3px 0 var(--ink); }
.fk-bar__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: repeating-linear-gradient(-55deg, #FFE066 0 7px, #F3D04C 7px 10px, #FFE066 10px 14px); border-right: 3px solid var(--ink); }
.fk-bar__sec { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-weight: 800; font-size: 12px; color: var(--ink); }
.fk-hud__row { display: flex; justify-content: space-between; align-items: center; }
.fk-level { background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 999px; padding: 5px 11px; font-weight: 800; font-size: 14px; box-shadow: 2px 2px 0 var(--ink); transform: rotate(-3deg); }
.fk-score { font-family: var(--bowlby); font-size: 44px; line-height: .9; color: var(--gold); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 3px 4px 0 var(--ink); }
.fk-pausebtn { pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0; }
.fk-pausebtn span { width: 5px; height: 15px; background: var(--ink); border-radius: 2px; }
.fk-combo { align-self: center; background: var(--gold); color: var(--ink); border: 3px solid var(--ink); border-radius: 999px; padding: 4px 14px; font-family: var(--bowlby); font-size: 18px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-4deg); }

/* wspólne przyciski w ramce */
.fk-btn { color: var(--ink); background: var(--paper); border: 3px solid var(--ink); border-radius: 999px; padding: 13px 16px; font-weight: 800; font-size: 16px; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); width: 100%; }
.fk-btn--daily { background: var(--gold); font-size: 17px; padding: 14px; }
.fk-btn--daily.is-played { background: var(--skel); cursor: default; }
.fk-btn--gold { background: var(--gold); }
.fk-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.fk-btn--daily.is-played:active { transform: none; box-shadow: 3px 3px 0 var(--ink); }
.fk-link { background: none; border: 0; padding: 0; font-weight: 800; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--ink); }
.fk-link--light { color: var(--paper); }
.fk-link--quit { font-size: 15px; padding: 1px 6px; }
.fk-back { flex: none; background: var(--gold); border: 2.5px solid var(--ink); border-radius: 999px; padding: 7px 13px; font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); color: var(--ink); }

/* start */
.fk-start { position: absolute; inset: 0; background: linear-gradient(rgba(63,91,71,.55), rgba(63,91,71,.82)); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 18px 16px 16px; gap: 10px; }
.fk-start__top { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fk-guard { width: 120px; height: 120px; margin-bottom: -8px; }
.fk-start__title { font-family: var(--bowlby); font-size: 38px; line-height: .9; text-align: center; color: var(--gold); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 3px 4px 0 var(--ink); }
.fk-vs { display: flex; align-items: center; gap: 12px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 20px; padding: 8px 12px; box-shadow: 4px 4px 0 var(--ink); }
.fk-vs__col { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fk-vs__col img { width: 66px; height: 66px; }
.fk-vs__tag { font-weight: 800; font-size: 12px; border: 2px solid var(--ink); border-radius: 999px; padding: 1px 8px; }
.fk-vs__tag--real { background: var(--olive); }
.fk-vs__tag--fake { background: var(--ink); color: var(--gold); }
.fk-vs__vs { font-family: var(--bowlby); font-size: 18px; }
.fk-vs__txt { font-weight: 800; font-size: 13px; line-height: 1.25; max-width: 96px; }
.fk-start__btns { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.fk-start__meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 10px; font-weight: 800; font-size: 13px; color: var(--paper); }
.fk-streak { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: var(--gold); border-radius: 999px; padding: 3px 10px 3px 6px; }
.fk-streak__fly { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid var(--paper); box-shadow: -4px -3px 0 -1px var(--paper), 4px -3px 0 -1px var(--paper); }
.fk-start__best { padding: 3px 0; }
.fk-start__links { display: flex; justify-content: center; gap: 16px; font-weight: 800; font-size: 14px; }

/* pauza */
.fk-paused { position: absolute; inset: 0; background: rgba(30,28,20,.6); display: flex; align-items: center; justify-content: center; padding: 20px; }
.fk-paused__card { width: 100%; max-width: 300px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 6px 6px 0 var(--ink); padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.fk-paused__title { font-family: var(--bowlby); font-size: 40px; line-height: 1; }
.fk-paused__txt { font-size: 15px; color: var(--green); }

/* koniec gry */
.fk-over { position: absolute; inset: 0; background: rgba(30,28,20,.5); display: flex; align-items: flex-end; justify-content: center; padding: 10px; }
.fk-over__card { position: relative; width: 100%; max-height: 100%; overflow: auto; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 5px 5px 0 var(--ink); padding: 14px 16px 16px; display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; }
.fk-over__mode { background: var(--ink); color: var(--gold); border-radius: 999px; padding: 3px 11px; font-weight: 800; font-size: 12px; transform: rotate(-2deg); }
.fk-over__quip { font-family: var(--bowlby); font-size: 27px; line-height: 1; }
.fk-over__score { display: flex; align-items: flex-end; justify-content: center; gap: 16px; }
.fk-over__pts { display: flex; flex-direction: column; align-items: center; }
.fk-over__n { font-family: var(--bowlby); font-size: 52px; line-height: .9; }
.fk-over__lbl { font-weight: 800; font-size: 12px; color: var(--green); }
.fk-over__facts { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding-bottom: 4px; font-weight: 800; font-size: 14px; }
.fk-over__best { background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 1px 8px; font-size: 12px; transform: rotate(-2deg); }
.fk-over__best.is-new { background: var(--gold); }
.fk-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 100%; }
.fk-tiles span { width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--ink); }
.fk-newfakes { font-weight: 800; font-size: 13px; background: var(--gold); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px; }
.fk-spotted { width: 100%; border: 2.5px dashed var(--ink); border-radius: 14px; padding: 7px 10px; display: flex; flex-direction: column; gap: 2px; }
.fk-spotted__txt { font-weight: 800; font-size: 13px; }
.fk-spotted__lnk { font-weight: 800; font-size: 12px; }
.fk-nick { width: 100%; display: flex; gap: 8px; margin: 0; }
.fk-nick input { flex: 1; min-width: 0; border: 2.5px solid var(--ink); border-radius: 999px; padding: 9px 14px; font-weight: 800; font-size: 15px; background: #fff; outline: 0; color: var(--ink); }
.fk-nick input:focus-visible { outline: 3px dashed var(--ink); outline-offset: 2px; }
.fk-nick button { flex: none; background: var(--ink); color: var(--gold); border: 2.5px solid var(--ink); border-radius: 999px; padding: 9px 14px; font-weight: 800; font-size: 14px; cursor: pointer; }
.fk-saved { font-weight: 800; font-size: 13px; color: var(--green); }
.fk-over__btns { width: 100%; display: flex; gap: 8px; }
.fk-over__again { width: auto; flex: 1.2; }
.fk-over__share { flex: 1; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--paper); border: 3px solid var(--ink); border-radius: 999px; padding: 13px 10px; font-weight: 800; font-size: 16px; text-decoration: none; }
.fk-over__share:hover { color: var(--gold); }
.fk-over__links { display: flex; gap: 16px; }
.fake .fk-over :focus-visible, .fake .fk-paused :focus-visible, .fake .fk-board :focus-visible, .fake .fk-album :focus-visible { outline-color: var(--ink); }

/* ranking */
.fk-board { position: absolute; inset: 0; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; padding: 18px; gap: 12px; }
.fk-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fk-board__title { font-family: var(--bowlby); font-size: 28px; line-height: 1; }
.fk-board__tabs { display: flex; gap: 6px; }
.fk-tab { flex: 1; border: 2.5px solid var(--ink); border-radius: 999px; padding: 8px; font-weight: 800; font-size: 14px; cursor: pointer; color: var(--ink); background: var(--paper); }
.fk-tab.is-on { background: var(--gold); }
.fk-board__rows { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-bottom: 2px dashed var(--sage); border-radius: 10px; }
.lb-row.is-me { background: var(--gold); }
.lb-row__rank { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.lb-row__name { flex: 1; min-width: 0; font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row__f { flex: none; font-size: 12px; color: var(--green); white-space: nowrap; }
.lb-row__s { flex: none; font-family: var(--bowlby); font-size: 20px; min-width: 36px; text-align: right; }
.fk-board__note { font-size: 12px; color: var(--green); text-align: center; }

/* album podróbek */
.fk-album { position: absolute; inset: 0; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; padding: 16px; gap: 10px; }
.fk-album__head { display: flex; flex-direction: column; }
.fk-album__title { font-family: var(--bowlby); font-size: 26px; line-height: 1; }
.fk-album__sub { font-weight: 800; font-size: 13px; color: var(--green); }
.fk-album__grid { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-content: start; padding: 2px 2px 6px; }
.fk-card { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 2.5px solid var(--ink); border-radius: 12px; padding: 4px 3px 6px; box-shadow: 2px 2px 0 var(--ink); transform: rotate(var(--rot)); background: #fff; }
.fk-card.is-locked { background: var(--skel); }
.fk-card img { width: 100%; aspect-ratio: 1/1; }
.fk-card.is-locked img { filter: brightness(0); opacity: .22; }
.fk-card__name { font-weight: 800; font-size: 10px; line-height: 1.1; text-align: center; min-height: 22px; }
.fk-card__meta { font-weight: 800; font-size: 9px; color: var(--green); }

/* kolumna boczna */
.fake__side { flex: 1 1 300px; max-width: 520px; display: flex; flex-direction: column; gap: 24px; }
/* arcade (handoff 8): kafle-zakładki gier, ramki per gra, panel boczny per gra */
.ar-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.ar-tab { position: relative; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 20px; padding: 12px 14px; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); transition: transform .18s, box-shadow .18s; font: inherit; }
.ar-tab:hover { transform: translateY(-3px); }
.ar-tab.is-on { background: var(--gold); box-shadow: 0 0 0 4px var(--paper), 6px 7px 0 4px var(--ink); transform: rotate(-1deg); }
.ar-tab__pic { position: relative; flex: none; width: 60px; height: 60px; border-radius: 14px; border: 2.5px solid var(--ink); overflow: hidden; }
.ar-tab__pic img { position: absolute; }
.ar-tab__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ar-tab__name { font-family: var(--bowlby); font-size: 21px; line-height: 1; }
.ar-tab__sub { font-size: 13px; line-height: 1.3; }
.ar-tab__badge { position: absolute; top: -12px; right: 14px; border-radius: 999px; font-weight: 800; font-size: 12px; transform: rotate(3deg); display: none; }
.ar-tab__badge--on { background: var(--ink); color: var(--gold); padding: 3px 10px; }
.ar-tab__badge--new { background: var(--gold); color: var(--ink); border: 2.5px solid var(--ink); padding: 2px 10px; }
.ar-tab.is-on .ar-tab__badge--on, .ar-tab:not(.is-on) .ar-tab__badge--new { display: inline-block; }
.ar-stage { flex: 0 1 430px; width: 100%; max-width: 430px; }
/* komputer (prośba Huberta 2026-10-06): ramka gry większa, od lewej krawędzi kafli; 480×800, ale nie wyższa niż ekran (min. 430 jak w makiecie) */
@media (min-width: 761px) {
  .fake__row:has(.ar-stage) { justify-content: flex-start; }
  .ar-stage { --ar-w: max(430px, min(480px, calc((100dvh - 110px) * .6))); flex: 0 0 var(--ar-w); max-width: var(--ar-w); }
  .ar-stage .fk-frame:not(.is-full) { max-width: none; }
  .fake__row:has(.ar-stage) .fake__side { max-width: none; }
}
.ar-pane[hidden], .ar-side[hidden] { display: none; }
.ar-side { display: flex; flex-direction: column; gap: 24px; }
.ar-frame--slots { min-height: 600px; }
.fk-top5 { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.fk-top5__head { display: flex; justify-content: space-between; align-items: center; }
.fk-top5__title { font-family: var(--bowlby); font-size: 22px; }
.fk-top5__full { white-space: nowrap; background: none; border: 0; padding: 0; font-weight: 800; font-size: 14px; text-decoration: underline; cursor: pointer; color: var(--ink); }
#fk-top5 { display: flex; flex-direction: column; gap: 12px; }
#fk-top5:empty { display: none; }
.t5-row { display: flex; align-items: center; gap: 10px; }
.t5-row__rank { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; }
.t5-row__name { flex: 1; min-width: 0; font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t5-row__s { font-family: var(--bowlby); font-size: 18px; }
.fk-legend { display: flex; flex-direction: column; gap: 10px; background: var(--gold); color: var(--ink); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); padding: 16px 18px; transform: rotate(-1deg); }
.fk-legend__title { font-family: var(--bowlby); font-size: 20px; }
.fk-legend__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fk-legend__card { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; padding: 4px; }
.fk-legend__card img { width: 100%; aspect-ratio: 1/1; }
.fk-legend__card span { font-weight: 800; font-size: 11px; text-align: center; line-height: 1.1; }
.fk-legend__note { font-size: 13px; font-weight: 800; }

/* pełny ekran na telefonie: ramka gry nad stroną, proporcje 3:5 bez zmian */
html.fk-full, html.fk-full body { overflow: hidden; overscroll-behavior: none; }
html.fk-full::after { content: ''; position: fixed; inset: 0; background: #1E1C14; z-index: 140; }
.fk-frame.is-full { position: fixed; inset: calc(env(safe-area-inset-top, 0px) + 60px) 0 0 0; margin: auto; z-index: 150; width: min(100vw, calc((100dvh - 60px - env(safe-area-inset-top, 0px)) * 3 / 5)); max-width: none; height: auto; flex: none; border-radius: 0; border-width: 0; box-shadow: none; transform: none !important; opacity: 1 !important; }
.fk-exit { position: fixed; z-index: 160; top: calc(env(safe-area-inset-top, 0px) + 10px); right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); background: var(--gold); color: var(--ink); font-weight: 800; font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 0; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
.fk-exit[hidden] { display: none; }
