/* PVPGRAM V22 — isolated additions. Preserves existing theme and responsive layout. */
.sidebar-server.v22-featured-aside{
  display:block; padding:10px 10px; min-height:60px;
  background:linear-gradient(130deg,#fff,#faf6ff);
  border:1px solid #e8dcf5; border-radius:9px; margin:0 0 7px;
  box-shadow:0 1px 2px #4317720d;
}
.sidebar-server.v22-featured-aside:hover{background:#fff8e3;border-color:#dabafa}
.sidebar-server.v22-featured-aside>span{display:block;min-width:0}
.sidebar-server.v22-featured-aside strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.4;margin:0 0 7px}
.sidebar-server.v22-featured-aside small{display:flex;align-items:center;gap:7px;line-height:1.4}
/* Detailed rules, modern local inline pictograms. */
.v22-rules-small{display:grid;gap:4px;margin:2px 0 13px}
.v22-rule-row{display:grid;grid-template-columns:34px minmax(0,1fr) 22px;align-items:center;gap:9px;padding:8px 7px;border-bottom:1px solid #eae0f4;font-size:12px;color:#4b3960;line-height:1.45}
.v22-rule-icon,.v22-rule-card-icon,.v22-contact-icon{display:inline-flex;align-items:center;justify-content:center;border-radius:10px;background:linear-gradient(145deg,#f0e5ff,#e4d3fa);border:1px solid #d8bdf3;color:#7432aa}
.v22-rule-icon{width:32px;height:32px}
.v22-rule-tick{display:inline-flex;align-items:center;justify-content:center;color:#279b65}
.v22-rule-tick svg{width:18px;height:18px}
.v22-rules-intro{display:flex;gap:17px;align-items:flex-start;max-width:940px;margin:5px auto 22px;padding:20px 22px;border-radius:13px;background:linear-gradient(125deg,#58218a,#7831ae);color:white;box-shadow:0 8px 24px #51257624}
.v22-rules-intro>svg{width:38px;height:38px;flex:none;color:#ffcf55}
.v22-rules-intro h2,.v22-rules-intro p{margin:0}
.v22-rules-intro h2{font-size:21px;margin-bottom:8px;color:white}
.v22-rules-intro p{color:#f5eafa;font-size:13px;line-height:1.65}
.v22-rule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;max-width:1000px;margin:0 auto}
.v22-rule-card{display:flex;align-items:flex-start;gap:12px;position:relative;border:1px solid #e2d4f1;background:white;border-radius:12px;padding:16px;box-shadow:0 3px 12px #30104b0b;min-width:0}
.v22-rule-card-icon{width:43px;height:43px;flex:0 0 43px}
.v22-rule-card-icon svg{width:22px;height:22px}
.v22-rule-card>div{min-width:0}
.v22-rule-card h3{margin:2px 0 7px;font-size:14px;color:#512078}
.v22-rule-card p{margin:0;color:#5b516a;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.v22-rule-number{position:absolute;right:13px;top:11px;font-size:11px;color:#b597cd;font-weight:850}
.v22-rules-outro{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#f2ebff;padding:19px;border:1px solid #d6bfeb;border-radius:12px;max-width:1000px;margin:20px auto 0}
.v22-rules-outro h2{margin:0 0 4px;color:#491b73;font-size:18px}
.v22-rules-outro p{margin:0;color:#6e5d80;font-size:12px}
.v22-rules-outro .btn{flex:none}
.v22-contact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-width:1100px;margin:0 auto 15px}
.v22-contact-card{background:#fff;border:1px solid #e0d0f0;border-radius:14px;padding:22px;box-shadow:0 4px 14px #4415770a;min-width:0}
.v22-contact-icon{width:52px;height:52px;margin-bottom:13px}
.v22-contact-icon svg{width:27px;height:27px}
.v22-contact-card h2{margin:0 0 9px;font-size:17px;color:#56218e}
.v22-contact-card p{margin:0 0 16px;color:#655672;font-size:12px;line-height:1.75;min-height:72px}
.v22-contact-note{background:#eee7fc;border:1px solid #e0cdf4;border-radius:10px;padding:13px;max-width:1100px;margin:0 auto;color:#5f4381;overflow-wrap:anywhere}
.v22-contact-note span{font-size:12px;display:block;margin-top:6px}
/* Support tickets */
.v22-support-unavailable{max-width:900px;margin:18px auto;border:1px solid #e1d0f2;background:#f6f0fe;padding:24px;border-radius:14px;display:flex;gap:9px;align-items:center;flex-wrap:wrap;color:#5b268a}
.v22-support-unavailable strong{font-size:15px}.v22-support-unavailable p{width:100%;margin:0;font-size:12px}
.v22-support-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);align-items:start;gap:18px}
.v22-support-intro{color:#6d597b;font-size:12px;line-height:1.65}
.v22-ticket-form{display:grid;gap:13px}
.v22-ticket-form label{display:grid;gap:6px;font-weight:700;font-size:12px;color:#512275}
.v22-ticket-form input,.v22-ticket-form textarea,.v22-ticket-form select{display:block;width:100%;min-width:0;padding:11px;border:1px solid #d6c3ed;border-radius:9px;outline-offset:2px;background:#fff;color:#312043;line-height:1.5}
.v22-ticket-form textarea{resize:vertical;min-height:125px}
.v22-ticket-form small{color:#716080;font-size:11px}
.v22-ticket-form button{justify-self:start}
.v22-ticket-list{display:grid;gap:9px}
.v22-ticket-list a{display:grid;gap:6px;padding:13px;border-radius:10px;border:1px solid #e2d6ed;background:#faf8ff}
.v22-ticket-list a:hover{border-color:#b686dc;background:#f3eaff}
.v22-ticket-list strong{font-size:12px;color:#4c217a;overflow-wrap:anywhere}
.v22-ticket-list small{font-size:11px;color:#6f647d}
.v22-state{display:inline-block;justify-self:start;width:max-content;border-radius:30px;padding:4px 9px;background:#e9e4f9;color:#4d327b;font-size:11px;font-weight:750}
.v22-state.state-open{background:#fff1d2;color:#965e09}
.v22-state.state-answered{background:#dcf8e9;color:#16794b}
.v22-state.state-closed{background:#e9e7ef;color:#666076}
.v22-ticket-head{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff;border:1px solid #e3d5f1;border-radius:12px;padding:19px;margin-bottom:17px}
.v22-ticket-head>div{min-width:0}
.v22-ticket-head h2{font-size:20px;margin:6px 0 8px;color:#51207a;overflow-wrap:anywhere}
.v22-ticket-head small{color:#7b608e}
.v22-thread{display:grid;gap:11px;margin-bottom:19px}
.v22-message{background:white;border:1px solid #e7d9f1;border-radius:12px;overflow:hidden;max-width:85%;min-width:0}
.v22-message-staff{justify-self:end;border-color:#cdaaf0;background:#faf6ff}
.v22-message-by{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:11px 14px;background:#f4effa;border-bottom:1px solid #e7d9f1}
.v22-message-staff .v22-message-by{background:#ecdefb}
.v22-message-by b{font-size:12px;color:#592480}
.v22-message-by span{font-size:10px;color:#7849a7}
.v22-message-by time{font-size:10px;color:#695a75;margin-left:auto}
.v22-message-body{padding:14px;font-size:13px;line-height:1.7;color:#40334d;overflow-wrap:anywhere;white-space:normal}
.v22-ticket-close{text-align:right;margin-top:12px}
/* Popup: image and panel share exact 16:9 aspect ratio, scales down without cropping. */
.v22-popup[hidden]{display:none!important}
.v22-popup{position:fixed;inset:0;z-index:5000;display:flex;align-items:center;justify-content:center;padding:20px}
.v22-popup-backdrop{position:absolute;inset:0;background:#140b1aaf;backdrop-filter:blur(3px)}
.v22-popup-dialog{position:relative;width:min(860px,calc(100vw - 36px));min-width:0;background:#fff;border:1px solid #ded2e9;border-radius:13px;overflow:hidden;box-shadow:0 26px 70px #07030ea8;max-height:calc(100dvh - 30px);display:flex;flex-direction:column}
.v22-popup-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:9px 13px;min-height:43px;color:#792ca6;font-weight:750;font-size:13px}
.v22-popup-toolbar button{width:31px;height:31px;line-height:1;border:0;border-radius:8px;background:#f4eff9;color:#8c4bb1;font-size:22px}
.v22-popup-toolbar button:hover,.v22-popup-toolbar button:focus-visible{background:#ead8fb;color:#4b167d}
.v22-popup-dialog>a{display:flex;align-items:center;justify-content:center;min-height:0;background:#211628;overflow:hidden}
.v22-popup-dialog>a img{display:block;width:100%;max-width:800px;max-height:calc(100dvh - 125px);height:auto;aspect-ratio:16/9;object-fit:contain;margin:0 auto}
.v22-popup-foot{padding:8px 13px;font-size:11px;color:#705f7b}
body.v22-popup-active{overflow:hidden}
@media(max-width:900px){.v22-contact-grid{grid-template-columns:1fr 1fr}.v22-support-layout{grid-template-columns:1fr}}
@media(max-width:650px){.v22-rule-grid,.v22-contact-grid{grid-template-columns:1fr}.v22-rules-intro,.v22-rules-outro,.v22-ticket-head{flex-direction:column;align-items:flex-start}.v22-message{max-width:96%}}
@media(max-width:420px){.v22-popup{padding:10px}.v22-popup-dialog{width:calc(100vw - 20px)}.v22-popup-toolbar{padding:7px 10px}.v22-rule-card{padding:14px 11px}.v22-rule-card-icon{width:34px;height:34px;flex-basis:34px}}
@media(prefers-reduced-motion:reduce){.v22-popup-backdrop{backdrop-filter:none}}

.v22-popup-guide{display:grid;grid-template-columns:150px minmax(0,1fr);gap:15px;align-items:center;border:1px solid #d5b9f3;border-radius:12px;padding:13px;margin-top:12px;background:linear-gradient(130deg,#fbf6ff,#fff7e1)}
.v22-popup-guide-symbol{border-radius:8px;background:#4b1978;color:#ffdb7a;aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;gap:3px;flex-direction:column;font-size:18px;font-weight:850;border:4px solid #d5baec}
.v22-popup-guide-symbol small{font-size:10px;color:#f5e5ff}
.v22-popup-guide b{font-size:13px;color:#51207a}
.v22-popup-guide p{font-size:11px;line-height:1.6;color:#62536e;margin:6px 0 10px}
.v22-popup-select{background:white;border:1px solid #b690df;color:#5a2488;font-weight:800;border-radius:7px;padding:8px 11px;font:inherit;font-size:11px;cursor:pointer}
.v22-popup-select:hover{background:#5f238b;color:white}
.v22-map-popup{display:block;text-align:center;border:1px dashed #b79ed0;border-radius:7px;padding:8px;background:#fff8e4;color:#69368e;font-size:11px;font-weight:800}
@media(max-width:520px){.v22-popup-guide{grid-template-columns:1fr}.v22-popup-guide-symbol{max-width:230px;width:100%}}
