/* December game cards with photos: the homepage's "template card" look
   (photo, occasion line, name, quiet Start link), used by the homepage
   December section and /december. The homepage also has its own
   .template-card rules; the base rules here are scoped to .dec-grid so
   /december gets the same card without the homepage stylesheet. */
.dec-grid .template-card { background: var(--surface2, #111820); border: 1px solid var(--border, rgba(255,255,255,.06)); border-radius: var(--radius, 14px); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, border-color .3s, box-shadow .3s; }
.dec-grid .template-card:hover { transform: translateY(-6px); border-color: var(--border-strong, rgba(255,255,255,.12)); }
.dec-grid .template-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.dec-grid .template-occasion { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted, #8b949e); margin-bottom: 8px; }
.dec-grid .template-name { font-family: "Cabin", sans-serif; font-size: 22px; font-weight: 700; line-height: 1.25; }
.dec-grid .template-desc { font-size: 14px; color: var(--muted, #8b949e); line-height: 1.55; }
.dec-grid .template-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dec-grid .template-price { font-size: 18px; font-weight: 500; color: var(--text, #f0ece6); line-height: 1.2; }
.dec-grid .template-cta { color: var(--text, #f0ece6); font-size: 13px; font-weight: 600; white-space: nowrap; }

/* ── December section ──
   Built from the same template cards as "Designed for your most
   meaningful moments": a real photograph of people, the occasion line,
   the name, a quiet "Start". Each card carries its game's object (the
   story slide, the wax seal, the VIOLATION stamp, the score, the gift
   tag) pinned to the photo like something kept in an album. The object
   moves once, when the card scrolls in, then stays still. */
.dec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: 1100px; margin: 0 auto; }
.dec-card { color: inherit; text-decoration: none; }
.dec-card--feature { grid-column: span 2; }
.dec-photo { position: relative; }
.dec-photo img { width: 100%; height: 260px; object-fit: cover; display: block; }
.dec-card--feature .dec-photo img { height: 300px; }
.dec-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,16,19,.55), transparent 45%); pointer-events: none; }
.dec-card .template-desc { flex: 1; margin-bottom: 22px; }
.dec-card .template-name { margin-bottom: 8px; }
.dec-card .template-cta { transition: opacity .25s, transform .25s; }
.dec-card:hover .template-cta { transform: translateX(3px); }
.dec-free { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brand, #d70913); }

/* The pinned object */
.dec-prop { position: absolute; z-index: 2; left: 22px; bottom: -26px; display: grid; place-items: center; width: 120px; height: 120px; pointer-events: none; }
.dec-prop > span { display: grid; place-items: center; background: none !important; transform: scale(.72); transform-origin: bottom left; }
.dec-prop .a-seal i { box-shadow: 0 16px 26px -10px rgba(0,0,0,.7); }
.dec-prop .a-tag i::before { display: none; }
.dec-prop .a-tag i { box-shadow: 0 16px 26px -10px rgba(0,0,0,.7); }
.dec-score { padding: 10px 14px; border-radius: 10px; background: #071013; border: 1px solid rgba(255,255,255,.14); color: #f0ece6; text-align: center; transform: rotate(4deg); box-shadow: 0 16px 26px -10px rgba(0,0,0,.7); }
.dec-score b { display: block; font-family: "Ubuntu", sans-serif; font-weight: 500; font-size: 30px; line-height: 1; color: #c9a84c; }
.dec-score small { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
/* Play each object's motion once, when its card is revealed */
.dec-prop * { animation-iteration-count: 1 !important; animation-fill-mode: both !important; animation-play-state: paused !important; }
.dec-card.visible .dec-prop * { animation-play-state: running !important; }
.dec-card .template-body { padding-top: 38px; }
@media (prefers-reduced-motion: reduce) { .dec-prop * { animation: none !important; } }
@media (max-width: 900px) and (min-width: 769px) { .dec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
