#global-announcement{position:absolute;top:12px;left:50%;transform:translateX(-50%);z-index:18;width:min(550px,calc(100% - 390px));max-height:180px;overflow:auto;box-sizing:border-box;padding:10px 16px;border:1px solid #dfc681a0;border-radius:8px;background:#172b27eb;backdrop-filter:blur(7px);box-shadow:0 5px 22px #0005;pointer-events:auto}#global-announcement .announcement-label{font-size:10px;letter-spacing:3px;color:#dfc681}#announcement-message{font-size:14px;line-height:1.7;color:#fff1cc;white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0 0}#announcement-banner-close{font-size:10px;padding:3px 8px;background:#31483a;color:#e6d4a5;border:1px solid #9b9d6a;border-radius:4px;margin-top:7px}#announcement-admin-panel textarea{box-sizing:border-box;width:100%;resize:vertical;background:#10221e;border:1px solid #5c7158;border-radius:5px;color:#f4e5c8;padding:9px;margin:8px 0}#announcement-admin-panel label{font-size:12px;color:#dfc48c}#announcement-close{padding:7px;margin-top:10px}#announcement-feedback{font-size:12px;color:#d8bc83}#announcement-history{padding:12px 17px;border-top:1px solid #84977936;font-size:12px;color:#b6c5ad}#announcement-history p,#announcement-admin-history p{font-size:11px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}#global-announcement[hidden],#announcement-admin-panel[hidden],#announcement-banner-close[hidden]{display:none}@media(pointer:coarse) and (orientation:landscape) and (max-height:600px){#global-announcement{top:8px;width:calc(100% - 300px);max-height:120px;padding:7px 11px}#announcement-message{font-size:12px;margin-top:2px;line-height:1.6}#global-announcement .announcement-label{font-size:9px}}

@media(pointer:coarse) and (orientation:landscape) and (max-height:600px){#global-announcement{left:230px;right:58px;transform:none;width:auto;z-index:40}.has-announcement .canvas-wrap .world-toolbar{max-width:208px}}

/* 單行持續跑馬燈，固定標籤與管理員關閉鍵不跟著捲動。 */
#global-announcement{display:flex;align-items:center;gap:10px;overflow:hidden;max-height:none;padding:8px 12px;min-height:40px}
#global-announcement .announcement-label{flex:none;white-space:nowrap;font-size:10px;letter-spacing:2px}
.announcement-marquee-viewport{flex:1;min-width:0;height:24px;overflow:hidden;position:relative}
#announcement-message{display:block;width:max-content;max-width:none;margin:0;white-space:nowrap;overflow-wrap:normal;font-size:14px;line-height:24px;will-change:transform}
#announcement-banner-close{flex:none;margin:0;padding:2px 7px;font-size:18px;line-height:22px}
@media(pointer:coarse) and (orientation:landscape) and (max-height:600px){#global-announcement{padding:5px 9px;min-height:34px;gap:7px}#announcement-message{font-size:12px;line-height:24px}#global-announcement .announcement-label{font-size:9px;letter-spacing:1px}}

/* 放大公告字體與容器高度，避免中文字與emoji上下裁切。 */
#announcement-message{font-size:22px;font-weight:600;line-height:34px}.announcement-marquee-viewport{height:34px}#global-announcement{min-height:52px}
@media(pointer:coarse) and (orientation:landscape) and (max-height:600px){#announcement-message{font-size:18px;line-height:30px}.announcement-marquee-viewport{height:30px}#global-announcement{min-height:42px}}
