
/* MYTYLKOGRAMY — REFERENCE V27 | MyBB 1.8.x
   Cel: maksymalnie wierne odwzorowanie zaakceptowanego czerwono-zielonego layoutu. */
:root{
 --mtg-bg:#040605;--mtg-center:#050807;--mtg-panel:#0a0d0b;--mtg-panel2:#0e120f;
 --mtg-panel3:#101612;--mtg-line:#1d2821;--mtg-line2:#26352b;
 --mtg-red:#ff1739;--mtg-red2:#b90725;--mtg-green:#16d864;--mtg-green2:#0b973f;
 --mtg-text:#f5f6f5;--mtg-text2:#c7cec9;--mtg-muted:#758078;--mtg-muted2:#59635c;
 --mtg-radius:8px;--mtg-shadow:0 20px 60px rgba(0,0,0,.42);
}
*{box-sizing:border-box}
html{background:#000!important}
body{
 margin:0!important;background:#000!important;color:var(--mtg-text)!important;
 font-family:Inter,"Segoe UI",Arial,sans-serif!important;font-size:12px!important;line-height:1.45!important;
 min-height:100vh;position:relative;
}
body:before,body:after{
 content:"";position:fixed;top:0;bottom:0;width:calc((100vw - min(1500px,72vw))/2);z-index:0;pointer-events:none;
 background-repeat:no-repeat;background-size:cover;background-position:center top;
}
body:before{left:0;background-image:linear-gradient(90deg,rgba(0,0,0,.05),rgba(0,0,0,.34)),url(../../../images/mtg-v27/side-left.webp)}
body:after{right:0;background-image:linear-gradient(270deg,rgba(0,0,0,.05),rgba(0,0,0,.36)),url(../../../images/mtg-v27/side-right.webp)}
a{color:#dbe2de;text-decoration:none}
a:hover{color:#fff}
#container.mtg-site-frame{
 width:min(1500px,72vw)!important;max-width:1500px!important;margin:0 auto!important;padding:0!important;
 position:relative;z-index:2;background:var(--mtg-center)!important;box-shadow:0 0 55px rgba(0,0,0,.82);
 min-height:100vh;border-left:1px solid rgba(255,255,255,.03);border-right:1px solid rgba(255,255,255,.03);
}
.wrapper{width:100%!important;max-width:none!important;margin:0!important;padding-left:18px!important;padding-right:18px!important}
#content{padding:0!important;background:transparent!important}
.mtg-content-wrap{padding-top:0!important}
.mtg-page-spacer{height:8px}
.navigation{margin:8px 0 12px!important;padding:10px 12px!important;border:1px solid var(--mtg-line)!important;border-radius:7px!important;background:#0a0f0c!important;color:#7f8a82!important}
.navigation a{font-size:10px!important}
.mtg-home .navigation,.mtg-home .mtg-page-spacer{display:none!important}

/* top bar + header */
.mtg-socialbar{height:30px;background:#030504;border-bottom:1px solid #111814;color:#758078;font-size:8px}
.mtg-socialbar .wrapper{height:100%;display:flex;align-items:center;justify-content:space-between}
.mtg-social-left,.mtg-social-right{display:flex;align-items:center;gap:12px}
.mtg-social-dot{width:6px;height:6px;border-radius:50%;background:var(--mtg-green);box-shadow:0 0 10px rgba(22,216,100,.7)}
.mtg-social-left a{color:#ff3855!important;font-weight:850}
.mtg-social-right a{color:#a7b0aa!important;font-weight:700}
.mtg-social-mini{padding:2px 4px;border:1px solid #1e2923;border-radius:4px}
.mtg-nav-shell{height:58px;background:rgba(4,7,5,.98);border-bottom:1px solid #152019;position:relative;z-index:20}
.mtg-nav{height:100%;display:flex;align-items:center;gap:15px}
.mtg-brand-link{display:flex;align-items:center;flex:0 0 190px}
.mtg-brand-link img{width:170px;height:auto;display:block}
.mtg-nav-links{display:flex;align-items:stretch;height:100%;gap:1px;flex:1}
.mtg-nav-link{display:flex;align-items:center;padding:0 10px;color:#abb4ae!important;font-size:10px!important;font-weight:900;text-transform:uppercase;position:relative}
.mtg-nav-link:hover{color:#fff!important}
.mtg-nav-link:first-child:after{content:"";position:absolute;bottom:0;left:8px;right:8px;height:2px;background:linear-gradient(90deg,var(--mtg-red),var(--mtg-green))}
.mtg-nav-spacer{display:none}
.mtg-search-pop,.mtg-account,.mtg-login-pop,.mtg-mobile-nav{position:relative}
.mtg-search-pop summary,.mtg-account summary,.mtg-login-pop summary,.mtg-mobile-nav summary{list-style:none;cursor:pointer}
.mtg-search-btn,.mtg-nav-iconlink{
 width:34px;height:34px;display:grid!important;place-items:center;border:1px solid #1d2a22;border-radius:6px;background:#0b110d;color:#a9b3ac!important;font-weight:900
}
.mtg-search-drop,.mtg-login-drop,.mtg-account-card,.mtg-mobile-menu{
 position:absolute;right:0;top:calc(100% + 8px);width:260px;padding:12px;background:#0b100d;border:1px solid #26342c;border-radius:8px;box-shadow:0 20px 50px rgba(0,0,0,.65);z-index:100
}
.mtg-search-drop input,.mtg-search-drop button{width:100%;margin-top:8px}
.mtg-user-actions{display:flex;align-items:center;gap:8px}
.mtg-login-pop>summary,.mtg-register{
 min-height:34px;padding:0 12px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:10px!important;font-weight:950;text-transform:uppercase
}
.mtg-login-pop>summary{border:1px solid #243129;background:#0b110d;color:#e2e7e4}
.mtg-register{background:var(--mtg-red);color:#fff!important;border:1px solid #ff3955}
.mtg-account>summary{min-height:34px;padding:0 10px;border:1px solid #25322a;border-radius:6px;background:#0b110d;font-size:9px;font-weight:850}
.mtg-account-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--mtg-green);margin-right:7px}
.mtg-account-card{width:215px}
.mtg-account-card a{display:block;padding:7px 8px;border-radius:5px;font-size:9px}
.mtg-account-card a:hover{background:#121a15}
.mtg-logout{color:#ff4c63!important}
.mtg-mobile-nav{display:none}

/* exact accepted hero */
.mtg-ref-hero{position:relative;width:100%;overflow:hidden;background:#060806}
.mtg-ref-hero img{display:block;width:100%;height:auto;aspect-ratio:1108/267;object-fit:cover}
.mtg-ref-hero:after{content:"";position:absolute;inset:0;box-shadow:inset 0 -20px 30px rgba(0,0,0,.22);pointer-events:none}
.mtg-ref-hero-hot{position:absolute;display:block;z-index:3}
.mtg-ref-hero-hot.join{left:2.9%;top:74%;width:14.2%;height:15%}
.mtg-ref-hero-hot.servers{left:18.2%;top:74%;width:13.7%;height:15%}
.mtg-ref-metrics{
 display:grid;grid-template-columns:repeat(4,1fr) 1.45fr;min-height:56px;border-top:1px solid #351016;border-bottom:1px solid #29201c;
 background:linear-gradient(90deg,#18090d,#0b0e0c 60%,#1e0c10);box-shadow:inset 0 1px rgba(255,255,255,.02)
}
.mtg-ref-metrics>div,.mtg-ref-metrics>a{display:flex;align-items:center;gap:10px;padding:0 14px;border-right:1px solid #342026;min-width:0}
.mtg-ref-metrics .ico{font-size:17px;font-weight:900;color:var(--mtg-red);line-height:1}
.mtg-ref-metrics .ico.green{color:var(--mtg-green)}
.mtg-ref-metrics strong{font-size:15px;line-height:1;color:#fff}
.mtg-ref-metrics small{font-size:6.5px;color:#8b938e;display:block;text-transform:uppercase}
.mtg-ref-discord{justify-content:space-between!important;background:linear-gradient(90deg,rgba(255,20,55,.16),rgba(255,20,55,.05));color:#fff!important}
.mtg-ref-discord>span{font-size:19px;color:var(--mtg-red)}
.mtg-ref-discord div{flex:1}
.mtg-ref-discord b{display:block;font-size:9px}
.mtg-ref-discord i{font-style:normal;font-size:16px}

/* home main */
.mtg-home-reference{padding:0 14px 14px}
.mtg-ref-main-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,22%);gap:12px;padding-top:14px}
.mtg-ref-left{min-width:0}
.mtg-ref-sidebar{min-width:0}
.mtg-ref-allservers{
 min-height:38px;margin-bottom:11px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;border:1px solid #23312a;border-radius:6px;
 background:linear-gradient(90deg,#111512,#102219);color:#fff!important;font-size:8px;font-weight:950;text-transform:uppercase;box-shadow:inset -30px 0 55px rgba(21,215,100,.09)
}
.mtg-ref-sectionhead{display:flex;justify-content:space-between;align-items:end;margin:0 0 10px}
.mtg-ref-sectionhead h2{margin:0;color:#fff;font-size:18px;letter-spacing:-.4px}
.mtg-ref-sectionhead h2:before{content:"";display:inline-block;width:4px;height:17px;background:var(--mtg-red);margin-right:6px;vertical-align:-2px}
.mtg-ref-sectionhead p{margin:3px 0 0;color:#77827b;font-size:8px}
.mtg-ref-server-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-bottom:13px}
.mtg-ref-server{
 min-width:0;height:88px;border:1px solid #2a332e;border-radius:6px;overflow:hidden;position:relative;background:#111;
 box-shadow:0 10px 24px rgba(0,0,0,.25)
}
.mtg-ref-server:before{content:"";position:absolute;inset:0;background-size:cover;background-position:center}
.mtg-ref-server.cover-cs:before{background-image:url(../../../images/mtg-v27/cs2.webp)}
.mtg-ref-server.cover-mc:before{background-image:url(../../../images/mtg-v27/mc.webp)}
.mtg-ref-server.cover-five:before{background-image:url(../../../images/mtg-v27/fivem.webp)}
.mtg-ref-server.cover-gta:before{background-image:url(../../../images/mtg-v27/gtav.webp)}
.mtg-ref-server-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(2,3,3,.15),rgba(2,4,3,.78));z-index:1}
.mtg-ref-server-main{position:relative;z-index:2;height:100%;display:flex;flex-direction:column;justify-content:space-between;padding:9px}
.mtg-ref-server-title{display:flex;align-items:center;gap:8px}
.mtg-ref-server-badge{width:29px;height:29px;border-radius:5px;display:grid;place-items:center;background:rgba(0,0,0,.54);border:1px solid rgba(255,255,255,.12);font-size:7px;font-weight:950;color:#fff}
.mtg-ref-server h3{margin:0;font-size:11px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mtg-ref-server p{margin:1px 0 0;font-size:7px;color:#d2d7d4}
.mtg-ref-server-bottom{display:flex;align-items:center;gap:5px;font-size:7px;min-width:0}
.mtg-ref-server-bottom b{font-size:8px;color:#f6f6f6;white-space:nowrap}
.mtg-ref-ip{display:none}
.mtg-ref-dot{width:8px;height:8px;border-radius:50%;background:#6c736f;box-shadow:0 0 10px rgba(255,255,255,.12)}
.mtg-ref-dot.online{background:var(--mtg-green);box-shadow:0 0 8px rgba(22,216,100,.75)}
.mtg-ref-dot.offline{background:var(--mtg-red)}
.mtg-ref-dot.maintenance{background:#ff9b25}
.mtg-copy-ip{margin-left:auto;border:0;background:transparent;color:#a8b1ac;font-size:6px;cursor:pointer}
.mtg-server-open{margin-left:auto;color:#dfe5e1!important;font-size:10px}
.mtg-ref-server.is-placeholder{opacity:.78}

/* categories/forumbits */
.mtg-forum-stack{display:flex;flex-direction:column;gap:11px}
.mtg-forum-category{border:1px solid #202b24!important;border-radius:6px!important;overflow:hidden;background:#080c0a!important;box-shadow:0 12px 26px rgba(0,0,0,.15)!important}
.mtg-forum-category .thead{padding:0!important;background:linear-gradient(90deg,#15100f 0%,#10110f 65%,#17100f 100%)!important;border:0!important;border-bottom:1px solid #4d101d!important}
.mtg-category-head{min-height:59px;padding:0 13px;display:flex;align-items:center;justify-content:space-between;position:relative;overflow:hidden}
.mtg-category-head:after{content:"";position:absolute;right:0;top:0;width:44%;height:100%;background:radial-gradient(circle at 80% 50%,rgba(22,216,100,.11),transparent 55%),radial-gradient(circle at 100% 50%,rgba(255,23,57,.14),transparent 45%);pointer-events:none}
.mtg-category-title{display:flex;align-items:center;gap:10px;position:relative;z-index:1}
.mtg-cat-icon{width:30px;height:30px;border-radius:5px;display:grid;place-items:center;background:#2a0e14;border:1px solid #5b1422;color:var(--mtg-red);font-size:10px}
.mtg-category-eyebrow{display:none}
.mtg-category-title strong{display:block}
.mtg-category-title strong a{font-size:11px!important;color:#fff!important;text-transform:uppercase}
.mtg-category-title .smalltext{margin-top:2px;color:#818a84!important;font-size:7px!important}
.expcolimage{position:relative;z-index:2}
.expcolimage img{opacity:.55;width:10px}
.mtg-forum-cols{display:grid;grid-template-columns:minmax(0,1fr) 62px 62px 190px;padding:6px 12px 5px 52px;background:#0a0e0c;border-bottom:1px solid #18221c;color:#536058;font-size:6px;text-transform:uppercase}
.mtg-forum-table{width:100%;border-collapse:collapse}
.mtg-forum-row td{background:#090d0b!important;border:0!important;border-bottom:1px solid #18221c!important;padding:9px 8px!important;vertical-align:middle!important}
.mtg-forum-row:last-child td{border-bottom:0!important}
.mtg-forum-row:hover td{background:#0d130f!important}
.mtg-forum-icon-cell{width:44px!important;text-align:center!important}
.forum_status{width:29px!important;height:29px!important;border-radius:5px!important;background:#151c18!important;border:1px solid #28362e!important;display:inline-grid!important;place-items:center!important;background-image:none!important;position:relative}
.forum_status:after{content:"";width:10px;height:7px;border:2px solid var(--mtg-red);border-radius:3px}
.forum_on:after{border-color:var(--mtg-green);box-shadow:0 0 8px rgba(22,216,100,.32)}
.mtg-forum-main strong a{font-size:12px!important;color:#f5f7f5!important}
.mtg-forum-main .smalltext{font-size:10px!important;color:#8b9790!important;margin-top:3px}
.mtg-forum-mods{font-size:9px;color:#75827a;margin-top:4px}
.mtg-count-cell{width:62px!important;text-align:center!important;color:#fff!important;font-size:11px!important;font-weight:850}
.mtg-count-cell span{display:block;font-size:5.5px;color:#59655e;font-weight:500}
.mtg-lastpost{width:190px!important;font-size:9px!important;color:#89948e!important}
.mtg-lastpost a{font-size:10px!important;color:#f0f3f1!important;font-weight:800}
.mtg-lastpost .smalltext{font-size:8px!important}

/* sidebar */
.mtg-ref-sidebox,.mtg-widget{border:1px solid #202a24!important;border-radius:6px!important;background:#0a0e0c!important;overflow:hidden;margin-bottom:11px;box-shadow:none!important}
.mtg-ref-sidehead,.mtg-widget-head{min-height:42px;padding:0 11px!important;display:flex;align-items:center;justify-content:space-between;background:#0e120f!important;border-bottom:1px solid #1d2821!important}
.mtg-ref-sidehead h3,.mtg-widget-head h3{margin:0!important;font-size:9px!important;color:#fff!important;text-transform:uppercase}
.mtg-ref-sidehead span,.mtg-widget-head p{font-size:8px!important;color:#69756e!important}
.mtg-widget-icon{width:24px!important;height:24px!important;border-radius:5px!important;background:#2a0d14!important;color:#ff3451!important;font-size:8px!important}
.mtg-activity-list{padding:4px 8px}
.mtg-activity-item{display:grid!important;grid-template-columns:24px 1fr auto!important;gap:7px!important;align-items:center!important;padding:7px 2px!important;border-bottom:1px solid #172019!important}
.mtg-activity-item:last-child{border-bottom:0!important}
.mtg-activity-mark{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#171c18;color:var(--mtg-red);font-size:7px;font-weight:900}
.mtg-activity-copy a{display:block;font-size:7px!important;color:#f1f4f2!important;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mtg-activity-copy small{display:block;font-size:8px!important;color:#6b766f!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mtg-activity-time{font-size:8px!important;color:#626d66!important}
.mtg-ranking-widget .mtg-widget-head{display:block!important;height:auto!important;padding:9px!important}
.mtg-ranking-widget .mtg-widget-title{margin-bottom:7px}
.mtg-rank-tabs{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:3px!important}
.mtg-rank-tabs button{padding:5px 2px!important;border:1px solid #243029!important;border-radius:4px!important;background:#101511!important;color:#7a867f!important;font-size:8px!important}
.mtg-rank-tabs button.is-active{background:#7d0d1f!important;border-color:#c51b34!important;color:#fff!important}
.mtg-rank-panel{padding:4px 8px 7px!important}
.mtg-ranking-list li{grid-template-columns:24px 1fr auto!important;min-height:42px!important;padding:5px 0!important}
.mtg-rank-place{width:22px!important;height:22px!important;border-radius:5px!important;background:#181e1a!important;font-size:7px!important}
.mtg-rank-user a{font-size:7px!important}
.mtg-rank-user small{font-size:8px!important}
.mtg-rank-value{font-size:8px!important}
.mtg-rank-value small{font-size:5.5px!important}
.mtg-widget-foot{padding:7px 9px!important;border-top:1px solid #1a241d!important}
.mtg-widget-foot a{font-size:8px!important}

/* compact reference stats */
.mtg-ref-bottomstats{
 margin-top:11px;border:1px solid #202a24;border-radius:6px;background:#090d0b;display:grid;grid-template-columns:repeat(3,1fr);overflow:hidden
}
.mtg-ref-bottomstats>div{min-height:54px;padding:0 13px;display:flex;align-items:center;gap:10px;border-right:1px solid #1d2720}
.mtg-ref-bottomstats>div:last-child{border-right:0}
.mtg-ref-bottomicon{font-size:19px;color:var(--mtg-red);font-weight:900}
.mtg-ref-bottomicon.green{color:var(--mtg-green)}
.mtg-ref-bottomstats p{margin:0}
.mtg-ref-bottomstats b{display:block;font-size:7px;color:#fff}
.mtg-ref-bottomstats small{display:block;font-size:6px;color:#6e7972;margin-top:2px}
.mtg-ref-bottomstats a{color:#e4e9e6!important;font-weight:800}

/* Community plugin lives below the reference index; never replaces the visual above */
.mtg-home .mtg-community-panel{margin:12px 0 0!important}

/* global MyBB panels */
.tborder{
 width:100%!important;border:1px solid #202b24!important;border-radius:7px!important;background:#090d0b!important;overflow:hidden!important;
 box-shadow:0 10px 30px rgba(0,0,0,.18)!important
}
.thead{background:linear-gradient(90deg,#15100f,#10130f)!important;color:#fff!important;border-bottom:1px solid #651326!important;padding:11px 12px!important}
.tcat{background:#0d120f!important;color:#78847c!important;border-bottom:1px solid #1d2821!important}
.trow1,.trow2{background:#090e0b!important;color:#c5ccc7!important;border-color:#1d2821!important}
.trow_sep{background:#111713!important;color:#9ca69f!important}
tfoot td{background:#0d120f!important}
.smalltext{color:#728078!important}
.largetext{font-size:14px!important}
fieldset{border:1px solid #253229!important;border-radius:7px!important;background:#0a0f0c!important}
legend{color:#fff!important;font-weight:850}
input.textbox,textarea,select{
 background:#07100c!important;border:1px solid #29372e!important;border-radius:6px!important;color:#edf2ef!important;padding:8px 9px!important;
 outline:none!important
}
input.textbox:focus,textarea:focus,select:focus{border-color:#3d664d!important;box-shadow:0 0 0 2px rgba(22,216,100,.05)!important}
.button,input.button,button.button,a.button{
 border:1px solid #ff3550!important;border-radius:6px!important;background:linear-gradient(180deg,#ff2847,#df0b31)!important;color:#fff!important;
 font-size:8px!important;font-weight:950!important;text-transform:uppercase!important;padding:8px 12px!important;box-shadow:none!important
}
.button:hover{filter:brightness(1.08)}
.pagination a,.pagination .pagination_current{border:1px solid #243129!important;border-radius:5px!important;background:#0c120e!important;color:#a5afa8!important}
.pagination .pagination_current{background:#741021!important;color:#fff!important;border-color:#a9152d!important}

/* page headings */
.mtg-page-heading{padding:18px 19px;margin:0 0 13px;border:1px solid #202b24;border-radius:7px;background:linear-gradient(105deg,#0d130f,#140d0e)}
.mtg-page-heading>span{font-size:7px;color:var(--mtg-red);font-weight:950;letter-spacing:1.3px;text-transform:uppercase}
.mtg-page-heading h1{margin:3px 0 4px;font-size:21px;color:#fff}
.mtg-page-heading p{margin:0;font-size:8px;color:#747f78}

/* forumdisplay */
.mtg-page-forumdisplay .tborder,.forumdisplay_sticky{border-radius:7px!important}
.mtg-page-forumdisplay .thead{min-height:46px}
.mtg-page-forumdisplay td{padding:9px!important}
.mtg-page-forumdisplay .subject_new,.mtg-page-forumdisplay .subject_old{font-size:10px!important}
.mtg-page-forumdisplay .forumdisplay_sticky{border-left:2px solid var(--mtg-red)!important}
.mtg-page-forumdisplay .inline_row{background:#0b100d!important}

/* thread */
.mtg-thread-page .navigation{margin-top:10px!important}
.mtg-thread-hero{
 display:grid;grid-template-columns:1fr auto;gap:15px;align-items:center;margin-bottom:12px;padding:15px 17px;border:1px solid #202b24;border-radius:7px;
 background:linear-gradient(105deg,#15100f,#0b100d 72%,#102018)
}
.mtg-thread-eyebrow{display:block;font-size:6px;color:var(--mtg-green);font-weight:950;letter-spacing:1px;text-transform:uppercase}
.mtg-thread-hero h1{margin:4px 0 1px;font-size:18px;color:#fff}
.mtg-thread-switch a{font-size:7px;color:#77837b!important}
.mtg-thread-hero-actions{display:flex;align-items:center;gap:10px}
.mtg-thread-rating{font-size:8px}
.mtg-thread-status-zone{margin:0 0 13px}
.mtg-thread-status-banner{text-align:center;padding:0}
.mtg-thread-status-banner img{display:block;max-width:590px;width:100%;height:auto;margin:0 auto;border-radius:8px;filter:drop-shadow(0 12px 24px rgba(0,0,0,.32))}
.mtg-thread-status-css{position:relative;max-width:590px;margin:0 auto;padding:20px 60px 20px 58px;border-radius:10px;background:#111;border:2px solid var(--mtg-red);box-shadow:0 0 18px rgba(255,23,57,.25);text-align:center}
.mtg-thread-status-css.kind-good{border-color:var(--mtg-green);box-shadow:0 0 18px rgba(22,216,100,.22)}
.mtg-thread-status-css-icon{position:absolute;left:20px;top:50%;transform:translateY(-50%);font-size:20px}
.mtg-thread-status-css strong{font-size:17px;color:#fff}
.mtg-thread-status-brand{position:absolute;right:16px;top:50%;transform:translateY(-50%) rotate(-12deg);font-size:9px;color:var(--mtg-red);font-weight:950}
.kind-good .mtg-thread-status-brand{color:var(--mtg-green)}
.mtg-thread-status-admin{margin:9px auto 0;max-width:590px;display:flex;align-items:center;gap:7px;padding:8px;border:1px solid #223029;border-radius:6px;background:#0b100d}
.mtg-thread-status-admin label{font-size:7px;color:#87928b;font-weight:800}
.mtg-thread-status-admin select{flex:1;padding:6px!important;font-size:8px}
.mtg-thread-status-hint{font-size:6px;color:#68746d}
.mtg-posts-shell{border:1px solid #202b24;border-radius:7px;background:#080c0a;overflow:hidden}
.mtg-post{display:grid!important;grid-template-columns:145px minmax(0,1fr)!important;margin:0!important;border:0!important;border-bottom:1px solid #1b251e!important;background:#090e0b!important}
.mtg-post:last-child{border-bottom:0!important}
.mtg-post-author{padding:12px!important;background:#0d130f!important;border-right:1px solid #1d2921!important;min-width:0!important;width:auto!important;text-align:left!important}
.mtg-author-top{display:block!important}
.mtg-post-author .author_avatar img,.mtg-post-author .post_avatar img,.mtg-post-author img.avatar{max-width:66px!important;max-height:66px!important;border-radius:8px!important;border:2px solid #25352b!important;display:block!important;margin:0 0 8px!important}
.mtg-post-author .largetext a{font-size:10px!important;color:#fff!important;font-weight:950}
.mtg-author-title{display:block;font-size:7px;color:#ff4c66;margin-top:2px}
.mtg-author-stars{margin-top:5px}
.mtg-author-statistics{margin-top:9px!important;font-size:7px!important;color:#748078!important}
.mtg-author-stats{display:grid;grid-template-columns:1fr 1fr;gap:5px}
.mtg-author-stats span{padding:6px;border:1px solid #223029;border-radius:5px;background:#09100c}
.mtg-author-stats em{display:block;font-style:normal;font-size:5px;color:#5f6a63;text-transform:uppercase}
.mtg-author-stats b{display:block;font-size:8px;color:#fff}
.mtg-author-joined{grid-column:1/-1}
.mtg-author-extra{margin-top:6px}
.mtg-post-content{min-width:0!important;padding:0!important;background:#090e0b!important}
.mtg-post-head{height:34px;padding:0 10px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;border-bottom:1px solid #1d2921!important;background:#0b100d!important;color:#728078!important;font-size:7px!important}
.mtg-post-body{min-height:145px;padding:13px!important;color:#d6ddd8!important;font-size:9px!important;line-height:1.65!important}
.mtg-post-meta{margin:0 13px!important;padding:8px 0!important;border-top:1px dashed #26342b!important;color:#65716a!important;font-size:7px}
.mtg-post-controls{min-height:40px;padding:6px 9px!important;border-top:1px solid #1d2921!important;background:#0b100d!important;overflow:auto}
.postbit_buttons a{margin:2px!important;border:1px solid #2b392f!important;border-radius:5px!important;background:#101612!important;color:#c6cec9!important;padding:5px 7px!important;font-size:8px!important}
.postbit_buttons a:hover{border-color:#5b1723!important;color:#fff!important}
.mtg-thread-after,.mtg-thread-tools-v17{margin-top:10px;padding:9px 11px;border:1px solid #202b24;border-radius:7px;background:#0a0f0c;display:flex;align-items:center;justify-content:space-between;gap:10px}
.mtg-thread-neighbours,.mtg-thread-pages{font-size:7px}
.mtg-thread-after-right{display:flex;align-items:center;gap:8px}
.quick_reply{margin-top:11px!important}
.mtg-thread-tools-v17 ul{margin:0;padding:0;list-style:none}
.mtg-thread-tools-v17 li{display:inline-block;margin-right:7px;font-size:7px}

/* auth/register */
.mtg-auth-v2{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px auto 30px;max-width:880px}
.mtg-auth-art,.mtg-auth-form{border:1px solid #202b24;border-radius:9px;background:#0a0f0c;padding:28px}
.mtg-auth-art{background:radial-gradient(circle at 20% 20%,rgba(22,216,100,.08),transparent 28%),linear-gradient(135deg,#0b110d,#120b0d)}
.mtg-auth-kicker,.mtg-reg-kicker{font-size:7px;color:var(--mtg-red);font-weight:950;letter-spacing:1.3px}
.mtg-auth-art h1,.mtg-auth-form h2{margin:7px 0;color:#fff}
.mtg-auth-art p,.mtg-auth-form p{color:#77827b;font-size:9px}
.mtg-auth-points span{display:block;padding:7px 0;font-size:8px;color:#a9b1ac}
.mtg-auth-points span:before{content:"✓";color:var(--mtg-green);margin-right:8px}
.mtg-field{margin-bottom:12px}
.mtg-field label{display:flex;justify-content:space-between;margin-bottom:5px;font-size:8px;color:#b9c1bc}
.mtg-field input{width:100%}
.mtg-auth-row{display:flex;justify-content:space-between;align-items:center;font-size:8px}
.mtg-auth-submit,.mtg-auth-register{display:flex!important;justify-content:center!important;width:100%;margin-top:13px}
.mtg-auth-register{padding:9px;border:1px solid #2b3a30;border-radius:6px;background:#101612;color:#fff!important;font-size:8px;font-weight:900}
.mtg-auth-sep{text-align:center;margin:13px 0 0;font-size:7px;color:#65716a}

.mtg-register-page{margin:12px 0 28px}
.mtg-register-hero{display:flex;justify-content:space-between;align-items:center;padding:20px;border:1px solid #202b24;border-radius:8px;background:linear-gradient(100deg,#12100f,#0b110d);margin-bottom:12px}
.mtg-register-hero h1{margin:3px 0;font-size:22px}
.mtg-register-hero p{margin:0;color:#758078;font-size:8px}
.mtg-steps{display:flex;gap:8px}
.mtg-step{display:flex;align-items:center;gap:5px;color:#6d7871;font-size:7px}
.mtg-step b{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:#141b16;border:1px solid #29372e}
.mtg-step.is-active{color:#fff}.mtg-step.is-active b{background:var(--mtg-red);border-color:var(--mtg-red)}
.mtg-register-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mtg-reg-card{border:1px solid #202b24;border-radius:8px;background:#0a0f0c;padding:16px}
.mtg-reg-card h2{margin:0 0 3px;font-size:13px}
.mtg-reg-help{font-size:7px;color:#6d7871}
.mtg-form-table td{padding:4px!important}
.mtg-pref-list label{display:flex;gap:8px;padding:7px 0;border-bottom:1px solid #18211b;font-size:8px}
.mtg-pref-list small{display:block;color:#68736c;font-size:6px}
.mtg-reg-select{margin-top:11px}.mtg-reg-select label{display:block;margin-bottom:5px;font-size:7px;color:#929d96}
.mtg-reg-select select{width:100%}
.mtg-register-actions{text-align:center;margin-top:14px}
.mtg-reg-login-link{display:block;text-align:center;margin-top:9px;font-size:7px;color:#69746d}

/* profile */
.mtg-profile-v16{margin:12px 0 26px}
.mtg-profile-cover{position:relative;display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:end;min-height:170px;padding:24px;border:1px solid #202b24;border-radius:9px;background:#090d0b;overflow:hidden}
.mtg-profile-cover-bg{position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,5,4,.97),rgba(3,5,4,.74)),url(../../../images/mtg-v27/hero-reference.webp) center/cover no-repeat;opacity:.8}
.mtg-profile-cover:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,var(--mtg-red),var(--mtg-green))}
.mtg-profile-avatar-big,.mtg-profile-identity,.mtg-profile-actions-top{position:relative;z-index:2}
.mtg-profile-avatar-big img{width:100px!important;height:100px!important;object-fit:cover;border-radius:11px;border:2px solid #2b392f}
.mtg-profile-identity h1{margin:4px 0 1px;font-size:24px;color:#fff}
.mtg-profile-kicker{font-size:7px;color:var(--mtg-red);font-weight:950;letter-spacing:1px}
.mtg-profile-role{font-size:9px;color:#a7b0aa}
.mtg-profile-actions-top{display:flex;gap:6px}
.mtg-profile-action{padding:7px 9px;border:1px solid #2a382f;border-radius:6px;background:#0d130f;color:#dce2de!important;font-size:7px;font-weight:850}
.mtg-profile-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;margin:9px 0;border:1px solid #202b24;border-radius:7px;overflow:hidden;background:#202b24}
.mtg-profile-metrics>div{padding:11px;background:#0a0f0c}
.mtg-profile-metrics span{font-size:6px;color:#68736c;text-transform:uppercase}.mtg-profile-metrics strong{display:block;font-size:12px}
.mtg-profile-layout{display:grid;grid-template-columns:1fr 270px;gap:10px}
.mtg-profile-panel{border:1px solid #202b24;border-radius:7px;background:#0a0f0c;overflow:hidden}
.mtg-profile-panelhead{display:flex;justify-content:space-between;padding:10px 11px;background:#0d130f;border-bottom:1px solid #1d2821}
.mtg-profile-panelhead strong{font-size:9px}.mtg-profile-panelhead span{font-size:6px;color:#68736c}
.mtg-profile-native{padding:10px}
.mtg-profile-main,.mtg-profile-aside{display:flex;flex-direction:column;gap:10px}
.mtg-profile-facts dl{margin:0;padding:8px 11px}
.mtg-profile-facts dl>div{display:grid;grid-template-columns:1fr auto;gap:8px;padding:7px 0;border-bottom:1px solid #19221c}
.mtg-profile-facts dt{font-size:7px;color:#6c7770}.mtg-profile-facts dd{font-size:7px;margin:0;color:#e0e6e2}

/* CP/private/modcp/memberlist/reputation */
.mtg-cp-shell{border-collapse:separate!important;border-spacing:10px 0!important}
.mtg-cp-shell>tbody>tr>td:first-child{width:210px!important}
.mtg-cp-main{min-width:0}
.usercp_nav{border:1px solid #202b24!important;border-radius:7px!important;background:#090e0b!important;overflow:hidden}
.usercp_nav_item{background-image:none!important;padding:8px 10px!important;color:#a8b2ab!important;border-bottom:1px solid #1b251e!important}
.usercp_nav_item:hover{background:#0f1611!important;color:#fff!important}
.mtg-cp-summary{margin-bottom:10px}
.mtg-cp-widgets>.tborder{margin-bottom:10px!important}
.mtg-page-private .tborder,.mtg-page-modcp .tborder,.mtg-page-memberlist .tborder,.mtg-page-reputation .tborder,.mtg-page-showteam .tborder{margin-bottom:12px!important}
.mtg-page-private td,.mtg-page-modcp td,.mtg-page-memberlist td,.mtg-page-reputation td,.mtg-page-showteam td{border-color:#1b251e!important}
.reputation_positive{color:var(--mtg-green)!important}.reputation_negative{color:#ff4c65!important}.reputation_neutral{color:#a6afa9!important}
.repbox{background:#0b110d!important;border:1px solid #25342a!important;border-radius:6px!important}

/* editor */
.sceditor-container{border:1px solid #29372e!important;border-radius:7px!important;background:#07100c!important;overflow:hidden}
.sceditor-toolbar{background:#0e140f!important;border-bottom:1px solid #26342b!important}
.sceditor-group{background:#141b16!important;border:1px solid #29372e!important}
.sceditor-button{background:transparent!important}
.sceditor-container iframe,.sceditor-container textarea{background:#07100c!important;color:#e3e9e5!important}

/* portal misc */
.mtg-portal-content{margin:0 0 24px}
.mtg-portal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.mtg-portal-card{border:1px solid #202b24;border-radius:7px;background:#090e0b;overflow:hidden}
.mtg-portal-card-head{padding:11px;background:#0d130f;border-bottom:1px solid #1d2821}
.mtg-portal-card-head h2{margin:0;font-size:11px}.mtg-portal-card-head p{margin:2px 0 0;font-size:7px;color:#69756e}
.mtg-portal-card-body{padding:8px}
.mtg-portal-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 2px;border-bottom:1px solid #19221c}
.mtg-portal-row strong{font-size:8px}.mtg-portal-row small{display:block;font-size:6px;color:#68736c}
.mtg-portal-value{font-size:9px;font-weight:900}
.mtg-group-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.mtg-group-card{padding:12px;border:1px solid #202b24;border-radius:7px;background:#0a0f0c}
.mtg-group-card strong{display:block;font-size:9px}.mtg-group-card span{display:block;margin-top:4px;font-size:7px;color:#68736c}
.mtg-cta-panel{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px;border:1px solid #202b24;border-radius:7px;background:linear-gradient(100deg,#101511,#160c0f)}
.mtg-cta-panel h2{margin:0 0 4px}.mtg-cta-panel p{margin:0;color:#6e7972;font-size:8px}.mtg-cta-panel a{padding:8px 12px;background:var(--mtg-red);border-radius:6px;font-size:8px;font-weight:900;color:#fff!important}

/* community/staff widget if output */
.mtg-staff-list{padding:7px 9px}.mtg-staff-person{display:grid;grid-template-columns:30px 1fr auto;gap:7px;align-items:center;padding:6px 0;border-bottom:1px solid #19221c}
.mtg-staff-avatar{width:28px;height:28px;border-radius:6px;display:grid;place-items:center;background:#151b17;border:1px solid #2a382f;color:var(--mtg-red);font-size:8px;font-weight:900}
.mtg-staff-name a{font-size:7px!important}.mtg-staff-name small{font-size:6px;color:#69756e}.mtg-staff-contact{font-size:8px!important;color:var(--mtg-green)!important}

/* footer */
#footer{margin:0!important;background:#040605!important;border-top:1px solid #161f19!important}
.mtg-footer-v16{display:grid!important;grid-template-columns:1.65fr repeat(3,1fr)!important;gap:24px!important;padding:25px 18px!important}
.mtg-footer-logo{font-size:17px;font-weight:950;color:#fff}.mtg-footer-logo b{color:var(--mtg-red)}
.mtg-footer-brand p{max-width:390px;font-size:7px;color:#606b64}
.mtg-footer-social{display:flex;gap:5px;margin-top:8px}.mtg-footer-social a{padding:4px 6px;border:1px solid #202b24;border-radius:4px;font-size:6px}
.mtg-footer-col{display:flex;flex-direction:column;gap:6px}.mtg-footer-col strong{font-size:7px;text-transform:uppercase}.mtg-footer-col a{font-size:7px;color:#606b64!important}
.mtg-footer-bottom{border-top:1px solid #131a15;background:#030504}
.mtg-footer-bottom .wrapper{min-height:33px;display:flex;align-items:center;justify-content:space-between;font-size:6px;color:#505b54}
.mtg-toast{position:fixed;right:20px;bottom:20px;z-index:200;padding:9px 12px;border:1px solid #2b3a30;border-radius:6px;background:#0b110d;color:#fff;font-size:8px;opacity:0;pointer-events:none;transform:translateY(10px);transition:.2s}
.mtg-toast.is-visible{opacity:1;transform:translateY(0)}

/* utility */
.float_left{float:left}.float_right{float:right}.clear{clear:both}
.hidden{display:none!important}
.muted{opacity:.65}

/* responsive */
@media(max-width:1180px){
 body:before,body:after{display:none}
 #container.mtg-site-frame{max-width:100%!important;width:100%!important;border:0}
}
@media(max-width:900px){
 .mtg-nav-links{display:none}.mtg-mobile-nav{display:block;margin-left:auto}.mtg-mobile-nav>summary{padding:7px 9px;border:1px solid #26342b;border-radius:5px;font-size:8px}
 .mtg-brand-link{flex-basis:170px}.mtg-brand-link img{width:150px}
 .mtg-ref-main-grid{grid-template-columns:1fr}.mtg-ref-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mtg-ref-allservers{grid-column:1/-1}
 .mtg-ref-server-grid{grid-template-columns:repeat(3,1fr)}
 .mtg-ref-metrics{grid-template-columns:repeat(4,1fr)}.mtg-ref-discord{grid-column:1/-1;min-height:45px}
 .mtg-forum-cols{grid-template-columns:minmax(0,1fr) 55px 55px;padding-left:50px}.mtg-forum-cols div:last-child{display:none}.mtg-lastpost{display:none}
 .mtg-ref-bottomstats{grid-template-columns:1fr}
 .mtg-ref-bottomstats>div{border-right:0;border-bottom:1px solid #1d2720}.mtg-ref-bottomstats>div:last-child{border-bottom:0}
 .mtg-post{grid-template-columns:125px minmax(0,1fr)!important}
 .mtg-profile-layout{grid-template-columns:1fr}.mtg-auth-v2,.mtg-register-grid{grid-template-columns:1fr}
 .mtg-portal-grid,.mtg-group-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
 .wrapper{padding-left:10px!important;padding-right:10px!important}
 .mtg-social-right{display:none}.mtg-social-left{gap:7px}
 .mtg-brand-link{flex-basis:145px}.mtg-brand-link img{width:135px}
 .mtg-search-pop{display:none}.mtg-register{padding:0 8px}.mtg-login-pop>summary{padding:0 8px}
 .mtg-ref-hero{min-height:230px;background:url(../../../images/mtg-v27/hero-reference.webp) center/cover no-repeat}
 .mtg-ref-hero img{height:230px;object-fit:cover;object-position:center}.mtg-ref-hero:before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.12)}
 .mtg-ref-server-grid{grid-template-columns:1fr 1fr}
 .mtg-ref-sidebar{grid-template-columns:1fr}
 .mtg-ref-metrics{grid-template-columns:1fr 1fr}.mtg-ref-metrics>div{min-height:48px}.mtg-ref-discord{grid-column:1/-1}
 .mtg-forum-cols{display:none}.mtg-forum-row{display:grid!important;grid-template-columns:42px minmax(0,1fr) 45px!important}.mtg-forum-row td{display:block!important}
 .mtg-forum-row .mtg-count-cell:nth-of-type(4){display:none!important}.mtg-lastpost{display:none!important}
 .mtg-post{grid-template-columns:1fr!important}.mtg-post-author{border-right:0!important;border-bottom:1px solid #1d2921!important}
 .mtg-author-top{display:flex!important;align-items:center!important;gap:10px}.mtg-post-author .author_avatar img,.mtg-post-author .post_avatar img,.mtg-post-author img.avatar{margin:0!important;width:55px!important;height:55px!important}
 .mtg-thread-hero{grid-template-columns:1fr}.mtg-thread-hero-actions{justify-content:flex-start}
 .mtg-profile-cover{grid-template-columns:80px 1fr}.mtg-profile-actions-top{grid-column:1/-1}.mtg-profile-avatar-big img{width:75px!important;height:75px!important}.mtg-profile-metrics{grid-template-columns:1fr 1fr}
 .mtg-footer-v16{grid-template-columns:1fr 1fr!important}
 .mtg-portal-grid,.mtg-group-grid{grid-template-columns:1fr}
}


/* ========================= V27.1 FIXED POLISH ========================= */
body{font-size:13px!important}
.mtg-content-wrap{color:#d9e0dc!important}

/* Header / quick login */
.mtg-login-pop>summary,.mtg-register{font-size:10px!important;gap:7px;min-height:38px}
.mtg-login-pop>summary svg,.mtg-register svg{fill:none;stroke:currentColor;stroke-width:2}
.mtg-login-drop{width:340px!important;padding:18px!important;background:#0a0f0c!important;border:1px solid #304038!important;border-radius:10px!important;box-shadow:0 24px 70px rgba(0,0,0,.72)!important}
.mtg-login-drop-head{padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid #1e2b23}
.mtg-login-drop-head>span{display:block;color:var(--mtg-red);font-size:9px;font-weight:950;letter-spacing:1.1px}
.mtg-login-drop-head strong{display:block;color:#fff;font-size:17px;margin-top:3px}
.mtg-login-drop-head p{margin:3px 0 0;color:#88948d;font-size:11px}
.mtg-login-field{display:block!important;margin:0 0 11px!important;color:#b7c1bb!important;font-size:11px!important;font-weight:700}
.mtg-login-field>span{display:block;margin-bottom:6px}
.mtg-login-field input{width:100%!important;height:42px!important;font-size:13px!important;padding:0 11px!important}
.mtg-login-options{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:3px 0 12px;font-size:10px}
.mtg-login-options a{color:#4ed985!important}
.mtg-check{display:flex!important;align-items:center;gap:6px;color:#aeb8b2!important;font-size:10px!important}
.mtg-check input{width:15px!important;height:15px!important;margin:0!important}
.mtg-login-submit{width:100%!important;height:40px!important;font-size:10px!important}
.mtg-login-links{display:flex!important;justify-content:center;gap:6px;margin-top:12px;padding-top:11px;border-top:1px solid #1d2821;font-size:10px!important;color:#7d8981}
.mtg-login-links a{color:#43d57c!important;font-weight:850}

/* Standalone login */
.mtg-auth-v2{max-width:1040px!important;gap:18px!important;margin:28px auto 44px!important}
.mtg-auth-art,.mtg-auth-form{padding:34px!important;border-color:#29372f!important;border-radius:12px!important}
.mtg-auth-art h1,.mtg-auth-form h2{font-size:28px!important;line-height:1.1;margin:9px 0!important}
.mtg-auth-art p,.mtg-auth-form p{font-size:12px!important;color:#9ba69f!important;line-height:1.6}
.mtg-auth-kicker,.mtg-reg-kicker{font-size:9px!important}
.mtg-auth-points span{font-size:11px!important;padding:8px 0!important}
.mtg-field label{font-size:11px!important;color:#c6cec9!important;margin-bottom:6px!important}
.mtg-auth-row{font-size:10px!important;margin-top:3px}
.mtg-auth-row a{color:#48da80!important}
.mtg-auth-submit,.mtg-auth-register{min-height:42px!important;font-size:10px!important}
.mtg-auth-sep{font-size:9px!important}

/* Registration and agreement: fix low contrast / tiny text */
.mtg-register-body #content{color:#dce3df!important}
.mtg-register-page,.mtg-agreement{max-width:1340px;margin:18px auto 40px!important;color:#dce3df!important}
.mtg-register-hero{padding:24px 26px!important;border-radius:11px!important;border-color:#29372f!important;background:linear-gradient(105deg,#15100f 0%,#0c120e 62%,#0c1711 100%)!important;box-shadow:0 16px 45px rgba(0,0,0,.20)}
.mtg-register-hero h1{font-size:28px!important;color:#fff!important;margin:5px 0!important;letter-spacing:-.5px}
.mtg-register-hero p{font-size:11px!important;color:#9aa69f!important;line-height:1.55}
.mtg-step{font-size:9px!important;color:#88948d!important}
.mtg-step b{width:24px!important;height:24px!important;font-size:9px!important}
.mtg-register-grid{gap:16px!important}
.mtg-reg-card{padding:22px!important;border-radius:11px!important;border-color:#29372f!important;background:#0a100c!important;color:#dce3df!important}
.mtg-reg-card h2{font-size:17px!important;color:#fff!important;margin:0 0 4px!important}
.mtg-reg-help{font-size:10px!important;color:#89958e!important;display:block;margin-bottom:13px}
.mtg-register-page .smalltext,.mtg-register-page label,.mtg-register-page td,.mtg-register-page fieldset,.mtg-register-page legend{color:#b8c3bc!important;font-size:11px!important}
.mtg-register-page input.textbox,.mtg-register-page input[type=password],.mtg-register-page select,.mtg-register-page textarea{font-size:13px!important;min-height:42px!important;color:#f1f5f2!important;background:#07100c!important;border-color:#304038!important}
.mtg-form-table td{padding:5px!important}
.mtg-pref-list label{padding:10px 2px!important;font-size:11px!important;align-items:flex-start}
.mtg-pref-list small{font-size:9px!important;color:#7f8b84!important;line-height:1.4;margin-top:2px}
.mtg-pref-list input{width:16px;height:16px;margin-top:1px}
.mtg-reg-select{margin-top:14px!important}
.mtg-reg-select label{font-size:10px!important;color:#aeb9b2!important;margin-bottom:6px!important}
.mtg-register-actions{margin-top:18px!important}
.mtg-register-actions .button{min-height:42px!important;padding:0 20px!important}
.mtg-reg-login-link{font-size:10px!important;color:#7f8b84!important;margin-top:12px!important}
.mtg-reg-login-link a{color:#40d479!important}
.mtg-reg-card fieldset{margin-top:12px!important;background:#09100c!important;border-color:#27362d!important}
.mtg-reg-card legend{padding:0 5px!important;color:#fff!important;font-size:12px!important}
.mtg-reg-card img{max-width:100%;height:auto}

.mtg-agreement-card{border:1px solid #29372f;border-radius:11px;background:#0a100c;padding:24px;box-shadow:0 18px 50px rgba(0,0,0,.22)}
.mtg-agreement-head{padding-bottom:17px;border-bottom:1px solid #1e2b23}
.mtg-agreement-head h2{font-size:24px!important;color:#fff!important;margin:5px 0!important}
.mtg-agreement-head p{margin:0;color:#99a59e!important;font-size:11px!important;line-height:1.6}
.mtg-agreement-body{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:18px 0}
.mtg-rule{display:flex;gap:12px;min-height:105px;padding:16px;border:1px solid #223128;border-radius:9px;background:#0d1510;color:#dce3df}
.mtg-rule>span{width:32px;height:32px;flex:0 0 32px;border-radius:8px;display:grid;place-items:center;background:#251017;border:1px solid #521522;color:#ff4260;font-size:9px;font-weight:950}
.mtg-rule b{display:block;color:#fff!important;font-size:13px!important;margin:1px 0 6px}
.mtg-rule p{margin:0;color:#9ba69f!important;font-size:11px!important;line-height:1.55}
.mtg-agreement-note{padding:13px 15px;border-radius:8px;background:#101713;border:1px solid #25332b;color:#aeb8b2;font-size:10px;line-height:1.5}
.mtg-agreement-actions{text-align:right;margin-top:14px}
.mtg-agreement-actions .button{min-height:42px!important;padding:0 18px!important}

/* Forum rows: more readable + subforums like reference */
.mtg-category-title strong a{font-size:13px!important}
.mtg-category-title .smalltext{font-size:9px!important;color:#89948e!important}
.mtg-forum-cols{grid-template-columns:minmax(0,1fr) 72px 72px 220px!important;padding:7px 14px 6px 56px!important;font-size:7px!important}
.mtg-forum-row td{padding:12px 9px!important}
.mtg-forum-icon-cell{width:48px!important}
.mtg-forum-main strong>a{font-size:12px!important;line-height:1.3}
.mtg-forum-main>.smalltext{font-size:9px!important;color:#86928a!important;line-height:1.45}
.mtg-count-cell{width:72px!important;font-size:11px!important}
.mtg-count-cell span{font-size:7px!important}
.mtg-lastpost{width:220px!important;font-size:9px!important}
.mtg-lastpost a{font-size:10px!important}
.mtg-lastpost .smalltext{font-size:8px!important}
.mtg-forum-mods{font-size:8px!important;margin-top:7px!important}
.mtg-subforums{display:flex;align-items:flex-start;gap:8px;margin-top:8px;line-height:1.35}
.mtg-subforums-label{flex:0 0 auto;color:#647169;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.4px;padding-top:4px}
.mtg-subforums-list{display:flex;flex-wrap:wrap;gap:5px 11px;min-width:0}
.mtg-subforum-item{display:inline-flex;align-items:center;gap:5px;position:relative}
.mtg-subforum-item:before{content:"—";color:#58645d;margin-right:1px}
.mtg-subforum-item a{font-size:9px!important;color:#55a9d7!important;font-weight:700}
.mtg-subforum-item a:hover{color:#73d99a!important}
.mtg-subforum-state{width:7px;height:7px;border-radius:50%;background:#66736b;box-shadow:0 0 0 2px rgba(255,255,255,.02)}
.mtg-subforum-state.subforum_minion{background:var(--mtg-green);box-shadow:0 0 7px rgba(22,216,100,.55)}
.mtg-subforum-state.subforum_minioffclose{background:var(--mtg-red)}
.mtg-subforum-state.subforum_miniofflink{background:#48a8d3}

/* Hero is still the approved artwork, now every game tile is a real link */
.mtg-ref-hero-hot{border-radius:5px;transition:.16s ease;outline:1px solid transparent}
.mtg-ref-hero-hot:hover{outline-color:rgba(22,216,100,.42);background:linear-gradient(180deg,rgba(22,216,100,.03),rgba(255,23,57,.035));box-shadow:inset 0 0 30px rgba(22,216,100,.06)}
.mtg-ref-hero-hot.game-cs{left:54.5%;top:8%;width:13.2%;height:87%}
.mtg-ref-hero-hot.game-mc{left:67.3%;top:8%;width:11.9%;height:87%}
.mtg-ref-hero-hot.game-gta{left:79.1%;top:8%;width:11.2%;height:87%}
.mtg-ref-hero-hot.game-five{left:90.2%;top:8%;width:9.7%;height:87%}

/* Community plugin: exactly one panel */
#mtg-community-slot:empty{display:none}
#mtg-community-slot>.mtg-community-panel{margin:14px 0 0!important}

/* General readability */
.mtg-ref-sidehead h3,.mtg-widget-head h3{font-size:10px!important}
.mtg-activity-copy a,.mtg-rank-user a{font-size:9px!important}
.mtg-activity-copy small,.mtg-rank-user small{font-size:8px!important}
.mtg-widget-foot a{font-size:8px!important}
.navigation a{font-size:11px!important}
.smalltext{font-size:10px!important;color:#859189!important}
input.textbox,textarea,select{font-size:12px!important}
.button,input.button,button.button,a.button{font-size:9px!important}

@media(max-width:900px){
  .mtg-agreement-body{grid-template-columns:1fr}
  .mtg-login-drop{width:min(340px,calc(100vw - 24px))!important}
  .mtg-forum-cols{display:none!important}
  .mtg-forum-row{display:grid!important;grid-template-columns:44px minmax(0,1fr) 60px!important}
  .mtg-forum-row .mtg-count-cell:nth-of-type(4),.mtg-forum-row .mtg-lastpost{display:none!important}
}
