/* Giáng Sinh Reborn - giao diện theo mẫu (14/11): hero đỏ thẫm, dải tuyết sáng cho lịch quà, ô quà viền kẹo, thẻ gỗ hướng dẫn */
:root{--cane:repeating-linear-gradient(45deg,#fff 0 7px,#d92b3a 7px 14px);--snowbg:#dfeaf6;--wine:#7a1017;--ink2:#46556d}
#xSnow{z-index:15}
.x-moon,.x-aurora{display:none}
body{background:#2a0610;background-attachment:scroll}
#xSky{opacity:.55}

/* ----- thanh trên ----- */
.x-nav{background:linear-gradient(180deg,#3b0712,#2a0610);border-bottom:2px solid rgba(255,211,107,.35)}
.x-nav nav a{color:#ffe9c4}
.x-login{background:linear-gradient(180deg,#ffd36b,#ff9d2e);color:#4a2400;box-shadow:0 4px 14px rgba(255,157,46,.4)}

/* ----- hero ----- */
.x-hero{min-height:0;padding:64px 20px 56px;
  background:radial-gradient(ellipse 70% 120% at 50% -10%,rgba(224,48,63,.55),transparent 62%),
  radial-gradient(circle at 12% 30%,rgba(255,211,107,.18) 0 40px,transparent 41px),radial-gradient(circle at 88% 22%,rgba(255,120,120,.16) 0 56px,transparent 57px),
  radial-gradient(circle at 24% 78%,rgba(255,255,255,.1) 0 30px,transparent 31px),radial-gradient(circle at 76% 70%,rgba(255,211,107,.14) 0 34px,transparent 35px),
  linear-gradient(180deg,#3a0610 0%,#1d0309 100%)}
.x-hero:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:34px;background:radial-gradient(ellipse 60px 34px at 30px 34px,var(--snowbg) 98%,transparent 100%) 0 0/60px 34px repeat-x}
.x-eyebrow{color:#ffe08a;font-size:13px;letter-spacing:4px}
.x-title{font-size:clamp(44px,8vw,104px);color:#fff4d2;text-shadow:0 3px 0 #a3121f,0 6px 0 #6c0b14,0 0 38px rgba(255,190,100,.55)}
.x-title em{text-shadow:none;background:linear-gradient(180deg,#fffbe6 0%,#ffe08a 55%,#ffb43d 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 4px 0 #6c0b14) drop-shadow(0 0 18px rgba(255,170,60,.5))}
.x-lead{color:#ffe9d2;max-width:640px}
.x-count{margin-top:34px}
.x-count:before{color:#ffcf9e}
.x-cd{min-width:74px;background:linear-gradient(180deg,#8a1221,#4a0912);border:2px solid #ffd36b;box-shadow:0 8px 20px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.25)}
.x-cd b{color:#fff4d2}.x-cd span{color:#ffcf9e}
.x-btn{border-radius:10px;font-size:14px;padding:13px 26px}
.x-btn-gold{background:linear-gradient(180deg,#ffd36b,#ff9d2e);color:#4a2400}
.x-btn-ghost{background:linear-gradient(180deg,#d92b3a,#8a1221);border:2px solid #ffd36b;color:#fff}
.x-scroll{display:none}

/* ----- dải tuyết sáng (lịch + quà đặc biệt + hộp quà + hướng dẫn) ----- */
.x-main{background:var(--snowbg)}
#calendar,#special,#giftbox,#rules{position:relative;max-width:none;padding-left:0;padding-right:0}
#calendar>*,#special>*,#giftbox>*,#rules>*{max-width:1180px;margin-left:auto;margin-right:auto;padding-left:18px;padding-right:18px}
.x-main{background:
  radial-gradient(circle at 8% 12%,rgba(255,255,255,.9) 0 2px,transparent 3px),radial-gradient(circle at 28% 40%,rgba(255,255,255,.8) 0 2px,transparent 3px),
  radial-gradient(circle at 62% 22%,rgba(255,255,255,.9) 0 2px,transparent 3px),radial-gradient(circle at 88% 55%,rgba(255,255,255,.8) 0 2px,transparent 3px),
  linear-gradient(180deg,#e6f0fa 0%,#d6e5f4 100%)}
.x-main{background-size:220px 260px,300px 240px,260px 300px,340px 280px,auto}
.x-sec-head h2{color:var(--wine);text-shadow:0 2px 0 rgba(255,255,255,.8)}
.x-sec-head p{color:var(--ink2)}
.x-sec-eyebrow{color:#9d1422}
#calendar .x-sec-head{padding-top:96px;position:relative}
#calendar .x-sec-head:before{content:"";position:absolute;left:50%;top:6px;transform:translateX(-50%);width:min(520px,92%);height:90px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 90'%3E%3Cg fill='%23166b3a'%3E%3Cpath d='M20 52 Q130 20 232 50 L232 60 Q130 34 20 66Z'/%3E%3Cpath d='M500 52 Q390 20 288 50 L288 60 Q390 34 500 66Z'/%3E%3C/g%3E%3Cg fill='%23d92b3a'%3E%3Cellipse cx='240' cy='38' rx='34' ry='20' transform='rotate(-18 240 38)'/%3E%3Cellipse cx='280' cy='38' rx='34' ry='20' transform='rotate(18 280 38)'/%3E%3Cpath d='M250 52 L228 86 L246 80 L254 90Z'/%3E%3Cpath d='M270 52 L292 86 L274 80 L266 90Z'/%3E%3C/g%3E%3Ccircle cx='260' cy='44' r='13' fill='%23ffd36b'/%3E%3Cg fill='%23ffd36b'%3E%3Ccircle cx='80' cy='46' r='5'/%3E%3Ccircle cx='150' cy='42' r='5'/%3E%3Ccircle cx='370' cy='42' r='5'/%3E%3Ccircle cx='440' cy='46' r='5'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}
.x-progress{background:rgba(122,16,23,.18)}

/* ----- ô quà viền kẹo ----- */
.x-doors{gap:14px}
.x-door{--g:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cellipse cx='50' cy='93' rx='34' ry='5' fill='rgba(0,0,0,.25)'/%3E%3Crect x='16' y='42' width='68' height='48' rx='4' fill='%23c8212f'/%3E%3Crect x='10' y='30' width='80' height='16' rx='4' fill='%23e0303f'/%3E%3Crect x='44' y='30' width='12' height='60' fill='%23ffd36b'/%3E%3Cpath d='M50 30C30 2 8 20 30 30Z' fill='%23ffd36b'/%3E%3Cpath d='M50 30C70 2 92 20 70 30Z' fill='%23ffd36b'/%3E%3Ccircle cx='50' cy='30' r='6' fill='%23e6a82e'/%3E%3C/svg%3E");
  aspect-ratio:1/1.08;border:4px solid transparent;border-radius:14px;color:#fff;box-shadow:0 8px 18px rgba(70,20,28,.28);
  background:linear-gradient(170deg,#1f7a45,#0c3a22) padding-box,var(--cane) border-box}
.x-door:nth-child(even){background:linear-gradient(170deg,#b3202e,#5a0d17) padding-box,var(--cane) border-box}
.x-door:nth-child(even){--g:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cellipse cx='50' cy='93' rx='34' ry='5' fill='rgba(0,0,0,.25)'/%3E%3Crect x='16' y='42' width='68' height='48' rx='4' fill='%231f7a45'/%3E%3Crect x='10' y='30' width='80' height='16' rx='4' fill='%2328a05a'/%3E%3Crect x='44' y='30' width='12' height='60' fill='%23e0303f'/%3E%3Cpath d='M50 30C30 2 8 20 30 30Z' fill='%23e0303f'/%3E%3Cpath d='M50 30C70 2 92 20 70 30Z' fill='%23e0303f'/%3E%3Ccircle cx='50' cy='30' r='6' fill='%23b3182a'/%3E%3C/svg%3E")}
.x-door:nth-child(3n){--g:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cellipse cx='50' cy='93' rx='34' ry='5' fill='rgba(0,0,0,.25)'/%3E%3Crect x='16' y='42' width='68' height='48' rx='4' fill='%23e0a431'/%3E%3Crect x='10' y='30' width='80' height='16' rx='4' fill='%23ffc24d'/%3E%3Crect x='44' y='30' width='12' height='60' fill='%23c8212f'/%3E%3Cpath d='M50 30C30 2 8 20 30 30Z' fill='%23c8212f'/%3E%3Cpath d='M50 30C70 2 92 20 70 30Z' fill='%23c8212f'/%3E%3Ccircle cx='50' cy='30' r='6' fill='%239d1422'/%3E%3C/svg%3E")}
.x-door:hover{transform:translateY(-5px)}
.x-door .gift{position:absolute;left:50%;top:46%;width:60%;aspect-ratio:1;transform:translate(-50%,-50%);background:var(--g) center/contain no-repeat;filter:drop-shadow(0 6px 6px rgba(0,0,0,.4));transition:transform .3s}
.x-door:hover .gift{transform:translate(-50%,-52%) scale(1.07)}
.x-door:after,.x-door[data-state]:after{content:"";position:absolute;left:-6%;right:-6%;bottom:-3px;height:24%;pointer-events:none;background:
  radial-gradient(ellipse 58% 100% at 28% 100%,#fff 63%,transparent 65%),radial-gradient(ellipse 52% 88% at 74% 100%,#eef6ff 63%,transparent 65%);inset:auto -6% -3px -6%;z-index:2}
.x-door-num{font-size:clamp(18px,2.2vw,26px);left:9px;top:6px}
.x-door-badge{right:6px;top:6px;width:22px;height:22px;font-size:11px}
.x-door-name{bottom:7px;font-size:12px;color:#5b1520;text-shadow:none;z-index:4}
.x-door[data-state=locked]{filter:saturate(.55) brightness(.82)}
.x-door[data-state=locked] .gift{filter:grayscale(.6) drop-shadow(0 6px 6px rgba(0,0,0,.4))}
.x-door[data-state=ready]{animation:xReadyB 1.8s ease-in-out infinite;
  background:linear-gradient(170deg,#c8212f,#6a0f1b) padding-box,linear-gradient(90deg,#ffe08a,#ff9d2e,#ffe08a) border-box}
.x-door[data-state=ready] .gift{animation:xGiftB 1.4s ease-in-out infinite}
@keyframes xReadyB{50%{box-shadow:0 8px 28px rgba(255,170,60,.85),0 0 0 3px rgba(255,224,138,.7)}}
@keyframes xGiftB{50%{transform:translate(-50%,-56%) rotate(-4deg)}}
.x-door[data-state=claimed]{background:linear-gradient(170deg,color-mix(in srgb,var(--rc) 55%,#0b1236),#0b1236) padding-box,linear-gradient(90deg,#ffe08a,#ff9d2e,#ffe08a) border-box}
.x-door[data-state=claimed]:before{display:none}
.x-door[data-state=claimed]:after{display:none}
.x-door[data-state=claimed] img{top:46%;width:58%}
.x-door[data-state=claimed] .x-door-name{color:#fff;text-shadow:0 1px 6px #000}

/* ----- quà đặc biệt ----- */
.x-special{background:radial-gradient(circle at 18% 90%,rgba(255,255,255,.18),transparent 40%),linear-gradient(135deg,#0d4a2a,#0a2f1d 70%);border:4px solid transparent;border-radius:22px;
  background-image:radial-gradient(circle at 18% 90%,rgba(255,255,255,.18),transparent 40%),linear-gradient(135deg,#0d4a2a,#0a2f1d 70%),var(--cane);background-origin:border-box;background-clip:padding-box,padding-box,border-box;box-shadow:0 16px 40px rgba(40,20,20,.35)}
.x-special:before{content:"";position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 260'%3E%3Cpath d='M100 8L150 90H122L176 160H138L192 240H8L62 160H24L78 90H50Z' fill='%23126b3a'/%3E%3Ccircle cx='80' cy='120' r='7' fill='%23e0303f'/%3E%3Ccircle cx='120' cy='170' r='7' fill='%23ffd36b'/%3E%3Ccircle cx='70' cy='205' r='7' fill='%234aa8ff'/%3E%3Ccircle cx='132' cy='215' r='7' fill='%23e0303f'/%3E%3Cpath d='M100 0l8 14h-16z' fill='%23ffd36b'/%3E%3C/svg%3E") 100% 100%/auto 92% no-repeat;opacity:.55;animation:none}
.x-special .tag{background:linear-gradient(180deg,#ffd36b,#ff9d2e);letter-spacing:1px}
.x-special h2{color:#fff4d2;text-shadow:0 3px 0 #6c0b14}
.x-special p{color:#d6efe0}

/* ----- hộp quà ----- */
.x-case{border:4px solid transparent;border-radius:22px;
  background:radial-gradient(circle at 12% 18%,rgba(255,255,255,.25) 0 2px,transparent 3px) 0 0/90px 90px,radial-gradient(circle at 15% 20%,rgba(255,120,120,.55),transparent 55%),linear-gradient(135deg,#b3202e,#5a0d17);
  background-image:radial-gradient(circle at 12% 18%,rgba(255,255,255,.25) 0 2px,transparent 3px),radial-gradient(circle at 15% 20%,rgba(255,120,120,.55),transparent 55%),linear-gradient(135deg,#b3202e,#5a0d17),var(--cane);
  background-size:90px 90px,auto,auto,auto;background-origin:border-box;background-clip:padding-box,padding-box,padding-box,border-box;box-shadow:0 16px 40px rgba(70,20,28,.4)}
.x-case-art img.s,.x-case-art img.s2{border:3px solid #fff;box-shadow:0 8px 20px rgba(0,0,0,.45)}

/* ----- hướng dẫn: thẻ gỗ ----- */
#rules .x-sec-head h2{letter-spacing:1px}
.x-faq{max-width:900px;grid-template-columns:1fr 1fr;gap:14px}
.x-faq details{background:linear-gradient(180deg,#6b4129,#4a2b19);border:3px solid #8a5a38;border-radius:12px;box-shadow:0 8px 16px rgba(60,30,20,.35),inset 0 1px 0 rgba(255,255,255,.18)}
.x-faq summary{color:#ffe9c4}
.x-faq p{color:#f2dcc0}

/* ----- chân trang ----- */
.x-footer{margin-top:0;padding-top:130px;background:linear-gradient(180deg,#d6e5f4 0%,#0d2a1c 62%,#06140d 100%)}
.x-trees{height:170px}
.x-footer:before,.x-footer:after{content:"";position:absolute;bottom:34px;width:84px;height:104px;z-index:2;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 104'%3E%3Ccircle cx='42' cy='76' r='26' fill='%23fff'/%3E%3Ccircle cx='42' cy='38' r='19' fill='%23fff'/%3E%3Ccircle cx='35' cy='34' r='2.6' fill='%23222'/%3E%3Ccircle cx='49' cy='34' r='2.6' fill='%23222'/%3E%3Cpath d='M42 39l12 3-12 3z' fill='%23ff7a1a'/%3E%3Crect x='24' y='12' width='36' height='8' rx='2' fill='%23c8212f'/%3E%3Crect x='30' y='0' width='24' height='14' rx='3' fill='%23c8212f'/%3E%3Cpath d='M26 52q16 8 32 0v7q-16 8-32 0z' fill='%23c8212f'/%3E%3C/svg%3E") center/contain no-repeat}
.x-footer:before{left:7%}.x-footer:after{right:7%;transform:scaleX(-1)}
.x-foot-text{color:#cfe8d8}

@media (max-width:620px){.x-nav nav{display:none}.x-nav{justify-content:space-between}.x-faq{grid-template-columns:1fr}.x-hero{padding:46px 14px 46px}.x-door-name{font-size:10px}#calendar .x-sec-head{padding-top:84px}}
@media (min-width:99999px) and (prefers-reduced-motion:reduce){.x-door[data-state=ready],.x-door .gift{animation:none!important}}

/* ===== đợt 2: sát mẫu hơn ===== */
:root{--pine:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 56'%3E%3Cpath d='M0 14 Q35 46 70 14 T140 14' fill='none' stroke='%230f5a30' stroke-width='14' stroke-linecap='round'/%3E%3Cpath d='M0 14 Q35 46 70 14 T140 14' fill='none' stroke='%231f8a4c' stroke-width='8' stroke-linecap='round'/%3E%3Cg stroke='%2335b868' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10 20l-6 8M24 30l-5 9M40 34l-3 10M56 28l0 10M72 18l5 8M88 28l5 9M104 34l3 10M120 28l5 8M134 20l6 7'/%3E%3C/g%3E%3Ccircle cx='35' cy='36' r='5' fill='%23ff3b4a'/%3E%3Ccircle cx='100' cy='36' r='5' fill='%23ffd34d'/%3E%3Ccircle cx='70' cy='15' r='4' fill='%234aa8ff'/%3E%3Ccircle cx='35' cy='36' r='9' fill='%23ff3b4a' opacity='.25'/%3E%3Ccircle cx='100' cy='36' r='9' fill='%23ffd34d' opacity='.25'/%3E%3C/svg%3E")}
.x-hero:before{content:"";position:absolute;left:0;right:0;top:0;height:56px;background:var(--pine) 0 0/140px 56px repeat-x;z-index:1;pointer-events:none}
.x-garland{display:none}
.x-hero{padding-top:92px}
.x-hero{background-image:radial-gradient(ellipse 70% 120% at 50% -10%,rgba(224,48,63,.55),transparent 62%),radial-gradient(circle at 12% 34%,rgba(255,211,107,.22) 0 26px,transparent 27px),radial-gradient(circle at 90% 26%,rgba(255,120,120,.2) 0 42px,transparent 43px),radial-gradient(circle at 20% 84%,rgba(255,255,255,.12) 0 22px,transparent 23px),radial-gradient(circle at 80% 76%,rgba(255,211,107,.18) 0 28px,transparent 29px),radial-gradient(circle at 50% 100%,rgba(255,150,80,.18),transparent 55%),linear-gradient(180deg,#3a0610 0%,#17020a 100%)}
.x-nav{background:#1d0309}

/* lưới 4 cột như mẫu */
#calendar>.x-doors{max-width:900px}
.x-doors{grid-template-columns:repeat(4,1fr);gap:16px}
#special>.x-special,#giftbox>.x-case{max-width:940px}
.x-door-num{font-size:clamp(20px,2.6vw,30px)}
.x-door[data-state=locked] .x-door-name,.x-door[data-state=ready] .x-door-name{display:none}
.x-door:after,.x-door[data-state]:after{height:28%}
.x-door .gift{top:44%;width:64%}

/* phần hướng dẫn: nền gỗ tối + dây thông */
#rules{background:repeating-linear-gradient(0deg,#3a2112 0 46px,#2e190d 46px 48px),#3a2112;padding:0 0 60px;margin-top:40px}
#rules:before{content:"";display:block;height:56px;background:var(--pine) 0 0/140px 56px repeat-x}
#rules .x-sec-head{padding-top:40px}
#rules .x-sec-head h2{color:#ffe08a;text-shadow:0 3px 0 #5a0d17,0 0 24px rgba(255,170,60,.4)}
#rules .x-sec-eyebrow{color:#ffcf9e}
.x-faq details{background:linear-gradient(180deg,#7a4a2c,#52301b);border-color:#a8703f}

/* chân trang tối + hộp quà */
.x-footer{background:linear-gradient(180deg,#2e190d 0%,#0c2a1a 55%,#06140d 100%);padding-top:150px}
.x-footer .x-trees:after{content:"";position:absolute;left:0;right:0;bottom:0;height:46px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 46'%3E%3Crect x='10' y='14' width='30' height='30' fill='%23c8212f'/%3E%3Crect x='23' y='14' width='4' height='30' fill='%23ffd36b'/%3E%3Crect x='10' y='24' width='30' height='4' fill='%23ffd36b'/%3E%3Crect x='70' y='20' width='24' height='24' fill='%231f7a45'/%3E%3Crect x='80' y='20' width='4' height='24' fill='%23e0303f'/%3E%3Crect x='130' y='10' width='34' height='34' fill='%23e0a431'/%3E%3Crect x='145' y='10' width='4' height='34' fill='%23c8212f'/%3E%3Crect x='130' y='22' width='34' height='4' fill='%23c8212f'/%3E%3Crect x='200' y='18' width='26' height='26' fill='%234aa8ff'/%3E%3Crect x='211' y='18' width='4' height='26' fill='%23fff'/%3E%3Crect x='256' y='14' width='30' height='30' fill='%23c8212f'/%3E%3Crect x='269' y='14' width='4' height='30' fill='%23ffd36b'/%3E%3C/svg%3E") 0 100%/300px 46px repeat-x}
@media (max-width:1000px){.x-doors{grid-template-columns:repeat(4,1fr)}}
@media (max-width:620px){.x-doors{grid-template-columns:repeat(4,1fr);gap:8px}.x-door{border-width:3px;border-radius:10px}.x-door-num{font-size:15px;left:6px;top:4px}.x-door-badge{display:none}}
.x-door[data-state=locked]{filter:saturate(.9) brightness(.94)}
.x-door[data-state=locked] .gift{filter:drop-shadow(0 6px 6px rgba(0,0,0,.4))}
.x-door-badge{display:flex}
.x-case .x-sec-eyebrow{color:#ffe08a}
.x-case h2{color:#fff4d2;text-shadow:0 3px 0 #5a0d17}
@media (max-width:620px){.x-door-badge{display:none}}
