@font-face {
    font-family: "Barlow Condensed";
    src: url("../fonts/barlow-condensed/barlow-condensed-700.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Barlow Semi Condensed";
    src: url("../fonts/barlow-semi-condensed/barlow-semi-condensed-700.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Barlow Semi Condensed";
    src: url("../fonts/barlow-semi-condensed/barlow-semi-condensed-800.woff2") format("woff2");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: "Barlow Semi Condensed";
    src: url("../fonts/barlow-semi-condensed/barlow-semi-condensed-900.woff2") format("woff2");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

@font-face {
    font-family: "Barlow Semi Condensed";
    src: url("../fonts/barlow-semi-condensed/barlow-semi-condensed-800-italic.woff2") format("woff2");
    font-style: italic;
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: "Barlow Condensed";
    src: url("../fonts/barlow-condensed/barlow-condensed-800.woff2") format("woff2");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: "Barlow Condensed";
    src: url("../fonts/barlow-condensed/barlow-condensed-900.woff2") format("woff2");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

@font-face {
    font-family: "Barlow Condensed";
    src: url("../fonts/barlow-condensed/barlow-condensed-800-italic.woff2") format("woff2");
    font-style: italic;
    font-weight: 800;
    font-display: swap;
}

:root {
    --bg: #0e0c12;
    --bg-soft: #141118;
    --panel: #18141d;
    --panel-2: #211c25;
    --line: #2e2733;
    --line-light: #433a45;
    --text: #ffffff;
    --muted: #91889b;
    --yellow: #ffc53d;
    --yellow-2: #efa416;
    --orange: #f58b1f;
    --red: #e82f32;
    --blue: #16a5df;
    --green: #24cc72;
    --shadow: 0 5px 0 rgba(0,0,0,.32);
    --font-brand: "Barlow Condensed", Impact, Haettenschweiler, "Arial Black", sans-serif;
    --font-display: "Barlow Semi Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
    --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 15px; line-height: 1.55; }
h1, h2, h3, h4, h5, h6 { font-weight: 800 !important; font-style: normal; letter-spacing: .005em; text-shadow: none !important; text-rendering: geometricPrecision; -webkit-font-smoothing: antialiased; font-kerning: normal; }
body::selection { background: var(--yellow); color: #3a2100; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.wordmark { display: inline-flex; align-items: center; color: #fff3c8; font-family: var(--font-brand); font-size: 30px; font-style: italic; font-weight: 800; letter-spacing: -1px; text-transform: uppercase; text-shadow: 0 3px 0 #6f2b0e; }
.wordmark span { color: #ffb217; }
.wordmark--small { font-size: 40px; }

.site-header { height: 74px; background: rgba(12,10,15,.96); border-bottom: 1px solid #242027; position: sticky; top: 0; z-index: 80; }
.home-page .site-header { position: absolute; width: 100%; background: linear-gradient(to bottom, rgba(4,4,5,.88), rgba(4,4,5,.05)); border: 0; }
.nav-shell { width: min(1800px, calc(100% - 48px)); height: 100%; margin: auto; display: grid; grid-template-columns: 250px 1fr auto; align-items: center; gap: 32px; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: 38px; height: 100%; }
.site-nav > a, .nav-dropdown > button { border: 0; background: none; color: #aaa3ad; font-family: var(--font-display); font-size: 16px; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; transition: .2s ease; }
.home-page .site-nav > a, .home-page .nav-dropdown > button { color: #fff; text-shadow: 0 2px 4px #000; }
.site-nav > a:hover, .site-nav > a.is-active, .nav-dropdown > button:hover, .nav-dropdown > button.is-active { color: #fff; transform: translateY(-1px); }
.nav-dropdown { align-self: stretch; display: flex; align-items: center; position: relative; }
.nav-dropdown__menu { position: absolute; top: 65px; left: 50%; transform: translate(-50%, 8px); min-width: 190px; padding: 9px; background: #1b171f; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.4); opacity: 0; visibility: hidden; transition: .18s ease; }
.nav-dropdown:hover .nav-dropdown__menu, .nav-dropdown:focus-within .nav-dropdown__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-dropdown__menu a { display: block; padding: 10px 12px; border-radius: 5px; color: #c3bbc8; font-weight: 800; }
.nav-dropdown__menu a:hover { color: #231600; background: var(--yellow); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.server-chip { display: flex; align-items: center; border: 0; background: var(--yellow); color: #8d3d12; min-height: 38px; padding: 0 10px 0 15px; box-shadow: 0 4px 0 #bf7a10; font-family: var(--font-display); text-transform: uppercase; }
.server-chip small { margin-left: 9px; padding-left: 9px; border-left: 1px solid rgba(126,54,7,.25); font: 800 11px var(--font-body); }
.server-chip:hover { transform: translateY(-1px); filter: brightness(1.05); }
.account-button { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: #119bd4; box-shadow: 0 4px 0 #086d9b; font-size: 20px; overflow: hidden; }
.account-button--avatar { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.account-button--avatar img { width: 40px; height: 40px; object-fit: contain; image-rendering: pixelated; }
.mobile-menu { display: none; border: 0; background: var(--yellow); width: 42px; height: 40px; color: #512700; font-size: 22px; }

.hero { position: relative; min-height: 810px; display: grid; place-items: center; overflow: hidden; background: #090805 url('../images/hero-tomatomc.png') center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(3,3,3,.18), rgba(5,4,3,.12) 45%, #090807 100%), radial-gradient(circle at center, transparent 25%, rgba(0,0,0,.28) 90%); }
.hero-content { z-index: 2; padding-top: 100px; text-align: center; }
.hero-logo { position: relative; font-family: var(--font-brand); font-size: clamp(68px, 8vw, 130px); line-height: .75; color: #ffd35a; letter-spacing: -6px; font-style: italic; font-weight: 800; text-transform: uppercase; text-shadow: 0 7px 0 #9d3d0e, 0 11px 0 #4f1d08, 0 18px 30px #000; }
.hero-logo span { display: block; color: #ff8d12; font-size: .56em; letter-spacing: 5px; text-shadow: 0 5px 0 #71300c, 0 12px 24px #000; }
.hero-tagline { max-width: 630px; margin: 34px auto 28px; color: #e6daca; font-weight: 700; font-size: 17px; text-shadow: 0 2px 4px #000; }
.button { min-height: 48px; border: 0; border-radius: 2px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 28px; background: var(--yellow); color: #71310b; box-shadow: 0 5px 0 #bc7711; font-family: var(--font-display); font-size: 17px; letter-spacing: .3px; text-transform: uppercase; transition: .18s ease; }
.button:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 7px 0 #bc7711; }
.button--dark { background: #221e24; color: #fff; box-shadow: 0 4px 0 #0c0a0d; }
.button--danger { background: #e33b3d; color: #fff; box-shadow: 0 4px 0 #8f2022; }
.button--small { min-height: 36px; padding: 0 16px; font-size: 13px; }

.home-content { background: #141314; border-top: 1px solid #242224; padding: 55px 0 90px; }
.home-grid { width: min(1440px, calc(100% - 40px)); margin: auto; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; }
.promo { min-height: 88px; margin-bottom: 30px; padding: 18px 22px 18px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--blue); border-left: 4px solid #2bc1ff; box-shadow: 0 5px 0 #086899; }
.promo strong { font-family: var(--font-display); font-size: 20px; text-transform: uppercase; letter-spacing: .4px; }
.promo-offer { width: 240px; text-align: center; font-family: var(--font-display); text-transform: uppercase; }
.promo-offer b { display: block; padding: 3px; background: var(--red); font-size: 12px; border-top: 3px solid #ff6062; }
.promo-offer span { display: block; padding: 7px; background: var(--yellow); color: #83400d; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font-family: var(--font-display); font-size: 25px; text-transform: uppercase; }
.section-title__icon { width: 46px; height: 46px; display: grid; place-items: center; background: var(--yellow); color: #8a380c; box-shadow: 0 4px 0 #ab6c0f; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { min-width: 0; background: #2a2728; border-bottom: 5px solid #535050; box-shadow: 0 10px 25px rgba(0,0,0,.2); }
.news-card__image { height: 180px; position: relative; overflow: hidden; background: linear-gradient(145deg, #542129, #1d7887); }
.news-card:nth-child(2) .news-card__image { background: linear-gradient(145deg, #281f6c, #b9438e); }
.news-card:nth-child(3) .news-card__image { background: linear-gradient(145deg, #1d6d4c, #e5b644); }
.news-card__image::before { content: ""; position: absolute; inset: 0; background-image: url('../images/hero-tomatomc.png'); background-size: 220%; background-position: center; opacity: .75; mix-blend-mode: luminosity; }
.news-card__meta { position: absolute; z-index: 1; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; font-size: 11px; font-weight: 900; }
.news-card__views { background: var(--green); padding: 4px 8px; }
.news-card__date { background: var(--red); padding: 4px 8px; }
.news-card__body { min-height: 180px; padding: 14px; }
.eyebrow { display: block; color: var(--yellow); font-size: 10px; font-weight: 1000; letter-spacing: 1.4px; text-transform: uppercase; }
.news-card h3 { margin: 2px 0 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--font-display); font-size: 22px; letter-spacing: .3px; text-transform: uppercase; }
.news-card p { height: 50px; margin: 0 0 15px; overflow: hidden; color: #eee; }
.news-card .button { width: 100%; }
.sidebar-stack { display: grid; gap: 22px; align-content: start; }
.side-widget { background: #302c2d; border-bottom: 4px solid #5b5757; padding: 22px; }
.side-widget h3 { margin: 0 0 18px; font-family: var(--font-display); font-size: 18px; text-transform: uppercase; }
.side-widget h3 span { color: var(--yellow); }
.side-avatar { width: 68px; margin: -52px 0 -7px auto; image-rendering: pixelated; }
.side-widget input { width: 100%; margin-bottom: 12px; }
.side-widget__actions { display: grid; grid-template-columns: 1fr 50px; gap: 10px; }
.side-widget__actions .button { padding: 0 12px; }
.status-card { padding: 4px 0 0; }
.status-main { display: flex; justify-content: space-between; align-items: center; padding: 14px; background: #211e1f; }
.status-main strong { display: block; font-size: 17px; }
.status-main small { color: var(--muted); }
.status-light { width: 12px; height: 12px; border-radius: 50%; background: #ec4b4b; box-shadow: 0 0 12px currentColor; }
.status-light.is-online { background: var(--green); }
.status-ports { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.status-ports div { padding: 10px; background: #211e1f; color: var(--muted); font-size: 12px; }
.status-ports b { display: block; color: #fff; font-size: 14px; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 10px; background: #211e1f; }
.list-row + .list-row { margin-top: 8px; }
.list-row img { width: 32px; height: 32px; image-rendering: pixelated; }
.list-row strong { flex: 1; font-size: 13px; }
.list-row b { color: var(--yellow); font-size: 12px; }

.content-shell { width: min(1160px, calc(100% - 40px)); min-height: calc(100vh - 415px); margin: auto; padding: 36px 0 90px; }
.content-shell--wide { width: min(1440px, calc(100% - 40px)); }
.breadcrumb { margin-bottom: 15px; color: #80778b; font-size: 13px; }
.breadcrumb a:hover { color: var(--yellow); }
.page-heading { margin: 0 0 28px; }
.page-heading h1 { margin: 0; font-family: var(--font-display); font-size: 32px; letter-spacing: .4px; }
.page-heading p { margin: 3px 0 0; color: var(--muted); }
.page-heading--center { text-align: center; }
.page-heading--split { display: flex; justify-content: space-between; align-items: end; gap: 25px; }
.inner-page main { min-height: 760px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.store-card { overflow: hidden; background: var(--panel); border-radius: 14px; }
.store-card__image { height: 230px; display: grid; place-items: center; position: relative; background: linear-gradient(#59b6ec, #273e4e); }
.store-card:nth-child(2) .store-card__image { background: linear-gradient(#26c4e8, #3e725c); }
.store-card:nth-child(3) .store-card__image { background: linear-gradient(#7963dd, #3c2a4e); }
.store-card__image::before { content: ""; position: absolute; inset: 0; opacity: .6; background: url('../images/hero-tomatomc.png') center/cover; mix-blend-mode: overlay; }
.store-card__icon { position: relative; z-index: 1; font-size: 82px; filter: drop-shadow(0 8px 8px rgba(0,0,0,.4)); }
.store-card__footer { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; background: #ffb941; color: #59320b; font-weight: 1000; text-transform: uppercase; }

.forum-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; }
.forum-groups, .forum-side { display: grid; gap: 16px; align-content: start; }
.forum-box { overflow: hidden; border: 1px solid var(--line); background: #15121a; border-radius: 14px; }
.forum-box__title { margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--line); font: 17px var(--font-display); text-transform: uppercase; }
.forum-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; min-height: 70px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.forum-row:last-child { border-bottom: 0; }
.forum-row:hover { background: #1b1720; }
.forum-topic-row__avatar,.forum-topic-row__title,.forum-topic-row__stats{min-width:0}
.forum-topic-row > div{min-width:0}
.forum-topic-row h3,.forum-topic-row__title{overflow-wrap:anywhere}
.forum-topic-row__title:hover,.forum-topic-row__stats:hover{color:var(--yellow)}
.forum-icon { font-size: 28px; }
.forum-row h3, .forum-row h4 { margin: 0; font-size: 15px; }
.forum-row p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.forum-stats { min-width: 110px; color: var(--muted); text-align: right; font-size: 11px; }
.forum-stats b { display: block; color: #fff; }
.mini-topic { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.mini-topic:last-child { border-bottom: 0; }
.mini-topic img { width: 32px; height: 32px; image-rendering: pixelated; }
.mini-topic strong { display: block; font-size: 13px; }
.mini-topic small { color: var(--muted); }
.topic-post { display: grid; grid-template-columns: 180px minmax(0, 1fr); margin-bottom: 16px; border: 1px solid var(--line); background: #15121a; border-radius: 12px; overflow: visible; }
.topic-author { padding: 22px; background: #1a161f; text-align: center; }
.topic-author img { width: 88px; height: 88px; margin: 0 auto 10px; image-rendering: pixelated; border-radius: 6px; }
.topic-author strong, .topic-author small { display: block; }
.topic-body { min-height: 190px; padding: 20px 24px; }
.topic-body__meta { margin-bottom: 18px; color: var(--muted); font-size: 12px; }
.editor { margin-top: 24px; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }

.help-hero { padding: 52px 20px 38px; border-bottom: 1px solid var(--line); text-align: center; background: radial-gradient(circle at top, #21191b, var(--bg)); }
.help-hero h1 { margin: 0; font: 36px var(--font-display); }
.help-hero > p { margin: 7px auto 0; color: var(--muted); }
.search-box { position: relative; display: block; width: min(640px, 100%); margin: 22px auto 0; }
.search-box .search-box__icon { position: absolute; left: 17px; top: 13px; color: var(--muted); }
.search-box input { width: 100%; min-height: 50px; padding-left: 48px; border-color: var(--line-light); background: #18141d; }
.search-box input:focus-visible { border-color: var(--yellow); outline: 2px solid rgba(255,197,61,.2); outline-offset: 2px; }
.help-hero .help-search-status { min-height: 20px; margin-top: 12px; color: #b5acba; font-size: 12px; }
.help-center { display: grid; gap: 48px; }
.help-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.help-section-heading h2 { margin: 2px 0 0; font: 27px var(--font-display); }
.help-section-heading > p { max-width: 470px; margin: 0; color: var(--muted); text-align: right; }
.help-topic-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 14px; }
.help-topic-card { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 6px 15px; min-height: 148px; padding: 21px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); transition: transform .18s ease,border-color .18s ease,background .18s ease; }
.help-topic-card:not(.is-empty):hover,.help-topic-card:not(.is-empty):focus-visible { border-color: var(--yellow); background: #1d1821; transform: translateY(-2px); outline: none; }
.help-topic-card__icon { grid-row: span 2; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 10px; background: #211b24; font-size: 29px; }
.help-topic-card h3 { margin: 0; font-size: 17px; }
.help-topic-card p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.help-topic-card small { grid-column: 2; align-self: end; color: var(--yellow); font-weight: 900; }
.help-topic-card.is-empty { opacity: .65; }
.help-category-list { display: grid; gap: 28px; }
.help-category-section { scroll-margin-top: 100px; }
.help-category-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.help-category-heading > span { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 8px; background: #17131b; font-size: 20px; }
.help-category-heading h3 { margin: 0; font-size: 18px; }
.help-category-heading p { margin: 1px 0 0; color: var(--muted); font-size: 12px; }
.help-article-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(270px,1fr)); gap: 14px; }
.help-article-card { display: flex; flex-direction: column; min-width: 0; min-height: 210px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg,#19151d,#141118); transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.help-article-card:hover,.help-article-card:focus-visible { border-color: var(--yellow); box-shadow: 0 12px 32px #0005; transform: translateY(-2px); outline: none; }
.help-article-card h4 { margin: 5px 0 9px; overflow-wrap: anywhere; font-size: 18px; }
.help-article-card p { margin: 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.help-article-card__link { margin-top: auto; color: var(--yellow); font-size: 12px; font-weight: 1000; text-transform: uppercase; }
.help-article-card:hover .help-article-card__link span { display: inline-block; transform: translateX(3px); }
.help-faq-section { display: grid; }
.help-empty-state,.help-search-empty { margin: 0; padding: 30px; border: 1px dashed var(--line-light); border-radius: 12px; background: #141118; }
.help-empty-state h2,.help-search-empty h2 { margin-top: 0; }
.help-search-empty { border-color: #604d24; text-align: center; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.faq-item { overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; }
.faq-item button { width: 100%; padding: 15px 19px; display: flex; gap: 10px; border: 0; background: none; color: #aaa0b5; text-align: left; font-weight: 800; }
.faq-item button span { color: var(--yellow); }
.faq-answer { display: none; padding: 0 19px 18px 47px; color: var(--muted); }
.faq-item.is-open .faq-answer { display: block; }
.help-article-page { width: min(980px,calc(100% - 40px)); }
.help-article-detail { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.help-article-detail__header { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 18px; align-items: center; padding: 28px 32px; border-bottom: 1px solid var(--line); background: linear-gradient(120deg,#211a24,#161219); }
.help-article-detail__icon { display: grid; place-items: center; width: 68px; height: 68px; border: 1px solid #4a3d28; border-radius: 12px; background: #211b18; font-size: 34px; }
.help-article-detail__header h1 { margin: 2px 0 3px; overflow-wrap: anywhere; font: 32px var(--font-display); }
.help-article-detail__header p { margin: 0; color: var(--muted); font-size: 12px; }
.help-article-body { padding: 34px 36px 40px; color: #d4ccd8; overflow-wrap: anywhere; font-size: 16px; line-height: 1.85; }
.help-article-detail__footer { padding: 17px 36px; border-top: 1px solid var(--line); background: #141118; }
.help-support-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 20px; padding: 22px 25px; border: 1px solid #594617; border-radius: 12px; background: #1b1710; }
.help-support-cta h2 { margin: 2px 0 0; font-size: 21px; }
.help-support-cta p { margin: 3px 0 0; color: var(--muted); }
@media (max-width:700px) {
    .help-hero { padding: 38px 14px 30px; }
    .help-section-heading { display: block; }
    .help-section-heading > p { margin-top: 5px; text-align: left; }
    .help-topic-grid,.help-article-grid,.faq-grid { grid-template-columns: 1fr; }
    .help-article-page { width: calc(100% - 24px); }
    .help-article-detail__header { grid-template-columns: 1fr; padding: 23px; }
    .help-article-body { padding: 25px 23px 30px; font-size: 15px; }
    .help-article-detail__footer { padding: 16px 23px; }
    .help-support-cta { align-items: stretch; flex-direction: column; }
}

.rules-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.rules-nav a { padding: 10px 14px; color: #d0c8d5; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; }
.rule-section { margin-bottom: 24px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.rule-section h2 { margin: 0; font: 24px var(--font-display); }
.rule-section > p { color: var(--muted); }
.rule-item { display: grid; grid-template-columns: 38px 1fr; gap: 13px; padding: 17px 0; border-top: 1px solid var(--line); }
.rule-number { width: 34px; height: 34px; display: grid; place-items: center; background: var(--yellow); color: #5b2905; font-weight: 1000; border-radius: 5px; }
.rule-item h3 { margin: 0 0 2px; font-size: 15px; }
.rule-item p { margin: 0; color: var(--muted); }

.staff-rank { margin-bottom: 35px; }
.staff-rank__title { margin-bottom: 14px; font: 22px var(--font-display); text-transform: uppercase; }
.staff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.staff-card { padding: 22px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; transition: .18s ease; }
.staff-card:hover { transform: translateY(-4px); border-color: var(--rank-color, var(--yellow)); }
.staff-card img { width: 104px; height: 104px; margin: auto; border-radius: 9px; image-rendering: pixelated; }
.staff-card h3 { margin: 12px 0 0; }
.staff-card span { color: var(--rank-color, var(--yellow)); font-weight: 900; font-size: 12px; text-transform: uppercase; }

.application-intro { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: center; margin-bottom: 30px; padding: 32px; background: linear-gradient(120deg, #211820, #15131a); border: 1px solid var(--line); border-radius: 14px; }
.application-benefits { display: grid; gap: 10px; }
.application-benefits div { padding: 12px 14px; background: #100e13; border-left: 3px solid var(--yellow); }
.multi-form { padding: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.step-dots { display: flex; gap: 7px; margin-bottom: 24px; }
.step-dots span { height: 5px; flex: 1; background: #373039; border-radius: 5px; }
.step-dots span.is-active { background: var(--yellow); }
.form-page h2 { margin: 0 0 20px; font: 24px var(--font-display); }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }

.auth-stage { min-height: 100vh; position: relative; display: grid; place-items: center; padding: 80px 20px; background: #110b08 url('../images/auth-tomatomc.png') center/cover fixed; }
.auth-stage::before { content: ""; position: absolute; inset: 0; background: rgba(17,7,4,.66); backdrop-filter: blur(1px); }
.auth-home { z-index: 2; position: absolute; top: 24px; left: 24px; padding: 10px 18px; color: #aaa1aa; background: rgba(28,24,27,.75); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; font-weight: 700; }
.auth-brand { z-index: 2; position: absolute; top: calc(50% - 280px); }
.auth-card { z-index: 2; width: min(400px, 100%); margin-top: 70px; padding: 30px; background: rgba(40,23,25,.94); border: 1px solid rgba(255,255,255,.13); border-radius: 18px; box-shadow: 0 25px 80px rgba(0,0,0,.45); }
.auth-card--wide { width: min(520px, 100%); }
.auth-card h1 { margin: 0; text-align: center; font: 28px var(--font-display); }
.auth-card > p { margin: 4px 0 24px; color: var(--muted); text-align: center; }
.auth-card .button { width: 100%; }
.auth-links { margin: 20px 0 0; color: var(--muted); text-align: center; }
.auth-links a, .inline-link { color: var(--yellow); font-weight: 800; }
.floating-flash { z-index: 5; position: fixed; top: 18px; left: 50%; transform: translateX(-50%); max-width: 520px; padding: 12px 18px; border-radius: 8px; background: #2a242c; box-shadow: 0 10px 30px #0008; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: block; margin-bottom: 15px; }
.field > span, .field-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; color: #a9a1ad; font-size: 11px; font-weight: 900; letter-spacing: .4px; text-transform: uppercase; }
input, textarea, select { width: 100%; border: 1px solid var(--line-light); outline: none; background: #19161a; color: #fff; border-radius: 5px; padding: 13px 14px; transition: .15s ease; }
input:focus, textarea:focus, select:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,197,61,.08); }
textarea { min-height: 120px; resize: vertical; }
.password-wrap { position: relative; }
.password-wrap button { position: absolute; top: 0; right: 0; height: 100%; width: 44px; border: 0; background: none; color: var(--muted); }
.check-field { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 18px; color: var(--muted); }
.check-field input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--yellow); }
.help-text { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }

.site-footer { border-top: 1px solid #262229; background: #0a080d; padding-top: 0; }
.footer-statusbar { width: min(1460px, calc(100% - 40px)); margin: -1px auto 0; padding: 10px 18px; display: flex; gap: 10px; background: #ee9f19; }
.footer-statusbar button, .footer-statusbar span { border: 0; padding: 8px 12px; background: rgba(121,64,3,.12); color: #673304; font-weight: 900; }
.footer-grid { width: min(1460px, calc(100% - 40px)); margin: auto; display: grid; grid-template-columns: 2.2fr repeat(3, 1fr); gap: 48px; padding: 50px 0 35px; }
.footer-grid h4 { margin: 0 0 15px; color: #aaa1b4; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.footer-grid a { display: block; margin-bottom: 8px; color: #8d8495; }
.footer-grid a:hover { color: var(--yellow); }
.footer-about p { max-width: 380px; color: #8d8495; }
.footer-about small { color: #685f6d; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0; }
.social-icon { width: 40px; height: 40px; flex: 0 0 40px; display: inline-grid; place-items: center; border: 1px solid #37303c; border-radius: 8px; color: #fff; background: #211c25; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.social-icon svg { width: 22px; height: 22px; display: block; fill: currentColor; stroke: none; }
.social-icon svg .social-icon-cut { fill: #211c25; }
.social-icon svg .social-icon-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-socials .social-icon:hover { transform: translateY(-3px); border-color: var(--yellow); background: #2b2430; color: var(--yellow); }
.social-icon--youtube { color: #ff4b4b; }.social-icon--twitch { color: #a970ff; }.social-icon--tiktok { color: #65e9e4; }.social-icon--instagram { color: #ef6ca8; }.social-icon--facebook { color: #5d94ff; }.social-icon--x { color: #f4f4f4; }.social-icon--discord { color: #8699ff; }.social-icon--reddit { color: #ff6a2b; }.social-icon--threads { color: #f4f4f4; }.social-icon--bluesky { color: #55b6ff; }.social-icon--linkedin { color: #58a7e0; }.social-icon--kick { color: #7fea32; }
.social-admin-list { display: grid; gap: 12px; }
.social-admin-item { display: grid; grid-template-columns: 42px minmax(120px,.7fr) minmax(150px,.8fr) minmax(240px,1.5fr) 90px auto auto; align-items: end; gap: 12px; }
.social-admin-item .social-icon { align-self: center; }
.social-admin-item .field, .social-admin-item .check-field { margin: 0; }
.social-admin-item--new { margin-top: 18px; border-color: #5c4820; }
@media(max-width:1100px){.social-admin-item{grid-template-columns:42px 1fr 1fr}.social-admin-url{grid-column:2/-1}.social-admin-item .actions{grid-column:2/-1}}
@media(max-width:640px){.social-admin-item{grid-template-columns:42px 1fr}.social-admin-item .field,.social-admin-url,.social-admin-item .actions{grid-column:1/-1}.social-admin-item .social-icon{grid-column:1}.social-admin-item .check-field{grid-column:2}}
.footer-preferences button { width: 100%; margin-bottom: 9px; padding: 10px 12px; color: #bcb4c1; text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; }
.footer-bottom { padding: 18px max(20px, calc((100% - 1460px)/2)); display: flex; justify-content: space-between; border-top: 1px solid #211d23; color: #625a67; font-size: 11px; }
.settings-tab { position: fixed; right: 0; top: 38%; z-index: 90; width: 59px; height: 60px; border: 0; border-radius: 13px 0 0 13px; background: #fff; color: #181419; box-shadow: 0 7px 20px #0005; font-size: 24px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 20px); padding: 12px 18px; background: #fff; color: #171318; border-radius: 7px; box-shadow: 0 12px 30px #0007; opacity: 0; visibility: hidden; transition: .2s ease; font-weight: 800; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

.flash { margin: 0 0 18px; padding: 12px 16px; border-left: 4px solid #8e8794; background: #242027; border-radius: 4px; }
.global-flash { position: fixed; z-index: 100; top: 85px; left: 50%; width: min(540px, calc(100% - 30px)); transform: translateX(-50%); box-shadow: 0 10px 35px #0008; }
.flash--success { border-color: var(--green); }
.flash--error { border-color: #ef5658; }
.flash--warning { border-color: var(--yellow); }

.empty-state { max-width: 650px; margin: 90px auto; padding: 45px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.empty-state__code { display: block; color: var(--yellow); font: 70px var(--font-display); }
.empty-state p { color: var(--muted); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 35px; }
.pagination a, .pagination span { min-width: 38px; height: 36px; display: grid; place-items: center; background: var(--yellow); color: #5a2a06; font-weight: 900; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 20px; background: #312a34; color: #bdb4c4; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.badge--open, .badge--accepted, .badge--active { color: #0d502b; background: #54dc8b; }
.badge--rejected, .badge--banned, .badge--urgent { color: #fff; background: #df4a4c; }
.badge--review, .badge--waiting_staff { color: #5c3400; background: var(--yellow); }

.profile-hero { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; padding: 32px; background: linear-gradient(120deg, #201821, #151219); border: 1px solid var(--line); border-radius: 14px; }
.profile-hero img { width: 140px; height: 140px; border-radius: 10px; image-rendering: pixelated; }
.profile-hero h1 { margin: 0; font: 34px var(--font-display); }
.profile-hero p { color: var(--muted); }

.panel-layout { min-height: 100vh; display: grid; grid-template-columns: 270px 1fr; background: #100e13; }
.panel-sidebar { position: sticky; top: 0; height: 100vh; padding: 25px 18px; display: flex; flex-direction: column; background: #17131b; border-right: 1px solid var(--line); }
.panel-sidebar > .wordmark { align-self: center; margin-bottom: 25px; }
.panel-user { display: flex; align-items: center; gap: 12px; padding: 13px; background: #201b23; border-radius: 9px; }
.panel-user img { width: 48px; height: 48px; border-radius: 6px; image-rendering: pixelated; }
.panel-user strong, .panel-user small { display: block; }
.panel-user small { color: var(--yellow); font-size: 11px; }
.panel-nav { display: grid; gap: 5px; margin-top: 20px; }
.panel-nav a { padding: 11px 13px; color: #9f96a6; border-radius: 7px; font-weight: 750; }
.panel-nav a:hover, .panel-nav a.is-active { background: #2a2229; color: #fff; }
.panel-nav a.is-active { box-shadow: inset 3px 0 var(--yellow); }
.panel-logout { margin-top: auto; }
.panel-logout button { width: 100%; padding: 11px; border: 1px solid var(--line); background: none; color: #a59ca9; border-radius: 7px; }
.panel-main { min-width: 0; padding: 35px; }
.panel-mobile-head { display: none; }
.panel-header { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 25px; }
.panel-header h1 { margin: 0; font: 32px var(--font-display); }
.panel-header p { margin: 3px 0 0; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 25px; }
.stat-card { padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.stat-card span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.stat-card strong { display: block; margin-top: 4px; font: 32px var(--font-display); }
.panel-card { margin-bottom: 20px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; }
.panel-card__header { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.panel-card__header h2 { margin: 0; font: 19px var(--font-display); }
.panel-card__body { padding: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: #8e8595; font-size: 10px; letter-spacing: .8px; text-transform: uppercase; }
td { color: #d6ceda; }
tr:last-child td { border-bottom: 0; }
.table-user { display: flex; align-items: center; gap: 10px; }
.table-user img { width: 34px; height: 34px; border-radius: 5px; image-rendering: pixelated; }
.inline-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.inline-form .field { margin: 0; flex: 1; min-width: 130px; }
.split-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.permission-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.permission-group { padding: 16px; background: #121015; border-radius: 8px; }
.permission-group h3 { margin: 0 0 10px; font-size: 14px; }
.permission-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; color: #bbb2c0; }
.permission-item input { width: 17px; height: 17px; accent-color: var(--yellow); }
.permission-item small { display: block; color: #756d7a; }
.sortable-list { display: grid; gap: 10px; }
.sortable-item { padding: 14px; background: #121015; border: 1px solid var(--line); border-radius: 8px; }
.sortable-item__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 7px; }
.actions form { display: inline; }
.muted { color: var(--muted); }
.text-yellow { color: var(--yellow); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.skip-link { position: fixed; z-index: 10000; top: 10px; left: 10px; padding: 10px 14px; border-radius: 6px; background: var(--yellow); color: #151016; font-weight: 900; text-decoration: none; transform: translateY(-160%); transition: transform .15s ease; }
.skip-link:focus, .skip-link:focus-visible { transform: translateY(0); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:not([tabindex="-1"]):focus-visible { outline: 3px solid var(--yellow) !important; outline-offset: 3px; }

@media (max-width: 1180px) {
    .nav-shell { grid-template-columns: auto 1fr auto; gap: 18px; }
    .site-nav { gap: 18px; }
    .site-nav > a, .nav-dropdown > button { font-size: 14px; }
    .home-grid, .forum-layout { grid-template-columns: 1fr; }
    .sidebar-stack { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .site-header { height: 66px; }
    .nav-shell { width: calc(100% - 28px); grid-template-columns: 1fr auto auto; }
    .mobile-menu { display: block; order: 2; }
    .nav-actions { order: 3; }
    .site-nav { display: none; position: absolute; top: 66px; left: 14px; right: 14px; height: auto; padding: 12px; align-items: stretch; background: #19151d; border: 1px solid var(--line); box-shadow: 0 15px 40px #000b; }
    .site-nav.is-open { display: grid; }
    .site-nav > a, .nav-dropdown > button { display: block; width: 100%; padding: 11px; text-align: left; }
    .nav-dropdown { display: block; }
    .nav-dropdown__menu { position: static; display: grid; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: #100e13; }
    .server-chip { display: none; }
    .hero { min-height: 690px; }
    .news-grid, .card-grid, .topic-cards, .staff-grid { grid-template-columns: repeat(2, 1fr); }
    .application-intro { grid-template-columns: 1fr; }
    .panel-layout { display: block; }
    .panel-sidebar { position: fixed; z-index: 100; left: -280px; width: 270px; transition: .2s ease; }
    .panel-open .panel-sidebar { left: 0; box-shadow: 15px 0 45px #000b; }
    .panel-main { padding: 20px; }
    .panel-mobile-head { display: flex; align-items: center; gap: 15px; margin-bottom: 24px; }
    .panel-mobile-head button { width: 42px; height: 40px; border: 0; background: var(--yellow); }
    .split-panel { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .wordmark { font-size: 25px; }
    .hero { min-height: 620px; }
    .hero-content { padding: 70px 18px 0; }
    .hero-logo { font-size: 58px; letter-spacing: -3px; }
    .hero-tagline { font-size: 14px; }
    .home-content { padding-top: 30px; }
    .home-grid, .content-shell, .content-shell--wide { width: calc(100% - 24px); }
    .promo { align-items: stretch; flex-direction: column; padding: 18px; }
    .promo-offer { width: 100%; }
    .news-grid, .card-grid, .topic-cards, .faq-grid, .staff-grid, .sidebar-stack, .form-grid, .permission-groups { grid-template-columns: 1fr; }
    .forum-row { grid-template-columns: 38px 1fr; }
    .forum-stats { display: none; }
    .topic-post { grid-template-columns: 1fr; }
    .topic-author { display: grid; grid-template-columns: 60px 1fr; text-align: left; }
    .topic-author img { width: 54px; height: 54px; margin: 0; grid-row: span 2; }
    .profile-hero { grid-template-columns: 1fr; text-align: center; }
    .profile-hero img { margin: auto; }
    .footer-statusbar { width: 100%; flex-wrap: wrap; }
    .footer-grid { width: calc(100% - 32px); grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-about { grid-column: 1 / -1; }
    .footer-bottom { display: grid; gap: 5px; }
    .settings-tab { top: auto; bottom: 90px; width: 48px; height: 48px; }
    .auth-brand { top: 70px; }
    .auth-card { margin-top: 60px; padding: 24px 20px; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .panel-main { padding: 15px; }
}

.discord-profile-preview { overflow: hidden; margin-bottom: 16px; border: 1px solid #3a3340; border-radius: 12px; background: #111014; }
.discord-profile-preview__banner { display: block; width: 100%; height: 180px; object-fit: cover; background: linear-gradient(125deg, #5c1718, #20141f 55%, #291c11); }
.discord-profile-preview__banner--empty { display: grid; place-items: center; color: #9b919f; font-size: 11px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; }
.discord-profile-preview__identity { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 16px; align-items: end; padding: 0 20px 20px; }
.discord-profile-preview__avatar { width: 88px; height: 88px; margin-top: -34px; object-fit: cover; border: 5px solid #111014; border-radius: 50%; background: #29232d; }
.discord-profile-preview__avatar--empty { display: grid; place-items: center; color: #151016; background: var(--yellow); font: 25px var(--font-display); }
.discord-profile-preview__identity strong { display: inline-block; margin: 13px 7px 4px 0; color: #f7f2f8; font-size: 20px; }
.discord-profile-preview__identity span { display: inline-block; padding: 2px 5px; border-radius: 3px; background: #5865f2; color: #fff; font-size: 9px; font-weight: 900; vertical-align: 2px; }
.discord-profile-preview__identity p { overflow-wrap: anywhere; margin: 0; color: #aaa1ae; white-space: pre-line; }
.discord-profile-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 18px; }
.discord-profile-meta>span { padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 11px; }
.discord-profile-meta strong { display: block; overflow-wrap: anywhere; margin-top: 3px; color: #eee8f0; font-size: 13px; }
.discord-profile-form { padding-top: 20px; border-top: 1px solid var(--line); }
.discord-profile-upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.discord-profile-upload-grid>div { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #121015; }
.discord-profile-upload-grid .check-field { margin-bottom: 0; }
.discord-profile-error { padding: 11px 13px; border: 1px solid #743638; border-radius: 7px; background: #391b1d; color: #ffb7b8; }
.discord-module-effect { min-height: 48px; color: #8f8794; font-size: 12px; line-height: 1.5; }
.discord-module-effect strong { color: #c9c1cc; }
.discord-module-disabled { padding: 12px 14px; border: 1px solid #75591e; border-radius: 8px; background: #33280f; color: #ffd778; }
form[inert] { opacity: .55; }
.stat-card .button:disabled { cursor: not-allowed; filter: grayscale(.35); opacity: .58; transform: none; box-shadow: none; }

@media (max-width: 720px) {
    .discord-profile-preview__banner { height: 125px; }
    .discord-profile-preview__identity { grid-template-columns: 68px minmax(0,1fr); padding: 0 14px 16px; }
    .discord-profile-preview__avatar { width: 68px; height: 68px; margin-top: -24px; border-width: 4px; }
    .discord-profile-meta, .discord-profile-upload-grid { grid-template-columns: 1fr; }
}
