/* ===== The daily gift (tools/71-daily-gift.js) ===== */
.dg-wrap { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 16px; }
.dg-back { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); animation: dgFade .2s ease; }
.dg-card { position: relative; width: min(440px, calc(100vw - 32px)); box-sizing: border-box; background: var(--card, #1b1f27); border: 1px solid color-mix(in srgb, var(--accent, #00e040) 45%, transparent);
  border-radius: 20px; padding: 24px 20px 18px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 40px color-mix(in srgb, var(--accent, #00e040) 18%, transparent); animation: dgIn .35s cubic-bezier(.2,1.4,.4,1); }
.dg-x { position: absolute; z-index: 5; top: 10px; right: 12px; background: none; border: 0; color: inherit; opacity: .6; font-size: 1.1rem; cursor: pointer; }
.dg-gift { font-size: 3rem; line-height: 1; animation: dgBob 2.4s ease-in-out infinite; }
.dg-card h3 { margin: 8px 0 4px; font-size: 1.4rem; }
.dg-sub { margin: 0 0 12px; opacity: .75; font-size: .92rem; }
.dg-streak { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  background: color-mix(in srgb, #fb923c 18%, transparent); color: #fdba74; }
.dg-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 16px; }
.dg-t { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 12px; border: 1px solid var(--border, #2c323d); background: rgba(255,255,255,.03); }
.dg-t small { font-size: .62rem; opacity: .6; white-space: nowrap; }
.dg-t span { font-size: 1.1rem; line-height: 1.2; }
.dg-t b { font-size: .85rem; }
.dg-t.past { opacity: .5; } .dg-t.past span { color: var(--accent, #00e040); font-weight: 800; }
.dg-t.now { border-color: var(--accent, #00e040); background: color-mix(in srgb, var(--accent, #00e040) 16%, transparent); transform: scale(1.08); box-shadow: 0 0 16px color-mix(in srgb, var(--accent, #00e040) 35%, transparent); }
.dg-t.big { border-color: #fbbf24; } .dg-t.big b { color: #fbbf24; }
.dg-btn { width: 100%; padding: 14px; border: 0; border-radius: 14px; cursor: pointer; font: inherit; font-weight: 800; font-size: 1.05rem; color: #06240f; background: var(--accent, #00e040); }
.dg-btn:disabled { opacity: .5; cursor: default; }
.dg-done { margin: 4px 0 6px; color: var(--accent, #00e040); font-weight: 600; }
.dg-warn { margin: 4px 0 6px; color: #fbbf24; }
.dg-miss { display: block; margin-top: 10px; opacity: .5; font-size: .75rem; }
.dg-pop { position: absolute; left: 50%; top: -18px; white-space: nowrap; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; font-weight: 800; color: #06240f; background: #fbbf24; animation: dgPop 1.6s ease forwards; }
/* (17/11) «pon lo de tu regalo diario en la esquina superior izquierda»: debajo de la barra de arriba */
.dg-chip { position: fixed; left: 14px; top: calc(68px + env(safe-area-inset-top)); z-index: 900; display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .9rem;
  color: inherit; background: var(--card, #1b1f27); border: 1px solid color-mix(in srgb, var(--accent, #00e040) 60%, transparent); box-shadow: 0 6px 20px rgba(0,0,0,.35); animation: dgBob 2.4s ease-in-out infinite; }
.dg-chip i { font-style: normal; color: var(--accent, #00e040); font-weight: 800; }
@keyframes dgFade { from { opacity: 0 } }
@keyframes dgIn { from { opacity: 0; transform: translateY(20px) scale(.94) } }
@keyframes dgBob { 50% { transform: translateY(-4px) } }
@keyframes dgPop { 0% { opacity: 0; transform: translate(-50%, 10px) } 20%, 80% { opacity: 1; transform: translate(-50%, 0) } 100% { opacity: 0; transform: translate(-50%, -10px) } }
@media (max-width: 400px){ .dg-t small { font-size: .55rem } .dg-t b { font-size: .75rem } }
.dg-t em { font-style: normal; font-size: .62rem; font-weight: 800; color: #67e8f9; white-space: nowrap; }
