/* 更新公告 v0.51：左边是主视觉和礼物，右边是更新清单。只用 Chrome 80 / iOS 15 都支持的写法（不用 inset、flex gap、aspect-ratio）。 */
#yc-update-notice{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;
  padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
  background:radial-gradient(ellipse at 30% 20%,rgba(64,92,190,.38),transparent 60%),radial-gradient(ellipse at 80% 90%,rgba(206,150,52,.22),transparent 55%),rgba(6,9,20,.78);
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);animation:un-fade .22s ease-out both;
  font-family:system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;color:#eef1ff;-webkit-tap-highlight-color:transparent}
#yc-update-notice.leaving{animation:un-fade .2s ease-in reverse both}
#yc-update-notice .un-card{position:relative;display:grid;grid-template-columns:minmax(250px,38%) 1fr;grid-template-rows:minmax(0,1fr);width:min(940px,100%);height:min(560px,100%);
  border:2px solid #d9b25a;border-radius:6px;overflow:hidden;background:#101629;
  box-shadow:0 0 0 4px rgba(10,13,26,.9),0 0 0 6px rgba(217,178,90,.35),0 24px 60px rgba(0,0,0,.6);animation:un-pop .34s cubic-bezier(.2,1.3,.4,1) both}
#yc-update-notice .un-hero{position:relative;display:flex;flex-direction:column;justify-content:center;padding:28px 24px;overflow:hidden;
  background:linear-gradient(160deg,#28377c 0%,#1a2152 46%,#2a1840 100%)}
#yc-update-notice .un-hero:after{content:"";position:absolute;left:-30%;right:-30%;bottom:-40%;height:70%;background:radial-gradient(ellipse at center,rgba(255,206,96,.28),transparent 65%);pointer-events:none}
#yc-update-notice .un-stars i{position:absolute;width:3px;height:3px;background:#fff;opacity:.7;animation:un-twinkle 2.4s ease-in-out infinite}
#yc-update-notice .un-stars i:nth-child(1){left:8%;top:10%}#yc-update-notice .un-stars i:nth-child(2){left:22%;top:26%;animation-delay:.4s}
#yc-update-notice .un-stars i:nth-child(3){left:40%;top:8%;animation-delay:.9s}#yc-update-notice .un-stars i:nth-child(4){left:62%;top:18%;animation-delay:.2s}
#yc-update-notice .un-stars i:nth-child(5){left:84%;top:9%;animation-delay:1.3s}#yc-update-notice .un-stars i:nth-child(6){left:90%;top:34%;animation-delay:.7s}
#yc-update-notice .un-stars i:nth-child(7){left:12%;top:48%;animation-delay:1.6s}#yc-update-notice .un-stars i:nth-child(8){left:72%;top:46%;animation-delay:1.1s}
#yc-update-notice .un-stars i:nth-child(9){left:52%;top:32%;animation-delay:1.9s;width:2px;height:2px}#yc-update-notice .un-stars i:nth-child(10){left:30%;top:58%;animation-delay:.5s;width:2px;height:2px}
#yc-update-notice .un-stars i:nth-child(11){left:6%;top:74%;animation-delay:2s;width:2px;height:2px}#yc-update-notice .un-stars i:nth-child(12){left:94%;top:62%;animation-delay:.3s;width:2px;height:2px}
#yc-update-notice .un-stars i:nth-child(13){left:46%;top:70%;animation-delay:1.4s;width:2px;height:2px}#yc-update-notice .un-stars i:nth-child(14){left:78%;top:78%;animation-delay:.8s;width:2px;height:2px}
#yc-update-notice .un-ver{position:relative;align-self:flex-start;padding:4px 10px;border:1px solid rgba(255,214,120,.6);background:rgba(10,12,30,.45);color:#ffd986;
  font-family:"YourCraft Pixel","YourCraft Pixel Full",system-ui,sans-serif;font-size:12px;letter-spacing:2px}
#yc-update-notice .un-title{position:relative;margin:14px 0 8px;font-family:"YourCraft Pixel","YourCraft Pixel Full",system-ui,sans-serif;font-size:48px;line-height:1.1;font-weight:400;letter-spacing:2px;color:#fff;
  text-shadow:0 3px 0 #c98f2c,0 6px 0 #5a3412,0 10px 22px rgba(0,0,0,.45)}
#yc-update-notice .un-sub{position:relative;margin:0 0 18px;color:#c7cdf3;font-size:13px;line-height:1.5}
#yc-update-notice .un-gift{position:relative;display:flex;align-items:center;padding:12px 12px 12px 14px;border:2px solid #f0c15a;border-radius:4px;
  background:linear-gradient(180deg,#3a2a10,#24190a);box-shadow:inset 0 0 0 2px rgba(0,0,0,.35),0 6px 0 rgba(0,0,0,.35)}
#yc-update-notice .un-gift-coin{flex:none;width:44px;height:44px;margin-right:12px;display:flex;align-items:center;justify-content:center;animation:un-bob 1.8s ease-in-out infinite}
#yc-update-notice .un-gift-coin img{width:40px;height:40px;image-rendering:pixelated}
#yc-update-notice .un-gift-text{flex:1;min-width:0;display:flex;flex-direction:column}
#yc-update-notice .un-gift-text b{font-family:"YourCraft Pixel","YourCraft Pixel Full",system-ui,sans-serif;font-weight:400;font-size:36px;line-height:1;color:#ffe08a;text-shadow:0 2px 0 #8a5a14}
#yc-update-notice .un-gift-text span{margin-top:4px;font-size:12px;color:#e9d6a6}
#yc-update-notice button{font:inherit;cursor:pointer;border-radius:3px;touch-action:manipulation}
#yc-update-notice button:disabled{cursor:default}
#yc-update-notice .un-claim{flex:none;min-width:76px;min-height:44px;margin-left:10px;padding:0 14px;border:2px solid #fff3c4;background:#f2b538;color:#3a2104;font-weight:700;font-size:16px;
  box-shadow:0 4px 0 #8f5a10;transition:transform .08s}
#yc-update-notice .un-claim:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #8f5a10}
#yc-update-notice .un-claim.done{background:#3f4a37;border-color:#8fbf73;color:#cfeeb9;box-shadow:none}
#yc-update-notice .un-status{position:relative;min-height:18px;margin-top:8px;font-size:12px;color:#ffe3a0}
#yc-update-notice .un-rain{position:absolute;left:0;right:0;top:0;bottom:0;pointer-events:none;overflow:hidden}
#yc-update-notice .un-rain span{position:absolute;top:-24px;animation:un-drop 1.2s ease-in both}
#yc-update-notice .un-rain img{width:18px;height:18px;image-rendering:pixelated}
#yc-update-notice .un-coin-dot{display:inline-block;width:70%;height:70%;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fff3b0,#f0b636 55%,#9a6514);box-shadow:0 0 0 2px #6b430c}
#yc-update-notice .un-body{display:flex;flex-direction:column;min-height:0;background:linear-gradient(180deg,#141b33,#0f1426)}
#yc-update-notice .un-list{flex:1;min-height:0;margin:0;padding:18px 20px 6px;list-style:none;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
#yc-update-notice .un-item{display:flex;align-items:flex-start;margin:0 0 10px;padding:10px 12px;border-radius:4px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);
  animation:un-rise .42s ease-out both}
#yc-update-notice .un-item:nth-child(2){animation-delay:.05s}#yc-update-notice .un-item:nth-child(3){animation-delay:.1s}#yc-update-notice .un-item:nth-child(4){animation-delay:.15s}
#yc-update-notice .un-item:nth-child(5){animation-delay:.2s}#yc-update-notice .un-item:nth-child(6){animation-delay:.25s}
#yc-update-notice .un-tag{flex:none;margin:1px 12px 0 0;padding:3px 7px;font-size:12px;font-weight:700;letter-spacing:1px;border-radius:2px;color:#111;box-shadow:0 2px 0 rgba(0,0,0,.35)}
#yc-update-notice .un-item h3{margin:0 0 3px;font-size:15px;font-weight:700;color:#fff}
#yc-update-notice .un-item p{margin:0;font-size:13px;line-height:1.55;color:#b9c0e0}
#yc-update-notice .un-gold .un-tag{background:#f2c14e}#yc-update-notice .un-green .un-tag{background:#8fd46a}#yc-update-notice .un-violet .un-tag{background:#c59cff}
#yc-update-notice .un-blue .un-tag{background:#7cc4ff}#yc-update-notice .un-teal .un-tag{background:#6fe0cf}#yc-update-notice .un-red .un-tag{background:#ff8a7a}
#yc-update-notice .un-foot{margin:0;padding:6px 20px 0;font-size:12px;line-height:1.6;color:#9aa3cc}
#yc-update-notice .un-sign{display:block;text-align:right;color:#d9b25a}
#yc-update-notice .un-acts{display:flex;justify-content:flex-end;align-items:center;padding:12px 20px 16px}
#yc-update-notice .un-later,#yc-update-notice .un-go{min-height:44px;padding:0 18px;font-size:15px}
#yc-update-notice .un-later{margin-right:10px;border:1px solid rgba(255,255,255,.25);background:transparent;color:#c7cdf3}
#yc-update-notice .un-go{border:2px solid #fff1c1;background:linear-gradient(180deg,#ffd36a,#e8a531);color:#3a2104;font-weight:700;box-shadow:0 4px 0 #8f5a10}
#yc-update-notice .un-go:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #8f5a10}
#yc-update-notice button:focus-visible{outline:3px solid #fff;outline-offset:2px}
/* 手机横屏（高度很小）：压缩主视觉，清单可以滚动。用游戏自己算的 html.short（整页转 90° 时也对） */
html.short #yc-update-notice .un-card{grid-template-columns:minmax(220px,36%) 1fr;height:100%}
html.short #yc-update-notice .un-hero{padding:14px 16px}
html.short #yc-update-notice .un-title{font-size:36px;margin:8px 0 4px}
html.short #yc-update-notice .un-sub{margin-bottom:10px;font-size:12px}
html.short #yc-update-notice .un-gift{padding:8px 8px 8px 10px}
html.short #yc-update-notice .un-gift-coin{width:34px;height:34px;margin-right:8px}html.short #yc-update-notice .un-gift-coin img{width:32px;height:32px}
html.short #yc-update-notice .un-gift-text b{font-size:24px}
html.short #yc-update-notice .un-list{padding:10px 14px 2px}
html.short #yc-update-notice .un-item{margin-bottom:7px;padding:7px 10px}
html.short #yc-update-notice .un-item h3{font-size:14px}html.short #yc-update-notice .un-item p{font-size:12px;line-height:1.45}
html.short #yc-update-notice .un-foot{padding:4px 14px 0}
html.short #yc-update-notice .un-acts{padding:8px 14px 10px}
/* 竖屏窄屏：上下排 */
@media (max-width:600px){
  html:not(.rot) #yc-update-notice .un-card{grid-template-columns:1fr;grid-template-rows:auto auto;height:auto;max-height:100%;overflow-y:auto}
  html:not(.rot) #yc-update-notice .un-title{font-size:36px}
  html:not(.rot) #yc-update-notice .un-list{overflow:visible}
}
@media (prefers-reduced-motion:reduce){#yc-update-notice *,#yc-update-notice{animation:none!important}}
@keyframes un-fade{from{opacity:0}to{opacity:1}}
@keyframes un-pop{from{opacity:0;transform:translateY(16px) scale(.96)}to{opacity:1;transform:none}}
@keyframes un-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes un-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes un-twinkle{0%,100%{opacity:.2}50%{opacity:.9}}
@keyframes un-drop{0%{opacity:0;transform:translateY(0) rotate(0)}15%{opacity:1}100%{opacity:0;transform:translateY(420px) rotate(220deg)}}
