/* Point Blank community styles: brown/gold gameframe details from current shared theme. */
.pb-world-map{border:4px double #b38a50;background:#281c12;box-shadow:inset 0 0 0 2px #5a3c23;min-width:0}
.pb-map-toolbar{display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding:8px;background:linear-gradient(#67482b,#332316);border-bottom:2px ridge #947047}
.pb-map-toolbar button,.pb-forum-action{padding:7px 12px;border:2px ridge #8b5a29;background:linear-gradient(#ffdf92,#d29b3e);font-weight:bold;color:#35200e;cursor:pointer}
.pb-map-toolbar button:hover,.pb-forum-action:hover{filter:brightness(1.09)}
.pb-map-toolbar output{margin-left:auto;color:#f7d994;font:bold 12px Georgia,serif}
.pb-map-viewport{height:clamp(360px,65vh,730px);position:relative;overflow:hidden;cursor:grab;touch-action:none;background:#17120e;outline-offset:-3px}
.pb-map-viewport.dragging{cursor:grabbing}
.pb-map-viewport img{position:absolute;left:0;top:0;width:2048px;height:1836px;max-width:none;max-height:none;transform-origin:top left;pointer-events:none;image-rendering:auto;user-select:none}
.pb-community-cover{height:190px;background:linear-gradient(115deg,#6b4c2a,#24180e);border:3px ridge #96703a;overflow:hidden;position:relative}
.pb-community-cover img{height:100%;width:100%;object-fit:cover}
.pb-profile-identity{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:15px 0 14px}
.pb-profile-avatar,.pb-post-avatar{object-fit:cover;border:3px ridge #aa8044;background:#392514;aspect-ratio:1;flex-shrink:0}
.pb-profile-avatar{width:96px;height:96px}.pb-post-avatar{width:72px;height:72px}
.pb-profile-identity h2{font:small-caps bold 27px Georgia,serif;color:#f2cf81;margin:0}
.pb-profile-meta{color:#d3b888;font-size:12px;line-height:1.8}
.pb-rank-display{display:inline-flex;align-items:center;gap:7px;padding:4px 8px;border:2px ridge #816138;background:linear-gradient(#604626,#302217);color:#f5d695;font:bold 12px Georgia,serif}
.pb-rank-display img{width:32px;height:32px;object-fit:contain;image-rendering:pixelated}
.pb-mode-badge{display:inline-flex;align-items:center;gap:4px;font:11px Arial;color:#dfc38f}
.pb-mode-badge img{height:23px;width:20px;object-fit:contain;image-rendering:pixelated}
.pb-profile-badges{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin:9px 0}
.pb-profile-about,.pb-forum-signature{white-space:pre-wrap;overflow-wrap:anywhere;background:#281b11;border:1px solid #79572e;color:#ddc9a3;padding:12px;line-height:1.6}
.pb-profile-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.pb-profile-fields .wide{grid-column:1/-1}
.pb-profile-fields input[type=file]{padding:7px;background:#21160f;border:1px solid #79552c;color:#e7cca0;width:100%;min-width:0}
.pb-forum-section-title{font:bold small-caps 22px Georgia,serif;color:#f5d18b;padding:10px;margin:16px 0 5px;background:linear-gradient(#624225,#39271a);border:2px ridge #936b35}
.pb-forum-board{display:grid;grid-template-columns:45px minmax(0,1fr) 86px minmax(140px,210px);gap:10px;align-items:center;text-decoration:none;border:1px solid #806039;background:linear-gradient(#493421,#2c2015);padding:11px;color:#e6c99b!important}
.pb-forum-board+.pb-forum-board{border-top:0}
.pb-forum-board:hover,.pb-forum-board:focus-visible{background:linear-gradient(#704e2c,#382517)}
.pb-forum-board img,.pb-thread-status img{width:32px;height:32px;object-fit:contain;image-rendering:pixelated}
.pb-forum-board strong{display:block;color:#f6d28b;font:bold 16px Georgia,serif}
.pb-forum-board small{display:block;color:#cbb38b;margin-top:5px;font-size:11px;overflow-wrap:anywhere}
.pb-forum-board .pb-forum-counts{text-align:center;color:#ead09d;line-height:1.8;font-size:12px}
.pb-forum-board .pb-forum-last{overflow-wrap:anywhere;color:#c4ac87;font-size:11px}
.pb-thread-status{display:flex;align-items:center;gap:8px;min-width:0}
.pb-topic-unread-label{font:700 10px Arial;color:#fee29f;margin-left:6px}
.pb-forum-thread-posts{display:grid;gap:10px;margin:12px 0}
.pb-forum-thread-posts .forum-post{margin:0;grid-template-columns:165px minmax(0,1fr)}
.pb-forum-thread-posts .forum-post aside{min-width:0;word-break:break-word}
.pb-forum-thread-posts .forum-post aside small{display:block}
.pb-forum-thread-posts .forum-post .pb-rank-display img{width:27px;height:27px}
.pb-forum-thread-posts .forum-post .pb-rank-display{font-size:11px;padding:3px}
.pb-forum-signature{border-width:1px 0 0;background:transparent;margin-top:15px;padding:10px 0 0;font-size:11px}
.pb-forum-pages{display:flex;align-items:center;gap:8px;justify-content:flex-end;margin:10px 0}
.pb-forum-pages a{background:#4b331c;border:1px solid #98703b;color:#f3d288!important;padding:6px 11px;text-decoration:none}
.pb-forum-pages strong{font-size:11px;color:#debf89}
@media(max-width:770px){.pb-forum-board{grid-template-columns:38px minmax(0,1fr) 65px}.pb-forum-last{display:none}.pb-profile-fields{grid-template-columns:1fr}.pb-forum-thread-posts .forum-post{grid-template-columns:122px minmax(0,1fr)}}
@media(max-width:460px){.pb-forum-board{grid-template-columns:36px minmax(0,1fr) 48px;padding:8px;gap:6px}.pb-forum-board strong{font-size:14px}.pb-forum-thread-posts .forum-post{display:block}.pb-forum-thread-posts .forum-post aside{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.pb-forum-thread-posts .forum-post aside .pb-post-avatar{width:44px;height:44px}.pb-map-toolbar button{padding:7px 8px;font-size:11px}.pb-profile-avatar{width:70px;height:70px}}

/* Point Blank Games Hall and Members — native components styled to match the shared shell. */
.pb-games-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:9px 0 12px}
.pb-game-tile{min-width:0;min-height:93px;background:linear-gradient(#72532c,#372b1d);border:2px ridge #a7834d;color:#f3dbac;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:4px;padding:8px 4px;cursor:pointer;font-family:Georgia,serif}
.pb-game-tile img{width:32px;height:32px;object-fit:contain;image-rendering:pixelated}
.pb-game-tile strong{font-size:14px}.pb-game-tile span{font:11px Arial,sans-serif;color:#d6b988}
.pb-game-tile:hover,.pb-game-tile:focus-visible{filter:brightness(1.18)}
.pb-game-tile.active{background:linear-gradient(#b68b4d,#67411e);border-color:#eec47b;color:#fff5d5}
.pb-games-arena{background:linear-gradient(#3f3020,#2b2117);border:3px ridge #9e7947;padding:12px;color:#f0dcb9;min-height:260px}
.pb-games-arena h2{color:#f1cb82;margin:0 0 7px;font:small-caps bold 23px Georgia,serif}
.pb-games-arena>p{margin:5px 0 12px}
.pb-game-items{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:13px 0}
.pb-game-items button{cursor:pointer;display:flex;min-width:69px;min-height:74px;flex-direction:column;align-items:center;justify-content:center;gap:7px;background:linear-gradient(#77603c,#3e3020);border:2px ridge #a98d57;color:#ffe3ae;padding:8px 5px;font:12px Arial,sans-serif}
.pb-game-items button img{width:32px;height:32px;object-fit:contain;image-rendering:pixelated}
.pb-game-items button.picked,.pb-game-items button:hover:not(:disabled){background:linear-gradient(#9b7b3d,#60421f);border-color:#f1c475}
.pb-game-items button:disabled{cursor:default}.pb-game-result{background:#221b14;border:1px solid #85643e;min-height:35px;display:flex;align-items:center;justify-content:center;text-align:center;padding:7px;color:#f6d388}
.pb-game-score{font-weight:bold;text-align:center}.pb-game-catch{display:flex;gap:7px;min-height:45px;justify-content:center;margin:10px 0}
.pb-game-catch img{width:32px;height:32px;object-fit:contain;image-rendering:pixelated}
.pb-gem-stone{display:flex;align-items:center;justify-content:center;font-size:26px;height:33px}
.pb-member-directory{display:grid;gap:5px;margin:12px 0}
.pb-directory-user{display:flex;align-items:center;gap:12px;padding:7px 9px;min-width:0;background:linear-gradient(#584128,#33281d);border:1px solid #997444;text-decoration:none!important;color:#ecd0a0!important}
.pb-directory-user:hover,.pb-directory-user:focus-visible{background:#76522e}
.pb-directory-user>span:nth-child(2){flex:1;min-width:0}
.pb-directory-user strong{font-size:14px;display:block}.pb-directory-user small{color:#bda67f;display:block;margin-top:3px}
.pb-directory-avatar{width:42px;height:42px;flex:0 0 42px;object-fit:cover;border:2px ridge #c79c57}
.pb-directory-initial{display:grid;place-items:center;background:#493821;color:#f4d08d;font:22px Georgia,serif}
.pb-directory-rank{height:34px;max-width:82px;object-fit:contain;image-rendering:pixelated}
.member-search{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.member-search label{flex:1;min-width:150px}.member-search input{width:100%;display:block;margin-top:5px}
.pb-directory-pages{display:flex;justify-content:center;gap:20px;align-items:center;margin-top:10px}
@media(max-width:540px){.pb-games-list{gap:3px}.pb-game-tile{padding:6px 2px}.pb-game-tile strong{font-size:11px}.pb-game-tile span{font-size:10px}.pb-game-items button{min-width:61px}.pb-directory-rank{max-width:52px}}

/* Profile cover repositioning and forum BBCode */
.pb-forum-inline-image{max-width:100%;height:auto;border-radius:5px;vertical-align:middle}
.pb-forum-posts a,.pb-forum-signature a,.pb-profile-about a{color:#d7b36b}
.pb-community-cover[data-cover-drag="yes"]{user-select:none}
.pb-community-cover[data-cover-drag="yes"] img{pointer-events:none}

.pb-reaction-row{display:flex;gap:7px;align-items:center;margin-top:10px;flex-wrap:wrap;font-size:12px}.pb-reaction-row form{display:inline}.pb-reaction-row button{cursor:pointer;background:#402b17;color:#e1c68e;border:1px solid #866239;padding:3px 9px}.pb-reaction-row button:disabled{opacity:.55;cursor:default}

/* v1.0.7 - render original Old07 full-length rank bars, not isolated helmet + text boxes. */
.pb-rank-stack {display:flex;flex-direction:column;gap:3px;width:154px;min-width:154px;max-width:100%;vertical-align:middle;flex-shrink:0}
.pb-rank-badge {display:block;position:relative;width:154px;height:30px;max-width:100%;isolation:isolate;overflow:hidden}
.pb-rank-bar-art {position:absolute;inset:0;width:154px;height:30px;object-fit:fill;z-index:1;filter:drop-shadow(0 1px 1px #000a)}
.pb-rank-bar-label {position:absolute;z-index:3;left:31px;right:8px;top:50%;transform:translateY(-50%);text-align:center;color:#f4f0df!important;text-shadow:0 1px #000,0 1px 2px #000c;font:700 10px/1 Arial,Helvetica,sans-serif;letter-spacing:.42px;text-transform:uppercase;white-space:nowrap}
.pb-rank-bar-item {position:absolute;z-index:4;left:2px;top:0;width:28px;height:28px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 1px 1px #000)}
.pb-rank-badge.staff .pb-rank-bar-item {left:7px;top:-1px;width:29px;height:29px}
.pb-rank-badge.staff .pb-rank-bar-label {left:34px}
.pb-rank-badge.post .pb-rank-bar-item {top:-1px;width:29px;height:29px}
.pb-profile-badges{align-items:flex-start;gap:9px}
.pb-forum-thread-posts .forum-post aside .pb-rank-stack {margin:7px auto 4px}
.pb-directory-user .pb-rank-stack {margin-left:auto}
@media(max-width:560px){.pb-directory-user {flex-wrap:wrap}.pb-directory-user .pb-rank-stack{margin-left:54px}}

/* Allow 154px-wide rank artwork to fit the forum author column at tablet widths. */
@media (min-width:461px) and (max-width:770px){.pb-forum-thread-posts .forum-post{grid-template-columns:175px minmax(0,1fr)}}

/* v1.0.9: Original 20 x 13 council crown pixels atop existing full Old07 staff rank bars. */
.pb-rank-badge.staff .pb-rank-bar-item[src*="staff-administrator-council.png"],
.pb-rank-badge.staff .pb-rank-bar-item[src*="staff-moderator-council.png"]{
 left:10px;top:9px;width:20px;height:13px;object-fit:contain;image-rendering:pixelated;
}

/* v1.1.7: forum editor, previews, quote controls and metadata */
.pb-forum-preview{margin:8px 0 12px;padding:13px;min-height:55px;overflow-wrap:anywhere;border:1px solid #9a7546;background:#281e14;color:#ead6b2;line-height:1.55}
.pb-forum-preview[hidden]{display:none}
.pb-forum-preview img{max-width:100%;height:auto}
.pb-forum-quote{margin:8px 0 12px;padding:8px 12px;border-left:3px solid #c39a53;background:#352618;color:#e4ca97;overflow-wrap:anywhere}
.pb-forum-quote cite{display:block;font-style:normal;font-size:11px;color:#f4d18f;margin-bottom:7px}
.pb-post-controls{display:flex;gap:10px;align-items:center;margin-top:10px;flex-wrap:wrap}
.pb-post-controls button,.pb-edit-post summary{border:1px solid #956f3b;border-radius:4px;color:#f5d493;background:#49321f;padding:5px 9px;cursor:pointer;font:12px Georgia,serif}
.pb-post-controls button:hover,.pb-edit-post summary:hover{background:#684725}
.pb-edit-post{width:100%;min-width:0}.pb-edit-post summary{display:inline-block}
.pb-edit-form{margin:8px 0 12px;min-width:0}
.pb-forum-edited{display:block;margin-top:8px;color:#ae9573;font-size:10px}
.pb-editor-toolbar{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.pb-editor-toolbar button{min-height:28px;white-space:nowrap}
.pb-forum-preview,.forum-post-body,.pb-forum-quote{overflow-wrap:anywhere}
@media(max-width:460px){.pb-post-controls{gap:6px}.pb-editor-toolbar button{font-size:11px;padding:5px}}

/* v1.1.14: original rank sprites at their native pixel dimensions. */
.pb-rank-badge.game-mode .pb-rank-bar-item[src*="normie-shield.png"]{left:-1px;top:-3px;width:35px;height:35px}
.pb-profile-comment-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.pb-profile-comment-list .pb-profile-about{min-width:0;overflow-wrap:anywhere}
.pb-profile-comment-text{margin-top:6px;white-space:pre-wrap;overflow-wrap:anywhere}
.pb-comment-delete-form{margin:0}
.pb-comment-delete-form .member-btn{padding:3px 7px;font-size:11px;min-width:0}
