* { box-sizing: border-box; margin: 0; padding: 0; }
body { min-height: 100vh; background: #0e0f11; color: #e5e7eb; font-family: "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }

/* ---------- page head ---------- */
.page { padding: 32px 32px 48px; }
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.head h1 { font-size: 32px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.head p { margin-top: 2px; font-size: 16px; color: #cbd5e1; }
.head-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 4px; border: 1px solid #2a2c31; background: #17181b; color: #fff; font-size: 16px; font-weight: 500; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.btn:hover { background: #1f2024; border-color: #3a3c42; }
.btn-green { background: #3b564d; border-color: #52776a; color: #eaf2ee; }
.btn-green:hover { background: #466659; border-color: #52776a; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.tabs { display: inline-flex; gap: 8px; margin-top: 20px; padding: 0; }
.tab { display: inline-flex; align-items: center; height: 38px; padding: 0 15px; border-radius: 4px; border: 1px solid #2a2c31; background: #141518; color: #cbd5e1; font-size: 15px; }
.tab:hover { background: #1b1c20; }
.tab.active { background: #3b564d; border-color: #52776a; color: #eaf2ee; }

/* ---------- filters ---------- */
.filters { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-top: 36px; padding: 12px; border: 1px solid #26282c; border-radius: 6px; background: #151619; }
.filters label { font-size: 15px; color: #cbd5e1; }
.filters select, .filters input { height: 30px; padding: 0 10px; border: 0; border-radius: 3px; background: #232428; color: #fff; font-size: 15px; outline: none; }
.filters select { min-width: 130px; cursor: pointer; }
.filters input { width: 128px; }
.filters input[type=search] { width: 192px; }
.filters input::placeholder { color: #8b9098; }
.filters input:focus, .filters select:focus { box-shadow: 0 0 0 1px #7fb5a2; }

/* ---------- board ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 24px; margin-top: 32px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.col { border: 1px solid #26282c; border-radius: 8px; background: #151619; padding: 18px 16px 16px; min-width: 0; }
.col-head { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 20px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.col-list { display: flex; flex-direction: column; gap: 16px; }
.more { width: 100%; margin-top: 14px; height: 34px; border-radius: 4px; border: 1px dashed #33353a; background: none; color: #9ca3af; cursor: pointer; font-size: 14px; }
.more:hover { color: #fff; border-color: #4b4e55; }
.col-empty { padding: 24px 8px; text-align: center; color: #6b7280; font-size: 14px; border: 1px dashed #2a2c31; border-radius: 6px; }

.tcard { border: 1px solid #2a2c31; border-radius: 4px; background: #111214; padding: 16px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.tcard:hover { border-color: #3a3d44; background: #141518; }
.tcard:focus-visible { outline: 2px solid #7fb5a2; outline-offset: 2px; }
.tcard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tid { display: inline-block; padding: 3px 7px; border-radius: 3px; background: rgba(127, 181, 162, .12); color: #7fb5a2; font: 700 10.5px "JetBrains Mono", ui-monospace, monospace; letter-spacing: .02em; }
.vote { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 3px; border: 0; background: #232428; color: #cbd5e1; font-size: 13px; cursor: pointer; }
.vote svg { width: 10px; height: 10px; }
.vote:hover { background: #2c2d32; }
.vote.on { background: rgba(127, 181, 162, .15); color: #7fb5a2; }
.tcard h3 { margin-top: 14px; font-size: 14.5px; font-weight: 700; color: #fff; line-height: 1.35; overflow-wrap: anywhere; }
.meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: #6b7280; flex-wrap: wrap; }
.meta .av { width: 16px; height: 16px; border-radius: 50%; background: #2a2c31; object-fit: cover; flex: none; }
.excerpt { margin-top: 28px; font-size: 14.5px; line-height: 20px; color: #d1d5db; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; white-space: pre-line; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 3px; font-size: 13px; border: 1px solid; }
.tag svg { width: 12px; height: 12px; }
.tag.game { background: #1c1d20; border-color: #2a2c31; color: #6b7280; }
.tag.count { background: #1c1d20; border-color: #2a2c31; color: #6b7280; }
.tag.blue { background: rgba(37, 99, 235, .12); border-color: rgba(59, 130, 246, .35); color: #60a5fa; }
.tag.violet { background: rgba(147, 51, 234, .12); border-color: rgba(168, 85, 247, .35); color: #c084fc; }
.tag.red { background: rgba(220, 38, 38, .12); border-color: rgba(239, 68, 68, .35); color: #f87171; }

/* ---------- loading skeletons ---------- */
.skel { border: 1px solid #2a2c31; border-radius: 4px; background: #111214; padding: 16px; }
.skel i { display: block; height: 12px; border-radius: 3px; margin-top: 12px; background: linear-gradient(90deg, #1b1c1f 0%, #26282c 50%, #1b1c1f 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skel i:first-child { width: 60px; margin-top: 0; }
.skel i.w80 { width: 80%; } .skel i.w50 { width: 50%; } .skel i.w100 { width: 100%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- modal ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow-y: auto; background: rgba(0, 0, 0, .7); backdrop-filter: blur(3px); }
.modal { width: 100%; max-width: 720px; border: 1px solid #2a2c31; border-radius: 8px; background: #151619; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px 16px; border-bottom: 1px solid #26282c; }
.modal-head h2 { margin-top: 10px; font-size: 20px; color: #fff; overflow-wrap: anywhere; }
.x { width: 32px; height: 32px; border-radius: 4px; border: 1px solid #2a2c31; background: #1b1c1f; color: #9ca3af; font-size: 20px; line-height: 1; cursor: pointer; flex: none; }
.x:hover { color: #fff; }
.modal-body { padding: 18px 22px 22px; }
.desc { font-size: 15px; line-height: 1.6; color: #e5e7eb; white-space: pre-wrap; overflow-wrap: anywhere; }
.note { margin-top: 18px; padding: 12px 14px; border-left: 3px solid #7fb5a2; border-radius: 0 4px 4px 0; background: rgba(127, 181, 162, .07); font-size: 14px; white-space: pre-wrap; }
.note b { display: block; margin-bottom: 4px; font-size: 12px; color: #7fb5a2; text-transform: uppercase; letter-spacing: .05em; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 3px; background: #1c1d20; border: 1px solid #2a2c31; font-size: 13px; color: #cbd5e1; }

.convo { margin-top: 22px; border-top: 1px solid #26282c; padding-top: 16px; }
.convo h4 { font-size: 13px; color: #9ca3af; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.msgs { display: flex; flex-direction: column; gap: 10px; max-height: 340px; overflow-y: auto; }
.msg { padding: 10px 12px; border-radius: 4px; background: #111214; border: 1px solid #26282c; }
.msg.staff { border-color: rgba(127, 181, 162, .35); }
.msg-who { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: #6b7280; margin-bottom: 4px; }
.msg-who b { color: #e5e7eb; }
.msg-who .dev { color: #7fb5a2; font-weight: 700; }
.msg p { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.locked { font-size: 14px; color: #6b7280; }

.form label { display: block; margin: 14px 0 6px; font-size: 14px; color: #cbd5e1; }
.form label:first-child { margin-top: 0; }
.form input, .form select, .form textarea { width: 100%; padding: 9px 11px; border: 1px solid #2a2c31; border-radius: 4px; background: #111214; color: #fff; font-size: 15px; outline: none; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: #7fb5a2; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .check { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: #9ca3af; }
.form .check input { width: auto; accent-color: #7fb5a2; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.hint { font-size: 13px; color: #6b7280; }
.hint a { color: #7fb5a2; }
.err { margin-top: 12px; padding: 10px 12px; border-radius: 4px; background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .35); color: #fca5a5; font-size: 14px; }
.ok { padding: 10px 12px; border-radius: 4px; background: rgba(127, 181, 162, .1); border: 1px solid rgba(127, 181, 162, .35); color: #6ee7b7; font-size: 14px; }
.reply { display: flex; gap: 10px; margin-top: 12px; }
.reply textarea { flex: 1; min-height: 44px; height: 44px; padding: 10px; border: 1px solid #2a2c31; border-radius: 4px; background: #111214; color: #fff; resize: vertical; outline: none; }
.reply textarea:focus { border-color: #7fb5a2; }

.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 10px 14px; border-radius: 4px; background: #1b1c1f; border: 1px solid #2a2c31; border-left: 3px solid #7fb5a2; font-size: 14px; }
.toast.error { border-left-color: #ef4444; }

@media (max-width: 700px) {
    .page { padding: 20px 14px 32px; }
    .board { grid-auto-flow: row; grid-auto-columns: auto; }
    .form .row { grid-template-columns: 1fr; }
}

/* ---------- tickets page (list + form) ---------- */
.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid #26282c; border-radius: 6px; background: #151619; font-size: 14px; color: #cbd5e1; flex-wrap: wrap; }
.cta a.link { color: #7fb5a2; font-weight: 600; }
.btn-discord { background: #5865f2; border-color: #5865f2; color: #fff; height: 36px; font-size: 14px; }
.btn-discord:hover { background: #4752c4; border-color: #4752c4; }
.btn-discord svg { width: 16px; height: 16px; fill: currentColor; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; margin-top: 24px; align-items: start; }
.list-filters { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid #26282c; border-radius: 6px; background: #151619; }
.list-filters .line { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.list-filters select, .list-filters input { height: 32px; padding: 0 10px; border: 0; border-radius: 3px; background: #232428; color: #fff; font-size: 14px; outline: none; }
.list-filters input[type=search] { flex: 1; min-width: 180px; }
.list-filters input:focus, .list-filters select:focus { box-shadow: 0 0 0 1px #7fb5a2; }
.seg { display: inline-flex; gap: 4px; padding: 3px; border-radius: 4px; background: #111214; border: 1px solid #26282c; flex-wrap: wrap; }
.seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 3px; background: none; color: #9ca3af; font-size: 14px; cursor: pointer; }
.seg button:hover { color: #fff; }
.seg button.active { background: #3b564d; color: #eaf2ee; font-weight: 600; }
.seg.full { display: flex; }
.seg.full button { flex: 1; }
.list-meta { margin: 14px 2px 10px; font-size: 13px; color: #6b7280; }
.tlist { display: flex; flex-direction: column; gap: 12px; }
.titem { display: block; width: 100%; text-align: left; border: 1px solid #2a2c31; border-radius: 4px; background: #111214; padding: 16px 18px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.titem:hover { border-color: #3a3d44; background: #141518; }
.titem:focus-visible { outline: 2px solid #7fb5a2; outline-offset: 2px; }
.titem .line1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.titem h3 { margin-top: 10px; font-size: 15px; color: #fff; overflow-wrap: anywhere; }
.titem .excerpt { margin-top: 8px; -webkit-line-clamp: 2; }
.titem .foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.titem .foot .vote { margin-left: auto; }
.titem .foot .by { font-size: 13px; color: #6b7280; margin-right: 4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 3px; font-size: 12px; font-weight: 600; border: 1px solid #2a2c31; background: #1c1d20; color: #cbd5e1; }
.pill.type-bug_report { color: #f87171; border-color: rgba(239, 68, 68, .35); background: rgba(220, 38, 38, .1); }
.pill.type-suggestion { color: #c084fc; border-color: rgba(168, 85, 247, .35); background: rgba(147, 51, 234, .1); }
.pill.mine { color: #7fb5a2; border-color: rgba(127, 181, 162, .35); background: rgba(127, 181, 162, .08); }
.empty { padding: 40px 16px; text-align: center; color: #6b7280; border: 1px dashed #2a2c31; border-radius: 6px; font-size: 14px; }
.side { position: sticky; top: 20px; border: 1px solid #26282c; border-radius: 8px; background: #151619; padding: 20px; }
.side h2 { font-size: 18px; color: #fff; }
.side .sub { margin-top: 2px; font-size: 14px; color: #9ca3af; }
.auth { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0; padding: 12px; border: 1px solid #26282c; border-radius: 6px; background: #111214; flex-wrap: wrap; }
.auth .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.auth img, .auth .av-lg { width: 32px; height: 32px; border-radius: 50%; background: #2a2c31; flex: none; object-fit: cover; }
.auth .name { font-size: 14px; font-weight: 600; color: #fff; }
.auth .small { font-size: 12px; color: #6b7280; }
.auth .btn { height: 32px; font-size: 13px; padding: 0 12px; }
.similar { margin-top: 8px; padding: 10px; border: 1px solid #2a2c31; border-radius: 4px; background: #111214; }
.similar-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #6b7280; margin-bottom: 4px; }
.similar-head button { border: 0; background: none; color: #6b7280; text-decoration: underline; cursor: pointer; font-size: 12px; }
.similar-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px; border: 0; border-radius: 3px; background: none; color: #e5e7eb; font-size: 13px; text-align: left; cursor: pointer; }
.similar-item:hover { background: #1c1d20; }
.similar-item span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.count { font-size: 12px; color: #6b7280; margin-top: 4px; }

@media (max-width: 1000px) {
    .layout, .cta-row { grid-template-columns: 1fr; }
    .side { position: static; }
}
.form .row:has(> .hidden) { grid-template-columns: 1fr; }

/* ---------- text pages (privacy) ---------- */
.prose { max-width: 820px; font-size: 15px; line-height: 1.7; color: #d1d5db; }
.prose h2 { margin: 26px 0 8px; font-size: 19px; color: #fff; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 10px 0; }
.prose ul { margin: 4px 0 12px 22px; }
.prose p + ul { margin-top: 2px; }
.prose a { color: #7fb5a2; }
.prose code { padding: 1px 6px; border-radius: 3px; background: #232428; font-size: 13px; }

/* ---------- private contact ---------- */
.narrow { max-width: 760px; margin: 0 auto; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #9ca3af; }
.back:hover { color: #fff; }
.narrow h1 { margin-top: 22px; font-size: 32px; font-weight: 800; color: #fff; }
.lead { margin-top: 8px; font-size: 15px; line-height: 1.6; color: #9ca3af; }
.discord-banner { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 16px 18px; border-radius: 8px; background: rgba(88, 101, 242, .1); border: 1px solid rgba(88, 101, 242, .35); }
.discord-banner .ic { flex: none; width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; background: rgba(88, 101, 242, .25); color: #8c97ff; }
.discord-banner .ic svg { width: 24px; height: 24px; fill: currentColor; }
.discord-banner .txt { flex: 1; min-width: 0; }
.discord-banner strong { display: block; color: #fff; font-size: 15px; }
.discord-banner span { font-size: 13px; color: #9ca3af; }
.contact-card { margin-top: 20px; }
.opt { font-weight: 400; color: #6b7280; }
.req { color: #ef4444; }
@media (max-width: 600px) { .discord-banner { flex-wrap: wrap; } .discord-banner .btn { width: 100%; justify-content: center; } }
