:root { --cream: #f3e9c8; --amber: #ffd978; --kick: #53fc18; --ink: #07120b; }
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; min-height: 100vh; color: var(--cream); font-family: "Segoe UI", -apple-system, Roboto, Helvetica, Arial, sans-serif; line-height: 1.5;
       background: radial-gradient(ellipse at 50% -10%, #1f5a35 0%, #10301d 38%, #07120b 80%) fixed, #07120b; }
a { color: var(--amber); }
main { max-width: 880px; margin: 0 auto; padding: 0 16px 24px; }

/* the top: the supplied picture is the Kick address (a link to kick.com/takuu); a slim strip, cropped to the sign and the camp */
.top { text-align: center; padding: 12px 12px 0; }
.top h1 { margin: 0; line-height: 0; }
.top h1 a { display: block; width: min(100%, 760px); margin: 0 auto; border-radius: .9rem; overflow: hidden; box-shadow: 0 .5rem 1.3rem rgba(0, 0, 0, .55); }
.top h1 a img { display: block; width: 100%; height: auto; aspect-ratio: 3.6 / 1; object-fit: cover; object-position: 50% 42%; transition: filter .2s; }
.top h1 a:hover img, .top h1 a:focus-visible img { filter: brightness(1.1); }
.top h1 a:focus-visible { outline: .2rem solid var(--kick); outline-offset: .2rem; }
@media (max-width: 640px) { .top h1 a img { aspect-ratio: 3 / 1; } }

h2 { margin: 28px 0 12px; font-size: 1.15rem; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); text-shadow: 0 .1rem .25rem rgba(0, 0, 0, .8); }

/* the board: the supplied picture (BIWAK IRL BINGO sign, wooden frame, camp) with the tasks laid on its green windows */
.board-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* the sign on the picture says it; kept for screen readers */
.stats { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin: 14px 0 10px; font-weight: 800; font-variant-numeric: tabular-nums; }
.board { position: relative; container-type: inline-size; filter: drop-shadow(0 .8rem 1.2rem rgba(0, 0, 0, .55)); }
.board .art { display: block; width: 100%; height: auto; }
#grid { position: absolute; inset: 0; }
.cell { position: absolute; left: var(--l); top: var(--t); width: var(--w); height: var(--h); display: flex; align-items: center; justify-content: center; padding: .6cqw; text-align: center; border-radius: 1.4cqw; }
.cell .t { font-weight: 800; line-height: 1.1; font-size: calc(var(--fs, 2.2) * 1cqw); overflow-wrap: anywhere; text-shadow: 0 .1rem .25rem rgba(0, 0, 0, .9); }
.cell.done .t { opacity: .5; }
.cell.line { box-shadow: inset 0 0 0 .5cqw #ffd23f, inset 0 0 2cqw rgba(255, 200, 60, .45), 0 0 2cqw rgba(255, 200, 60, .55); }
svg.strike { position: absolute; inset: 14% 8%; width: 84%; height: 72%; pointer-events: none; overflow: visible; }
svg.strike path { fill: none; stroke: #ef3b2d; stroke-opacity: .8; stroke-width: 5.5; stroke-linecap: round; filter: drop-shadow(0 0 .2rem rgba(255, 70, 50, .55)); }
.mobile-sign { display: none; width: min(300px, 78%); margin: 0 auto 8px; }
.plank { display: block; width: min(220px, 55%); margin: 14px auto 0; filter: drop-shadow(0 .4rem .6rem rgba(0, 0, 0, .55)); }
.plank[hidden] { display: none; }
/* narrow screens: the picture's windows are too small to read, so the board becomes a plain wooden grid under the sign */
@media (max-width: 640px) {
  .mobile-sign { display: block; }
  .board { container-type: normal; padding: .45rem; border-radius: 1.1rem; filter: none;
           background: repeating-linear-gradient(90deg, rgba(60, 25, 5, .16) 0 2px, transparent 2px 9px), linear-gradient(180deg, #d08a41 0%, #a2622a 20%, #7a4519 52%, #9c5a24 82%, #b86f30 100%);
           box-shadow: inset 0 .15rem 0 rgba(255, 220, 160, .6), inset 0 -.25rem .35rem rgba(0, 0, 0, .5), 0 .6rem 1.8rem rgba(0, 0, 0, .55); }
  .board .art { display: none; }
  #grid { position: static; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 6px; border-radius: .8rem; background: radial-gradient(ellipse at 50% 0%, #1d4d2c 0%, #12341e 60%, #0c2315 100%); box-shadow: inset 0 0 0 .13rem rgba(238, 226, 186, .8), inset 0 0 1.6rem rgba(0, 0, 0, .65); }
  .cell { position: relative; left: auto; top: auto; width: auto; height: auto; aspect-ratio: 1.3; padding: 3px; border-radius: .55rem;
          background: radial-gradient(ellipse at 50% 0%, #1b4a2a 0%, #0f2c19 100%); box-shadow: inset 0 0 0 .12rem rgba(238, 226, 186, .8), inset 0 0 .9rem rgba(0, 0, 0, .55); }
  .cell .t { font-size: clamp(.62rem, 2.7vw, 1.05rem); hyphens: auto; }
  .cell.line { box-shadow: inset 0 0 0 .16rem #ffd23f, inset 0 0 .9rem rgba(255, 200, 60, .45), 0 0 .8rem rgba(255, 200, 60, .55); }
}
.full { margin: 14px auto 0; text-align: center; font-size: clamp(1.5rem, 6vw, 2.4rem); font-weight: 900; letter-spacing: .08em; color: #ffe27a; text-shadow: 0 0 1rem rgba(255, 210, 70, .8), 0 .12rem .3rem rgba(0, 0, 0, .9); }
.full[hidden] { display: none; }
.upd { text-align: center; margin: 10px 0 0; font-size: .8rem; opacity: .65; }

/* timers */
#timers { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.timer { padding: 10px 14px 12px; border-radius: 1rem; background: radial-gradient(ellipse at 50% 0%, #1b4a2a 0%, #0f2c19 100%); box-shadow: inset 0 0 0 .12rem rgba(238, 226, 186, .75), inset 0 0 .9rem rgba(0, 0, 0, .55); }
.timer .tname { font-weight: 800; color: var(--amber); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timer .ttime { font-size: 2.4rem; line-height: 1.1; font-weight: 900; font-variant-numeric: tabular-nums; }
.tbarwrap { position: relative; height: 2.6rem; margin: .2rem .9rem 0; }          /* side room so the campfire at the end of the bar stays inside the card */
.timer .tbar { position: absolute; left: 0; right: 0; top: 50%; height: .7rem; margin-top: -.35rem; border-radius: .35rem; background: #08160d; overflow: hidden; box-shadow: inset 0 .08rem .2rem rgba(0, 0, 0, .9); }
.timer .fire { position: absolute; top: 50%; height: 2.5rem; width: auto; transform: translate(-50%, -58%); pointer-events: none; filter: drop-shadow(0 0 .4rem rgba(255, 150, 40, .6)); }   /* sits on the very end of the line, like a fuse */
.timer .tbar i { display: block; height: 100%; border-radius: .35rem; background: linear-gradient(180deg, #ffd978, #ff9d2e 45%, #e2551d); transition: width 1s linear; }
.timer .tnote { margin-top: 8px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.timer.paused { opacity: .75; } .timer.done .ttime { color: #ff6b5a; } .timer.done .tbar i { width: 0 !important; }
.empty { margin: 0; padding: 12px 14px; border-radius: 1rem; font-size: .92rem; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 .08rem rgba(238, 226, 186, .3); }
.empty[hidden] { display: none; }

/* rules and tasks */
.rules { background: rgba(0, 0, 0, .25); border-radius: 1rem; padding: 4px 16px; box-shadow: inset 0 0 0 .08rem rgba(238, 226, 186, .3); }
.rules ul { list-style: none; padding-left: 0; }
.rules li { padding-left: 1.7rem; margin: .35rem 0; background: url(img/campfire.png) no-repeat 0 .15rem / auto 1.3rem; }
#taskList { list-style: none; counter-reset: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
#taskList li { padding: 10px 14px; border-radius: 1rem; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 .08rem rgba(238, 226, 186, .3); }
#taskList li.done { opacity: .7; } #taskList li.done .ttl .tx { text-decoration: line-through; text-decoration-color: #ef3b2d; text-decoration-thickness: .12em; }
.ttl { font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ttl .num { flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; color: var(--ink); background: var(--amber); }
.ttl .badge { margin-left: auto; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--kick); padding: .15em .6em; border-radius: 1em; text-decoration: none; }
#taskList .desc { margin: 6px 0 0 2.8rem; font-size: .92rem; opacity: .85; }

footer { text-align: center; background: url(img/campfire.png) no-repeat 50% 0 / auto 2rem; padding-top: 2.6rem !important; padding: 18px 16px 30px; font-size: .82rem; opacity: .7; }
@media (max-width: 520px) { #taskList .desc { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .timer .tbar i { transition: none; } }
