/* real toddler board (handoff 10, „Toddler Board.dc.html”): samodzielna strona, style 1:1 z makiety (bez styles.css strony głównej) */
/* szerokość jak strona główna (.wrap / .topbar__in: 1240 px), prośba Huberta 2026-10-19; makieta miała 720 px */
@font-face { font-family: 'Bowlby One'; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/bowlby-one-400.woff2) format('woff2'); }
@font-face { font-family: 'Shantell Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(../assets/fonts/shantell-sans-600.woff2) format('woff2'); }
@font-face { font-family: 'Shantell Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url(../assets/fonts/shantell-sans-800.woff2) format('woff2'); }
@font-face { font-family: 'TV ZH'; font-weight: 400 900; src: local('PingFangSC-Semibold'), local('Microsoft YaHei Bold'), local('MicrosoftYaHei-Bold'), local('NotoSansSC-Bold'), local('Noto Sans SC Bold'), local('NotoSansCJKsc-Bold'); }

html, body { margin: 0; background: #FBF3DC; }
* { box-sizing: border-box; }
a { color: #55611B; } a:hover { color: #1E1C14; }
button { font-family: inherit; }
::selection { background: #FFE066; color: #1E1C14; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.tb { position: relative; min-height: 100vh; background: #FBF3DC; color: #1E1C14; font-family: 'Shantell Sans', 'TV ZH', sans-serif; font-weight: 600; overflow-x: hidden; }
html[lang="zh-CN"] .tb-h1, html[lang="zh-CN"] .tb-h2, html[lang="zh-CN"] .tb-code h2 { font-family: 'Bowlby One', 'TV ZH', sans-serif; }
.tb-grain { position: fixed; inset: 0; background-image: url(../assets/grain.webp); background-size: 420px; mix-blend-mode: multiply; opacity: .22; pointer-events: none; z-index: 90; }

.tb-head { position: relative; z-index: 6; background: #FBF3DC; border-bottom: 3px solid #1E1C14; }
.tb-head__in { max-width: 1240px; margin: 0 auto; padding: 10px clamp(12px, 3vw, 40px); display: flex; align-items: center; gap: 12px; }
.tb-mark { font-family: 'Bowlby One', sans-serif; font-size: 26px; line-height: 1; color: #1E1C14; text-decoration: none; text-shadow: 2px 2px 0 #FFE066; }
.tb-mark:hover { color: #1E1C14; }
.tb-sp { flex: 1; }
.tb-lang { display: flex; background: #fff; border: 2.5px solid #1E1C14; border-radius: 999px; padding: 2px; gap: 2px; }
.tb-lang button { background: transparent; color: #1E1C14; border: 0; border-radius: 999px; padding: 6px 10px; font-weight: 800; font-size: 13px; line-height: 1; cursor: pointer; }
.tb-lang button[aria-pressed="true"] { background: #1E1C14; color: #FFE066; }

.tb-main { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(28px, 5vw, 48px) clamp(16px, 4vw, 40px) 64px; display: flex; flex-direction: column; gap: 32px; }
.tb-hero { display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.tb-hero__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.tb-eyebrow { display: inline-flex; background: #7E8C2E; color: #1E1C14; border: 2.5px solid #1E1C14; border-radius: 999px; padding: 5px 13px; font-weight: 800; font-size: 14px; box-shadow: 3px 3px 0 #1E1C14; transform: rotate(-3deg); }
.tb-h1 { margin: 0; font-family: 'Bowlby One', sans-serif; font-weight: 400; font-size: clamp(46px, 11vw, 88px); line-height: .9; letter-spacing: -.01em; color: #FFE066; -webkit-text-stroke: 3px #1E1C14; paint-order: stroke fill; text-shadow: 5px 6px 0 #1E1C14; text-wrap: balance; }
.tb-sub { margin: 0; font-size: clamp(16px, 2.2vw, 19px); line-height: 1.45; color: #55611B; max-width: 46ch; text-wrap: pretty; }
.tb-hero__img { flex: none; width: clamp(96px, 22vw, 150px); height: clamp(96px, 22vw, 150px); object-fit: cover; border: 3px solid #1E1C14; border-radius: 22px; box-shadow: 5px 5px 0 #1E1C14; transform: rotate(4deg); }

.tb-score { position: sticky; top: 10px; z-index: 5; background: #FFE066; border: 3px solid #1E1C14; border-radius: 22px; box-shadow: 6px 6px 0 #1E1C14; padding: 14px 18px 14px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; }
.tb-score__face { width: 56px; height: 56px; border-radius: 50%; background: #7E8C2E; border: 2.5px solid #1E1C14; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.tb-score__face img { height: 50px; width: auto; transition: transform .35s cubic-bezier(.3, 1.7, .45, 1); }
.tb-mood { font-weight: 800; font-size: clamp(16px, 2.4vw, 19px); line-height: 1.2; text-wrap: balance; }
.tb-count { font-family: 'Bowlby One', sans-serif; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.tb-bar { grid-column: 1 / -1; height: 16px; border: 2.5px solid #1E1C14; border-radius: 999px; background: #FBF3DC; overflow: hidden; }
.tb-bar__fill { height: 100%; width: 0; background: #7E8C2E; border-right: 2.5px solid #1E1C14; transition: width .35s ease; }
.tb-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-weight: 800; font-size: 13px; }

.tb-sec { display: flex; flex-direction: column; gap: 12px; }
.tb-h2 { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-family: 'Bowlby One', sans-serif; font-weight: 400; font-size: clamp(26px, 4vw, 34px); line-height: 1; }
.tb-h2 small { font-family: 'Shantell Sans', 'TV ZH', sans-serif; font-weight: 800; font-size: 14px; color: #55611B; }

.tb-task { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; text-align: left; width: 100%; background: #fff; color: #1E1C14; border: 3px solid #1E1C14; border-radius: 18px; padding: 14px 16px; cursor: pointer; box-shadow: 4px 4px 0 #1E1C14; transition: transform .12s, box-shadow .12s, background .2s; }
.tb-task--bonus { border-style: dashed; }
.tb-task:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #1E1C14; }
.tb-task[aria-checked="true"] { background: #E4E8B8; box-shadow: 1px 1px 0 #1E1C14; transform: translate(3px, 3px); }
.tb-box { width: 34px; height: 34px; border: 2.5px solid #1E1C14; border-radius: 10px; background: #FBF3DC; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tb-box img { height: 28px; width: auto; margin-top: 6px; display: none; }
.tb-task[aria-checked="true"] .tb-box { background: #7E8C2E; }
.tb-task[aria-checked="true"] .tb-box img { display: block; }
.tb-task__txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tb-task__t { font-weight: 800; font-size: 17px; line-height: 1.25; } /* makieta: skrót text-decoration nadpisuje grubość i kolor, więc przekreślenie wychodzi cienkie, w kolorze tekstu */
.tb-task[aria-checked="true"] .tb-task__t { text-decoration-line: line-through; }
.tb-task__d { font-size: 14px; line-height: 1.35; color: #55611B; text-wrap: pretty; }
.tb-task__t img, .tb-task__d img { height: 1.3em; width: auto; vertical-align: -.3em; margin: 0 1px; }
.tb-n { background: #1E1C14; color: #FFE066; border-radius: 999px; padding: 4px 10px; font-weight: 800; font-size: 13px; white-space: nowrap; }
.tb-task--bonus .tb-n { background: #FFE066; color: #1E1C14; border: 2px solid #1E1C14; padding: 3px 10px; }
.tb-nobonus { margin: 0; font-weight: 800; color: #55611B; }

.tb-code { background: #1E1C14; color: #FBF3DC; border-radius: 22px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; transform: rotate(-.6deg); }
.tb-code h2 { margin: 0; font-family: 'Bowlby One', sans-serif; font-weight: 400; font-size: 26px; line-height: 1; color: #FFE066; }
.tb-code ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.4; }

.tb-reset { align-self: flex-start; background: #FBF3DC; color: #1E1C14; border: 2.5px solid #1E1C14; border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: 3px 3px 0 #1E1C14; }
.tb-reset:hover { background: #FFE066; }
.tb-reset:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #1E1C14; }
