/* 高いギフトの特別な演出（2026-09-29）。js/gift-fx.js が作る。接頭辞 hgf-（卓の gfx- とは別） */

/* ---- 帯（格1・縮んだ後・よその部屋） ---- */
.hgf-band{position:fixed;z-index:99980;left:50%;top:calc(env(safe-area-inset-top,0px) + 10px);width:min(440px,calc(100vw - 20px));box-sizing:border-box;display:flex;align-items:center;gap:10px;padding:8px 38px 8px 10px;border-radius:16px;overflow:hidden;color:#fff;background:linear-gradient(100deg,#3b1d5e,#7a2f7c 55%,#b5477a);border:1.5px solid rgba(255,221,140,.7);box-shadow:0 10px 30px rgba(40,10,60,.35),0 0 0 3px rgba(255,214,110,.12);transform:translate(-50%,-140%);opacity:0;transition:transform .45s cubic-bezier(.2,1.3,.4,1),opacity .3s;cursor:pointer;font-family:inherit;line-height:1.35}
.hgf-band.is-in{transform:translate(-50%,0);opacity:1}
.hgf-band--g2,.hgf-band--g3{background:linear-gradient(100deg,#2a1348,#6b2275 50%,#c0418a);border-color:#ffd66e}
.hgf-band--g3{background:linear-gradient(100deg,#1a0f33,#4a1f6e 45%,#a8367a 80%,#d8a23a)}
.hgf-band__art{flex:0 0 auto;width:46px;height:46px;border-radius:12px;object-fit:cover;background:rgba(255,255,255,.14);box-shadow:0 0 14px rgba(255,220,130,.55);animation:hgf-bob 1.6s ease-in-out infinite}
.hgf-band__art--emo{display:flex;align-items:center;justify-content:center;font-size:30px}
.hgf-band__t{flex:1 1 auto;min-width:0;font-size:13px;font-weight:700}
.hgf-band__t small{display:block;font-size:9.5px;letter-spacing:.14em;color:#ffe08a;font-weight:900;margin-bottom:1px}
.hgf-band__t b{color:#ffe7a1}
.hgf-band__t em{font-style:normal;font-weight:900}
.hgf-band__glint{position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.45) 45%,transparent 60%);transform:translateX(-120%);animation:hgf-glint 1.8s .3s ease-in-out 2}
.hgf-band::before,.hgf-band::after{content:"✦";position:absolute;color:#fff3b8;font-size:12px;pointer-events:none;animation:hgf-twinkle 1.1s ease-in-out infinite}
.hgf-band::before{right:44px;top:6px}
.hgf-band::after{left:52px;bottom:5px;animation-delay:.55s}
.hgf-x{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:28px;height:28px;min-height:0;min-width:0;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;font-size:16px;line-height:28px;cursor:pointer}

/* ---- 全画面（格2・格3） ---- */
.hgf{position:fixed;inset:0;z-index:99990;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;cursor:pointer;color:#fff;opacity:0;transition:opacity .3s;font-family:inherit;-webkit-tap-highlight-color:transparent}
.hgf.is-in{opacity:1}
.hgf__bg{position:absolute;inset:0;background:radial-gradient(circle at 50% 45%,rgba(255,196,90,.42),rgba(96,32,104,.9) 45%,rgba(22,10,38,.97) 80%),rgba(24,10,40,.9);background-size:cover;background-position:center}
.hgf--g3 .hgf__bg{background:radial-gradient(circle at 50% 42%,rgba(255,214,110,.26),rgba(30,9,48,.97) 52%,#05020c 88%),#07030f;animation:hgf-dim .9s ease both}
.hgf--g3 .hgf__rays{opacity:.55}
.hgf__rays{position:absolute;left:50%;top:44%;width:190vmax;height:190vmax;margin:-95vmax 0 0 -95vmax;background:repeating-conic-gradient(from 0deg,rgba(255,230,150,.2) 0 7deg,transparent 7deg 20deg);background-size:cover;border-radius:50%;-webkit-mask:radial-gradient(circle,#000 8%,transparent 55%);mask:radial-gradient(circle,#000 8%,transparent 55%);animation:hgf-spin 14s linear infinite,hgf-fadein .8s .2s both}
.hgf__slash{position:absolute;left:-20%;right:-20%;top:40%;height:30%;background:linear-gradient(90deg,transparent,rgba(255,120,190,.55) 20%,rgba(255,210,110,.7) 50%,rgba(255,120,190,.55) 80%,transparent);transform:rotate(-12deg) scaleX(0);transform-origin:left center;box-shadow:0 0 40px rgba(255,190,120,.5);animation:hgf-slash .45s .1s cubic-bezier(.2,.9,.3,1) forwards,hgf-fadeout .6s 2.6s forwards}
.hgf--g3 .hgf__slash{background:linear-gradient(90deg,transparent,rgba(170,120,255,.5) 20%,rgba(255,221,120,.8) 50%,rgba(170,120,255,.5) 80%,transparent)}
.hgf__label{position:relative;z-index:2;padding:5px 16px;border:1px solid rgba(255,224,130,.7);border-radius:999px;background:rgba(26,13,40,.72);color:#ffe69d;font-size:12px;font-weight:900;letter-spacing:.22em;animation:hgf-drop .6s .25s both}
.hgf__art{position:relative;z-index:2;margin:14px 0 10px;animation:hgf-cutin .7s .15s cubic-bezier(.18,1.25,.4,1) both}
.hgf__art::after{content:"";position:absolute;inset:-18%;border-radius:50%;background:radial-gradient(circle,rgba(255,236,170,.55),transparent 65%);z-index:-1;animation:hgf-pulse 1.6s ease-in-out infinite}
.hgf__img{display:block;background:linear-gradient(160deg,#fff6e3,#f1dcff);width:min(58vw,300px);height:min(58vw,300px);max-height:40vh;max-width:40vh;object-fit:cover;border-radius:28px;box-shadow:0 20px 60px rgba(0,0,0,.5),0 0 0 3px rgba(255,221,140,.55),0 0 50px rgba(255,200,110,.45)}
.hgf__img--emo{display:flex;align-items:center;justify-content:center;font-size:min(34vw,150px);background:rgba(255,255,255,.08)}
.hgf--g3 .hgf__img{width:min(50vw,260px);height:min(50vw,260px);max-height:32vh;max-width:32vh}
.hgf__crown{position:relative;z-index:3;margin-bottom:-6px;font-size:54px;line-height:1;filter:drop-shadow(0 0 18px rgba(255,210,90,.9));animation:hgf-crown .9s .5s cubic-bezier(.2,1.4,.4,1) both}
.hgf__crown img{width:88px;height:auto;display:block}
.hgf__pair{position:relative;z-index:2;display:flex;align-items:center;gap:12px;margin:4px 0 8px;animation:hgf-rise .6s 1s both}
.hgf__who{display:flex;flex-direction:column;align-items:center;gap:4px;max-width:34vw}
.hgf__who small{font-size:11.5px;font-weight:900;max-width:34vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hgf-av{width:54px;height:54px;border-radius:50%;object-fit:cover;border:2.5px solid #ffd66e;box-shadow:0 0 18px rgba(255,210,110,.6);background:#3b1d5e}
.hgf-av--init{display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:900;color:#ffe7a1}
.hgf__arrow{color:#ffe08a;font-size:18px;letter-spacing:-4px;animation:hgf-arrow 1s ease-in-out infinite}
.hgf__name{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;gap:4px;width:min(360px,calc(100vw - 32px));box-sizing:border-box;padding:10px 16px;border-radius:18px;border:1px solid rgba(255,228,151,.35);background:rgba(24,12,37,.86);text-align:center;animation:hgf-rise .6s .7s both}
.hgf__name strong{font-size:19px;font-weight:900;color:#ffe7a1;letter-spacing:.04em}
.hgf__name span{font-size:12.5px;line-height:1.45}
.hgf__name em{font-style:normal;font-weight:900}
.hgf__name b{color:#ffe7a1}
.hgf__foot{position:absolute;z-index:3;left:0;right:0;bottom:calc(env(safe-area-inset-bottom,0px) + 18px);display:flex;justify-content:center;align-items:center;gap:10px}
.hgf__tap{font-size:11px;opacity:.75}
.hgf-mute{min-height:0;padding:5px 11px;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:rgba(0,0,0,.35);color:#fff;font-size:11.5px;font-weight:700;cursor:pointer}
.hgf__credit{position:absolute;z-index:3;right:8px;bottom:calc(env(safe-area-inset-bottom,0px) + 2px);font-size:9px;opacity:.55}

/* 紙吹雪・花火 */
.hgf-cfs,.hgf-fws{position:absolute;inset:0;pointer-events:none;z-index:1}
.hgf-cf{position:absolute;top:-4%;width:9px;height:9px;border-radius:2px;opacity:.95;animation:hgf-fall 3s linear both}
.hgf-fw{position:absolute;width:0;height:0;opacity:0;animation:hgf-fwshow 1.3s ease-out both}
.hgf-fw i{position:absolute;left:-3px;top:-3px;width:6px;height:6px;border-radius:50%;box-shadow:0 0 8px currentColor;transform:rotate(var(--r)) translateY(0);animation:inherit;animation-name:hgf-burst;animation-timing-function:cubic-bezier(.1,.8,.3,1)}

@keyframes hgf-fall{0%{transform:translate(0,0) rotate(0)}100%{transform:translate(var(--x),112vh) rotate(var(--rz))}}
@keyframes hgf-burst{0%{transform:rotate(var(--r)) translateY(0) scale(1.2);opacity:1}80%{opacity:1}100%{transform:rotate(var(--r)) translateY(-26vmin) scale(.4);opacity:0}}
@keyframes hgf-fwshow{0%{opacity:0}5%{opacity:1}100%{opacity:1}}
@keyframes hgf-spin{to{transform:rotate(360deg)}}
@keyframes hgf-fadein{from{opacity:0}to{opacity:1}}
@keyframes hgf-fadeout{to{opacity:0}}
@keyframes hgf-dim{from{opacity:0}to{opacity:1}}
@keyframes hgf-slash{to{transform:rotate(-12deg) scaleX(1)}}
@keyframes hgf-cutin{0%{transform:translateX(110vw) rotate(18deg) scale(.6);opacity:0}60%{transform:translateX(-4vw) rotate(-4deg) scale(1.08);opacity:1}100%{transform:none}}
@keyframes hgf-drop{from{transform:translateY(-30px);opacity:0}to{transform:none;opacity:1}}
@keyframes hgf-rise{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
@keyframes hgf-crown{0%{transform:translateY(-60vh) rotate(-20deg)}70%{transform:translateY(6px) rotate(4deg)}100%{transform:none}}
@keyframes hgf-pulse{0%,100%{transform:scale(.92);opacity:.7}50%{transform:scale(1.08);opacity:1}}
@keyframes hgf-arrow{0%,100%{transform:translateX(-3px)}50%{transform:translateX(3px)}}
@keyframes hgf-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes hgf-glint{to{transform:translateX(120%)}}
@keyframes hgf-twinkle{0%,100%{opacity:.2;transform:scale(.7)}50%{opacity:1;transform:scale(1.15)}}

/* 小さい画面（360×640 など）: 絵を小さく・隙間を詰める */
@media (max-height:680px){
	.hgf__img{width:min(46vw,210px);height:min(46vw,210px)}
	.hgf--g3 .hgf__img{width:min(38vw,170px);height:min(38vw,170px)}
	.hgf__art{margin:8px 0 6px}
	.hgf__crown{font-size:42px}
	.hgf-av{width:44px;height:44px}
	.hgf__name{padding:8px 12px}
	.hgf__name strong{font-size:17px}
	.hgf__foot{bottom:calc(env(safe-area-inset-bottom,0px) + 12px)}
}

/* 動きを減らす設定: 飛び込み・回転・紙吹雪・花火を止めて、静かに出す */
@media (prefers-reduced-motion:reduce){
	.hgf,.hgf-band{transition:opacity .2s}
	.hgf-band{transform:translate(-50%,0)}
	.hgf *,.hgf-band *,.hgf-band::before,.hgf-band::after{animation:none!important}
	.hgf__slash{transform:rotate(-12deg) scaleX(1);opacity:.5}
}
.hgf.is-reduced .hgf-cfs,.hgf.is-reduced .hgf-fws{display:none}

/* 2026-09-29 夕: 演出の設定（⚙） */
.hgf-set{position:absolute;right:38px;top:50%;transform:translateY(-50%);width:26px;height:26px;min-height:0;min-width:0;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:13px;line-height:26px;cursor:pointer}
.hgf-band{padding-right:68px}
.hgf-set--foot{position:static;transform:none;width:30px;height:30px;line-height:30px;background:rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.35)}
.hgf-sheet{position:fixed;inset:0;z-index:99995;display:flex;align-items:flex-end;justify-content:center;background:rgba(20,10,30,.45)}
.hgf-sheet__box{width:min(420px,100vw);box-sizing:border-box;padding:16px 18px calc(env(safe-area-inset-bottom,0px) + 16px);border-radius:18px 18px 0 0;background:#fff;color:#3a2a55;display:flex;flex-direction:column;gap:9px}
.hgf-sheet__box b{font-size:15px}
.hgf-sheet__box small{font-size:11.5px;color:#8b7f95;margin-top:-4px}
.hgf-sheet__box label{display:flex;align-items:center;gap:8px;font-size:14px;padding:6px 2px}
.hgf-sheet__ok{margin-top:4px;padding:10px;border:0;border-radius:12px;background:linear-gradient(135deg,#c0418a,#7a3a8a);color:#fff;font-weight:900}
.hgf-setcard{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0;padding:11px 14px;border:1.5px solid #ecdcf3;border-radius:13px;background:#fff;font-size:13.5px;font-weight:700;color:#3a2a55}
.hgf-setcard .hgf-set{position:static;transform:none;width:auto;height:auto;padding:6px 14px;border-radius:999px;background:#f3e8fb;color:#7a3a8a;font-size:12.5px;line-height:1.4}

/* 2026-09-29 夕: 贈る画面のラッキー切手の確率 */
.hgf-lucky{margin:0 0 8px;padding:6px 10px;border-radius:10px;background:#fff7e6;border:1px solid #f1d9a6;color:#6b4a1a;font-size:12px;line-height:1.5;font-weight:600;text-align:left}
.hgf-lucky summary{cursor:pointer;list-style:none}
.hgf-lucky summary::-webkit-details-marker{display:none}
.hgf-lucky__i{margin-left:4px;color:#b0761c;font-size:11px;text-decoration:underline;white-space:nowrap}
.hgf-lucky[open] .hgf-lucky__i{opacity:.6}
.hgf-lucky p{margin:6px 0 2px;font-size:11.5px;font-weight:500;line-height:1.6}

/* MELAYOUT1007 「演出を減らす」・設定の札・知らせ・「表示しない」の時はお祝いの帯も出さない */
.hgf-less{position:relative;min-height:44px;padding:0 14px;border:1px solid rgba(255,255,255,.5);border-radius:999px;background:rgba(0,0,0,.3);color:#fff;font:inherit;font-size:14px;font-weight:900;white-space:nowrap;cursor:pointer}
.hgf-band:has(.hgf-less){flex-wrap:wrap;row-gap:6px}
.hgf-band:has(.hgf-less) .hgf-band__t{flex:1 1 calc(100% - 80px)}
.hgf-band .hgf-less{order:3;margin:0 0 0 auto;min-height:40px}
.hgf__foot .hgf-less{position:static;transform:none;min-height:44px;padding:0 14px;font-size:14px}
.hgf-band .hgf-set,.hgf-band .hgf-x{min-width:30px;min-height:30px}
.hgf-band .hgf-set::after,.hgf-band .hgf-x::after{content:'';position:absolute;inset:-7px}
.hgf-sheet__box small{font-size:14px;line-height:1.6}
.hgf-sheet__box label{min-height:44px}
.hgf-sheet__ok{min-height:44px;font-size:14px}
.hgf-setcard{flex-wrap:nowrap}
.hgf-setcard__t{display:block;min-width:0}
.hgf-setcard__t b{display:block;font-size:15px;font-weight:900;color:#3a2a55}
.hgf-setcard__t small{display:block;font-size:14px;font-weight:700;color:#8b7f95}
.hgf-setcard .hgf-set{position:static;transform:none;flex:0 0 auto;width:auto;height:auto;min-width:72px;min-height:44px;padding:0 14px;border:1.5px solid #e0c8ef;border-radius:999px;background:#fdf3f8;color:#c0418a;font:inherit;font-size:14px;font-weight:900;line-height:1}
.hgf-toast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:99996;transform:translate(-50%,20px);max-width:min(92vw,420px);padding:10px 16px;border-radius:14px;background:rgba(40,24,52,.92);color:#fff;font-size:14px;line-height:1.6;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.hgf-toast.is-on{opacity:1;transform:translate(-50%,0)}
html.gfx-others-off .bdr-news{display:none!important}
/* GIFTART1008 格0（〜99切手）の小さな演出（以前は community-social.css の .cmsocial-fx＝絵を半透明で拡大・絵文字が飛ぶ）。z-index は前の演出と同じ 1500（ひとことの帯 1550・競争の演出 .gd-fx より下） */
.hgf-pop{position:fixed;inset:0;z-index:1500;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;pointer-events:none;background:radial-gradient(circle at 50% 44%,rgba(255,240,205,.55),rgba(58,30,90,.28) 45%,rgba(26,12,46,.44));opacity:0;transition:opacity .25s}
.hgf-pop.is-in{opacity:1}
.hgf-pop.is-out{opacity:0;transition:opacity .45s}
.hgf-pop__stage{position:relative;width:176px;height:176px}
.hgf-pop__glow{position:absolute;left:50%;top:50%;width:300px;height:300px;margin:-150px 0 0 -150px;border-radius:50%;background:repeating-conic-gradient(rgba(255,222,130,.6) 0 7deg,rgba(255,222,130,0) 7deg 20deg);-webkit-mask:radial-gradient(circle,#000 28%,transparent 68%);mask:radial-gradient(circle,#000 28%,transparent 68%);animation:hgf-pop-spin 7s linear infinite}
.hgf-pop__card{position:absolute;inset:0;border-radius:32px;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 50% 38%,#fff 0,#fbf4ff 55%,#eee0fa 100%);border:3px solid #ffd66e;box-shadow:0 0 0 5px rgba(255,214,110,.25),0 18px 40px rgba(40,10,60,.4),inset 0 0 22px rgba(200,160,240,.35);transform:scale(.4) rotate(-8deg);opacity:0}
.hgf-pop.is-in .hgf-pop__card{animation:hgf-pop-in .5s cubic-bezier(.2,1.25,.4,1) forwards}
.hgf-pop__img{width:146px;height:146px;object-fit:contain;filter:drop-shadow(0 6px 10px rgba(90,50,130,.22))}
img.hgf-pop__img{border-radius:22px}
.hgf-pop__img--emo{display:flex;align-items:center;justify-content:center;font-size:84px;line-height:1}
.hgf-pop__sp{position:absolute;left:50%;top:50%;width:13px;height:13px;margin:-6.5px;background:#ffd66e;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);opacity:0;animation:hgf-pop-sp 1.2s var(--d) ease-out forwards}
.hgf-pop__sp:nth-child(3n){background:#fff;width:10px;height:10px;margin:-5px}
.hgf-pop__sp:nth-child(3n+1){background:#f7b3d6}
.hgf-pop__name{display:flex;flex-direction:column;align-items:center;gap:2px;max-width:min(86vw,360px);box-sizing:border-box;padding:9px 24px 10px;border-radius:16px;color:#fff;text-align:center;line-height:1.35;background:linear-gradient(100deg,#3b1d5e,#7a2f7c 55%,#b5477a);border:1.5px solid rgba(255,221,140,.85);box-shadow:0 10px 26px rgba(40,10,60,.35);transform:translateY(14px);opacity:0;transition:transform .4s .15s cubic-bezier(.2,1.3,.4,1),opacity .3s .15s}
.hgf-pop.is-in .hgf-pop__name{transform:none;opacity:1}
.hgf-pop__name strong{font-size:17px;font-weight:900;color:#ffe9a8;letter-spacing:.02em}
.hgf-pop__name span{font-size:12px;opacity:.92}
@keyframes hgf-pop-in{0%{transform:scale(.4) rotate(-8deg);opacity:0}60%{opacity:1}100%{transform:scale(1) rotate(0);opacity:1}}
@keyframes hgf-pop-spin{to{transform:rotate(360deg)}}
@keyframes hgf-pop-sp{0%{transform:rotate(var(--a)) translateY(-40px) scale(.4);opacity:0}25%{opacity:1}100%{transform:rotate(var(--a)) translateY(calc(-96px - var(--l))) scale(1);opacity:0}}
.hgf-pop.is-reduced .hgf-pop__card{animation:none;transform:none;opacity:1}
.hgf-pop.is-reduced .hgf-pop__glow{animation:none}
@media (max-width:360px){.hgf-pop__stage{width:150px;height:150px}.hgf-pop__img{width:124px;height:124px}.hgf-pop__glow{width:250px;height:250px;margin:-125px 0 0 -125px}}
