#guestbook-dialog,#honors-dialog{width:min(880px,94vw);max-width:94vw;max-height:90vh;padding:28px;text-align:left;box-sizing:border-box;color:#243e62}#guestbook-dialog h2,#honors-dialog h2{text-align:center}#guestbook-dialog .book-ornament,#honors-dialog .book-ornament{text-align:center}.community-intro{text-align:center;margin-top:-10px;color:#5b7394}.community-notice{font-size:14px;line-height:1.7;color:#526a8a}#guestbook-dialog button,#honors-dialog button{font-size:14px;min-height:40px}#guestbook-dialog textarea,#honors-dialog textarea,#honors-dialog input{box-sizing:border-box;width:100%;font:inherit;min-width:0;padding:12px;border:1px solid #b9c9de;border-radius:9px;background:white;color:#253c5b}#guestbook-dialog textarea,#honors-dialog textarea{resize:vertical;min-height:84px}#guestbook-dialog label,#honors-dialog label{display:block;margin:14px 0 7px;font-size:14px}#guestbook-dialog [hidden],#honors-dialog [hidden]{display:none!important}.community-form-footer,.community-section-heading,.community-card-head,.community-pages{display:flex;align-items:center;justify-content:space-between;gap:12px}.community-form-footer{margin-top:8px}.community-form-footer span{font-size:13px;color:#657b98}.community-section-heading h3{font-size:18px;margin:20px 0}.community-card{background:#f8fbff;border:1px solid #bbcbdf;border-radius:12px;padding:16px;margin:12px 0;overflow-wrap:anywhere}.community-card-head strong{font-size:16px}.community-card time,.community-card small{display:block;font-size:13px;color:#617697;margin:8px 0}.community-badge{font-size:13px;border-radius:18px;background:#e2eaf7;padding:3px 10px;white-space:nowrap}.guestbook-body{white-space:pre-wrap;line-height:1.8;margin:12px 0}.community-actions{display:flex;gap:8px;flex-wrap:wrap}.community-actions:empty{display:none}.community-pages{justify-content:center;margin:18px 0;font-size:14px}.community-confirm{padding:12px;margin-top:12px;background:#eef3fb;border:1px solid #c3d1e5;border-radius:8px}.community-confirm button{margin-right:8px}.community-confirm p{font-size:14px}.community-confirm p:empty{display:none}.community-empty{padding:30px 12px;text-align:center;color:#62758c}.community-tabs{display:flex;gap:8px;margin:18px 0;flex-wrap:wrap}.community-tabs button[aria-pressed=true]{background:#304f7d;color:white}.honor-stats{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;padding:12px;background:#e2ebf8;border-radius:12px;font-size:14px}.community-search{display:flex;gap:8px}.community-search input{flex:1}.honor-rank-row{display:grid!important;grid-template-columns:42px minmax(0,1fr) auto auto;gap:14px;align-items:center;width:100%;text-align:left;margin:8px 0;padding:14px!important;background:#f9fbff!important}.honor-rank-row strong{overflow-wrap:anywhere}.honor-rank-row small{color:#59708f;font-size:13px}.honor-position{font-size:22px;font-weight:bold;text-align:center;color:#7587a3}.honor-position.top-three{color:#9c7128}.honor-score{font-weight:bold;white-space:nowrap}.honor-history-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.honor-record{margin:0}.honor-record strong{display:block;font-size:15px;margin:12px 0 6px}.honor-thumb{display:block;width:100%;padding:0!important;overflow:hidden;line-height:0}.honor-thumb img{display:block;width:100%;height:175px;object-fit:contain;background:#142133}.honor-record p{font-size:14px;white-space:pre-wrap}#honor-upload-preview{display:block;max-width:100%;max-height:280px;object-fit:contain;margin:12px auto;border-radius:8px}#honor-submit{width:100%;background:#304f7d;color:white}#honor-image-dialog{width:94vw;max-width:1200px;max-height:94vh;padding:44px 12px 12px;background:#142133}#honor-large-image{display:block;max-width:100%;max-height:80vh;object-fit:contain;margin:auto}#guestbook-status,#honor-status{font-size:14px;line-height:1.6;color:#355882}#guestbook-status:empty,#honor-status:empty{display:none}
@media(max-width:600px){#guestbook-dialog,#honors-dialog{padding:20px 16px;max-height:90dvh}.honor-history-list{grid-template-columns:1fr}.honor-rank-row{grid-template-columns:28px minmax(0,1fr) auto;gap:8px}.honor-rank-row small{display:none}.honor-stats{gap:8px;font-size:13px}.community-tabs button{flex:1;padding:9px 6px}.community-section-heading h3{font-size:16px}}

/* Compact direct-message bubbles; moderation remains available on every device. */
#guestbook-dialog{width:min(720px,94vw)}
#guestbook-posts{display:flex;flex-direction:column;gap:14px;padding:8px 0}
.guestbook-message{display:flex;flex-direction:column;align-items:flex-start;min-width:0;position:relative}
.guestbook-message.is-own{align-items:flex-end}
.guestbook-meta{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:0 10px 5px;max-width:90%;color:#66768e;font-size:12px;line-height:1.4}
.guestbook-meta strong{font-size:13px;font-weight:600;color:#3d5474;overflow-wrap:anywhere}
.guestbook-meta time{font-size:12px;white-space:nowrap}
.guestbook-meta .community-badge{font-size:12px;padding:1px 6px;background:#e6ecf6}
.is-own .guestbook-meta{justify-content:flex-end}
#guestbook-posts .guestbook-body{width:fit-content;max-width:80%;margin:0;padding:9px 14px;border:0;border-radius:18px 18px 18px 5px;background:#e8edf5;color:#253c59;line-height:1.55;font-size:15px;white-space:pre-wrap;overflow-wrap:anywhere;box-sizing:border-box}
#guestbook-posts .is-own .guestbook-body{background:linear-gradient(115deg,#5969dc,#5263cf);color:#fff;border-radius:18px 18px 5px 18px}
.guestbook-menu{margin:2px 8px 0;max-width:100%}
.guestbook-menu summary{list-style:none;cursor:pointer;display:block;width:30px;text-align:center;color:#6b7c96;font-size:20px;font-weight:bold;line-height:22px;border-radius:8px}
.guestbook-menu summary::-webkit-details-marker{display:none}
.guestbook-menu summary:hover,.guestbook-menu summary:focus-visible{background:#e0e8f3;outline:2px solid #9fafd1}
.guestbook-menu[open] summary{margin-bottom:5px}
.guestbook-menu .community-actions{padding:5px 8px;background:#fff;border:1px solid #d3deec;border-radius:10px}
#guestbook-dialog .guestbook-menu button{min-height:32px;font-size:13px;padding:4px 8px;border:0;background:transparent}
.guestbook-message .community-confirm{max-width:90%;margin-top:6px}
@media(max-width:600px){#guestbook-posts .guestbook-body{max-width:90%;font-size:15px}.guestbook-meta{gap:5px}.guestbook-meta time{font-size:12px}}

/* Keep the illustrated sign visible while the board scrolls. */
#guestbook-dialog{height:min(800px,90dvh);max-height:90dvh;padding:0;overflow:hidden}
#guestbook-dialog[open]{display:flex;flex-direction:column}
.guestbook-fixed-header{flex:none;padding:12px 50px 8px;border-bottom:1px solid #d7e1ee;background:#f4f8fe}
#guestbook-dialog .guestbook-fixed-header h2{margin:0;line-height:0}
.guestbook-fixed-header img{display:block;width:auto;height:clamp(110px,20dvh,170px);max-width:100%;object-fit:contain;margin:auto}
#guestbook-dialog .close{z-index:2}
.guestbook-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:4px 24px 16px;scrollbar-width:thin;scrollbar-color:#a6b7d2 transparent}
.guestbook-scroll:focus-visible{outline:2px solid #8ca4ca;outline-offset:-3px}
@media(max-width:600px){#guestbook-dialog{padding:0}.guestbook-scroll{padding:4px 14px 12px}.guestbook-fixed-header{padding:8px 45px}.guestbook-fixed-header img{height:clamp(90px,18dvh,135px)}}
#guestbook-dialog .close{position:absolute;top:12px;right:12px;width:34px;min-height:34px;padding:4px;flex:none}

.guestbook-composer{flex:none;padding:0 24px 8px;border-bottom:1px solid #d7e1ee;background:#f4f8fe}.guestbook-composer .community-notice{margin:6px 0;font-size:12px}#guestbook-dialog .guestbook-composer label{margin-top:6px}#guestbook-dialog .guestbook-composer textarea{min-height:54px;height:54px;max-height:100px}.guestbook-composer .community-form-footer{margin-top:4px}#guestbook-dialog .guestbook-composer button{min-height:34px;padding:6px 12px}.guestbook-scroll .community-section-heading h3{margin:12px 0}@media(max-width:600px){.guestbook-composer{padding:0 14px 6px}}@media(max-height:650px){.guestbook-fixed-header img{height:80px}#guestbook-dialog .guestbook-composer textarea{min-height:42px;height:42px;max-height:60px}}
/* Royal Navy stationery: fixed illustrated frame, composer, and scrolling letters. */
#guestbook-dialog{width:min(900px,96vw,73.6dvh);height:min(1125px,92dvh);max-width:96vw;max-height:92dvh;padding:0 6.5% 0;border:0;border-radius:0;background:transparent url('/guestbook-royal-frame.png') center/100% 100% no-repeat;box-shadow:none;filter:drop-shadow(0 12px 24px #14234266);color:#24345f;font-family:Georgia,'Noto Serif SC','Songti SC',SimSun,serif;isolation:isolate;box-sizing:border-box}
#guestbook-dialog[open]{display:flex;flex-direction:column;padding:0 0 0}
#guestbook-dialog .guestbook-fixed-header{height:28%;flex:0 0 28%;padding:0;border:0;background:none}
#guestbook-dialog .guestbook-fixed-header h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#guestbook-dialog .guestbook-fixed-header img{display:none}
#guestbook-dialog .close{position:absolute;inset:4.2% 3.5% auto auto;width:clamp(32px,4.5dvh,50px);height:clamp(32px,4.5dvh,50px);min-height:0;padding:0;display:grid;place-items:center;border:3px double #b79251;border-radius:50%;background:#fffdf7;box-shadow:0 0 0 2px #f6e1ba,0 3px 5px #3c41633b;color:#243966;font-size:28px;z-index:5}
#guestbook-dialog .guestbook-composer{position:relative;flex:none;margin:0 6.5%;padding:0 0 17px;background:none;border:0}
#guestbook-dialog .guestbook-composer:after{content:'✧ ───────── ⚜ ───────── ✧';position:absolute;bottom:-4px;left:0;right:0;text-align:center;color:#c49e69;font-size:18px;line-height:22px;white-space:nowrap;overflow:hidden;pointer-events:none}
#guestbook-dialog .guestbook-composer label{margin:0 0 8px;font-family:inherit;font-size:clamp(15px,1.9dvh,21px);font-weight:bold;letter-spacing:2px;color:#203259}
#guestbook-dialog .guestbook-composer label:before,#guestbook-dialog .guestbook-composer label:after{content:'✦';color:#caa267;margin:0 10px;font-weight:normal}
#guestbook-dialog .guestbook-composer textarea{min-height:58px;height:clamp(58px,7.4dvh,90px);max-height:100px;padding:12px 15px;border:3px double #ae925e;outline:1px solid #4b5c7c;outline-offset:2px;border-radius:11px;background:#ffffffcb;box-shadow:inset 0 2px 8px #c5d1e314;color:#24345f;font:16px/1.5 Georgia,'Microsoft YaHei',sans-serif}
#guestbook-dialog .guestbook-composer textarea:focus{outline:2px solid #687ba4}
#guestbook-dialog .community-form-footer{justify-content:flex-end;gap:18px;margin-top:10px}
#guestbook-dialog #guestbook-count{color:#647298;font:14px Georgia,serif}
#guestbook-dialog #guestbook-send{position:relative;min-height:38px;padding:7px 22px;border:3px double #ead0a0;border-radius:16px 9px;background:linear-gradient(115deg,#26365f,#3c5189 55%,#263760);outline:1px solid #ad8650;color:#fffdf5;font:bold 17px Georgia,SimSun,serif;letter-spacing:2px;box-shadow:0 3px 4px #283c672a}
#guestbook-dialog #guestbook-send:after{content:' ❦';color:#f4dbad}
#guestbook-dialog #guestbook-send:hover{background:#405587}
#guestbook-dialog #guestbook-send:disabled{opacity:.55}
#guestbook-dialog .guestbook-composer .community-notice{margin:8px 0 0;color:#3d527d;font:13px/1.6 Georgia,'Microsoft YaHei',sans-serif}
#guestbook-dialog #guestbook-status{margin:4px 0;font:13px/1.4 sans-serif}
#guestbook-dialog .guestbook-scroll{margin:8px 6.5% 16%;padding:0 4px;flex:1;min-height:0;background:none;scrollbar-color:#baaa91 transparent;scrollbar-width:thin;scrollbar-gutter:stable}
#guestbook-dialog .community-section-heading{justify-content:flex-end;height:24px;margin-bottom:4px}
#guestbook-dialog .community-section-heading h3{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#guestbook-dialog #guestbook-refresh{min-height:22px;padding:2px 6px;background:transparent;border:0;font-size:12px;color:#7481a0}
#guestbook-dialog #guestbook-posts{gap:20px;padding:3px 1px}
#guestbook-dialog .guestbook-message{padding-left:65px;min-height:82px;padding-bottom:15px}
#guestbook-dialog .guestbook-message:after{content:'✧ ⚜ ✧';position:absolute;bottom:-3px;left:28%;right:18%;text-align:center;color:#cfb087;font-size:13px;letter-spacing:3px;border-bottom:1px solid #d9c8ad55;line-height:10px;pointer-events:none}
#guestbook-dialog .guestbook-message.is-own{padding-left:0;padding-right:0}
#guestbook-dialog .guestbook-meta{margin:0 0 8px;gap:8px;max-width:100%;padding-right:24px;line-height:1.5;font-family:Georgia,'Microsoft YaHei',sans-serif}
#guestbook-dialog .guestbook-meta strong{color:#24345f;font-size:15px;font-family:Georgia,SimSun,serif;font-weight:700}
#guestbook-dialog .guestbook-meta time{font-size:12px;color:#6c799b}
#guestbook-dialog .guestbook-meta .community-badge{border:1px solid #e9d5b5;color:#746457;background:#f5eee4;padding:1px 8px;font-size:11px}
#guestbook-dialog .is-own .guestbook-meta{padding-right:0}
#guestbook-dialog .is-own .community-badge{border-color:#dce1ed;background:#e9edf5;color:#657491}
#guestbook-dialog #guestbook-posts .guestbook-body{position:relative;max-width:100%;border:1px solid #d6cdc1;border-radius:15px;padding:10px 15px;background:repeating-linear-gradient(45deg,transparent 0 17px,#e7dcc82b 18px 19px,transparent 20px 38px),linear-gradient(115deg,#fffdf8,#f8f5f0);box-shadow:0 3px 6px #27334e0e,inset 0 0 0 2px #fffdf9;color:#263965;font-family:Georgia,'Microsoft YaHei',sans-serif;font-size:15px;line-height:1.65}
#guestbook-dialog #guestbook-posts .is-own .guestbook-body{max-width:88%;border:3px double #dbbf8c;background:linear-gradient(115deg,#243864,#384e89 55%,#293d72);color:#fff;box-shadow:0 2px 4px #26396624,inset 0 0 0 1px #ffffff77;border-radius:17px}
#guestbook-dialog .is-own .guestbook-body:before{content:'✦';position:absolute;left:-9px;top:-12px;color:#d4ad72;text-shadow:0 1px #fff;font-size:22px}
#guestbook-dialog .guestbook-menu{align-self:flex-end;margin:2px 0 0}
#guestbook-dialog .guestbook-menu summary{font-size:21px;color:#59678d}
#guestbook-dialog .guestbook-menu .community-actions{background:#fffaf2;border-color:#cfb78e}
#guestbook-dialog .guestbook-avatar{position:absolute;top:0;left:2px;width:47px;height:51px;display:grid;place-items:center;box-sizing:border-box;font:32px Georgia;color:#324573;border:4px double #c6ad7d;border-radius:50%;background:radial-gradient(ellipse,#fffdf6 50%,#f1e5cf);box-shadow:0 0 0 3px #f9fbff,0 0 0 4px #bac1d2,0 3px 6px #24376122}
#guestbook-dialog .guestbook-avatar:after{content:'✦';position:absolute;bottom:-11px;left:0;width:39px;height:18px;text-align:center;font-size:16px;line-height:18px;color:#d8b580;background:linear-gradient(30deg,#233960,#485b88,#233960);clip-path:polygon(0 0,40% 28%,50% 13%,60% 28%,100% 0,92% 50%,100% 100%,60% 75%,50% 90%,40% 75%,0 100%,8% 50%)}
#guestbook-dialog .guestbook-load-status{font:12px/1.5 sans-serif;text-align:center;color:#7c7d8e;padding:6px}
#guestbook-dialog .guestbook-load-status:empty{display:none}
@media(max-width:600px){#guestbook-dialog{width:96vw;height:92dvh;background-size:100% 100%}#guestbook-dialog .guestbook-fixed-header{flex-basis:34vw;height:34vw;background:url('/guestbook-royal-frame.png') top center/100% auto no-repeat}#guestbook-dialog .guestbook-composer{margin:0 7%;padding-bottom:13px}#guestbook-dialog .guestbook-composer label{font-size:15px;margin-bottom:6px}#guestbook-dialog .guestbook-composer textarea{height:55px;min-height:55px;font-size:14px;padding:8px 10px}#guestbook-dialog #guestbook-send{font-size:14px;min-height:32px;padding:5px 12px}#guestbook-dialog .community-form-footer{margin-top:8px}#guestbook-dialog .guestbook-scroll{margin:5px 6.5% 20vw}#guestbook-dialog .guestbook-message{padding-left:44px}#guestbook-dialog .guestbook-avatar{width:31px;height:37px;font-size:23px;border-width:3px}#guestbook-dialog .guestbook-avatar:after{width:27px}#guestbook-dialog .guestbook-meta{gap:4px}#guestbook-dialog .guestbook-meta strong{font-size:13px}#guestbook-dialog .guestbook-meta time{font-size:10px}#guestbook-dialog #guestbook-posts .guestbook-body{font-size:13px;padding:8px 10px}#guestbook-dialog:after{content:'';position:absolute;bottom:0;left:0;right:0;height:20vw;background:url('/guestbook-royal-frame.png') bottom center/100% auto no-repeat;pointer-events:none;z-index:-1}}
@media(max-width:600px){#guestbook-dialog{background:repeating-linear-gradient(45deg,#fbfaf8,#fbfaf8 16px,#f6f3ef 17px,#fbfaf8 18px);border:3px double #bb9b62;border-radius:15px;filter:drop-shadow(0 8px 15px #17274566)}#guestbook-dialog .guestbook-fixed-header{flex-basis:34vw;height:34vw;background-color:#faf9f8}#guestbook-dialog .guestbook-scroll{margin-bottom:25vw}#guestbook-dialog:after{height:25vw;z-index:0}#guestbook-dialog .guestbook-composer{background:#fbfaf8}#guestbook-dialog .guestbook-composer:after{font-size:13px}#guestbook-dialog .guestbook-meta time{white-space:normal}}
/* Transparent silhouette, live messages, then the registered ornamental foreground. */
#guestbook-dialog{background:transparent url('/guestbook-empty-header.png') center/100% 100% no-repeat;border:0;border-radius:0;overflow:hidden}
#guestbook-dialog .guestbook-foreground{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:fill;z-index:3;pointer-events:none;user-select:none;mask:url('/guestbook-bottom-overlay.png') center/100% 100% no-repeat;-webkit-mask:url('/guestbook-bottom-overlay.png') center/100% 100% no-repeat}
#guestbook-dialog .guestbook-fixed-header,#guestbook-dialog .guestbook-composer{position:relative;z-index:2}
#guestbook-dialog .guestbook-scroll{position:relative;z-index:1;margin-bottom:5%;padding-bottom:18%;scroll-padding-bottom:18%;box-sizing:border-box}
#guestbook-dialog:after{content:none}
@media(max-width:600px){
 #guestbook-dialog{background:none;border:0;border-radius:0}
 #guestbook-dialog:before{content:'';position:absolute;inset:0;z-index:0;pointer-events:none;border-style:solid;border-width:0;border-image-source:url('/guestbook-empty-header.png');border-image-slice:400 60 280 60 fill;border-image-width:34vw 5.14vw 24vw 5.14vw;border-image-repeat:stretch}
 #guestbook-dialog .guestbook-fixed-header{background:none}
 #guestbook-dialog .guestbook-composer{background:transparent}
 #guestbook-dialog .guestbook-scroll{margin-bottom:5vw;padding-bottom:24vw;scroll-padding-bottom:24vw}
 #guestbook-dialog .guestbook-foreground{inset:auto 0 0;height:auto;width:100%;aspect-ratio:1122/1402}
 #guestbook-dialog:after{content:none}
}
/* Keep the live scroll viewport above the bottom rail; the flowers overlap its sides. */
#guestbook-dialog .guestbook-scroll{margin-bottom:11%;padding-bottom:12%;scroll-padding-bottom:12%}
#guestbook-dialog .guestbook-foreground{mask-position:0 min(24.75px,2.024dvh);-webkit-mask-position:0 min(24.75px,2.024dvh)}
@media(max-width:600px){#guestbook-dialog .guestbook-scroll{margin-bottom:12vw;padding-bottom:20vw;scroll-padding-bottom:20vw}#guestbook-dialog .guestbook-foreground{mask-position:0 2.64vw;-webkit-mask-position:0 2.64vw}}
/* Preserve the source's exact aspect ratio instead of independently stretching X/Y. */
@media(min-width:601px){
 #guestbook-dialog{width:min(900px,96vw,calc(92dvh * 1122 / 1402));height:auto;aspect-ratio:1122/1402;background-size:100% auto}
 #guestbook-dialog .guestbook-foreground{height:auto;aspect-ratio:1122/1402;object-fit:contain;mask-size:100% auto;-webkit-mask-size:100% auto;mask-position:0 min(24.7148px,2.024dvh);-webkit-mask-position:0 min(24.7148px,2.024dvh)}
}
@media(max-width:600px){
 #guestbook-dialog:before{border-image-width:34.2246vw 5.1337vw 23.9572vw 5.1337vw}
 #guestbook-dialog .guestbook-fixed-header{height:34.2246vw;flex-basis:34.2246vw}
 #guestbook-dialog .guestbook-foreground{object-fit:contain;mask-size:100% auto;-webkit-mask-size:100% auto}
}
/* Display the user's original square sign directly, with its natural proportions. */
#guestbook-dialog .guestbook-fixed-header{display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:10px 0 0;overflow:visible}
#guestbook-dialog .guestbook-fixed-header h2{position:static;inset:auto;width:auto;height:100%;max-width:90%;overflow:visible;clip-path:none;margin:0;line-height:0}
#guestbook-dialog .guestbook-fixed-header img{display:block;height:100%;width:auto;max-width:100%;max-height:none;object-fit:contain;margin:0 auto}
@media(max-width:600px){#guestbook-dialog .guestbook-fixed-header{height:min(27dvh,54vw);flex-basis:min(27dvh,54vw);padding-top:8px}}
/* Belfast's live cat-petting leaderboard. The painted plate contains no fixed player data. */
#honors-dialog{width:min(930px,96vw,calc(94dvh * 1122 / 1402));height:auto;aspect-ratio:1122/1402;max-height:94dvh;max-width:96vw;padding:0;border:0;border-radius:16px;background:#edf0f6 url('/honors-belfast.png') center/100% auto no-repeat;overflow:hidden;box-shadow:0 18px 70px #14244066;color:#243763;font-family:Georgia,'Noto Serif SC',SimSun,serif}
#honors-dialog .honors-accessible-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}
#honors-dialog .close{position:absolute;top:2%;right:2%;z-index:5;width:36px;height:36px;min-height:36px;padding:0;display:grid;place-items:center;border:3px double #ccb17d;border-radius:50%;background:#fffdf3;color:#263d67;font:24px Georgia;box-shadow:0 1px 5px #182b5555}
#honors-dialog .honors-content{position:absolute;top:46.1%;bottom:24%;left:5.3%;right:14.6%;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b6a17e transparent;padding:0 3px 6px;box-sizing:border-box}
#honors-dialog .community-intro{margin:0 0 8px;text-align:center;color:#3b4f7a;font-size:14px;letter-spacing:1px}
#honors-dialog .community-intro:before,#honors-dialog .community-intro:after{content:' — ';color:#8a9abc}
#honors-dialog .honors-toolbar{display:flex;align-items:stretch;gap:12px;justify-content:space-between;margin-bottom:8px}
#honors-dialog .community-tabs{order:0;display:flex;flex:1;margin:0;gap:0;flex-wrap:nowrap;border:1px solid #becbe0;border-radius:8px;background:#e6ebf3;overflow:hidden}
#honors-dialog .community-tabs button{flex:1;white-space:nowrap;min-height:40px;padding:7px 9px;border:0;border-right:1px solid #c9d3e5;border-radius:0;background:transparent;color:#354b79;font:bold 14px Georgia,SimSun,serif}
#honors-dialog .community-tabs button[aria-pressed=true]{border:2px double #bd9e66;background:linear-gradient(130deg,#29436d,#344e7e);color:#fffaf0;border-radius:7px}
#honors-dialog .community-tabs button:before{content:'♜ ';color:#b1bdd0}
#honors-dialog #honor-tab-rank:before{content:'⚓︎ ';color:#caa970}
#honors-dialog .honor-stats{order:1;display:flex;flex-wrap:nowrap;align-items:center;gap:7px;margin:0;padding:6px 9px;border:1px solid #d5cfbf;border-radius:8px;background:#fffdf78c;font-size:12px;color:#405784}
#honors-dialog .honor-stats:before{content:'⚓︎';font-size:29px;color:#b59a66}
#honors-dialog .honor-stats span{max-width:65px;text-align:center;line-height:1.6}
#honors-dialog .honor-stats span+span{border-left:1px solid #bac9df;padding-left:7px}
#honors-dialog #honor-search{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin:0 0 7px}
#honors-dialog #honor-search label{margin:0;font-size:12px;white-space:nowrap}
#honors-dialog .community-search{max-width:240px;gap:4px}
#honors-dialog .community-search input{padding:5px 8px;font:12px/1.4 sans-serif;background:#fffdfbcc;border-color:#c7d1e0;border-radius:6px}
#honors-dialog .community-search button{min-height:28px;padding:3px 8px;white-space:nowrap;font-size:12px;background:#fafcff;border-color:#b9c9df}
#honors-dialog #honor-rank-panel>.community-notice{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#honors-dialog .honors-table-heading,#honors-dialog .honor-rank-row{display:grid;grid-template-columns:60px minmax(0,1fr) 85px 90px;gap:8px;align-items:center}
#honors-dialog .honors-table-heading{padding:7px 10px;background:linear-gradient(#eff2f8,#e2e7f1);border:1px solid #c7d2e5;border-radius:10px 10px 0 0;color:#2f4776;font-size:13px;font-weight:bold;text-align:center}
#honors-dialog .honors-table-heading span:nth-child(2){text-align:left}
#honors-dialog #honor-rank-list{border:1px solid #c7d2e5;border-top:0;border-radius:0 0 10px 10px;overflow:hidden;background:#fffffa99}
#honors-dialog .honor-rank-row{width:100%;padding:9px 10px!important;margin:0;background:transparent!important;border:0;border-bottom:1px dashed #cdd5e4;border-radius:0;box-shadow:none;color:#283e6c;min-height:63px;font-family:Georgia,SimSun,serif}
#honors-dialog .honor-rank-row:last-child{border-bottom:0}
#honors-dialog .honor-rank-row:hover{background:#e9eef8cc!important}
#honors-dialog .honor-position{position:relative;display:grid;place-items:center;width:34px;height:34px;margin:auto;border:3px double #e4d9c5;border-radius:50%;background:#dce3ee;color:#536785;font:bold 22px Georgia;box-shadow:0 0 0 1px #bbcae1}
#honors-dialog .honor-position:before{content:'♛';position:absolute;top:-14px;left:0;right:0;font-size:17px;line-height:17px;color:inherit}
#honors-dialog [data-rank="1"] .honor-position{background:linear-gradient(120deg,#d4a44d,#8d601c);border-color:#f4dfb4;color:#fff1d3;box-shadow:0 0 0 1px #b99960}
#honors-dialog [data-rank="2"] .honor-position{background:linear-gradient(120deg,#bfc8d0,#758494);border-color:#e2e7ed;color:white}
#honors-dialog [data-rank="3"] .honor-position{background:linear-gradient(120deg,#cf9677,#915736);border-color:#edc9ae;color:#fff4df}
#honors-dialog .honor-player{display:flex;align-items:center;gap:10px;font-size:15px;text-align:left}
#honors-dialog .honor-player:before{content:'⚓︎';display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;border:3px double #b99a60;border-radius:50%;background:radial-gradient(ellipse,#fffaf1,#e2e9f5);color:#334c78;font:22px Georgia}
#honors-dialog .honor-score{text-align:center;font-size:17px}
#honors-dialog .honor-rank-row small{display:block;padding:7px 5px;border:1px solid #afc1dd;border-radius:7px;background:#ffffffae;text-align:center;color:#365080;font-size:12px}
#honors-dialog #honor-status:empty{display:none}
#honors-dialog #honor-status{margin:5px 0;font-size:13px}
#honors-dialog #honor-upload-panel,#honors-dialog #honor-history-panel{padding:3px 5px;background:#fffdf8e6;border:1px solid #d9d5c9;border-radius:9px}
#honors-dialog .community-pages{margin:8px 0;font-size:12px}
#honors-dialog .community-pages button{min-height:30px;padding:4px 9px;font-size:12px}
#honors-dialog #honor-submit{background:linear-gradient(120deg,#263c65,#405788);border:3px double #ceb583;color:#fff9ef}
#honors-dialog .honor-record{background:#ffffffc9;border-color:#d9cebb}
#honors-dialog .honor-thumb img{height:120px}
#honors-dialog .honor-pending-count{display:block;margin-top:3px;color:#886f46;font:normal 11px/1.3 sans-serif;white-space:nowrap}
#honors-dialog .honor-rank-row.is-pending .honor-position:before,#honors-dialog .honor-rank-row.is-pending .honor-position:after{content:none}
#honors-dialog .honor-auto-record strong{line-height:1.7}
#honors-dialog .honor-auto-record .community-badge{display:inline-block;background:#e5edf4;color:#365071;font:12px/1.5 sans-serif;white-space:normal}
#honors-dialog .honor-auto-record.is-pending .community-badge{background:#f5eddb;color:#856631}
#honors-dialog .honor-event-facts,#honors-dialog .honor-pending-reason{font-size:12px;line-height:1.65;color:#637592}
#honors-dialog .honor-pending-reason{color:#856631}
@media(max-width:600px){
 #honors-dialog{width:96vw;height:94dvh;aspect-ratio:auto;background:none;border-radius:10px}
 #honors-dialog:before{content:'';position:absolute;inset:0;pointer-events:none;border-style:solid;border-width:0;border-image-source:url('/honors-belfast.png');border-image-slice:645 45 330 45 fill;border-image-width:55.19vw 3.85vw 28.24vw 3.85vw;border-image-repeat:stretch}
 #honors-dialog .honors-content{top:55.19vw;bottom:28.24vw;left:5%;right:10%;padding:0 2px 4px}
 #honors-dialog .honors-toolbar{flex-direction:column;gap:5px}
 #honors-dialog .community-tabs{flex:none}
 #honors-dialog .community-tabs button{min-height:34px;font-size:12px;padding:5px}
 #honors-dialog .honor-stats{justify-content:center;font-size:11px;padding:3px 5px}
 #honors-dialog .honor-stats:before{font-size:20px}
 #honors-dialog .honor-stats span{max-width:none}
 #honors-dialog .community-intro{font-size:11px;margin-bottom:5px;letter-spacing:0}
 #honors-dialog .honors-table-heading,#honors-dialog .honor-rank-row{grid-template-columns:32px minmax(0,1fr) 46px 57px;gap:4px}
 #honors-dialog .honors-table-heading{font-size:10px;padding:6px 4px}
 #honors-dialog .honor-rank-row{padding:10px 4px!important;min-height:55px}
 #honors-dialog .honor-position{width:24px;height:24px;font-size:16px;border-width:2px}
 #honors-dialog .honor-player{font-size:12px;gap:4px}
 #honors-dialog .honor-player:before{flex-basis:23px;width:23px;height:23px;font-size:16px;border-width:2px}
 #honors-dialog .honor-score{font-size:13px}
 #honors-dialog .honor-rank-row small{font-size:10px;padding:5px 1px}
}
/* Transparent cutout variant supplied by the user; artwork keeps its natural proportions. */
#honors-dialog{width:min(1000px,96vw,calc(94dvh * 1198 / 1313));height:auto;aspect-ratio:1198/1313;background:transparent url('/honors-cutout.png') center/100% auto no-repeat;border:0;border-radius:0;box-shadow:none;filter:drop-shadow(0 12px 22px #182b504d)}
#honors-dialog .honors-content{top:45.5%;bottom:23.5%;left:9%;right:15%;padding:0 3px 5px}
#honors-dialog .close{top:35.5%;right:8.2%;width:31px;height:31px;min-height:31px;font-size:22px}
#honors-dialog .honors-toolbar{gap:9px}
#honors-dialog .honor-stats{flex:0 0 auto}
#honors-dialog .honor-position:after{content:'❧';position:absolute;inset:-7px -12px;color:#bea46f;font-size:46px;line-height:46px;opacity:.65;z-index:-1}
@media(max-width:600px){
 #honors-dialog{width:96vw;height:94dvh;aspect-ratio:auto;background:none;border-radius:0;box-shadow:none}
 #honors-dialog:before{border-image-source:url('/honors-cutout.png');border-image-slice:590 90 310 90 fill;border-image-width:47.2788vw 7.212vw 24.8414vw 7.212vw}
 #honors-dialog .honors-content{top:47.2788vw;bottom:24.8414vw;left:9%;right:15%;padding:0 1px 4px}
 #honors-dialog .close{top:37vw;right:6%;width:27px;height:27px;min-height:27px;font-size:19px}
 #honors-dialog .honors-toolbar{gap:5px}
 #honors-dialog .honor-player:before{display:none}
 #honors-dialog #honor-search label{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
 #honors-dialog .community-tabs button{padding:4px 2px;font-size:11px}
 #honors-dialog .community-tabs button:before{content:none}
 #honors-dialog #honor-tab-rank:before{content:none}
 #honors-dialog .honor-stats{font-size:10px;gap:4px}
}
@media(min-width:601px){#honors-dialog .honors-content{bottom:22.4%}#honors-dialog .honor-rank-row{min-height:54px;padding:7px 10px!important}}
/* Fixed controls, independently scrolling data, and a pointer-transparent ornamental foreground. */
#honors-dialog{isolation:isolate}
#honors-dialog .honors-content{z-index:1;bottom:14%;display:flex;flex-direction:column;overflow:hidden;padding-bottom:0}
#honors-dialog .honors-content>.community-intro,#honors-dialog .honors-toolbar,#honors-dialog #honor-status{flex:none}
#honors-dialog #honor-rank-panel,#honors-dialog #honor-upload-panel,#honors-dialog #honor-history-panel{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b49f7d transparent;scrollbar-gutter:stable;padding:3px 3px 110px;scroll-padding-bottom:110px}
#honors-dialog #honor-rank-panel:focus-visible{outline:1px solid #a2afc5;outline-offset:-2px}
#honors-dialog .honor-load-status{font:12px/1.6 sans-serif;text-align:center;color:#7181a0;padding:8px}
#honors-dialog .honor-load-status:empty{display:none}
#honors-dialog .honors-foreground{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;max-width:none;z-index:3;pointer-events:none;user-select:none;mask:url('/honors-bottom-mask.png') center/100% 100% no-repeat;-webkit-mask:url('/honors-bottom-mask.png') center/100% 100% no-repeat}
@media(max-width:600px){#honors-dialog .honors-content{bottom:14vw}#honors-dialog #honor-rank-panel,#honors-dialog #honor-upload-panel,#honors-dialog #honor-history-panel{padding-bottom:22vw;scroll-padding-bottom:22vw}#honors-dialog .honors-foreground{inset:auto 0 0;width:100%;height:auto;aspect-ratio:1198/1313}}
/* Fit controls to the artwork width, including short desktop windows. */
#honors-dialog .honors-content{container-type:inline-size}
@container(max-width:560px){
 #honors-dialog .community-tabs button{min-width:0;padding:5px 3px;font-size:11px}
 #honors-dialog .community-tabs button:before,#honors-dialog #honor-tab-rank:before{content:none}
 #honors-dialog .honor-stats{font-size:10px;gap:4px;padding:4px}
 #honors-dialog .honor-stats:before{font-size:20px}
 #honors-dialog .honor-stats span+span{padding-left:4px}
}
/* Independent artwork slices keep a large, scrollable paper area. */
#honors-dialog{
 --honors-art-width:min(560px,94vw,54dvh);
 --honors-header:calc(var(--honors-art-width) * 450 / 1198);
 --honors-footer-width:min(300px,30vw,28dvh);
 --honors-footer:calc(var(--honors-footer-width) * 203 / 430 - 7px);
 --honors-props-height:calc(var(--honors-footer-width) * 262 / 430);
 width:min(1200px,97vw);max-width:97vw;height:98dvh;max-height:98dvh;
 aspect-ratio:auto;padding:0;background:none;
}
#honors-dialog:before{
 content:'';position:absolute;inset:auto;top:0;left:50%;transform:translateX(-50%);
 width:var(--honors-art-width);height:var(--honors-header);
 border:0;border-image:none;background:url('/honors-cutout.png') center top/100% auto no-repeat;
 pointer-events:none;z-index:2;
}
#honors-dialog .honors-content{
 top:var(--honors-header);bottom:var(--honors-footer);left:1%;right:1%;
 padding:0 90px calc(var(--honors-props-height) + 8px) 90px;border:0;border-radius:0;
 background:none;box-shadow:none;
 border-image:none;
}
#honors-dialog .honors-content:before{
 content:'';position:absolute;inset:0;width:auto;height:auto;border:0;background:none;
 border-image-source:url('/honors-frame-v2.webp');border-image-slice:240 270 230 270;
 border-image-width:70px 90px 65px 90px;border-image-repeat:stretch;
 pointer-events:none;z-index:-1;
}
#honors-dialog .honors-content:after{
 content:'';position:absolute;inset:20px 34px 26px;
 background:#fdfcf8 url('/honors-paper-v2.webp') center/540px auto repeat;
 pointer-events:none;z-index:-2;
}
#honors-dialog .close{
 position:absolute;inset:auto;top:calc(var(--honors-header) + 12px);right:calc(1% + 12px);z-index:5;
 width:36px;height:36px;min-height:36px;font-size:24px;
}
#honors-dialog .honors-heading{
 position:relative;flex:none;width:100%;height:calc(var(--honors-art-width) * 140 / 1198);
 min-height:0;margin:0 0 12px;padding:0;
 background:url('/honors-cutout.png') center calc(var(--honors-art-width) * -450 / 1198)/var(--honors-art-width) auto no-repeat;
}
#honors-dialog .honors-title-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#honors-dialog .honors-toolbar{gap:12px;margin-bottom:12px}
#honors-dialog .community-tabs button{min-height:42px;font-size:15px}
#honors-dialog .honor-stats{font-size:13px}
#honors-dialog .honor-stats span{max-width:none}
#honors-dialog #honor-rank-panel,#honors-dialog #honor-upload-panel,#honors-dialog #honor-history-panel{
 padding:3px 6px 32px;scroll-padding-bottom:32px;
}
#honors-dialog .honors-footer{
 position:absolute;inset:auto 1% 0;height:calc(var(--honors-footer-width) * 328 / 430);
 pointer-events:none;user-select:none;z-index:3;
}
#honors-dialog .honors-footer:before{
 content:none;
}
#honors-dialog .honors-footer>span{
 position:absolute;bottom:0;width:var(--honors-footer-width);height:100%;
 background-repeat:no-repeat;background-size:contain;
}
#honors-dialog .honors-footer-left{left:0;background-image:url('/honors-props-left-v2.png');background-position:left bottom}
#honors-dialog .honors-footer-right{right:0;background-image:url('/honors-props-right-v2.png');background-position:right bottom}
#honors-dialog .honors-footer>.honors-footer-left,#honors-dialog .honors-footer>.honors-footer-right{
 bottom:calc(var(--honors-footer) - 12px);height:var(--honors-props-height);
}
#honors-dialog .honors-footer>.honors-footer-middle{
 left:50%;transform:translateX(-50%);height:calc(var(--honors-footer-width) * 108 / 318);
 bottom:calc(var(--honors-footer-width) * 125 / 430 + 35px);
 background-image:url('/honors-props-middle-v2.png');background-position:center bottom;clip-path:none;
}
@media(max-width:850px){
 #honors-dialog .honors-toolbar{flex-direction:column}
 #honors-dialog .honor-stats{justify-content:center}
}
@media(max-width:600px){
 #honors-dialog{--honors-art-width:min(94vw,46dvh);--honors-footer-width:min(34vw,20dvh)}
 #honors-dialog .honors-content{left:0;right:0;padding:0 30px calc(var(--honors-props-height) + 8px) 30px}
 #honors-dialog .honors-content:before{border-image-width:30px 35px 30px 35px}
 #honors-dialog .honors-content:after{inset:9px 13px 12px;background-size:360px auto}
 #honors-dialog .close{top:calc(var(--honors-header) + 6px);right:6px;width:30px;height:30px;min-height:30px;font-size:22px}
 #honors-dialog .honors-heading{margin-bottom:8px;background-position:center calc(var(--honors-art-width) * -450 / 1198)}
 #honors-dialog .honors-toolbar{gap:6px;margin-bottom:8px}
 #honors-dialog .community-tabs button{min-height:38px;font-size:12px}
 #honors-dialog .honor-stats{font-size:11px}
 #honors-dialog .honors-footer>.honors-footer-left,#honors-dialog .honors-footer>.honors-footer-right{bottom:calc(var(--honors-footer) - 8px)}
 #honors-dialog .honors-footer>.honors-footer-middle{bottom:calc(var(--honors-footer-width) * 125 / 430 + 18px)}
 #honors-dialog #honor-rank-panel,#honors-dialog #honor-upload-panel,#honors-dialog #honor-history-panel{padding:3px 2px 24px;scroll-padding-bottom:24px}
}
