*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f5f6f8;color:#141821;font-family:"Be Vietnam Pro",sans-serif}a{text-decoration:none;color:inherit}button,input{font:inherit}.topbar{height:72px;background:#fff;display:flex;align-items:center;padding:0 max(5vw,28px);position:sticky;top:0;z-index:50;box-shadow:0 1px 16px #10182812}.brand{display:flex;align-items:center;gap:9px;font-size:21px;min-width:210px}.brand-mark{width:30px;height:30px;border:3px solid #ef233c;color:#ef233c;display:grid;place-items:center;border-radius:50%;font-size:13px;font-weight:800}.brand b span{color:#ef233c}.topbar nav{display:flex;gap:34px;margin:auto;height:100%;align-items:center}.topbar nav a{font-size:13px;font-weight:600;position:relative}.topbar nav a.active:after{content:"";position:absolute;left:0;right:0;bottom:-25px;height:3px;background:#ef233c}.head-actions{display:flex;gap:10px}.icon-btn,.login{border:0;border-radius:8px;height:38px;display:grid;place-items:center}.icon-btn{width:38px;background:#f0f2f5}.login{background:#ef233c;color:#fff;padding:0 18px;font-size:12px;font-weight:700}.hero{height:510px;position:relative;overflow:hidden;background:#ddd}.hero-slide{position:absolute;inset:0;background-image:linear-gradient(90deg,rgba(255,255,255,.97) 0%,rgba(255,255,255,.88) 30%,rgba(255,255,255,.08) 61%),var(--hero);background-size:cover;background-position:center}.hero-copy{width:480px;position:absolute;left:8%;top:50%;transform:translateY(-50%)}.eyebrow{font-size:12px;letter-spacing:2px;color:#ef233c;font-weight:800}.hero h1{font-size:53px;line-height:1.03;margin:12px 0 18px;letter-spacing:-2px}.hero h1 em{font-style:normal;color:#ef233c}.hero p{font-size:14px;line-height:1.8;color:#555f6d;max-width:410px}.hero-actions{display:flex;gap:14px;margin-top:25px}.btn{height:45px;padding:0 28px;border-radius:5px;border:1px solid #ef233c;font-size:12px;font-weight:700;cursor:pointer}.primary{background:#ef233c;color:#fff;display:grid;place-items:center}.ghost{background:#fff8}.hero-arrow{position:absolute;top:48%;width:38px;height:38px;border:0;border-radius:50%;background:#fff;color:#555;font-size:27px;box-shadow:0 4px 15px #0002}.hero-arrow.left{left:28px}.hero-arrow.right{right:28px}.hero-index{position:absolute;right:7%;bottom:34px;color:#fff;display:flex;align-items:center;gap:6px}.hero-index b{font-size:22px}.hero-index span{opacity:.7}.hero-index i{display:block;width:70px;height:2px;background:linear-gradient(90deg,#fff 33%,#ffffff55 33%)}.section{max-width:1180px;margin:auto;padding:48px 30px}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.section-head h2{font-size:26px;margin:0}.section-head a{font-size:12px;color:#ef233c;font-weight:700}.game-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}.game-grid article{height:295px;position:relative;border-radius:9px;overflow:hidden;background:#111;box-shadow:0 7px 22px #18223016;transition:.25s}.game-grid article:hover{transform:translateY(-5px);box-shadow:0 13px 28px #1822302a}.game-grid img{width:100%;height:100%;object-fit:cover}.card-shade{position:absolute;inset:40% 0 0;background:linear-gradient(transparent,#08101be8)}.game-meta{position:absolute;left:17px;bottom:15px;color:#fff}.game-meta h3{font-size:16px;margin:0 0 5px}.game-meta p{font-size:11px;margin:0;color:#d3d7dc}.round{position:absolute;right:14px;bottom:16px;width:32px;height:32px;background:#fff;border-radius:50%;display:grid;place-items:center;font-weight:800}.news-layout{display:grid;grid-template-columns:1.6fr 1fr;gap:25px}.news-main{height:385px;position:relative;border-radius:9px;overflow:hidden}.news-main img{width:100%;height:100%;object-fit:cover}.news-main:after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(transparent,#07101dd9)}.news-overlay{position:absolute;z-index:2;left:24px;bottom:20px;color:#fff}.news-overlay span,.news-list span{background:#ef233c;color:#fff;font-size:9px;font-weight:800;padding:4px 7px;border-radius:3px}.news-overlay h3{font-size:21px;margin:10px 0 7px}.news-overlay p,.news-list p{font-size:10px;margin:0;color:#aeb6c2}.news-list{display:grid;gap:15px}.news-list article{background:#fff;border-radius:8px;display:grid;grid-template-columns:145px 1fr;gap:15px;align-items:center;padding:8px;box-shadow:0 3px 14px #1822300b}.news-list img{width:145px;height:102px;object-fit:cover;border-radius:6px}.news-list h4{font-size:14px;margin:10px 0 7px}.gift{max-width:1180px;height:190px;margin:18px auto 55px;background:linear-gradient(110deg,#fff 0,#fff4f6 48%,#ffe9ee 100%);border-radius:12px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 30px #d6264510}.gift-copy{text-align:center;z-index:2}.gift-copy>span{font-size:10px;color:#ef233c;font-weight:800;letter-spacing:1.4px}.gift h2{font-size:25px;margin:4px 0}.gift p{font-size:12px;color:#6d7480;margin:0 0 15px}.gift form{display:flex;width:440px;height:42px}.gift input{flex:1;border:1px solid #e4e6eb;padding:0 15px;border-radius:5px 0 0 5px;outline:none}.gift button{width:120px;border:0;background:#ef233c;color:#fff;font-weight:700;border-radius:0 5px 5px 0}.gift-msg{display:block;height:18px;margin-top:6px;color:#ef233c}.gift-art{position:absolute;left:0;bottom:0;width:280px;height:100%;background:url('assets/images/gift-chest.webp') center/cover;mask-image:linear-gradient(90deg,#000 50%,transparent);opacity:.9}.gift-character{position:absolute;right:0;bottom:0;width:285px;height:100%;background:url('assets/images/games/game-1.webp') 50% 18%/cover;mask-image:linear-gradient(270deg,#000 55%,transparent);opacity:.92}footer{background:#fff;border-top:1px solid #e7e9ed;padding:44px max(calc((100vw - 1120px)/2),35px) 20px;display:grid;grid-template-columns:1.6fr repeat(3,1fr);gap:45px;color:#626b77}footer h4{margin:0 0 15px;color:#20252d;font-size:13px}footer>div>a{display:block;font-size:11px;margin:8px 0}.footer-brand p{font-size:11px;line-height:1.8}.socials{display:flex;gap:10px}.socials a{width:31px;height:31px;border-radius:6px;background:#ef233c;color:#fff;display:grid;place-items:center;font-weight:800}.copyright{grid-column:1/-1;border-top:1px solid #eee;padding-top:18px;margin-top:15px;font-size:10px;display:flex;justify-content:space-between}.modal{display:none;position:fixed;inset:0;background:#000c;z-index:100;place-items:center}.modal.open{display:grid}.modal-box{width:min(900px,90vw);position:relative}.modal video{width:100%;background:#000}.modal-close{position:absolute;right:-10px;top:-40px;background:none;border:0;color:#fff;font-size:32px}@media(max-width:850px){.topbar nav{display:none}.topbar{justify-content:space-between}.brand{min-width:0}.hero{height:500px}.hero-slide{background-image:linear-gradient(90deg,rgba(255,255,255,.96),rgba(255,255,255,.65),rgba(255,255,255,.12)),var(--hero)}.hero-copy{left:8%;width:70%}.hero h1{font-size:42px}.game-grid{grid-template-columns:repeat(2,1fr)}.news-layout{grid-template-columns:1fr}.gift{margin:18px 20px 45px}.gift-art,.gift-character{opacity:.28}.gift form{width:min(440px,76vw)}footer{grid-template-columns:1fr 1fr}}@media(max-width:520px){.head-actions .icon-btn{display:none}.hero-copy{width:82%}.hero h1{font-size:36px}.section{padding:38px 20px}.game-grid{gap:12px}.game-grid article{height:230px}.news-list article{grid-template-columns:105px 1fr}.news-list img{width:105px;height:80px}.gift h2{font-size:21px}.gift p{font-size:11px}.gift form{width:82vw}.gift input{min-width:0}.gift button{width:100px}footer{grid-template-columns:1fr;padding:35px 25px}.copyright{display:block}.copyright span{display:block;margin-top:7px}}
/* UI3 Sidebar Edition */
body{background:#f3f5f8}.portal-shell{max-width:1480px;margin:24px auto 58px;padding:0 28px;display:grid;grid-template-columns:minmax(0,2.25fr) minmax(320px,.82fr);gap:22px;align-items:start}.main-column,.side-column{min-width:0}.side-column{display:grid;gap:18px;position:sticky;top:94px}.hero{height:440px;border-radius:14px;box-shadow:0 8px 30px #17203316}.hero-slide{border-radius:14px}.hero-copy{left:6%;width:430px}.hero h1{font-size:47px}.hero-arrow.left{left:18px}.hero-arrow.right{right:18px}.panel,.side-card{background:#fff;border:1px solid #e5e8ee;border-radius:13px;box-shadow:0 7px 24px #1720330c}.panel{padding:22px;margin-top:20px}.panel-head,.side-head{display:flex;align-items:center;justify-content:space-between}.panel-head{margin-bottom:18px}.panel-head h2,.side-head h3{margin:0}.panel-head h2{font-size:21px}.panel-head a,.side-head a{font-size:11px;color:#ef233c;font-weight:800}.game-grid{gap:13px}.game-grid article{height:238px;border-radius:9px}.game-meta{left:13px;bottom:12px}.game-meta h3{font-size:13px}.game-meta p{font-size:9px}.round{width:27px;height:27px;right:10px;bottom:11px;font-size:12px}.event-layout{display:grid;grid-template-columns:1.25fr 1fr;gap:18px}.event-main{height:330px;position:relative;border-radius:9px;overflow:hidden}.event-main img{width:100%;height:100%;object-fit:cover}.event-main:after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(transparent,#0a101ce8)}.event-overlay{position:absolute;z-index:2;left:18px;right:18px;bottom:16px;color:#fff}.event-overlay span,.event-list span{display:inline-block;background:#ef233c;color:#fff;font-size:8px;font-weight:800;padding:4px 6px;border-radius:3px}.event-overlay h3{font-size:18px;margin:8px 0 5px}.event-overlay p{font-size:10px;margin:0;color:#d7dbe2}.event-list{display:grid;gap:10px}.event-list article{display:grid;grid-template-columns:92px 1fr 14px;gap:11px;align-items:center;border-bottom:1px solid #edf0f4;padding:4px 0 10px}.event-list article:last-child{border-bottom:0}.event-list img{width:92px;height:70px;object-fit:cover;border-radius:6px}.event-list h4{font-size:11px;margin:6px 0}.event-list p{font-size:9px;margin:0;color:#929aa7}.event-list b{color:#ef233c;font-size:24px}.side-card{padding:18px}.gift-mini{min-height:150px;background:linear-gradient(115deg,#fff 0%,#fff6f8 55%,#ffe8ee 100%);position:relative;overflow:hidden}.gift-mini:after{content:"";position:absolute;right:-8px;top:-20px;width:145px;height:150px;background:url('assets/images/gift-chest.webp') center/cover no-repeat;opacity:.92;mask-image:linear-gradient(90deg,transparent,#000 32%)}.side-title{display:flex;align-items:center;gap:11px;position:relative;z-index:2}.gift-icon{width:34px;height:34px;border-radius:8px;background:#ef233c;color:#fff;display:grid;place-items:center}.side-title h3{font-size:15px;margin:0 0 3px}.side-title p{font-size:10px;margin:0;color:#6c7480}.gift-mini form{height:38px;display:flex;margin-top:15px;position:relative;z-index:2;width:78%}.gift-mini input{min-width:0;flex:1;border:1px solid #e2e6eb;border-radius:6px 0 0 6px;padding:0 11px;outline:none;background:#fff}.gift-mini button{width:94px;border:0;background:#ef233c;color:#fff;font-size:10px;font-weight:800;border-radius:0 6px 6px 0}.gift-msg{font-size:9px;color:#ef233c;position:relative;z-index:2}.side-head h3{font-size:15px}.side-news-list{display:grid;gap:10px;margin-top:13px}.side-news-list article{display:grid;grid-template-columns:98px 1fr 20px;gap:10px;align-items:center;background:#f8f9fb;border-radius:8px;padding:7px}.side-news-list img{width:98px;height:61px;object-fit:cover;border-radius:6px}.side-news-list time{font-size:8px;color:#ef233c;font-weight:800}.side-news-list h4{font-size:10px;margin:5px 0 0}.side-news-list b{color:#ef233c;font-size:20px}.community-card{height:180px;position:relative;overflow:hidden;background:linear-gradient(110deg,#fff 0%,#fff4f6 100%);display:flex;align-items:center}.community-copy{width:63%;position:relative;z-index:2}.community-copy>span{font-size:9px;color:#ef233c;font-weight:800;letter-spacing:1.5px}.community-copy h3{font-size:16px;margin:6px 0}.community-copy p{font-size:10px;line-height:1.55;color:#6e7681}.community-copy a{display:inline-flex;background:#ef233c;color:#fff;border-radius:6px;padding:9px 13px;font-size:9px;font-weight:800}.community-art{position:absolute;right:0;top:0;width:48%;height:100%;background:url('assets/images/games/game-1.webp') 50% 20%/cover no-repeat;mask-image:linear-gradient(90deg,transparent,#000 35%)}.support-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:13px}.support-grid a{min-height:72px;border:1px solid #e6e9ee;border-radius:8px;padding:11px;display:flex;align-items:center;gap:9px;background:#fafbfc}.support-grid b{width:29px;height:29px;border-radius:8px;background:#fff0f3;color:#ef233c;display:grid;place-items:center}.support-grid span{font-size:9px;font-weight:700}.support-grid small{display:block;color:#ef233c;font-size:8px;font-weight:500;margin-top:5px}footer{margin-top:0}
@media(max-width:1120px){.portal-shell{grid-template-columns:1fr}.side-column{position:static;grid-template-columns:1fr 1fr}.hero{height:480px}.gift-mini,.latest-news,.community-card,.quick-support{height:auto}.game-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:850px){.portal-shell{padding:0 18px}.side-column{grid-template-columns:1fr}.event-layout{grid-template-columns:1fr}.event-main{height:350px}.hero{height:500px}.game-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.portal-shell{padding:0 12px;margin-top:12px}.hero{height:480px}.hero-copy{left:8%;width:80%}.panel{padding:15px}.game-grid article{height:220px}.gift-mini form{width:100%}.gift-mini:after{opacity:.18}.community-copy{width:80%}.community-art{opacity:.25}.support-grid{grid-template-columns:1fr}}

/* ===== SyndFCO Support Chat - TEST ===== */
.gift-chat-btn{position:relative;z-index:2;margin-top:15px;width:145px;height:40px;border:0;border-radius:7px;background:#ef233c;color:#fff;font-weight:800;font-size:11px;cursor:pointer;box-shadow:0 7px 18px #ef233c2b}.gift-chat-btn:hover{transform:translateY(-1px)}
.gift-mini .gift-msg{display:block;margin-top:8px;position:relative;z-index:2;color:#777f8a}
.chat-fab{position:fixed;right:25px;bottom:24px;width:54px;height:54px;border:0;border-radius:50%;background:#ef233c;color:#fff;font-size:22px;box-shadow:0 10px 28px #ef233c55;cursor:pointer;z-index:90}.admin-test-btn{position:fixed;left:18px;bottom:18px;border:0;border-radius:7px;background:#171b24;color:#fff;padding:9px 12px;font-size:9px;font-weight:800;letter-spacing:.8px;cursor:pointer;z-index:90}
.support-modal{display:none;position:fixed;inset:0;background:#10131a99;z-index:120;place-items:center;padding:18px}.support-modal.open{display:grid}.support-chat-box{width:min(430px,96vw);height:min(610px,88vh);background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 25px 70px #0004;display:flex;flex-direction:column}.chat-head,.admin-head{height:70px;background:#ef233c;color:#fff;padding:0 18px;display:flex;align-items:center;justify-content:space-between}.chat-head b,.admin-head b{display:block;font-size:14px}.chat-head small,.admin-head small{display:block;font-size:9px;opacity:.82;margin-top:3px}.chat-head button,.admin-head button{border:0;background:transparent;color:#fff;font-size:27px;cursor:pointer}.player-form{padding:28px}.player-form h3{margin:0 0 5px;font-size:20px}.player-form p{margin:0 0 22px;color:#7b828d;font-size:11px;line-height:1.6}.player-form label{display:block;font-size:10px;font-weight:700;margin:13px 0;color:#454b55}.player-form input{display:block;width:100%;height:42px;margin-top:6px;border:1px solid #e0e4ea;border-radius:7px;padding:0 12px;outline:none}.player-form input:focus,.chat-compose input:focus,.admin-compose input:focus{border-color:#ef233c}.player-form button{width:100%;height:43px;border:0;border-radius:7px;background:#ef233c;color:#fff;font-weight:800;margin-top:9px;cursor:pointer}.chat-screen{display:none;min-height:0;flex:1;flex-direction:column}.chat-screen.active{display:flex}.player-info{padding:9px 14px;background:#fff6f8;border-bottom:1px solid #f1e5e8;color:#666e78;font-size:9px}.messages,.admin-messages{flex:1;overflow:auto;padding:16px;background:#f6f7f9;display:flex;flex-direction:column;gap:9px}.msg{max-width:78%;padding:9px 11px;border-radius:11px;font-size:11px;line-height:1.45}.msg.user{align-self:flex-end;background:#ef233c;color:#fff;border-bottom-right-radius:3px}.msg.admin{align-self:flex-start;background:#fff;color:#252a31;border:1px solid #e6e9ee;border-bottom-left-radius:3px}.msg small{display:block;font-size:7px;opacity:.65;margin-top:4px}.chat-compose,.admin-compose{height:60px;padding:9px 11px;background:#fff;border-top:1px solid #e7e9ed;display:flex;gap:8px}.chat-compose input,.admin-compose input{flex:1;min-width:0;border:1px solid #e0e4ea;border-radius:8px;padding:0 11px;outline:none}.chat-compose button,.admin-compose button{border:0;border-radius:8px;background:#ef233c;color:#fff;font-weight:800;padding:0 16px;cursor:pointer}
.admin-panel{display:none;position:fixed;right:25px;bottom:90px;width:min(420px,calc(100vw - 30px));height:530px;background:#fff;border-radius:14px;z-index:130;box-shadow:0 20px 60px #0004;overflow:hidden;flex-direction:column}.admin-panel.open{display:flex}.admin-head{background:#171b24}.admin-player{padding:11px 14px;border-bottom:1px solid #eceef2;font-size:10px;font-weight:700}.admin-messages{min-height:0}.admin-compose button{background:#171b24}
@media(max-width:520px){.chat-fab{right:15px;bottom:15px}.admin-test-btn{left:12px;bottom:12px}.support-chat-box{height:90vh}.admin-panel{right:10px;bottom:78px;width:calc(100vw - 20px);height:70vh}}

/* ===== Multi-user Admin Inbox ===== */
.admin-panel{width:min(820px,calc(100vw - 36px));height:570px}
.admin-body{display:grid;grid-template-columns:250px 1fr;flex:1;min-height:0}
.admin-inbox{border-right:1px solid #e8ebef;background:#f8f9fb;min-height:0;display:flex;flex-direction:column}
.admin-inbox-title{height:42px;padding:0 11px;display:flex;align-items:center;justify-content:space-between;font-size:9px;font-weight:800;color:#69717c;border-bottom:1px solid #e8ebef}
.admin-inbox-title button{border:0;background:#fff;width:26px;height:26px;border-radius:6px;cursor:pointer;font-size:16px}
.conversation-list{overflow:auto;padding:8px;display:grid;gap:6px}
.conversation-item{border:1px solid #e6e9ee;background:#fff;border-radius:8px;padding:9px 10px;text-align:left;cursor:pointer;color:#242932}
.conversation-item:hover,.conversation-item.active{border-color:#ef233c;background:#fff3f5}
.conversation-item b,.conversation-item span,.conversation-item small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.conversation-item b{font-size:10px}.conversation-item span{font-size:8px;color:#626b77;margin-top:4px}.conversation-item small{font-size:8px;color:#8c949f;margin-top:3px}
.empty-inbox{padding:18px 8px;text-align:center;font-size:9px;color:#8b929c}
.admin-chat-area{min-width:0;min-height:0;display:flex;flex-direction:column}
.admin-player{min-height:42px;display:flex;align-items:center}.admin-player b{margin-right:3px}
.admin-compose input:disabled,.admin-compose button:disabled{opacity:.45;cursor:not-allowed}
.switch-player{float:right;border:0;background:transparent;color:#ef233c;font-size:8px;font-weight:800;cursor:pointer;padding:0}
@media(max-width:650px){.admin-panel{height:76vh}.admin-body{grid-template-columns:145px 1fr}.conversation-item{padding:8px}.conversation-item small{display:none}}

/* Chat image attachments */
.image-pick{width:42px!important;min-width:42px;padding:0!important;background:#f1f3f6!important;color:#343a43!important;border:1px solid #dfe3e8!important;font-size:17px!important}.image-pick:disabled{opacity:.45}.image-preview{min-height:58px;padding:7px 12px;border-top:1px solid #e7e9ed;background:#fff;display:flex;align-items:center;gap:9px}.image-preview.hidden{display:none}.image-preview img{width:44px;height:44px;object-fit:cover;border-radius:7px}.image-preview span{flex:1;min-width:0;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#626b77}.image-preview button{width:28px;height:28px;border:0;border-radius:50%;background:#eceff3;cursor:pointer}.chat-image{display:block;max-width:min(280px,100%);max-height:300px;object-fit:contain;border-radius:8px;margin-bottom:5px;cursor:zoom-in;background:#fff}.msg:has(.chat-image){padding:6px}.msg .msg-content:empty{display:none}

/* Compact chat images + full-screen preview */
.msg:has(.chat-image){width:fit-content;max-width:min(72%,300px);padding:6px!important}
.chat-image{width:auto!important;max-width:min(240px,100%)!important;height:auto!important;max-height:220px!important;object-fit:contain!important;border-radius:9px;cursor:zoom-in;display:block}
.image-lightbox{display:none;position:fixed;inset:0;z-index:9999;background:rgba(10,12,16,.88);padding:42px;align-items:center;justify-content:center;cursor:zoom-out}
.image-lightbox.open{display:flex}
.image-lightbox img{display:block;max-width:min(1100px,92vw);max-height:88vh;width:auto;height:auto;object-fit:contain;border-radius:10px;box-shadow:0 18px 70px rgba(0,0,0,.45);cursor:default}
.image-lightbox-close{position:fixed;right:24px;top:18px;width:42px;height:42px;border:0;border-radius:50%;background:#fff;color:#1d222a;font-size:28px;line-height:1;cursor:pointer;box-shadow:0 5px 20px #0005}
@media(max-width:520px){.chat-image{max-width:min(210px,100%)!important;max-height:200px!important}.image-lightbox{padding:20px}.image-lightbox-close{right:12px;top:12px}}

/* Message attachment layout fix */
.msg{display:flex;flex-direction:column;align-items:flex-start}
.msg.user,.msg.admin{align-items:flex-start}
.msg small{width:100%;display:block;clear:both;white-space:nowrap;margin-top:5px;line-height:1.25}
.msg .chat-image{flex:none;margin:0 0 4px 0}
.msg .msg-content{display:block;width:100%}


/* Multi-image chat + stable message flow */
#player{min-height:58px;padding:13px 18px;border-bottom:1px solid #e8ebef;font-size:11px;display:flex;align-items:center}
.messages .msg.player{min-height:0;padding:10px 12px;display:flex;align-items:flex-start;border-bottom:0;font-size:11px}
.messages .msg,.messages .msg.player,.messages .msg.admin{position:relative;flex:0 0 auto;height:auto;overflow:visible;box-sizing:border-box}
.messages .msg:has(.chat-image-grid){width:min(310px,72%);max-width:min(310px,72%);padding:6px!important}
.chat-image-grid{width:100%;display:grid;gap:4px;grid-template-columns:1fr;overflow:hidden;border-radius:9px}
.chat-image-grid.count-2,.chat-image-grid.count-3{grid-template-columns:repeat(2,minmax(0,1fr))}
.chat-image-grid.count-3 .chat-image:first-child{grid-row:span 2;height:220px!important}
.chat-image-grid .chat-image{width:100%!important;max-width:none!important;height:150px!important;max-height:none!important;object-fit:cover!important;margin:0!important;border-radius:7px!important;display:block!important}
.chat-image-grid.count-1 .chat-image{height:auto!important;max-height:260px!important;object-fit:contain!important}
.chat-image-grid.count-2 .chat-image{height:150px!important}
.chat-image-grid.count-3 .chat-image:not(:first-child){height:108px!important}
.messages .msg small{position:static!important;float:none!important;width:100%!important;display:block!important;margin:6px 0 0!important;line-height:1.25!important;white-space:nowrap!important}
.image-preview{flex-wrap:wrap}.preview-grid{display:flex;gap:6px;align-items:center}.preview-thumb{position:relative;width:48px;height:48px}.preview-thumb img{width:48px!important;height:48px!important;object-fit:cover;border-radius:7px}.preview-thumb button{position:absolute;right:-5px;top:-5px;width:18px!important;height:18px!important;background:#20242b!important;color:#fff;border-radius:50%!important;font-size:12px;line-height:18px;padding:0!important}
@media(max-width:520px){.messages .msg:has(.chat-image-grid){width:min(260px,82%);max-width:min(260px,82%)}.chat-image-grid.count-3 .chat-image:first-child{height:190px!important}.chat-image-grid.count-3 .chat-image:not(:first-child){height:93px!important}}

/* SyndFCO user UI image refresh */
.brand-mark{border:0;background:transparent;overflow:hidden;width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px}
.brand-mark img{display:block;width:100%;height:100%;object-fit:contain}
.gift-mini{background-image:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.95) 45%,rgba(255,255,255,.62) 70%,rgba(255,255,255,.18) 100%),url('assets/images/giftcode-bg.png');background-size:cover;background-position:68% center;background-repeat:no-repeat}
.gift-mini:after{display:none}
.gift-mini .side-title,.gift-mini .gift-chat-btn,.gift-mini .gift-msg{position:relative;z-index:2}
@media(max-width:1120px){.gift-mini{background-position:72% center}}
@media(max-width:520px){.brand-mark{width:32px;height:32px;flex-basis:32px}.gift-mini{background-image:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.94) 58%,rgba(255,255,255,.45) 100%),url('assets/images/giftcode-bg.png');background-position:70% center}}

/* Community card — reuse the giftcode artwork without changing layout */
.community-card{
  background-image:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.94) 44%,rgba(255,255,255,.60) 68%,rgba(255,255,255,.12) 100%),url('assets/images/giftcode-bg.png');
  background-size:cover;
  background-position:72% center;
  background-repeat:no-repeat;
}
.community-art{display:none}
.community-copy{width:66%;position:relative;z-index:2}
@media(max-width:1120px){.community-card{background-position:72% center}}
@media(max-width:520px){
  .community-card{background-image:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.94) 58%,rgba(255,255,255,.42) 100%),url('assets/images/giftcode-bg.png');background-position:72% center}
  .community-copy{width:80%}
}

/* Featured event links */
.events-panel .event-link{color:inherit;text-decoration:none;cursor:pointer}
.events-panel .event-main{display:block;transition:transform .18s ease,box-shadow .18s ease}
.events-panel .event-main:hover{transform:translateY(-2px);box-shadow:0 10px 24px #1720331c}
.events-panel .event-list .event-item{display:grid;grid-template-columns:92px 1fr 14px;gap:11px;align-items:center;border-bottom:1px solid #edf0f4;padding:4px 0 10px;transition:opacity .18s ease,transform .18s ease}
.events-panel .event-list .event-item:last-child{border-bottom:0}
.events-panel .event-list .event-item:hover{opacity:.86;transform:translateX(2px)}
.copyright a {
  color: inherit;
  text-decoration: none;
}

.copyright a:hover {
  text-decoration: underline;
}
.three-games {
  position: relative;
  overflow: hidden;
}

.game-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  cursor: pointer;
}

.game-zone-1 {
  left: 0;
  width: 33.33%;
}

.game-zone-2 {
  left: 33.33%;
  width: 33.34%;
}

.game-zone-3 {
  right: 0;
  width: 33.33%;
}

/* Phần chữ phải nằm trên vùng click */
.three-games .event-overlay {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}
/* FIX banner 3 game - hiển thị đủ ảnh */
.event-main {
  aspect-ratio: 2 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
}

.event-main > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

.copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.copyright > * {
  margin: 0;
  line-height: 1;
}

.copyright a {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
/* ========================================
   FANTASY PARTICLES
======================================== */

#fantasy-particles {
  position: fixed;
  inset: 0;

  width: 100%;
  height: 100%;

  overflow: hidden;
  pointer-events: none;

  z-index: 9999;
}


/* PARTICLE CHUNG */

.fantasy-particle {
  position: absolute;
  top: -20px;

  pointer-events: none;
  will-change: transform, opacity;
}


/* =========================
   CÁNH HOA
========================= */

.petal {
  background:
    linear-gradient(
      135deg,
      rgba(220, 38, 38, .95),
      rgba(244, 63, 94, .8)
    );

  border-radius: 70% 20% 70% 20%;

  box-shadow:
    0 2px 4px rgba(120, 0, 20, .18),
    0 0 7px rgba(244, 63, 94, .35);

  animation: petalFall linear forwards;
}


@keyframes petalFall {

  0% {
    transform:
      translate3d(0, -5vh, 0)
      rotate(0deg);

    opacity: 0;
  }

  10% {
    opacity: .8;
  }

  45% {
    transform:
      translate3d(
        calc(var(--drift) * .45),
        45vh,
        0
      )
      rotate(calc(var(--rotate) * .45));
  }

  75% {
    transform:
      translate3d(
        calc(var(--drift) * -.2),
        75vh,
        0
      )
      rotate(calc(var(--rotate) * .75));
  }

  100% {
    transform:
      translate3d(
        var(--drift),
        110vh,
        0
      )
      rotate(var(--rotate));

    opacity: 0;
  }
}


/* =========================
   HẠT SÁNG
========================= */

.sparkle {
  border-radius: 50%;

  background: #f59e0b;

  box-shadow:
    0 0 3px rgba(180, 83, 9, .9),
    0 0 7px rgba(245, 158, 11, .8),
    0 0 12px rgba(251, 191, 36, .5);

  animation: sparkleFall linear forwards;
}


@keyframes sparkleFall {

  0% {
    transform:
      translate3d(0, -5vh, 0)
      scale(.5);

    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  50% {
    transform:
      translate3d(
        calc(var(--drift) * .5),
        50vh,
        0
      )
      scale(1.4);

    opacity: .8;
  }

  100% {
    transform:
      translate3d(
        var(--drift),
        110vh,
        0
      )
      scale(.6);

    opacity: 0;
  }
}


/* Tôn trọng cài đặt giảm animation của thiết bị */

@media (prefers-reduced-motion: reduce) {
  #fantasy-particles {
    display: none;
  }
}