/* Standalone Halloween /vi/events/ skin based on the supplied HTML reference. */
.ghh-ref-page{
  --ref-bg:#141824;--ref-card:#1D2232;--ref-line:#2C3348;--ref-ink:#EEF1F7;--ref-muted:#A3ACBF;--ref-soft:#232941;
  --ref-orange:#F7801E;--ref-orange-d:#E0650A;--ref-orange-soft:#3A2717;--ref-purple:#6B46D6;--ref-purple-soft:#2A2345;
  --ref-blue:#3B82F6;--ref-blue-soft:#1E2C47;--ref-green:#22A55B;--ref-green-soft:#1B3328;--ref-red:#E5252A;--ref-gray:#98A2B3;
  --ref-shadow:0 1px 2px rgba(0,0,0,.3);--ref-r:16px;--ref-display:'Baloo 2','Be Vietnam Pro',system-ui,sans-serif;
  max-width:1160px;margin:0 auto;padding:14px 20px 48px;color:var(--ref-ink);font-family:'Be Vietnam Pro',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
}
.ghh-ref-page *,.ghh-ref-page *::before,.ghh-ref-page *::after{box-sizing:border-box}
.ghh-ref-page a{color:inherit;text-decoration:none}.ghh-ref-page img,.ghh-ref-page svg{max-width:100%;display:block}
.ghh-ref-card{background:var(--ref-card);border:1px solid var(--ref-line);border-radius:var(--ref-r);box-shadow:var(--ref-shadow);padding:24px}
.ghh-ref-sec-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;flex-wrap:wrap}.ghh-ref-sec-head h2{margin:0!important;color:var(--ref-ink)!important;font:700 1.3rem/1.2 var(--ref-display)!important}.ghh-ref-sec-sub{margin:-8px 0 14px;color:var(--ref-muted);font-size:.9rem}.ghh-ref-link{color:var(--ref-blue)!important;font-weight:600;font-size:.9rem}.ghh-ref-muted{color:var(--ref-muted);font-size:.85rem}
.ghh-ref-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:10px;padding:9px 16px;font-weight:700;font-size:.9rem;white-space:nowrap;transition:.15s ease}.ghh-ref-btn-primary{background:var(--ref-orange);color:#fff!important}.ghh-ref-btn-primary:hover{background:var(--ref-orange-d);transform:translateY(-1px)}.ghh-ref-btn-lg{padding:14px 26px;font-size:1.05rem;border-radius:12px}
.ghh-ref-crumb{display:flex;align-items:center;gap:8px;font-size:.85rem;color:var(--ref-muted);margin:2px 0 12px;flex-wrap:wrap}.ghh-ref-crumb a:hover{color:var(--ref-orange)}.ghh-ref-crumb strong{color:var(--ref-ink)}.ghh-ref-home{font-size:1rem}

/* v4.7.66 — event ticker marquee, adapted from the supplied Halloween HTML reference. */
.ghh-event-ticker{--ref-display:'Baloo 2','Be Vietnam Pro',system-ui,sans-serif;display:flex;align-items:center;height:44px;border-radius:12px;overflow:hidden;background:linear-gradient(90deg,#2a0f4d,#4b1c86 50%,#2a0f4d);border:1px solid #6b34c4;box-shadow:0 0 0 1px rgba(255,138,31,.15),0 6px 18px rgba(75,28,134,.28);margin:0 0 12px;color:#fff}
.ghh-event-ticker-hot{flex:none;height:100%;display:flex;align-items:center;padding:0 22px 0 14px;background:linear-gradient(135deg,#ff5a1f,#ff9a1f);color:#fff;font:800 15px/1 var(--ref-display);clip-path:polygon(0 0,100% 0,88% 100%,0 100%);white-space:nowrap}.ghh-event-ticker-hot span{display:inline-block;animation:ghhEventTickerPulse 1.2s ease-in-out infinite}
.ghh-event-ticker-track{flex:1;min-width:0;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent);mask-image:linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent)}
.ghh-event-ticker-move{display:flex;width:max-content;will-change:transform;animation:ghhEventTickerMarquee var(--ghh-event-ticker-duration,32s) linear infinite}.ghh-event-ticker:hover .ghh-event-ticker-move{animation-play-state:paused}
.ghh-event-ticker-group{display:flex;flex:none}.ghh-event-ticker-item{display:flex;align-items:center;position:relative;gap:8px;padding:0 22px;color:#fff;font-size:13px;font-weight:600;white-space:nowrap}.ghh-event-ticker-item::after{content:"";position:absolute;right:0;top:50%;width:1px;height:18px;background:rgba(255,255,255,.2);transform:translateY(-50%)}.ghh-event-ticker-item.is-highlight{color:#ffb347;font-weight:800;text-transform:uppercase}
.ghh-event-ticker-arrow{flex:none;width:44px;height:100%;display:grid;place-items:center;color:#ffc83d;font-size:22px;font-weight:900;background:linear-gradient(90deg,transparent,rgba(0,0,0,.25))}
@keyframes ghhEventTickerMarquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@keyframes ghhEventTickerPulse{50%{transform:scale(1.08)}}
@media(max-width:760px){.ghh-event-ticker{height:42px;border-radius:10px;margin:0 12px 12px}.ghh-event-ticker-hot{padding-left:11px;padding-right:19px;font-size:13px}.ghh-event-ticker-item{padding:0 16px;font-size:12px}.ghh-event-ticker-arrow{width:36px}}

.ghh-ref-hero{position:relative;overflow:hidden;border-radius:18px;min-height:300px;color:#fff;background:linear-gradient(115deg,#2B1757 0%,#4A2A92 55%,#6A3DB8 100%);display:flex;align-items:center;padding:30px 34px}
.ghh-ref-hero-scene{position:absolute;right:0;bottom:0;height:100%;width:64%;pointer-events:none}.ghh-ref-hero-scene svg{width:100%;height:100%}.ghh-ref-hero-body{position:relative;z-index:2;max-width:450px}.ghh-ref-brand{display:inline-flex;align-items:center;gap:4px;font:800 1rem var(--ref-display);background:#fff;color:var(--ref-red);padding:3px 13px;border-radius:99px;margin-bottom:8px}.ghh-ref-brand span{color:var(--ref-orange)}
.ghh-ref-hero h1{margin:0!important;color:#FF9B21!important;font:800 clamp(2.7rem,5.4vw,4rem)/.92 var(--ref-display)!important;letter-spacing:.5px;text-shadow:0 3px 0 #7B2C04}.ghh-ref-hero h1 small{display:block;font-size:.56em;color:#FFC24B}.ghh-ref-slogan{margin:12px 0 14px!important;color:#fff!important;font:800 clamp(1rem,2.1vw,1.35rem)/1.2 var(--ref-display)!important}.ghh-ref-hero-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px}.ghh-ref-date{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);padding:6px 13px;border-radius:99px;font-weight:700;font-size:.9rem}.ghh-ref-count{font-size:.88rem;color:#E4DBFF}.ghh-ref-count b{color:#fff}.ghh-ref-hero-cta{margin-top:18px}
.ghh-ref-hero-steps{position:absolute;right:28px;top:50%;transform:translateY(-50%);z-index:3;display:grid;gap:8px;margin:0;padding:0;list-style:none}.ghh-ref-hero-steps li{background:#8B5A2B;border:2px solid #5E3A17;color:#FFE9C7;font:700 .82rem var(--ref-display);padding:5px 15px;border-radius:7px;box-shadow:0 2px 0 #5E3A17}.ghh-ref-hero-steps li:nth-child(even){transform:translateX(-10px)}

.ghh-ref-games{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.ghh-ref-game{border:1px solid var(--ref-line);border-radius:14px;padding:10px;background:var(--ref-card);display:flex;flex-direction:column;gap:10px;transition:.2s}.ghh-ref-game:hover{transform:translateY(-3px);border-color:#FDBA74;box-shadow:0 8px 20px rgba(0,0,0,.14)}.ghh-ref-game-thumb{aspect-ratio:16/10;border-radius:10px;overflow:hidden;background:var(--ref-soft)}.ghh-ref-game-thumb img{width:100%;height:100%;object-fit:cover}.ghh-ref-game h3{margin:0!important;text-align:center;color:var(--ref-ink)!important;font-size:.95rem!important;font-weight:700!important}.ghh-ref-game .ghh-ref-btn{width:100%}

.ghh-ref-event-rewards{display:grid;gap:16px;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}.ghh-ref-stats{display:grid;grid-template-columns:minmax(220px,1.5fr) repeat(3,minmax(0,1fr)) auto;gap:12px;align-items:center;background:linear-gradient(0deg,var(--ref-orange-soft),var(--ref-orange-soft)),var(--ref-card)}.ghh-ref-hello{display:flex;align-items:center;gap:12px;min-width:0}.ghh-ref-avatar{width:54px;height:54px;border-radius:50%;flex:none;background:var(--ref-blue-soft);border:2px solid #fff;box-shadow:0 0 0 2px #5b7cb5;overflow:hidden}.ghh-ref-avatar img{width:100%;height:100%;object-fit:cover}.ghh-ref-hello strong{display:block;color:var(--ref-ink);font-size:1.02rem}.ghh-ref-hello span{display:block;color:var(--ref-muted);font-size:.8rem}.ghh-ref-stat{display:flex;align-items:center;gap:10px;background:var(--ref-card);border:1px solid var(--ref-line);border-radius:12px;padding:10px 12px;min-width:0}.ghh-ref-stat>span{font-size:1.5rem}.ghh-ref-stat small{display:block;color:var(--ref-muted);font-size:.78rem}.ghh-ref-stat b{display:block;color:var(--ref-ink);font:800 1.35rem/1.1 var(--ref-display)}
.ghh-ref-reset{display:inline-flex;align-items:center;gap:6px;font-size:.82rem;color:var(--ref-muted);background:var(--ref-soft);padding:5px 12px;border-radius:99px}.ghh-ref-community{margin:0!important}.ghh-ref-community .ghh-community-head strong{color:var(--ref-ink)}.ghh-ref-community .ghh-community-head small,.ghh-ref-community .ghh-community-meta,.ghh-ref-community .ghh-community-you{color:var(--ref-muted)}

.ghh-ref-missions .ghh-event-mission-list{display:grid;gap:10px}.ghh-ref-missions .ghh-event-mission{display:grid;grid-template-columns:58px minmax(0,1fr) 166px;gap:16px;align-items:center;padding:14px 16px;border:1px solid var(--ref-line);border-radius:12px;background:var(--ref-card);opacity:1!important;min-width:0}.ghh-ref-missions .ghh-event-mission-check{width:58px;height:58px;border-radius:12px;display:grid;place-items:center;border:0;background:var(--ref-orange-soft);color:var(--ref-orange);font-size:1.35rem}.ghh-ref-missions .ghh-event-mission-body{display:grid;grid-template-columns:minmax(240px,1.15fr) minmax(220px,1fr) 110px;column-gap:18px;row-gap:4px;align-items:center;min-width:0}.ghh-ref-missions .ghh-event-mission-body strong{grid-column:1;color:var(--ref-ink);font-size:.98rem;min-width:0}.ghh-ref-missions .ghh-event-mission-condition{grid-column:1;margin-top:2px;color:var(--ref-muted);font-size:.84rem;line-height:1.45;min-width:0;word-break:normal;overflow-wrap:break-word}.ghh-ref-missions .ghh-event-mission-reward{grid-column:3;grid-row:1/3;color:var(--ref-orange);font:800 1rem var(--ref-display);text-align:right;white-space:nowrap}.ghh-ref-missions .ghh-event-mission-progress{grid-column:2;grid-row:1;height:10px;border-radius:99px;background:#2C3348;overflow:hidden;min-width:0}.ghh-ref-missions .ghh-event-mission-progress span{height:100%;display:block;border-radius:inherit;background:var(--ref-blue)}.ghh-ref-missions .ghh-event-mission-body small{grid-column:2;grid-row:2;text-align:right;color:var(--ref-muted);font-size:.8rem;white-space:nowrap}.ghh-ref-missions .ghh-event-action{min-width:166px;min-height:50px;border:0;border-radius:10px;padding:9px 14px;background:var(--ref-orange);color:#fff!important;font-size:.9rem;font-weight:700;white-space:nowrap}.ghh-ref-missions .ghh-event-action.is-claimed{background:var(--ref-green)}.ghh-ref-missions .ghh-event-action:disabled{background:var(--ref-soft);color:var(--ref-gray)!important}.ghh-ref-missions .ghh-share-status{grid-column:1/-1;color:var(--ref-muted);font-size:.78rem;line-height:1.4}

#ghhRewardShop{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}#ghhRewardShop .ghh-reward-card{position:relative;border:1px solid var(--ref-line);border-radius:14px;padding:14px 12px 12px;text-align:center;display:flex;flex-direction:column;align-items:center;background:var(--ref-card)}#ghhRewardShop .ghh-reward-icon{width:76px;height:76px;display:grid;place-items:center;margin:4px 0 8px;border-radius:18px;background:var(--ref-soft);font-size:2.2rem;overflow:hidden}#ghhRewardShop .ghh-reward-image{width:100%;height:100%;display:block;object-fit:contain;padding:5px}#ghhRewardShop .ghh-reward-emoji{line-height:1}#ghhRewardShop .ghh-reward-stock{font-size:.72rem;color:var(--ref-muted);background:var(--ref-soft);padding:3px 8px;border-radius:99px}#ghhRewardShop .ghh-reward-card h4{margin:8px 0 3px;color:var(--ref-ink);font-size:.95rem}#ghhRewardShop .ghh-reward-card p{margin:0;color:var(--ref-muted);font-size:.8rem;line-height:1.45;min-height:48px}#ghhRewardShop .ghh-reward-cost{margin-top:10px;width:100%;background:var(--ref-orange-soft);color:#ff5f37;font:800 1.15rem/1.2 var(--ref-display);border-radius:10px;padding:7px}#ghhRewardShop .ghh-reward-card>small{color:var(--ref-muted);font-size:.75rem;margin:5px 0}#ghhRewardShop .ghh-reward-btn{width:100%;margin-top:auto;border:0;border-radius:10px;padding:9px 12px;background:var(--ref-orange);color:#fff!important;font-weight:700}
.ghh-ref-history .ghh-event-history{display:grid;gap:8px}.ghh-ref-history .ghh-history-row{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:10px;padding:11px 13px;border:1px solid var(--ref-line);border-radius:12px;background:var(--ref-card)}.ghh-ref-history .ghh-history-row strong{display:block;color:var(--ref-ink)}.ghh-ref-history .ghh-history-row small,.ghh-ref-history .ghh-history-row time{color:var(--ref-muted);font-size:.8rem}.ghh-ref-page .ghh-event-loading,.ghh-ref-page .ghh-event-empty{padding:16px;border:1px dashed var(--ref-line);border-radius:12px;text-align:center;color:var(--ref-muted);background:var(--ref-card)}

.ghh-ref-stages{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}.ghh-ref-stage{position:relative;border-radius:14px;padding:14px;text-align:center;border:2px solid transparent;background:var(--tone-bg);color:var(--tone)}.ghh-ref-stage--green{--tone:#1F9A55;--tone-bg:#D9F0E2}.ghh-ref-stage--blue{--tone:#2F6FE0;--tone-bg:#DDE9FF}.ghh-ref-stage--orange{--tone:#E0650A;--tone-bg:#FCE7D2}.ghh-ref-stage--purple{--tone:#6B46D6;--tone-bg:#E9E2FF}.ghh-ref-stage small{display:block;font-weight:600;font-size:.8rem}.ghh-ref-stage h3{margin:0 0 8px!important;color:var(--tone)!important;font:800 1.15rem/1.2 var(--ref-display)!important}.ghh-ref-stage-date{display:inline-block;background:#152038;color:#fff;border-radius:99px;padding:4px 12px;font-weight:700;font-size:.82rem;margin-bottom:7px}.ghh-ref-stage p{margin:4px 0 0;color:#7f899c;font-size:.82rem}.ghh-ref-stage.is-current{border-color:var(--ref-orange);box-shadow:0 6px 18px rgba(247,128,30,.18)}.ghh-ref-stage-flag{position:absolute;top:-11px;left:50%;transform:translateX(-50%);background:var(--ref-orange);color:#fff;font-size:.72rem;font-weight:700;padding:2px 10px;border-radius:99px;white-space:nowrap}
.ghh-ref-budget{font-size:.9rem;color:var(--ref-muted)}.ghh-ref-budget b{color:var(--ref-orange)}.ghh-ref-prizes{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.ghh-ref-prize{position:relative;border:1px solid var(--ref-line);border-radius:14px;padding:14px 12px 12px;text-align:center;display:flex;flex-direction:column;align-items:center;background:var(--ref-card)}.ghh-ref-prize h3{margin:0!important;color:var(--ref-ink)!important;font-size:.95rem!important}.ghh-ref-prize-count{font-size:.8rem;color:var(--ref-muted)}.ghh-ref-prize-art{width:88px;height:88px;display:grid;place-items:center;font-size:2.8rem}.ghh-ref-prize-value{margin-top:auto;width:100%;background:var(--ref-orange-soft);color:#ff4b3e;font:800 1.25rem/1.2 var(--ref-display);border-radius:10px;padding:7px 8px}.ghh-ref-prize.is-top{border:2px solid #FDBA74}.ghh-ref-prize.is-total{border:2px dashed #7BD39C;background:var(--ref-green-soft)}.ghh-ref-prize.is-total h3,.ghh-ref-prize.is-total .ghh-ref-prize-value{color:var(--ref-green)!important}.ghh-ref-prize.is-total .ghh-ref-prize-value{background:transparent;font-size:1.7rem}
.ghh-ref-bottom{display:grid;grid-template-columns:1.35fr 1fr;gap:16px}.ghh-ref-rules ul{margin:0;padding-left:20px;display:grid;gap:6px}.ghh-ref-rules li{color:var(--ref-ink);font-size:.92rem}.ghh-ref-rules li::marker{color:var(--ref-orange)}.ghh-ref-ready{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;background:linear-gradient(0deg,var(--ref-orange-soft),var(--ref-orange-soft)),var(--ref-card);border-color:#8a5b31}.ghh-ref-ready h2{margin:0!important;color:var(--ref-ink)!important;font:800 1.45rem/1.2 var(--ref-display)!important}.ghh-ref-ready p{margin:0 0 6px;color:var(--ref-muted)}.ghh-ref-ready .ghh-ref-btn{width:100%;max-width:360px}

/* Existing reward/share dialogs keep their behavior but inherit the reference palette. */
.ghh-ref-page .ghh-event-modal-card{background:var(--ref-card);color:var(--ref-ink);border-color:var(--ref-line)}

@media(max-width:1040px){.ghh-ref-hero-steps{display:none}.ghh-ref-hero-scene{width:58%}.ghh-ref-stats{grid-template-columns:repeat(3,1fr)}.ghh-ref-hello{grid-column:1/-1}.ghh-ref-stats>.ghh-ref-btn{grid-column:1/-1}.ghh-ref-prizes{grid-template-columns:repeat(3,1fr)}#ghhRewardShop{grid-template-columns:repeat(3,1fr)}}
@media(max-width:1100px){.ghh-ref-games{grid-template-columns:repeat(2,1fr)}.ghh-ref-missions .ghh-event-mission{grid-template-columns:52px minmax(0,1fr) 150px;gap:12px}.ghh-ref-missions .ghh-event-mission-check{width:52px;height:52px}.ghh-ref-missions .ghh-event-mission-body{grid-template-columns:minmax(190px,1.05fr) minmax(150px,.95fr) 96px;column-gap:12px}.ghh-ref-missions .ghh-event-action{min-width:150px}.ghh-ref-stages{grid-template-columns:repeat(2,1fr);gap:18px}.ghh-ref-bottom{grid-template-columns:1fr}#ghhRewardShop{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.ghh-ref-page{padding:0}.ghh-ref-card{padding:18px}.ghh-ref-hero{flex-direction:column;align-items:stretch;padding:22px 20px 0;min-height:0}.ghh-ref-hero-body{max-width:none}.ghh-ref-hero-scene{position:relative;width:auto;height:170px;margin:4px -20px 0;order:2}.ghh-ref-hero-cta .ghh-ref-btn{width:100%}.ghh-ref-stats{grid-template-columns:repeat(2,1fr)}.ghh-ref-prizes{grid-template-columns:repeat(2,1fr);gap:10px}.ghh-ref-prize-art{width:72px;height:72px;font-size:2.2rem}.ghh-ref-prize-value{font-size:1.08rem}.ghh-ref-stages{grid-template-columns:1fr;gap:14px;position:relative;padding-left:26px}.ghh-ref-stages::before{content:"";position:absolute;left:9px;top:8px;bottom:8px;width:2px;background:var(--ref-line)}.ghh-ref-stage{text-align:left}.ghh-ref-stage::before{content:"";position:absolute;left:-23px;top:18px;width:12px;height:12px;border-radius:50%;background:var(--ref-card);border:3px solid var(--tone)}.ghh-ref-stage.is-current::before{background:var(--ref-orange);border-color:var(--ref-orange)}.ghh-ref-stage-flag{left:auto;right:12px;transform:none}.ghh-ref-missions .ghh-event-mission{grid-template-columns:48px minmax(0,1fr);gap:10px 12px;padding:13px}.ghh-ref-missions .ghh-event-mission-check{width:48px;height:48px}.ghh-ref-missions .ghh-event-mission-body{grid-template-columns:minmax(0,1fr);row-gap:6px}.ghh-ref-missions .ghh-event-mission-body strong,.ghh-ref-missions .ghh-event-mission-condition,.ghh-ref-missions .ghh-event-mission-reward,.ghh-ref-missions .ghh-event-mission-progress,.ghh-ref-missions .ghh-event-mission-body small,.ghh-ref-missions .ghh-share-status{grid-column:1;grid-row:auto;text-align:left}.ghh-ref-missions .ghh-event-mission-reward{margin-top:2px;white-space:normal}.ghh-ref-missions .ghh-event-mission-progress{width:100%;margin-top:2px}.ghh-ref-missions .ghh-event-mission-body small{white-space:normal}.ghh-ref-missions .ghh-event-action{grid-column:1/-1;width:100%;min-width:0;min-height:46px}#ghhRewardShop{grid-template-columns:repeat(2,1fr);gap:10px}.ghh-ref-history .ghh-history-row{grid-template-columns:32px 1fr}.ghh-ref-history .ghh-history-row time{grid-column:2}.ghh-ref-ready .ghh-ref-btn{max-width:none}}
@media(max-width:430px){#ghhRewardShop{grid-template-columns:1fr}.ghh-ref-prizes{grid-template-columns:repeat(2,1fr)}.ghh-ref-stats{grid-template-columns:1fr}.ghh-ref-games{gap:10px}.ghh-ref-game h3{font-size:.85rem!important}}
@media(prefers-reduced-motion:reduce){.ghh-ref-page *{transition:none!important;animation:none!important}}

/* Screenshot match: player summary + daily missions (2026-09-26). */
.ghh-ref-page{max-width:1400px}
.ghh-ref-event-rewards{gap:20px}
.ghh-ref-stats{
  min-height:132px;
  grid-template-columns:minmax(320px,1.55fr) repeat(3,minmax(0,1fr)) 152px;
  gap:14px;
  padding:24px;
  border-radius:18px;
  border-color:#68401f;
  background:#4a2d17;
}
.ghh-ref-hello{gap:16px}
.ghh-ref-avatar{width:68px;height:68px;border:3px solid #fff;box-shadow:0 0 0 2px #5b7cb5}
.ghh-ref-hello strong{font:800 1.2rem/1.2 var(--ref-display);color:#fff}
.ghh-ref-hello span{margin-top:5px;font-size:.9rem;color:#efc170}
.ghh-ref-stat{min-height:80px;padding:14px 18px;border-radius:14px;background:#1d2438;border-color:#303955}
.ghh-ref-stat>span{font-size:1.8rem}
.ghh-ref-stat small{font-size:.9rem;color:#b5bfd6}
.ghh-ref-stat b{margin-top:4px;font-size:1.55rem;color:#fff}
.ghh-ref-stats>.ghh-ref-btn{min-height:52px;border-radius:12px;font-size:1rem}

.ghh-ref-missions{
  padding:26px 26px 44px;
  border-radius:20px;
  background:#1c2438;
  border-color:#2d3650;
}
.ghh-ref-missions .ghh-ref-sec-head{margin-bottom:8px}
.ghh-ref-missions .ghh-ref-sec-head h2{font:800 1.55rem/1.2 var(--ref-display)!important;color:#fff!important}
.ghh-ref-missions .ghh-ref-sec-sub{margin:0 0 20px;font-size:1rem;color:#b5bfd6}
.ghh-ref-missions .ghh-ref-reset{padding:9px 16px;background:#242d49;color:#b9c2d8;font-size:.95rem}
.ghh-ref-missions .ghh-ref-reset b{color:#fff;font-size:1rem}
.ghh-ref-missions .ghh-event-mission-list{gap:12px}
.ghh-ref-missions .ghh-event-mission{
  min-height:92px;
  grid-template-columns:58px minmax(0,1fr) 166px;
  gap:18px;
  padding:15px 18px;
  border-radius:14px;
  border-color:#303955;
  background:#1d253a;
}
.ghh-ref-missions .ghh-event-mission-check{
  width:58px;height:58px;
  border-radius:14px;
  background:#f4edf0;
  color:#ff7a16;
  font-size:1.7rem;
}
.ghh-ref-missions .ghh-event-mission-body{
  grid-template-columns:minmax(300px,1.2fr) minmax(300px,1fr) 72px 96px;
  grid-template-rows:auto auto;
  column-gap:18px;
  row-gap:6px;
}
.ghh-ref-missions .ghh-event-mission-title-row{
  grid-column:1;
  grid-row:1;
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.ghh-ref-missions .ghh-event-mission-title-row strong{font:800 1.05rem/1.2 var(--ref-display);color:#fff;white-space:nowrap}
.ghh-ref-missions .ghh-event-mission-status{display:inline-flex;align-items:center;min-height:25px;padding:3px 10px;border-radius:999px;font-size:.78rem;font-weight:700;white-space:nowrap}
.ghh-ref-missions .ghh-event-mission-status.is-claimed{background:#153d2a;color:#22bd67}
.ghh-ref-missions .ghh-event-mission-status.is-progress{background:#17325f;color:#2f8cff}
.ghh-ref-missions .ghh-event-mission-status.is-pending{background:#273049;color:#aeb8d1}
.ghh-ref-missions .ghh-event-mission-status.is-complete{background:#4b3219;color:#ff9a35}
.ghh-ref-missions .ghh-event-mission-condition{
  grid-column:1;
  grid-row:2;
  margin:0;
  color:#b5bfd6;
  font-size:.92rem;
  line-height:1.35;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.ghh-ref-missions .ghh-event-mission-progress{
  grid-column:2;
  grid-row:1 / span 2;
  align-self:center;
  height:12px;
  background:#303a56;
}
.ghh-ref-missions .ghh-event-mission-progress span{background:#3b82f6}
.ghh-ref-missions .ghh-event-mission.is-claimed .ghh-event-mission-progress span{background:#22b565}
.ghh-ref-missions .ghh-event-mission-body small{
  grid-column:3;
  grid-row:1 / span 2;
  align-self:center;
  color:#c3cce0;
  font-size:.92rem;
  text-align:right;
}
.ghh-ref-missions .ghh-event-mission-reward{
  grid-column:4;
  grid-row:1 / span 2;
  align-self:center;
  color:#ff7818;
  font:800 1.08rem/1 var(--ref-display);
  text-align:left;
  white-space:nowrap;
}
.ghh-ref-missions .ghh-share-status{grid-column:1 / -1;grid-row:3;margin-top:2px}
.ghh-ref-missions .ghh-event-action{
  min-width:166px;
  min-height:50px;
  border-radius:12px;
  background:#ff7f18;
  color:#fff!important;
  font-size:1rem;
  font-weight:800;
}
.ghh-ref-missions .ghh-event-action.is-claimed{background:#163d2a;color:#22bd67!important}
.ghh-ref-missions .ghh-event-action.is-reference-action:disabled{background:#ff7f18;color:#fff!important;opacity:1}
.ghh-ref-missions .ghh-ref-daily-bonus{margin-top:14px;color:#b5bfd6;font-size:.95rem}
.ghh-ref-missions .ghh-ref-daily-bonus strong{color:#7e55ff}

@media(max-width:1200px){
  .ghh-ref-stats{grid-template-columns:minmax(260px,1.35fr) repeat(3,minmax(0,1fr)) 140px;padding:20px}
  .ghh-ref-missions .ghh-event-mission{grid-template-columns:54px minmax(0,1fr) 150px;gap:14px}
  .ghh-ref-missions .ghh-event-mission-check{width:54px;height:54px}
  .ghh-ref-missions .ghh-event-mission-body{grid-template-columns:minmax(230px,1.15fr) minmax(210px,.95fr) 64px 86px;column-gap:12px}
  .ghh-ref-missions .ghh-event-action{min-width:150px}
}
@media(max-width:980px){
  .ghh-ref-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ghh-ref-hello{grid-column:1/-1}
  .ghh-ref-stats>.ghh-ref-btn{grid-column:1/-1;width:100%}
  .ghh-ref-missions .ghh-event-mission{grid-template-columns:52px minmax(0,1fr) 140px}
  .ghh-ref-missions .ghh-event-mission-body{grid-template-columns:minmax(180px,1.1fr) minmax(160px,.9fr) 56px 78px;column-gap:10px}
  .ghh-ref-missions .ghh-event-mission-condition{white-space:normal}
  .ghh-ref-missions .ghh-event-action{min-width:140px}
}
@media(max-width:760px){
  .ghh-ref-stats{grid-template-columns:1fr 1fr;padding:16px;gap:10px}
  .ghh-ref-hello{grid-column:1/-1}.ghh-ref-stat{min-height:72px;padding:12px}.ghh-ref-stats>.ghh-ref-btn{grid-column:1/-1}
  .ghh-ref-missions{padding:16px;border-radius:16px}
  .ghh-ref-missions .ghh-ref-sec-head{align-items:flex-start}.ghh-ref-missions .ghh-ref-sec-head h2{font-size:1.3rem!important}
  .ghh-ref-missions .ghh-ref-reset{font-size:.8rem;padding:7px 10px}.ghh-ref-missions .ghh-ref-sec-sub{font-size:.88rem}
  .ghh-ref-missions .ghh-event-mission{grid-template-columns:48px minmax(0,1fr);gap:10px 12px;padding:13px;min-height:0}
  .ghh-ref-missions .ghh-event-mission-check{width:48px;height:48px;font-size:1.35rem}
  .ghh-ref-missions .ghh-event-mission-body{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;row-gap:7px}
  .ghh-ref-missions .ghh-event-mission-title-row,.ghh-ref-missions .ghh-event-mission-condition,.ghh-ref-missions .ghh-event-mission-progress,.ghh-ref-missions .ghh-event-mission-body small,.ghh-ref-missions .ghh-event-mission-reward,.ghh-ref-missions .ghh-share-status{grid-column:1;grid-row:auto;text-align:left;white-space:normal}
  .ghh-ref-missions .ghh-event-mission-title-row{flex-wrap:wrap;gap:6px}.ghh-ref-missions .ghh-event-mission-title-row strong{white-space:normal}
  .ghh-ref-missions .ghh-event-mission-progress{width:100%;height:10px}.ghh-ref-missions .ghh-event-mission-body small{font-size:.82rem}
  .ghh-ref-missions .ghh-event-action{grid-column:1/-1;width:100%;min-width:0;min-height:46px}
  .ghh-ref-missions .ghh-ref-daily-bonus{font-size:.85rem}
}
.ghh-ref-missions .ghh-event-mission:nth-child(1) .ghh-event-mission-check{background:#fff0e5}
.ghh-ref-missions .ghh-event-mission:nth-child(2) .ghh-event-mission-check{background:#edf4ff}
.ghh-ref-missions .ghh-event-mission:nth-child(3) .ghh-event-mission-check{background:#f1ebff}
.ghh-ref-missions .ghh-event-mission:nth-child(4) .ghh-event-mission-check{background:#ffecef}
.ghh-ref-missions .ghh-event-mission:nth-child(5) .ghh-event-mission-check{background:#edf4ff}


/* Reward shop wrapper removed: reward items are standalone cards. */
#ghhRewardShop{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}

/* Explicit spacing for Stages -> Prizes -> Bottom blocks only. */
.ghh-ref-page .ghh-ref-card[aria-labelledby="ghhRefStagesTitle"],
.ghh-ref-page .ghh-ref-card[aria-labelledby="ghhRefPrizesTitle"],
.ghh-ref-page .ghh-ref-bottom{
  margin-top:20px;
}
@media(max-width:760px){
  .ghh-ref-page .ghh-ref-card[aria-labelledby="ghhRefStagesTitle"],
  .ghh-ref-page .ghh-ref-card[aria-labelledby="ghhRefPrizesTitle"],
  .ghh-ref-page .ghh-ref-bottom{
    margin-top:16px;
  }
}

/* Keep player stats and mission copy readable before the compact breakpoint. */
.ghh-ref-stat>div{min-width:0}
.ghh-ref-stat small{white-space:nowrap}
.ghh-ref-hello strong{white-space:nowrap}
.ghh-ref-missions .ghh-event-mission-condition{
  overflow:visible;
  text-overflow:clip;
  white-space:nowrap;
}

@media(max-width:1200px){
  .ghh-ref-stats{
    grid-template-columns:minmax(240px,1.25fr) repeat(3,minmax(145px,1fr)) 136px;
    gap:12px;
    padding:20px;
  }
  .ghh-ref-stat{padding:12px 14px}
  .ghh-ref-stat>span{font-size:1.55rem}
  .ghh-ref-stat small{font-size:.82rem}
  .ghh-ref-stat b{font-size:1.38rem}
  .ghh-ref-stats>.ghh-ref-btn{font-size:.92rem;padding-left:12px;padding-right:12px}
  .ghh-ref-missions .ghh-event-mission-body{
    grid-template-columns:minmax(260px,1.18fr) minmax(170px,.9fr) 60px 82px;
    column-gap:10px;
  }
  .ghh-ref-missions .ghh-event-mission-title-row strong{font-size:1rem}
  .ghh-ref-missions .ghh-event-mission-status{font-size:.72rem;padding:3px 8px}
  .ghh-ref-missions .ghh-event-mission-condition{font-size:.86rem}
}

@media(max-width:980px){
  .ghh-ref-stats{grid-template-columns:repeat(2,minmax(0,1fr));padding:18px}
  .ghh-ref-hello{grid-column:1/-1}
  .ghh-ref-stats>.ghh-ref-btn{grid-column:1/-1;width:100%}
  .ghh-ref-missions .ghh-event-mission-body{
    grid-template-columns:minmax(0,1.15fr) minmax(145px,.85fr) 56px 78px;
    column-gap:9px;
  }
  .ghh-ref-missions .ghh-event-mission-title-row{flex-wrap:wrap;gap:6px 8px}
  .ghh-ref-missions .ghh-event-mission-title-row strong{white-space:normal}
  .ghh-ref-missions .ghh-event-mission-condition{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
  }
}

@media(max-width:760px){
  .ghh-ref-hello strong{white-space:normal}
  .ghh-ref-stat small{white-space:nowrap}
}

@media(max-width:430px){
  .ghh-ref-stat small{white-space:normal}
}


/* Removed community/history blocks: keep the remaining event sections visually separated. */
.ghh-ref-page .ghh-ref-missions-host{
  margin-top:20px;
}
@media(max-width:760px){
  .ghh-ref-page .ghh-ref-missions-host{
    margin-top:16px;
  }
}

/* Mission layout optimization — keep reward/action columns from colliding. */
.ghh-ref-missions .ghh-event-mission{
  grid-template-columns:58px minmax(0,1fr) 150px;
  gap:14px;
  padding:14px 16px;
}
.ghh-ref-missions .ghh-event-mission-body{
  min-width:0;
  grid-template-columns:minmax(220px,1.4fr) minmax(180px,1fr) 70px 86px;
  grid-template-rows:auto auto;
  column-gap:12px;
  row-gap:6px;
}
.ghh-ref-missions .ghh-event-mission-title-row{
  min-width:0;
  flex-wrap:nowrap;
}
.ghh-ref-missions .ghh-event-mission-title-row strong{
  min-width:0;
  overflow:visible;
  text-overflow:clip;
}
.ghh-ref-missions .ghh-event-mission-condition{
  min-width:0;
  overflow:visible;
  text-overflow:clip;
  white-space:normal;
}
.ghh-ref-missions .ghh-event-mission-progress{
  min-width:0;
  width:100%;
}
.ghh-ref-missions .ghh-event-mission-body small{
  min-width:58px;
  white-space:nowrap;
  justify-self:end;
}
.ghh-ref-missions .ghh-event-mission-reward{
  min-width:82px;
  justify-self:end;
  text-align:right;
  white-space:nowrap;
}
.ghh-ref-missions .ghh-event-action{
  width:150px;
  min-width:150px;
  max-width:150px;
  padding-left:12px;
  padding-right:12px;
  justify-self:end;
}

@media(max-width:1180px){
  .ghh-ref-missions .ghh-event-mission{
    grid-template-columns:54px minmax(0,1fr) 144px;
    gap:12px;
    padding:13px 14px;
  }
  .ghh-ref-missions .ghh-event-mission-check{width:54px;height:54px}
  .ghh-ref-missions .ghh-event-mission-body{
    grid-template-columns:minmax(185px,1.3fr) minmax(145px,.95fr) 64px 78px;
    column-gap:10px;
  }
  .ghh-ref-missions .ghh-event-mission-title-row{
    flex-wrap:wrap;
    gap:5px 8px;
  }
  .ghh-ref-missions .ghh-event-mission-title-row strong{font-size:.96rem;white-space:normal}
  .ghh-ref-missions .ghh-event-mission-status{font-size:.7rem;padding:3px 8px}
  .ghh-ref-missions .ghh-event-mission-condition{font-size:.84rem;line-height:1.3}
  .ghh-ref-missions .ghh-event-mission-reward{font-size:1rem}
  .ghh-ref-missions .ghh-event-action{
    width:144px;
    min-width:144px;
    max-width:144px;
    min-height:48px;
    font-size:.94rem;
  }
}

@media(max-width:980px){
  .ghh-ref-missions .ghh-event-mission{
    grid-template-columns:50px minmax(0,1fr) 132px;
    gap:10px;
    padding:12px;
  }
  .ghh-ref-missions .ghh-event-mission-check{width:50px;height:50px;font-size:1.45rem}
  .ghh-ref-missions .ghh-event-mission-body{
    grid-template-columns:minmax(150px,1.2fr) minmax(120px,.9fr) 58px 72px;
    column-gap:8px;
  }
  .ghh-ref-missions .ghh-event-mission-body small{min-width:52px;font-size:.82rem}
  .ghh-ref-missions .ghh-event-mission-reward{min-width:68px;font-size:.94rem}
  .ghh-ref-missions .ghh-event-action{
    width:132px;
    min-width:132px;
    max-width:132px;
    font-size:.9rem;
  }
}

@media(max-width:760px){
  .ghh-ref-missions .ghh-event-mission{
    grid-template-columns:48px minmax(0,1fr);
    gap:10px 12px;
    padding:13px;
  }
  .ghh-ref-missions .ghh-event-mission-body{
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto;
    row-gap:7px;
  }
  .ghh-ref-missions .ghh-event-mission-title-row,
  .ghh-ref-missions .ghh-event-mission-condition,
  .ghh-ref-missions .ghh-event-mission-progress,
  .ghh-ref-missions .ghh-event-mission-body small,
  .ghh-ref-missions .ghh-event-mission-reward,
  .ghh-ref-missions .ghh-share-status{
    grid-column:1;
    grid-row:auto;
    justify-self:stretch;
    text-align:left;
  }
  .ghh-ref-missions .ghh-event-mission-title-row{flex-wrap:wrap}
  .ghh-ref-missions .ghh-event-mission-reward{min-width:0}
  .ghh-ref-missions .ghh-event-action{
    grid-column:1/-1;
    width:100%;
    min-width:0;
    max-width:none;
    justify-self:stretch;
  }
}

/* v4.7.60 — dynamic Event Content Manager integration. */
.ghh-ref-hero-media{position:absolute;inset:0;z-index:0;overflow:hidden}.ghh-ref-hero-media img,.ghh-ref-hero-media video{width:100%;height:100%;object-fit:cover;display:block}.ghh-ref-hero.has-custom-media::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(25,12,58,.78) 0%,rgba(35,17,78,.55) 46%,rgba(24,12,55,.16) 100%);pointer-events:none}.ghh-ref-hero.has-custom-media .ghh-ref-hero-body,.ghh-ref-hero.has-custom-media .ghh-ref-hero-steps{z-index:2}.ghh-ref-description{position:relative;z-index:2;max-width:620px;margin:0 0 14px!important;color:rgba(255,255,255,.9)!important;font-weight:600;line-height:1.5}.ghh-ref-upcoming-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.ghh-ref-upcoming-grid article{border:1px solid var(--ref-line);border-radius:14px;padding:16px;background:var(--ref-card)}.ghh-ref-upcoming-grid h3{margin:0 0 6px!important;color:var(--ref-ink)!important}.ghh-ref-upcoming-grid p,.ghh-ref-tournament p{margin:0 0 12px;color:var(--ref-muted);line-height:1.55}@media(max-width:760px){.ghh-ref-hero.has-custom-media{padding-bottom:24px}.ghh-ref-hero.has-custom-media .ghh-ref-hero-media{position:absolute;margin:0;width:100%;height:100%}.ghh-ref-upcoming-grid{grid-template-columns:1fr}}

/* v4.7.68 — Desktop event hero matches homepage featured banner size (1144 × 353). */
@media(min-width:1101px){
  .ghh-ref-hero{
    width:100%;
    max-width:1144px;
    height:353px;
    min-height:353px;
    margin-left:auto;
    margin-right:auto;
  }
  .ghh-ref-hero-media,
  .ghh-ref-hero-media img,
  .ghh-ref-hero-media video{
    width:100%;
    height:100%;
  }
  .ghh-ref-hero-media img,
  .ghh-ref-hero-media video{
    object-fit:cover;
    object-position:center center;
  }
  /* v4.7.69 — compact desktop hero content so badge + CTA fit inside 353px. */
  .ghh-ref-hero{align-items:flex-start;padding:16px 34px;}
  .ghh-ref-hero-body{max-width:450px;}
  .ghh-ref-brand{margin-bottom:5px;padding:2px 12px;font-size:.9rem;}
  .ghh-ref-hero h1{font-size:3.35rem!important;line-height:.88!important;}
  .ghh-ref-slogan{margin:8px 0 8px!important;font-size:1.08rem!important;line-height:1.15!important;}
  .ghh-ref-description{margin:0 0 8px!important;font-size:.9rem;line-height:1.35;}
  .ghh-ref-hero-meta{gap:8px 12px;}
  .ghh-ref-date{padding:5px 11px;font-size:.84rem;}
  .ghh-ref-count{font-size:.82rem;}
  .ghh-ref-hero-cta{margin-top:10px}
  .ghh-ref-hero-cta .ghh-ref-btn-lg{padding:10px 22px;font-size:.98rem}
}

/* v4.7.72 — Event games carousel: desktop arrows + touch swipe on mobile. */
.ghh-ref-games-carousel{position:relative;min-width:0}
.ghh-ref-games-carousel .ghh-ref-games{
  display:flex;
  grid-template-columns:none;
  gap:14px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:2px 1px 8px;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x pan-y;
}
.ghh-ref-games-carousel .ghh-ref-games::-webkit-scrollbar{display:none}
.ghh-ref-games-carousel .ghh-ref-game{
  flex:0 0 calc((100% - 42px)/4);
  min-width:0;
  scroll-snap-align:start;
  scroll-snap-stop:normal;
}
.ghh-ref-games-nav{
  position:absolute;
  z-index:5;
  top:50%;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:rgba(15,23,42,.88);
  color:#fff;
  font-size:30px;
  font-weight:800;
  line-height:1;
  box-shadow:0 8px 22px rgba(0,0,0,.22);
  transform:translateY(-50%);
  cursor:pointer;
  transition:opacity .18s ease,transform .18s ease,background .18s ease;
}
.ghh-ref-games-nav:hover{background:#ff7b17;transform:translateY(-50%) scale(1.05)}
.ghh-ref-games-nav.is-prev{left:-18px}
.ghh-ref-games-nav.is-next{right:-18px}
.ghh-ref-games-nav[disabled]{opacity:.28;cursor:default;pointer-events:none}
.ghh-ref-games-nav[hidden]{display:none!important}

@media(max-width:1100px){
  .ghh-ref-games-carousel .ghh-ref-game{flex-basis:calc((100% - 14px)/2)}
}
@media(max-width:680px){
  .ghh-ref-games-carousel{margin-right:-16px}
  .ghh-ref-games-carousel .ghh-ref-games{
    gap:10px;
    padding-right:28px;
    scroll-snap-type:x mandatory;
  }
  .ghh-ref-games-carousel .ghh-ref-game{flex-basis:64%;max-width:260px}
  .ghh-ref-games-nav{display:none!important}
}
@media(max-width:430px){
  .ghh-ref-games-carousel .ghh-ref-game{flex-basis:74%;max-width:245px}
}
