/* v173 Tarefas do dia (ui/modals.js tasks): os 3 baús em cima, depois as tarefas. Todo cartão tem a mesma forma:
   desenho · nome · (barra | botão | feito) · prêmios à direita. */
.tk-hi{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tk-hi .tk-chest{grid-column:1/-1}
.tk-hi+.tk-list{margin-top:12px}
.tk-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
.tk-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 4px 8px}
.tk-head span{font:700 11.5px/1.2 Fredoka,var(--ui);letter-spacing:.4px;text-transform:uppercase;color:#b08aa0}
.tk-head b{flex:none;font:700 12.5px/1 Fredoka,var(--ui);color:#c94f7c;background:#ffe3ee;border-radius:99px;padding:4px 10px}

.tk-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;min-height:64px;padding:8px 12px 8px 8px;
  background:#fff;border-radius:18px;box-shadow:0 3px 0 #f2d3df,inset 0 0 0 2px #f6dbe5}
.tk-ic{width:48px;height:48px;border-radius:50%;background:#ffe3ee;display:grid;place-items:center;flex:none}
.tk-ic svg{width:40px;height:40px;display:block}
.tk-body{display:flex;flex-direction:column;justify-content:center;gap:6px;min-width:0}
.tk-name{font:700 14.5px/1.15 Fredoka,var(--ui);color:#3a2340;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

.tk-bar{display:flex;align-items:center;gap:8px}
.tk-bar>span{flex:1;height:10px;border-radius:99px;background:#f6e6ee;box-shadow:inset 0 2px 0 rgba(90,47,85,.1);overflow:hidden}
.tk-bar b{display:block;height:100%;border-radius:99px;background:linear-gradient(#ffd96a,#f2a93a)}
.tk-bar em{flex:none;font:700 12px/1 Fredoka,var(--ui);font-style:normal;color:#9a7d8c;min-width:30px;text-align:right}
.tk-ok{display:flex;align-items:center;gap:6px}
.tk-ok svg{width:18px;height:18px;flex:none}
.tk-ok em{font:600 12.5px/1.1 Fredoka,var(--ui);font-style:normal;color:#4f9e6e}
.tk-link{align-self:flex-start;background:none;border:0;padding:0;font:600 12.5px/1.1 Fredoka,var(--ui);color:#c94f7c;cursor:pointer;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#f2b6cd}
.modal.framed .btn.tk-btn{align-self:flex-start;min-height:30px;padding:4px 16px 6px!important;font-size:14px!important;border-radius:12px!important}

.tk-rw .rws{flex-direction:column;align-items:flex-end;gap:5px}
.back .tk-rw .rw{background:none!important;box-shadow:none!important;padding:0!important;font-size:13px!important}

/* estados */
.tk-card.ready{background:#f0fbf4;box-shadow:0 3px 0 #a9dcbc,inset 0 0 0 2px #b9e6c9}
.tk-card.ready .tk-ic{background:#d9f3e2}
.tk-card.done{background:#fbf7f9;box-shadow:inset 0 0 0 2px #f3e6ec}
.tk-card.done .tk-ic{filter:saturate(.55);opacity:.8}
.tk-card.done .tk-name{color:#9a7d8c}
.tk-card.done .tk-rw{opacity:.55}
/* os 3 baús do dia, cada um com a sua cor */
.tk-card.tk-gift{background:#fff3f8;box-shadow:0 3px 0 #f4c9da,inset 0 0 0 2px #f8d3e2}
.tk-card.tk-gift .tk-ic{background:#ffd9e8}
.tk-card.tk-video{background:#f7f2ff;box-shadow:0 3px 0 #dccbf7,inset 0 0 0 2px #e4d6fa}
.tk-card.tk-video .tk-ic{background:#ebe1ff}
.tk-card.tk-chest{background:#fff8e3;box-shadow:0 3px 0 #efd38f,inset 0 0 0 2px #f6e1a8}
.tk-card.tk-chest .tk-ic{background:#ffeab0}
.tk-card.tk-gift.ready,.tk-card.tk-video.ready,.tk-card.tk-card.tk-chest.ready{box-shadow:0 3px 0 #e9578f,inset 0 0 0 2px #f08cb3}
.tk-card.tk-video.ready{box-shadow:0 3px 0 #8a63d2,inset 0 0 0 2px #b79ae8}
.tk-card.tk-chest.ready{box-shadow:0 3px 0 #d9a53a,inset 0 0 0 2px #f2c14e}

/* celular deitado */
@media (orientation:landscape) and (max-height:540px),(max-width:480px) and (max-height:600px) and (min-aspect-ratio:3/4) and (max-aspect-ratio:4/3){
  .tk-hi{gap:8px}
  .tk-list{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}
  .tk-head{margin:10px 4px 6px}
  .tk-head span{font-size:10px}
  .tk-head b{font-size:11px;padding:3px 8px}
  .tk-card{min-height:52px;gap:8px;padding:6px 10px 6px 6px;border-radius:15px}
  .tk-ic{width:38px;height:38px}.tk-ic svg{width:32px;height:32px}
  .tk-name{font-size:12.5px}
  .tk-body{gap:5px}
  .tk-bar>span{height:8px}.tk-bar em{font-size:10.5px;min-width:24px}
  .tk-ok em,.tk-link{font-size:11px}.tk-ok svg{width:15px;height:15px}
  .modal.framed .btn.tk-btn{min-height:24px;padding:3px 12px 4px!important;font-size:11.5px!important;border-radius:10px!important}
  .tk-rw .rws{gap:3px}
  .back .tk-rw .rw{font-size:11px!important}
}
/* celular em pé */
@media (orientation:portrait) and (max-width:600px) and (max-aspect-ratio:3/4){
  .tk-hi,.tk-list{grid-template-columns:1fr;gap:8px}
}
.tk-card.tk-gift.done,.tk-card.tk-video.done,.tk-card.tk-chest.done{background:#fbf7f9;box-shadow:inset 0 0 0 2px #f3e6ec}
/* v173 medidor de desempenho (js/dev/perfmeter.js) */
.pm-chip{position:fixed;left:50%;top:calc(var(--hudH,60px) + 8px);transform:translateX(-50%);z-index:90;background:rgba(58,35,64,.88);color:#fff;font:600 13px/1.2 Fredoka,sans-serif;padding:7px 14px;border-radius:99px;pointer-events:none;white-space:nowrap}
.pm-verdict{font:600 14px/1.35 Fredoka,sans-serif;color:#3a2340;background:#fff3f8;border-radius:14px;padding:10px 12px;margin:0 0 10px}
.pm-table{width:100%;border-collapse:collapse;font:500 12.5px/1.3 Fredoka,sans-serif;color:#3a2340}
.pm-table td{padding:5px 6px;border-bottom:1px solid #f3e3ec;vertical-align:top}
.pm-table td:last-child{text-align:right}
.set-perf{display:block;margin:6px auto 0;font-size:13px!important;padding:6px 14px!important}
