/* Food Fight Support — no gradients, solid surfaces, quiet motion. */

@font-face {
  font-family: "Asgard";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Asgard-Bold.ttf") format("truetype");
  /* The trial font draws "TRIAL ONLY…" for 0-9, so digits fall back to the next font in --title. */
  unicode-range: U+0000-002F, U+003A-10FFFF;
}

:root {
  --bg: #0b0c0d;
  --header: #000;
  --surface: #131416;
  --surface-2: #1a1b1e;
  --surface-3: #222327;
  --border: #26272b;
  --border-strong: #393a40;
  --text: #fff;
  --text-2: #cfd0d4;
  --muted: #8d8e95;
  --accent: #fff;
  --danger: #ff4d4f;
  --ok: #3ddc84;
  --warn: #ffb020;
  --radius: 10px;
  --radius-sm: 6px;
  --wrap: 1240px;
  --gutter: 24px;
  --title: "Asgard", "Archivo Black", "Arial Black", sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 400 16px/1.6 var(--body);
  color: var(--text);
  background: var(--bg);
}
/* Static texture: a faint dot grid plus film grain, fixed behind everything. */
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; }
body::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='1.5' cy='1.5' r='1' fill='%23ffffff' fill-opacity='.07'/%3E%3C/svg%3E");
}
body::after {
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.site-header, .staff-bar, main, .site-footer { position: relative; z-index: 1; }
.site-header { position: sticky; z-index: 50; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #000; }

h1, h2, h3, .title { font-family: var(--title); font-weight: 700; letter-spacing: .01em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(36px, 6vw, 72px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 20px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

svg.lucide { width: 1em; height: 1em; stroke-width: 1.75; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header); border-bottom: 1px solid #141414; }
.header-inner { height: 76px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.brand img { height: 42px; width: auto; transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-3deg) scale(1.04); }
.brand-sep { width: 1px; height: 30px; background: #3a3a3a; }
.brand-name { font-family: var(--title); font-size: 26px; line-height: 1; }
.main-nav { flex: 1; display: flex; justify-content: center; gap: 36px; }
.main-nav a, .staff-nav a {
  position: relative; font-family: var(--title); font-size: 14px; text-transform: uppercase; letter-spacing: .06em;
  color: #bdbdbd; padding: 6px 0; transition: color .2s;
}
.staff-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav a:hover, .main-nav a.active, .staff-nav a:hover, .staff-nav a.active { color: #fff; }
.staff-nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-size: 20px;
  background: none; border: 1px solid transparent; cursor: pointer; transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: #3a3a3a; background: #111; }
.icon-btn.has-avatar { padding: 0; overflow: hidden; }
.icon-btn.has-avatar img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: block; }
.menu-btn { display: none; }

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--text); background: var(--text); color: #000; font-weight: 700; font-size: 15px;
  cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn:active { transform: scale(.97); }
.btn-outline { background: transparent; color: var(--text); border-color: #fff; }
.btn-outline:hover { background: #fff; color: #000; border-color: #fff; }
.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-3); color: #fff; border-color: var(--border-strong); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn-discord:hover { background: #4752c4; border-color: #4752c4; color: #fff; }
.btn[disabled] { opacity: .5; pointer-events: none; }

label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin: 0 0 6px; }
.req { color: var(--accent); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], select, textarea {
  width: 100%; height: 46px; padding: 0 14px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); outline: none; transition: border-color .2s, background .2s;
}
textarea { height: auto; min-height: 140px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); background: var(--surface-3); }
input[type=file] { font-size: 14px; color: var(--muted); }
input[type=file]::file-selector-button {
  margin-right: 12px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface-3); color: #fff; font-weight: 600; cursor: pointer;
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); cursor: pointer; margin: 0; font-weight: 500; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- Flash ---------- */
.flashes { margin-top: 24px; display: grid; gap: 10px; }
.flash {
  display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--ok); font-size: 15px;
  animation: drop .45s var(--ease);
}
.flash.error { border-left-color: var(--danger); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 104px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 60%),
              #05070d url("../img/background-stars.jpg") center / cover no-repeat;
  border-bottom: 1px solid var(--border);
}
.hero h1 { max-width: 14ch; }
.hero + .section { padding-top: 48px; }
.search { position: relative; max-width: 620px; margin-top: 36px; }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--muted); pointer-events: none; }
.search input { height: 58px; padding-left: 52px; border-radius: 999px; font-size: 17px; background: rgba(10, 14, 11, .85); border-color: var(--border-strong); }
.search input:focus { background: var(--surface); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.link-all { font-family: var(--title); font-size: 16px; color: #fff; border-bottom: 2px solid transparent; transition: border-color .2s; }
.link-all:hover { border-color: var(--accent); }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  display: flex; align-items: center; gap: 22px; min-height: 120px; padding: 24px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .35s var(--ease), border-color .25s, background .25s;
}
.tile-icon { font-size: 34px; display: grid; place-items: center; color: var(--muted); transition: color .25s, transform .35s var(--ease); }
.tile h3 { font-size: 22px; }
.tile p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.tile:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.tile:hover .tile-icon { color: var(--accent); transform: scale(1.08) rotate(-4deg); }

/* Article cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); transition: transform .35s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card h3 { font-size: 19px; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.empty { padding: 40px; border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--muted); text-align: center; background: rgba(7, 10, 8, .6); }

/* Submit request block */
.request-block {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 44px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
}
.request-block p { color: var(--text-2); margin: 12px 0 0; max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--border-strong); font-size: 14px; font-weight: 600; color: var(--text-2);
  transition: background .2s, color .2s, border-color .2s;
}
.chip svg { font-size: 16px; }
.chip:hover { background: #fff; border-color: #fff; color: #000; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 28px 20px; }
.member-photo { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.member:hover .member-photo img { transform: scale(1.06); }
.member-name { margin-top: 12px; font-weight: 700; color: #fff; font-size: 16px; line-height: 1.3; }
.member-role { color: var(--muted); font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 64px; background: #000; border-top: 1px solid #141414; }
.footer-inner { display: flex; align-items: center; gap: 24px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: #8a8a8a; flex-wrap: wrap; }
.footer-inner img { height: 30px; width: auto; }
.footer-links { display: flex; gap: 22px; margin-left: auto; }
.footer-links a { display: inline-flex; align-items: center; gap: 6px; color: #bdbdbd; transition: color .2s; }
.footer-links a:hover { color: #fff; }

/* ---------- Page shells ---------- */
.page { padding-top: 56px; padding-bottom: 24px; }
.page-head { margin-bottom: 32px; }
.page-head h1 { font-size: clamp(32px, 4.5vw, 52px); }
.page-head p { color: var(--text-2); margin: 10px 0 0; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.narrow { max-width: 480px; margin: 0 auto; }
.medium { max-width: 820px; margin: 0 auto; }
.auth-foot { margin-top: 20px; font-size: 14px; color: var(--muted); text-align: center; }
.auth-foot a, .text-link { color: #fff; border-bottom: 1px solid var(--border-strong); transition: border-color .2s; }
.auth-foot a:hover, .text-link:hover { border-color: var(--accent); }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tab { height: 36px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--text-2); transition: background .2s, color .2s; }
.tab:hover { color: #fff; border-color: var(--border-strong); }
.tab.active { background: #fff; color: #000; border-color: #fff; }

/* Article */
.article-head h1 { font-size: clamp(32px, 5vw, 56px); }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 15px; }
.byline img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.byline .name { font-weight: 700; }
.byline .date { color: var(--muted); }
.prose { margin-top: 36px; color: var(--text-2); font-size: 17px; line-height: 1.75; }
.prose > *:first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: #fff; margin: 1.8em 0 .5em; }
.prose h1 { font-size: 34px; } .prose h2 { font-size: 27px; } .prose h3 { font-size: 21px; }
.prose a { color: var(--accent); border-bottom: 1px solid currentColor; }
.prose strong { color: #fff; }
.prose img { border-radius: var(--radius-sm); margin: 1.4em 0; border: 1px solid var(--border); }
.prose blockquote { margin: 1.4em 0; padding: 4px 20px; border-left: 3px solid var(--accent); color: var(--text-2); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose code { font-family: Consolas, "Cascadia Code", monospace; font-size: .9em; background: var(--surface-3); padding: 2px 6px; border-radius: 4px; color: #fff; }
.prose pre { background: #0b0f0c; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.prose th { background: var(--surface-2); color: #fff; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.2em 0; }
.prose mark { background: var(--accent); color: #000; padding: 0 3px; border-radius: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .3em 0; }
.prose .admonition { padding: 14px 18px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-2); margin: 1.4em 0; }
.prose .admonition-title { font-weight: 700; color: #fff; margin: 0 0 4px; }

/* Lists / tables */
.list { display: grid; gap: 10px; }
.row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s, background .2s;
}
a.row:hover { border-color: var(--border-strong); background: var(--surface-2); }
.row-icon { font-size: 24px; color: var(--muted); }
.row-title { font-weight: 700; }
.row-sub { color: var(--muted); font-size: 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--border-strong); color: var(--text-2); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.open { color: var(--accent); border-color: currentColor; }
.badge.answered, .badge.operational, .badge.approved { color: var(--ok); border-color: currentColor; }
.badge.closed, .badge.draft, .badge.disabled { color: var(--muted); }
.badge.degraded, .badge.maintenance, .badge.pending { color: var(--warn); border-color: currentColor; }
.badge.outage, .badge.rejected { color: var(--danger); border-color: currentColor; }

/* Status page */
.status-banner { display: flex; align-items: center; gap: 16px; padding: 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--ok); font-family: var(--title); font-size: 22px; margin-bottom: 20px; }
.status-banner.degraded { border-left-color: var(--warn); }
.status-banner.outage { border-left-color: var(--danger); }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulse 2s infinite; }
.degraded .pulse { background: var(--warn); } .outage .pulse { background: var(--danger); }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(0, 0, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); } }

/* Ticket thread */
.ticket-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.thread { display: grid; gap: 14px; }
.msg { padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); animation: rise .5s var(--ease) both; }
.msg.staff { border-left: 3px solid var(--accent); }
.msg.internal { border-style: dashed; background: #1a1708; border-left: 3px solid var(--warn); }
.msg.system { padding: 10px 16px; background: transparent; border-style: dashed; color: var(--muted); font-size: 14px; text-align: center; }
.msg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.msg-head img { width: 32px; height: 32px; border-radius: 7px; object-fit: cover; }
.msg-head .who { font-weight: 700; }
.msg-body { white-space: pre-wrap; word-wrap: break-word; color: var(--text-2); }
.facts { display: grid; gap: 0; }
.fact { padding: 12px 0; border-top: 1px solid var(--border); }
.fact:first-child { border-top: 0; padding-top: 0; }
.fact dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fact dd { margin: 4px 0 0; white-space: pre-wrap; word-wrap: break-word; }
.reply-box { margin-top: 18px; }
.reply-actions { display: flex; align-items: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.reply-actions .btn { margin-left: auto; }
.side-actions { display: grid; gap: 10px; margin-top: 18px; }

/* Request form */
.cat-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.cat-option { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, transform .3s var(--ease); }
.cat-option svg { font-size: 26px; }
.cat-option:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.cat-option.active { border-color: var(--accent); }
.cat-option.active svg { color: var(--accent); }

/* Staff */
.staff-bar { background: #0b0b0b; border-bottom: 1px solid #181818; }
.staff-nav { display: flex; gap: 28px; height: 52px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.staff-nav a { white-space: nowrap; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #000; font: 700 11px var(--body); }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.filters select, .filters input { width: auto; height: 38px; font-size: 14px; }
.filters input[type=search] { min-width: 240px; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--border); font-weight: 700; }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--surface-2); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.person { display: flex; align-items: center; gap: 12px; }
.person img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--surface-3); }
.inline-form { display: inline-flex; gap: 8px; align-items: center; }
.inline-form select { height: 34px; width: auto; font-size: 13px; padding: 0 10px; }
.approval { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.approval img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.diff { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.diff b { color: #fff; }
.avatar-edit { display: flex; align-items: center; gap: 20px; }
.avatar-edit img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; border: 1px solid var(--border); }
.center-card { max-width: 520px; margin: 40px auto; text-align: center; }
.center-card .big-icon { font-size: 48px; margin: 0 auto 18px; display: grid; place-items: center; color: var(--accent); }
.center-card p { color: var(--text-2); }

/* Verification code */
.code-input { height: 64px !important; text-align: center; font: 700 30px/1 Consolas, "Cascadia Code", monospace !important; letter-spacing: .4em; padding-left: .4em !important; }
.link-btn { background: none; border: 0; padding: 0; color: #fff; font-weight: 600; cursor: pointer; border-bottom: 1px solid var(--border-strong); }
.link-btn:hover { border-color: #fff; }

/* Careers */
.career-grid { display: grid; grid-template-columns: 1fr 420px; gap: 32px; align-items: start; }
.career-desc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 32px; }
.career-desc:empty { display: none; }
.career-card .tile-icon { color: var(--muted); }
.career-card:hover .tile-icon { color: #fff; }
.badge.new { color: #fff; border-color: currentColor; }
.badge.reviewing { color: var(--warn); border-color: currentColor; }
.badge.accepted { color: var(--ok); border-color: currentColor; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: var(--surface-2); }
.seg label { margin: 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; height: 34px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); transition: background .2s, color .2s; }
.seg input:checked + span { background: #fff; color: #000; }
.seg input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.builder { display: grid; gap: 12px; margin-bottom: 16px; }
.q-card { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); animation: rise .35s var(--ease); }
.q-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.q-head select { width: auto; height: 36px; font-size: 14px; }
.q-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #000; font-weight: 700; font-size: 13px; }
.q-tools { margin-left: auto; display: flex; gap: 2px; }
.q-tools button:disabled { opacity: .3; pointer-events: none; }
.q-card input[type=text] { height: 40px; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
@media (max-width: 960px) { .career-grid { grid-template-columns: 1fr; } }

/* Team: create account */
.create-staff { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 16px; align-items: end; padding: 22px; }
.create-staff .field { margin: 0; }
@media (max-width: 860px) { .create-staff { grid-template-columns: 1fr; } }

/* Status editor */
.status-row { grid-template-columns: 1fr 170px 1.3fr; }

/* Bug tracker */
.bug-row { grid-template-columns: auto 1fr auto; }
.vote-pill { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 48px; height: 52px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); font-weight: 700; font-size: 15px; line-height: 1; }
.vote-pill svg { font-size: 16px; color: var(--muted); }
.bug-meta { display: flex; align-items: center; gap: 16px; }
.bug-meta .muted { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.inline-icon { font-size: 15px; vertical-align: -2px; margin-right: 4px; color: var(--muted); }
.staff-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: #fff; color: #000; font-size: 11px; font-weight: 700; }
.pager { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }
.prose-sm { margin-top: 0; font-size: 15.5px; line-height: 1.7; }
.prose-sm h1 { font-size: 24px; } .prose-sm h2 { font-size: 21px; } .prose-sm h3 { font-size: 18px; }
.icon-btn-sm { width: 30px; height: 30px; font-size: 15px; color: var(--muted); }
.icon-btn-sm:hover { color: var(--danger); }
.manage { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.manage-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.manage-status { display: flex; gap: 8px; }
.manage-status select { height: 34px; font-size: 14px; }
.badge.investigating, .badge.confirmed { color: var(--warn); border-color: currentColor; }
.badge.fixed { color: var(--ok); border-color: currentColor; }
.badge.duplicate { color: var(--muted); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.hero h1, .hero .search { animation: rise .8s var(--ease) both; }
.hero .search { animation-delay: .12s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .tiles, .cards { grid-template-columns: repeat(2, 1fr); }
  .main-nav { gap: 22px; }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .header-inner { height: 64px; }
  .brand img { height: 34px; }
  .brand-name { font-size: 21px; }
  .menu-btn { display: grid; }
  .main-nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0; background: #000; border-bottom: 1px solid #1c1c1c;
    padding: 8px var(--gutter) 16px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
  }
  .main-nav a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid #141414; }
  .main-nav a::after { display: none; }
  .nav-open .main-nav { opacity: 1; transform: none; pointer-events: auto; }
  .hero { padding: 72px 0 40px; }
  .request-block { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
  .chips { justify-content: flex-start; }
  .ticket-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .panel { padding: 22px; }
  .footer-links { margin-left: 0; }
}
@media (max-width: 600px) {
  .header-actions .btn { display: none; }
  .tiles, .cards { grid-template-columns: 1fr; }
  .tile { min-height: 96px; padding: 20px; }
  .team { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .row, .status-row { grid-template-columns: 1fr; gap: 8px; }
  .bug-row { grid-template-columns: auto 1fr; }
  .bug-row .bug-meta { grid-column: 2; }
  .row-icon { display: none; }
  .approval { grid-template-columns: auto 1fr; }
  .approval > form, .approval > div:last-child { grid-column: 1 / -1; }
  .filters input[type=search] { min-width: 0; width: 100%; }
  .brand-sep, .brand { gap: 12px; }
}

/* ---------- Moderation (staff API tab) ---------- */
.section-title { font-size: 22px; margin: 34px 0 14px; }
.section-title:first-child { margin-top: 0; }
.nowrap { white-space: nowrap; }
.small { font-size: 14px; }
.flash.notice { border-left-color: var(--warn); margin-bottom: 18px; }
.why { margin-top: 6px; font-size: 14px; color: var(--text-2); font-style: italic; }
.note-input { height: 34px !important; width: 180px !important; font-size: 13px; }
.approval-mod .inline-form { flex-wrap: wrap; justify-content: flex-end; }
.rbx-avatar { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--surface-3); flex-shrink: 0; }
.rbx-avatar.sm { width: 32px; height: 32px; border-radius: 8px; }
.rbx-avatar.lg { width: 96px; height: 96px; border-radius: 16px; border: 1px solid var(--border); }
.rbx-avatar.round { border-radius: 50%; }
.player-row { grid-template-columns: auto 1fr auto; }
.player-head { display: flex; align-items: center; gap: 22px; margin: 8px 0 30px; }
.player-name { font-size: clamp(28px, 4vw, 44px); }
.player-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pun { padding: 18px 22px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--danger); border-radius: var(--radius); scroll-margin-top: 140px; }
.pun:target { border-color: var(--accent); }
.pun-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.pun-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pun-timer { font: 700 15px/1 Consolas, "Cascadia Code", monospace; margin-top: 10px; }
.pun-meta { font-size: 13px; margin-top: 8px; }
.pun-review { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--warn); border-radius: var(--radius-sm); font-size: 14px; }
.pun-review span { flex: 1; min-width: 200px; }
.manage-box { margin-top: 12px; }
.manage-box summary { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.manage-box summary:hover { color: #fff; }
.manage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.manage-grid form { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.manage-grid input[type=text], .manage-grid select { height: 38px; font-size: 14px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.dur { display: grid; grid-template-columns: 1fr 130px; gap: 8px; }
.why-input { margin-top: 8px; height: 38px !important; font-size: 14px; }
code { font-family: Consolas, "Cascadia Code", monospace; font-size: .92em; background: var(--surface-3); padding: 1px 6px; border-radius: 4px; color: #fff; }
.issue .seg { margin-bottom: 18px; }
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 18px; }
.preset { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; margin: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; transition: border-color .2s, background .2s; }
.preset input { position: absolute; opacity: 0; pointer-events: none; }
.preset:hover { border-color: var(--border-strong); }
.preset:has(input:checked) { border-color: #fff; background: var(--surface-3); }
.preset:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }
.preset-label { font-size: 14px; font-weight: 700; color: #fff; }
.preset-effect { font-size: 12px; font-weight: 500; color: var(--muted); line-height: 1.4; }
.preset-other { border-style: dashed; }
.side-panel { padding: 22px; margin-bottom: 16px; }
.side-panel h3 { font-size: 17px; margin-bottom: 12px; }
.side-panel p { margin: 0 0 10px; }
.side-panel input[type=text] { height: 38px; font-size: 14px; }
.new-key { margin-bottom: 18px; border-color: var(--ok); }
.key-box { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.key-box code { font-size: 14px; padding: 10px 12px; word-break: break-all; flex: 1; }
.create-key { padding: 22px; }
.api-docs h2 { margin-top: 2em; }
.api-docs pre { font-size: 13.5px; }

/* ---------- Roblox linking & appeals ---------- */
.rbx-profile { display: flex; align-items: center; gap: 16px; }
.rbx-profile .rbx-avatar { width: 64px; height: 64px; }
.rbx-display { color: #fff; font-weight: 700; font-size: 19px; line-height: 1.25; }
.rbx-user { color: var(--muted); font-size: 15px; }
.steps-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 18px; }
.steps-dots span { width: 28px; height: 4px; border-radius: 2px; background: var(--border-strong); }
.steps-dots span.on { background: #fff; }
.verify-code { margin: 22px 0 10px; padding: 18px; text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-2); font: 700 22px/1.3 Consolas, "Cascadia Code", monospace; letter-spacing: .03em; user-select: all; }
.verify-steps { margin: 0 0 20px; padding-left: 1.2em; color: var(--text-2); font-size: 15px; }
.verify-steps li { margin: 6px 0; }
.center-icon { font-size: 40px; display: grid; place-items: center; margin: 4px 0 14px; }
.ban-id-input { text-align: center; font: 700 22px/1 Consolas, "Cascadia Code", monospace !important; letter-spacing: .12em; text-transform: uppercase; height: 56px !important; }
.ban-card { padding: 28px 32px; }
.ban-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; margin: 26px 0 0; }
.ban-facts dt { font-weight: 700; color: #fff; font-size: 15px; }
.ban-facts dd { margin: 4px 0 0; color: var(--text-2); }
.ban-id-line { margin: 22px 0 0; font-size: 14px; }
.appeal-status.review { color: var(--warn); } .appeal-status.denied { color: var(--danger); } .appeal-status.accepted { color: var(--ok); }
.ban-copy { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--text-2); }
.appeal-panel textarea { font-size: 14px; }
.ban-copy p { margin: 0 0 14px; }
.ban-copy .btn { margin-top: 6px; }
@media (max-width: 960px) { .ticket-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .manage-grid { grid-template-columns: 1fr; }
  .pun-head { flex-direction: column; }
  .pun-badges { justify-content: flex-start; }
  .player-head { gap: 16px; }
  .rbx-avatar.lg { width: 72px; height: 72px; }
}
@media (max-width: 520px) { .ban-facts { grid-template-columns: 1fr; } .ban-card { padding: 22px; } }

/* --- Punish menu (staff API player page) ------------------------------------------ */
.punish-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px; }
.punish-dialog { width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); overflow: hidden; }
.punish-dialog[open] { display: flex; flex-direction: column; }
.punish-dialog::backdrop { background: rgba(0, 0, 0, .72); }
.punish-dialog form { display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 48px); }
.pd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.pd-head h2 { font-size: 26px; margin-bottom: 4px; }
.pd-body { padding: 20px 24px 4px; overflow-y: auto; min-height: 0; }
.pd-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--border); background: var(--surface-2); }
.pd-body > .seg { margin-bottom: 18px; }
.pd-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; margin-bottom: 4px; }
.pd-list-col { display: flex; flex-direction: column; min-width: 0; }
.pd-search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; margin: 0 0 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); }
.pd-search:focus-within { border-color: #fff; color: #fff; }
.pd-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; outline: none; font-size: 14px; color: var(--text); }
.pd-search svg { width: 18px; height: 18px; flex: none; }
.pd-list { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.pd-item { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.pd-item input { position: absolute; opacity: 0; pointer-events: none; }
.pd-item:hover { border-color: var(--border-strong); background: var(--surface-3); }
.pd-item:has(input:checked) { border-color: #fff; background: var(--surface-3); box-shadow: inset 3px 0 0 #fff; }
.pd-item:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 1px; }
.pd-item.is-filtered { display: none; }
.pd-item.pd-other { border-style: dashed; }
.pd-item-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pd-item-label { font-size: 14px; font-weight: 700; color: #fff; }
.pd-item-effect { font-size: 12px; color: var(--muted); line-height: 1.4; }
.pd-tag { flex: none; padding: 2px 8px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--text-2); }
.pd-none { padding: 24px; text-align: center; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); }
.pd-detail { min-width: 0; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); align-self: start; }
.pd-detail input[readonly] { color: var(--text-2); background: var(--surface); cursor: default; }
.pd-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 220px; color: var(--muted); text-align: center; }
.pd-placeholder svg { width: 28px; height: 28px; }
.pd-summary { display: grid; gap: 0; margin: 4px 0 0; }
.pd-summary > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--border); }
.pd-summary dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); align-self: center; }
.pd-summary dd { margin: 0; text-align: right; font-weight: 600; }
.pd-expires dd { color: var(--warn); }
.pd-extra { margin-top: 18px; }
@media (max-width: 760px) {
  .pd-split, .pd-extra { grid-template-columns: 1fr; }
  .pd-list { max-height: 240px; }
}

/* --- Ticket team members ----------------------------------------------------------- */
.member-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.member-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.member-add { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.member-add select { height: 38px; font-size: 14px; min-width: 0; }
