/* All rules are scoped to this calendar to avoid affecting the CMS theme. */
#crashino-advent-calendar {
  --ca-bg:#100b25; --ca-panel:#21143f; --ca-purple:#7545d6;
  --ca-purple-light:#9b6bff; --ca-gold:#f5c96b; --ca-gold-light:#ffe5a0;
  --ca-text:#f7f3ff; --ca-muted:#e9dfff;
  display:block !important; width:100% !important; max-width:none !important; flex:1 1 100% !important; margin:auto; padding:6px;
  color:var(--ca-text); font-family:inherit; position:relative; background:transparent;
}
#crashino-advent-calendar, #crashino-advent-calendar * {box-sizing:border-box;}

/* Frosted glass card framing the gift grid, with subtle falling snow */
#crashino-advent-calendar .calendar {
  display:block; width:100%; max-width:1020px; margin:0 auto !important; padding:14px;
  position:relative;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.2);
  background:radial-gradient(circle at 50% 15%,rgba(167,112,255,.35),rgba(72,28,140,.46) 72%);
  box-shadow:0 12px 34px rgba(10,2,28,.35),inset 0 1px 0 rgba(255,255,255,.24);
}
#crashino-advent-calendar .calendar:before {
  content:"";
  position:absolute;
  inset:0;
  border-radius:20px;
  pointer-events:none;
  opacity:.55;
  background-image:
    radial-gradient(2px 2px at 12% 18%, rgba(255,255,255,.85) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 38% 62%, rgba(255,240,190,.8) 50%, transparent 100%),
    radial-gradient(2px 2px at 66% 24%, rgba(255,255,255,.8) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 84% 72%, rgba(255,240,190,.75) 50%, transparent 100%),
    radial-gradient(2px 2px at 26% 85%, rgba(255,255,255,.75) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 91% 15%, rgba(255,255,255,.8) 50%, transparent 100%);
  background-size:220px 220px;
  animation:ca-snowfall 16s linear infinite;
}
@keyframes ca-snowfall {
  0% {background-position:0 0, 0 0, 0 0, 0 0, 0 0, 0 0;}
  100% {background-position:40px 220px, -25px 220px, 30px 220px, -35px 220px, 20px 220px, -15px 220px;}
}

/* Desktop: 10 boxes per row (10 + 10 + 4 centered) */
#crashino-advent-calendar .grid {
  display:flex !important;
  flex-wrap:wrap;
  justify-content:center;
  gap:14px 9px;
  width:100%;
  position:relative;
  z-index:1;
}

#crashino-advent-calendar .door {
  display:block;
  flex:0 0 calc((100% - 81px) / 10);
  width:calc((100% - 81px) / 10);
  min-width:0;
  overflow:visible;
  border:0; background:transparent; box-shadow:none;
  transition:transform .26s cubic-bezier(.22,1,.36,1), filter .25s ease;
}

#crashino-advent-calendar .door summary {
  display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
  width:100%; padding:0; list-style:none; text-align:center;
  cursor:pointer; position:relative; background:transparent;
}
#crashino-advent-calendar .door summary::-webkit-details-marker {display:none;}

/* 3D snow-covered Christmas lid + golden bow + holly berries */
#crashino-advent-calendar .door summary:before {
  content:"";
  display:block;
  width:108%;
  aspect-ratio:120 / 54;
  position:relative;
  z-index:2;
  background-repeat:no-repeat;
  background-position:center bottom;
  background-size:100% 100%;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 54'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23fff4b8'/%3E%3Cstop offset='48%25' stop-color='%23ffc107'/%3E%3Cstop offset='100%25' stop-color='%23c47400'/%3E%3C/linearGradient%3E%3ClinearGradient id='l' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23a64aff'/%3E%3Cstop offset='52%25' stop-color='%236c14cc'/%3E%3Cstop offset='100%25' stop-color='%2343068c'/%3E%3C/linearGradient%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23ffffff'/%3E%3Cstop offset='72%25' stop-color='%23f1f6ff'/%3E%3Cstop offset='100%25' stop-color='%23d4e0ff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M57 23 C42 2, 14 2, 19 18 C22 28, 46 26, 57 24 Z' fill='url(%23g)' stroke='%23995700' stroke-width='0.8'/%3E%3Cpath d='M54 22 C44 10, 27 10, 28 18 C29 23, 44 23, 54 22 Z' fill='%23b56800' opacity='0.52'/%3E%3Cpath d='M63 23 C78 2, 106 2, 101 18 C98 28, 74 26, 63 24 Z' fill='url(%23g)' stroke='%23995700' stroke-width='0.8'/%3E%3Cpath d='M66 22 C76 10, 93 10, 92 18 C91 23, 76 23, 66 22 Z' fill='%23b56800' opacity='0.52'/%3E%3Cpath d='M53 24 L33 36 L43 38 L58 27 Z' fill='url(%23g)'/%3E%3Cpath d='M67 24 L87 36 L77 38 L62 27 Z' fill='url(%23g)'/%3E%3Cpath d='M48 25 C40 20, 34 23, 37 28 C41 31, 47 29, 51 27 Z' fill='%231e8e4e' stroke='%230e4f2a' stroke-width='0.7'/%3E%3Cpath d='M72 25 C80 20, 86 23, 83 28 C79 31, 73 29, 69 27 Z' fill='%231e8e4e' stroke='%230e4f2a' stroke-width='0.7'/%3E%3Crect x='4' y='28' width='112' height='22' rx='5' fill='url(%23l)' stroke='rgba(255,255,255,0.3)' stroke-width='1'/%3E%3Crect x='52' y='28' width='16' height='22' fill='url(%23g)'/%3E%3Cpath d='M5 32 C3 26, 11 22, 17 25 C22 21, 29 21, 34 25 C39 21, 46 22, 51 25 L69 25 C74 22, 81 21, 86 25 C91 21, 98 21, 103 25 C109 22, 117 26, 115 32 C110 36, 102 33, 96 35 C90 37, 83 33, 77 35 C71 36, 66 33, 60 34 C54 33, 49 36, 43 35 C37 33, 30 37, 24 35 C18 33, 10 36, 5 32 Z' fill='url(%23s)'/%3E%3Crect x='52' y='24' width='16' height='11' rx='2' fill='url(%23g)'/%3E%3Crect x='51' y='16' width='18' height='12' rx='5' fill='url(%23g)' stroke='%23995700' stroke-width='0.8'/%3E%3Cellipse cx='60' cy='20' rx='5' ry='2.4' fill='%23fff9d2' opacity='0.75'/%3E%3Ccircle cx='49' cy='27' r='3' fill='%23e63946'/%3E%3Ccircle cx='71' cy='27' r='3' fill='%23e63946'/%3E%3Ccircle cx='48.2' cy='26' r='0.9' fill='%23ffd6da'/%3E%3Ccircle cx='70.2' cy='26' r='0.9' fill='%23ffd6da'/%3E%3C/svg%3E");
  filter:drop-shadow(0 4px 5px rgba(15,2,38,.48));
  transform-origin:center bottom;
  transition:transform .28s cubic-bezier(.22,1.2,.36,1), filter .25s ease;
}

/* Glossy 3D Christmas wrapped gift box body with crossed golden ribbons */
#crashino-advent-calendar .gift-body {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  width:92%;
  min-height:60px;
  margin-top:-5px;
  padding:9px 4px 7px;
  position:relative;
  overflow:hidden;
  border-radius:0 0 11px 11px;
  border:1px solid rgba(226,175,255,.35);
  border-top:0;
  background:
    linear-gradient(90deg, transparent calc(50% - 7px), rgba(185,105,0,.92) calc(50% - 7px), #ffe680 calc(50% - 3px), #ffc107 50%, #cc7a00 calc(50% + 6px), transparent calc(50% + 7px)),
    linear-gradient(180deg, transparent 43%, rgba(185,105,0,.85) 44%, #ffe680 48%, #ffc107 52%, #cc7a00 56%, transparent 57%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 6px, transparent 6px 14px),
    linear-gradient(90deg, rgba(255,255,255,.22), transparent 14%, transparent 86%, rgba(255,255,255,.16)),
    linear-gradient(175deg, #8b24f0 0%, #5f11b8 55%, #3c067d 100%);
  box-shadow:
    inset 0 8px 10px -5px rgba(14,2,36,.78),
    inset 0 -3px 6px rgba(196,115,255,.26),
    0 6px 14px rgba(12,2,34,.45);
}

/* Gift tag seal behind day number so it reads crisply over the crossed ribbon */
#crashino-advent-calendar .day-number {
  display:inline-block;
  min-width:34px;
  padding:3px 8px;
  border-radius:9px;
  border:1.5px solid rgba(255,222,115,.72);
  background:radial-gradient(circle at 50% 30%, #440a8a, #210347);
  color:#ffdf6b;
  font-size:clamp(17px, 2.7vw, 22px);
  font-weight:900;
  line-height:1.05;
  text-shadow:0 2px 0 rgba(35,2,70,.75), 0 0 10px rgba(255,215,80,.35);
  box-shadow:0 2px 7px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.2);
  position:relative;
  z-index:1;
}

/* Keep "Day N" accessible to screen readers without cluttering the box */
#crashino-advent-calendar .day-label {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

#crashino-advent-calendar .status {
  display:inline-block;
  padding:2px 6px;
  border-radius:6px;
  background:rgba(16,4,38,.78);
  border:1px solid rgba(255,255,255,.14);
  color:var(--ca-muted);
  font-size:8.5px;
  font-weight:700;
  line-height:1.15;
  letter-spacing:.2px;
  position:relative;
  z-index:1;
}

/* ===== STATES & LIVELY MOTION ===== */

/* Locked upcoming gifts: subtle staggered shimmer + gentle breathing */
#crashino-advent-calendar .door.locked {cursor:not-allowed;}
#crashino-advent-calendar .door.locked summary {cursor:not-allowed; pointer-events:none;}
#crashino-advent-calendar .door.locked:not([open]) summary {opacity:.92;}
#crashino-advent-calendar .locked .status:before {content:"🔒 ";}

#crashino-advent-calendar .door.locked:not(.expired):not([open]) {
  animation:ca-idle 4.8s ease-in-out infinite;
}
#crashino-advent-calendar .door.locked:not(.expired):not([open]) .gift-body:after {
  content:""; position:absolute; top:-20%; bottom:-20%; left:-85%; width:36%;
  transform:skewX(-22deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.18),transparent);
  animation:ca-sweep-soft 6s ease-in-out infinite;
}

/* Stagger animation timing across boxes so they don't move in lockstep */
#crashino-advent-calendar .door:nth-child(5n+1):not([open]),
#crashino-advent-calendar .door:nth-child(5n+1):not([open]) .gift-body:after {animation-delay:-.4s;}
#crashino-advent-calendar .door:nth-child(5n+2):not([open]),
#crashino-advent-calendar .door:nth-child(5n+2):not([open]) .gift-body:after {animation-delay:-1.7s;}
#crashino-advent-calendar .door:nth-child(5n+3):not([open]),
#crashino-advent-calendar .door:nth-child(5n+3):not([open]) .gift-body:after {animation-delay:-2.9s;}
#crashino-advent-calendar .door:nth-child(5n+4):not([open]),
#crashino-advent-calendar .door:nth-child(5n+4):not([open]) .gift-body:after {animation-delay:-1.1s;}
#crashino-advent-calendar .door:nth-child(5n+5):not([open]),
#crashino-advent-calendar .door:nth-child(5n+5):not([open]) .gift-body:after {animation-delay:-3.6s;}

@keyframes ca-idle {
  0%,100% {transform:translateY(0) rotate(0deg);}
  50% {transform:translateY(-2px) rotate(.6deg);}
}
@keyframes ca-sweep-soft {0%,55%{left:-85%}85%,100%{left:160%}}

/* Hover on locked: lid jiggles playfully */
#crashino-advent-calendar .door.locked:hover {animation:ca-shake .42s ease;}
#crashino-advent-calendar .door.locked:hover summary:before {transform:translateY(-2px) rotate(2deg);}
@keyframes ca-shake {
  25%{transform:translateX(-3px) rotate(-1.5deg)}
  75%{transform:translateX(3px) rotate(1.5deg)}
}

/* Expired gifts: still and dimmed */
#crashino-advent-calendar .door.expired:not([open]) summary {
  opacity:.6;
  filter:grayscale(.72) brightness(.76);
}
#crashino-advent-calendar .door.expired .status {color:#dcd0f5;}

/* Active today's gift: lively bounce, lid peek, golden glow & bright sweep */
#crashino-advent-calendar .door.unlocked {cursor:pointer;}
#crashino-advent-calendar .door.unlocked .gift-body {
  border-color:rgba(255,220,100,.9);
  box-shadow:
    inset 0 8px 10px -5px rgba(14,2,36,.65),
    0 0 20px rgba(255,205,70,.6),
    0 8px 16px rgba(12,2,34,.5);
}
#crashino-advent-calendar .door.unlocked .day-number {
  border-color:#ffe999;
  box-shadow:0 0 12px rgba(255,215,90,.65), inset 0 1px 0 rgba(255,255,255,.35);
}
#crashino-advent-calendar .door.unlocked .status {
  background:linear-gradient(180deg, #ffe680, #f5b727);
  border-color:#fff3b8;
  color:#230847;
  font-weight:900;
}
#crashino-advent-calendar .door.unlocked .status:before {content:"🎁 ";}

#crashino-advent-calendar .door.unlocked:not([open]) {
  animation:ca-gift-alive 2.6s ease-in-out infinite;
}
#crashino-advent-calendar .door.unlocked:not([open]) summary:before {
  animation:ca-lid-peek 2.6s ease-in-out infinite;
}
#crashino-advent-calendar .door.unlocked:not([open]) .gift-body:after {
  content:""; position:absolute; top:-20%; bottom:-20%; left:-75%; width:44%;
  transform:skewX(-20deg);
  background:linear-gradient(90deg,transparent,rgba(255,245,190,.42),transparent);
  animation:ca-sweep 2.6s ease-in-out infinite;
}

#crashino-advent-calendar .door.unlocked:hover {
  transform:translateY(-6px) scale(1.04);
  animation-play-state:paused;
}
#crashino-advent-calendar .door.unlocked:hover summary:before {
  transform:translateY(-6px) rotate(-5deg);
  filter:drop-shadow(0 8px 10px rgba(255,210,80,.5));
  animation-play-state:paused;
}

@keyframes ca-gift-alive {
  0%,100% {transform:translateY(0) rotate(0deg); filter:drop-shadow(0 0 6px rgba(255,210,80,.28));}
  18% {transform:translateY(-4px) rotate(-1.6deg); filter:drop-shadow(0 0 16px rgba(255,210,80,.68));}
  32% {transform:translateY(-2px) rotate(1.6deg); filter:drop-shadow(0 0 18px rgba(255,210,80,.72));}
  46% {transform:translateY(0) rotate(0deg); filter:drop-shadow(0 0 10px rgba(255,210,80,.4));}
}
@keyframes ca-lid-peek {
  0%,100% {transform:translateY(0) rotate(0deg);}
  20% {transform:translateY(-4px) rotate(-4deg);}
  36% {transform:translateY(-2px) rotate(3deg);}
  50% {transform:translateY(0) rotate(0deg);}
}
@keyframes ca-sweep {0%,30%{left:-75%}75%,100%{left:155%}}

/* ===== MODAL OFFER CARD ===== */
#crashino-advent-calendar .offer h2 {
  margin:0 0 10px; color:var(--ca-gold-light);
  font-size:clamp(18px, 3vw, 21px); line-height:1.25;
}
#crashino-advent-calendar .offer p {
  margin:6px 0; color:#ded6ed;
  font-size:clamp(13px, 2.2vw, 14px); line-height:1.55;
}
#crashino-advent-calendar .offer strong {color:#fff;}
#crashino-advent-calendar .offer .reward {
  margin:10px 0 !important; color:var(--ca-gold) !important;
  font-size:clamp(20px, 4vw, 25px) !important; font-weight:900;
  text-shadow:0 0 18px rgba(245,201,107,.55);
}
#crashino-advent-calendar .offer .offer-note {
  margin-top:12px !important; color:#a99cbe !important; font-size:12px !important;
}
#crashino-advent-calendar .close-hint {
  margin-top:14px; color:var(--ca-gold);
  font-size:10px; font-weight:800; letter-spacing:1.2px; text-align:center;
}

/* open state: the gift stays in the grid, the offer pops out as a centred card */
#crashino-advent-calendar .door[open] {
  grid-column:auto; overflow:visible; opacity:1;
  transform:none !important; transition:none; animation:none !important; filter:none !important;
}
#crashino-advent-calendar .door[open] summary:before {
  animation:none !important; transform:none !important;
}
#crashino-advent-calendar .door[open]::details-content {display:contents;}

/* dimmed backdrop; it belongs to <summary>, so a click on it closes the card */
#crashino-advent-calendar .door[open] summary:after {
  content:"✕"; position:fixed; inset:0; z-index:99990;
  display:flex; justify-content:flex-end; align-items:flex-start;
  padding:16px 20px; font-size:26px; line-height:1;
  color:var(--ca-gold-light); cursor:pointer;
  background:radial-gradient(circle at 50% 50%,rgba(83,45,160,.75),rgba(7,4,18,.95) 70%);
  animation:ca-fade .35s ease both;
}
@keyframes ca-fade {from{opacity:0}to{opacity:1}}

/* the card flies in with a 3D spin */
#crashino-advent-calendar .door[open] .offer {
  position:fixed; z-index:99992; top:0; right:0; bottom:0; left:0; margin:auto;
  width:min(380px, calc(100vw - 24px));
  height:-webkit-fit-content; height:fit-content;
  padding:clamp(22px, 4vw, 30px) clamp(16px, 4vw, 22px) 20px;
  text-align:center; border:2px solid var(--ca-gold); border-radius:18px;
  background:radial-gradient(ellipse at 50% 0,#4a2b8a,transparent 65%),linear-gradient(160deg,#2b1a55,#110b26);
  box-shadow:0 0 50px rgba(245,201,107,.45),0 30px 70px rgba(0,0,0,.6);
  animation:ca-fly .9s cubic-bezier(.2,.85,.25,1.15) both;
}
@keyframes ca-fly {
  0%{opacity:0;transform:perspective(1100px) translateY(90px) scale(.2) rotateY(-360deg)}
  30%{opacity:1}
  100%{opacity:1;transform:perspective(1100px) translateY(0) scale(1) rotateY(0)}
}

/* two gift doors that swing open, tied with a gold ribbon */
#crashino-advent-calendar .door[open] .offer:before,
#crashino-advent-calendar .door[open] .offer:after {
  content:"✦"; position:absolute; top:0; bottom:0; width:50%; z-index:3;
  display:flex; align-items:center; font-size:48px; color:var(--ca-gold-light);
  pointer-events:none; backface-visibility:hidden; -webkit-backface-visibility:hidden;
}
#crashino-advent-calendar .door[open] .offer:before {
  left:0; justify-content:flex-end; padding-right:12px; border-radius:16px 0 0 16px;
  transform-origin:left center; border-right:5px solid var(--ca-gold);
  background:repeating-linear-gradient(45deg,#4d2a91 0 14px,#432380 14px 28px);
  animation:ca-left 1.1s cubic-bezier(.6,0,.3,1) .8s both;
}
#crashino-advent-calendar .door[open] .offer:after {
  right:0; justify-content:flex-start; padding-left:12px; border-radius:0 16px 16px 0;
  transform-origin:right center; border-left:5px solid var(--ca-gold);
  background:repeating-linear-gradient(-45deg,#4d2a91 0 14px,#432380 14px 28px);
  animation:ca-right 1.1s cubic-bezier(.6,0,.3,1) .8s both;
}
@keyframes ca-left {
  from{opacity:1;transform:perspective(900px) rotateY(0)}
  85%{opacity:1}
  to{opacity:0;visibility:hidden;transform:perspective(900px) rotateY(-115deg)}
}
@keyframes ca-right {
  from{opacity:1;transform:perspective(900px) rotateY(0)}
  85%{opacity:1}
  to{opacity:0;visibility:hidden;transform:perspective(900px) rotateY(115deg)}
}

/* light rays + gold burst */
#crashino-advent-calendar .fx {display:none;}
#crashino-advent-calendar .door[open] .fx {
  display:block; position:absolute; left:50%; top:50%; width:0; height:0;
  pointer-events:none; z-index:4;
}
#crashino-advent-calendar .door[open] .fx:before {
  content:""; position:absolute; width:150vmax; height:150vmax;
  left:-75vmax; top:-75vmax; border-radius:50%;
  background:repeating-conic-gradient(rgba(255,229,160,.3) 0 5deg,transparent 5deg 20deg);
  -webkit-mask-image:radial-gradient(circle,#000,transparent 60%);
  mask-image:radial-gradient(circle,#000,transparent 60%);
  animation:ca-rays 2.6s ease-out 1s both;
}
@keyframes ca-rays {
  0%{opacity:0;transform:scale(.2) rotate(0)}
  25%{opacity:1}
  100%{opacity:0;transform:scale(1) rotate(55deg)}
}
#crashino-advent-calendar .fx i {
  position:absolute; left:0; top:0; font-style:normal;
  font-size:var(--s); color:var(--c); opacity:0; text-shadow:0 0 10px currentColor;
}
#crashino-advent-calendar .door[open] .fx i {
  animation:ca-burst 1.5s cubic-bezier(.1,.7,.3,1) var(--d) both;
}
@keyframes ca-burst {
  0%{opacity:0;transform:translate(0,0) scale(.2)}
  12%{opacity:1}
  65%{opacity:1}
  100%{opacity:0;transform:translate(var(--x),var(--y)) scale(1.2) rotate(300deg)}
}

/* offer lines appear one by one */
#crashino-advent-calendar .door[open] .offer > h2,
#crashino-advent-calendar .door[open] .offer > p,
#crashino-advent-calendar .door[open] .close-hint {
  animation:ca-rise .5s ease both; animation-delay:1.35s;
}
#crashino-advent-calendar .door[open] .offer > :nth-child(2){animation-delay:1.47s}
#crashino-advent-calendar .door[open] .offer > :nth-child(3){animation-delay:1.59s}
#crashino-advent-calendar .door[open] .offer > :nth-child(4){animation-delay:1.71s}
#crashino-advent-calendar .door[open] .offer > :nth-child(5){animation-delay:1.83s}
#crashino-advent-calendar .door[open] .offer > :nth-child(6){animation-delay:1.95s}
#crashino-advent-calendar .door[open] .offer > :nth-child(n+7){animation-delay:2.07s}
@keyframes ca-rise {from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}

/* ===== RESPONSIVE ===== */
@media(max-width:860px) {
  #crashino-advent-calendar .calendar {max-width:680px;}
  #crashino-advent-calendar .grid {gap:12px 9px;}
  #crashino-advent-calendar .door {
    flex:0 0 calc((100% - 45px) / 6);
    width:calc((100% - 45px) / 6);
  }
}

@media(max-width:520px) {
  #crashino-advent-calendar {padding:4px;}
  #crashino-advent-calendar .calendar {padding:10px 8px; border-radius:16px;}
  #crashino-advent-calendar .grid {gap:9px 7px;}
  #crashino-advent-calendar .door {
    flex:0 0 calc((100% - 21px) / 4);
    width:calc((100% - 21px) / 4);
  }
  #crashino-advent-calendar .gift-body {
    min-height:50px; padding:6px 2px 5px; margin-top:-4px; border-radius:0 0 8px 8px; gap:2px;
  }
  #crashino-advent-calendar .day-number {min-width:26px; padding:2px 6px; font-size:16px; border-radius:6px;}
  #crashino-advent-calendar .status {font-size:7.5px; padding:1.5px 4px; line-height:1.1;}
}

@media(max-width:350px) {
  #crashino-advent-calendar .grid {gap:6px 5px;}
  #crashino-advent-calendar .door {
    flex:0 0 calc((100% - 15px) / 4);
    width:calc((100% - 15px) / 4);
  }
  #crashino-advent-calendar .gift-body {min-height:44px; padding:5px 2px 4px;}
  #crashino-advent-calendar .day-number {min-width:22px; font-size:14px;}
  #crashino-advent-calendar .status {font-size:6.5px;}
}

/* Short screens (landscape phones): let the modal scroll */
@media(max-height:360px) {
  #crashino-advent-calendar .door[open] .offer {
    max-height:calc(100vh - 24px);
    max-height:calc(100dvh - 24px);
    overflow-y:auto;
    padding:18px 16px;
  }
  #crashino-advent-calendar .door[open] .fx {display:none;}
}

@media(prefers-reduced-motion:reduce) {
  #crashino-advent-calendar *, #crashino-advent-calendar *:before, #crashino-advent-calendar *:after {
    animation:none !important; transition:none !important;
  }
  #crashino-advent-calendar .door[open] .offer:before,
  #crashino-advent-calendar .door[open] .offer:after,
  #crashino-advent-calendar .door[open] .fx {display:none;}
}
