/* Modo Daily (daily.js, daily-tela.js): câmera OpponentView na loja, fundo dividido, prévia do valentão com bigodes, avisos,
   contador de bigodes do resultado, placar final e ranking do dia. */

/* camada do mundo da loja (shop.js): coordenadas da NormalView, escalada pela câmera da partida (identidade no Casual) */
.world { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; pointer-events: none; }
.world .space { pointer-events: auto; }

/* BackgroundBuildBullyView (ApplySplitBackgroundLayout), ajustado à captura do client pixel a pixel: com a câmera de 17 unidades
   (75,29 px/u), o ladrilho do fundo do jogador (9,6 x 7,872 u) vira 722,8 x 592,9 px, centrado em y = -0,55 como na loja e
   começando em x = 572 px (erro médio 1,2/255). O do valentão leva ainda a escala 1,2 de Background/BackgroundBully
   (867,4 x 711,5 px), encosta o ladrilho na divisão (x = 835) e fica no mesmo y = -0,55 (topo a -49 px). A sombra
   BackgroundSplit fica sobre a divisão. */
.bg.daily { background: #3f1e1e url("../img/sprites/CaveBuild.png") 572px 11px / 722.82px 592.94px repeat-x; }
.bg > .dl-right, .bg > .dl-split { display: none; }
.bg.daily > .dl-right { --dl-x: 0px; --dl-y: -49px; --dl-w: 867.38px; --dl-h: 711.53px; display: block; position: absolute; left: 835px; top: 0; right: 0; bottom: 0; }
.bg.daily > .dl-split { display: block; position: absolute; left: 829px; top: 0; bottom: 0; width: 12px; background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.35) 50%, rgba(0,0,0,0)); }

/* bigode (Cosmetic.Moustache): o <i> fica no ponto e gira; o sprite fica centrado nele */
.must { position: absolute; width: 0; height: 0; pointer-events: none; }
.must .spr { left: 0; top: 0; }

/* HUD: HangarMoustaches (o baú de bigode, Mou-stache@2x) */
.pill.dl-must img { width: 30px; height: 30px; }

/* HangarTutorialPrompt: caixa ComicFlat com o texto, o X da CornerBox e a seta (TutorialPromptArrow) apontando para a prévia */
.dl-prompt { position: absolute; transform: translate(-50%, -100%); max-width: 340px; background: #fff; border: 4px solid var(--ink); border-radius: 12px;
  padding: 8px 34px 8px 14px; font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.15; color: var(--ink); text-align: center; z-index: 5; white-space: normal; width: max-content; }
.dl-prompt .dl-x { position: absolute; right: -14px; top: -14px; width: 32px; height: 32px; padding: 0; background: #fff; border: 3px solid var(--ink); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.dl-prompt .dl-x img { width: 18px; height: 18px; filter: brightness(0); }
.dl-arrow { position: absolute; width: 36px; transform: translate(-50%, 0); z-index: 5; pointer-events: none; animation: bob .9s ease-in-out infinite; }

/* TallyArena: Status/InfoContainer/BullyMoustaches (MoustacheSprite, MoustacheCount e MoustacheWinBonus "+5 win bonus"), no
   lugar da fileira de troféus */
.dl-tally { position: absolute; left: 0; right: 0; top: 30px; height: 84px; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 12px; z-index: 1; }
.dl-tally img { width: 84px; height: 78px; object-fit: contain; }
.dl-tally b { font-family: var(--display); font-weight: 700; font-size: 54px; line-height: 1; color: #fff; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; display: inline-block; min-width: 64px; }
.dl-tally .dl-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.dl-tally b.bump { animation: dlbump .18s ease-out; }
.dl-tally .dl-bonus, .dl-tally .dl-fallen { font-family: var(--body); font-weight: 800; font-size: 17px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 10px; padding: 1px 10px; }
.dl-tally .dl-bonus { background: #ffcf3a; }
.dl-tally .dl-bonus.pop, .dl-final .pop { animation: dlpop .4s ease-out; }
@keyframes dlbump { 50% { transform: scale(1.25); } }
@keyframes dlpop { 0% { transform: scale(.4); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* TallyBullyScore: "Final Moustache Score", o número com o baú de bigode e "New personal best!" */
.dl-final .dl-label { position: absolute; left: 0; right: 0; top: 96px; text-align: center; font-size: 46px; }
.dl-final .dl-product { position: absolute; left: 0; right: 0; top: 178px; display: flex; align-items: center; justify-content: center; gap: 22px; }
.dl-final .dl-product img { width: 190px; height: 175px; object-fit: contain; }
.dl-final .dl-product b { font-size: 120px; line-height: 1; min-width: 150px; text-align: left; display: inline-block; }
.dl-final .dl-best { position: absolute; left: 0; right: 0; top: 400px; text-align: center; font-size: 40px; color: #ffcf3a; }
.dl-final .bubble.dl-sum { right: auto; bottom: auto; left: 50%; transform: translateX(-50%); top: 476px; font-size: 17px; white-space: nowrap; }
.dl-final .bubble.dl-sum2 { right: auto; bottom: auto; left: 50%; transform: translateX(-50%); top: 526px; font-size: 15px; white-space: nowrap; }

/* PackShop no BullyRush: BullyRank (melhor do dia) e o melhor de cada ninhada no card */
.dl-rank { position: absolute; left: 214px; top: 650px; height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 16px 0 8px;
  background: #fff; border: 4px solid var(--ink); border-radius: 14px; font-family: var(--display); font-weight: 700; color: var(--ink); z-index: 3; }
.dl-rank img { width: 44px; height: 40px; object-fit: contain; }
.dl-rank b { font-size: 28px; }
.dl-rank span { font-family: var(--body); font-weight: 800; font-size: 15px; color: var(--muted); }
.dl-pk-note { position: absolute; left: 50%; top: 76px; transform: translateX(-50%); background: rgba(255,255,255,.92); border: 3px solid var(--ink); border-radius: 10px;
  padding: 3px 12px; font-family: var(--body); font-weight: 800; font-size: 14px; color: var(--ink); white-space: nowrap; z-index: 3; }
.dl-card-best { position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); display: flex; align-items: center; gap: 3px; background: #fff; border: 3px solid var(--ink); border-radius: 10px;
  padding: 0 7px 0 3px; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink); z-index: 2; }
.dl-card-best img { width: 28px; height: 26px; object-fit: contain; }
.pk-mascot-must { position: absolute; width: 0; height: 0; pointer-events: none; }

/* BullyLeaderboard (modal): abas Recorde pessoal / Primeira tentativa, uma ninhada por vez */
.dl-board-layer { position: absolute; inset: 0; z-index: 20; }
.dl-board-layer .dim { z-index: 0; }
.dl-board { position: absolute; left: 290px; top: 40px; width: 700px; height: 640px; background: #fff; border: 4px solid var(--ink); border-radius: 18px; padding: 16px 22px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.dl-board h2 { margin: 0; font-family: var(--display); font-size: 30px; color: #6b3f12; display: flex; align-items: center; gap: 10px; justify-content: center; }
.dl-board h2 img { width: 40px; height: 40px; }
.dl-board .dl-close { left: 12px; top: 12px; }
.dl-tabs, .dl-packs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.dl-tabs button, .dl-packs button { font-family: var(--body); font-weight: 800; font-size: 15px; padding: 4px 12px; border: 3px solid var(--ink); border-radius: 10px; background: #f3e6d2; color: var(--ink); }
.dl-tabs button.on, .dl-packs button.on { background: var(--orange); color: #fff; }
.dl-list { flex: 1; overflow: auto; border: 3px solid var(--ink); border-radius: 12px; padding: 6px; background: #fbf5ec; }
.dl-row { display: grid; grid-template-columns: 48px 1fr 28px 34px 56px; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; font-family: var(--body); font-weight: 800; font-size: 18px; }
.dl-row:nth-child(odd) { background: rgba(0,0,0,.04); }
.dl-row.me { background: #ffe9b0; }
.dl-row .n { text-align: right; color: var(--muted); }
.dl-row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-row .star { width: 24px; height: 24px; }
.dl-row .m { width: 32px; height: 30px; object-fit: contain; }
.dl-row b { font-family: var(--display); font-size: 22px; text-align: right; }
.dl-wait { padding: 30px 20px; text-align: center; font-family: var(--body); font-weight: 800; font-size: 17px; color: var(--muted); }
.dl-wait.small { padding: 8px; font-size: 14px; }
.dl-foot { font-family: var(--body); font-weight: 800; font-size: 14px; text-align: center; color: var(--muted); }

/* batalha do Daily: o bigode some voando quando o valentão cai (BoardView.FlingMoustache) */
.dl-fling { position: absolute; width: 0; height: 0; pointer-events: none; z-index: 6; }
.dl-fling img { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); }
