:root {
  --bg: #0a0e14;
  --bg-soft: #0d1219;
  --panel: #111823;
  --panel-2: #141d2a;
  --hover: #1b2533;
  --border: #1f2a3a;
  --text: #e8eef5;
  --dim: #8fa1b3;
  --accent: #3fb950;
  --accent-2: #2ea043;
  --blue: #4c9aff;
  --red: #f85149;
  --yellow: #d29922;
  --purple: #bc8cff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-wrap { flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.main { flex: 1; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: #7cb8ff; }

img { max-width: 100%; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace; }

.container { width: min(1160px, 92%); margin: 0 auto; }

.icon { vertical-align: -3px; }

.section { padding: 44px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.section-title { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 4px; height: 20px; border-radius: 2px; background: var(--accent); }
.section-link { font-size: 13px; color: var(--dim); }
.section-link:hover { color: var(--accent); }

.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 900; }
.page-head p { color: var(--dim); margin-top: 6px; font-size: 14px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 20, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner { display: flex; align-items: center; gap: 18px; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand-mark { width: 36px; height: 31px; }
.brand-text { font-weight: 800; font-size: 17px; letter-spacing: .5px; line-height: 1.15; display: flex; flex-direction: column; }
.brand-text small { font-size: 10px; color: var(--dim); font-weight: 500; letter-spacing: 2px; }

.site-nav { display: flex; gap: 2px; }
.site-nav a { padding: 8px 12px; border-radius: 8px; color: var(--dim); font-size: 14px; font-weight: 500; white-space: nowrap; }
.site-nav a:hover { color: var(--text); background: var(--hover); }
.site-nav a.active { color: var(--accent); background: rgba(63, 185, 80, .12); }

.header-user { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.notif-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; color: var(--dim); border: 1px solid transparent; }
.notif-link:hover { color: var(--text); background: var(--hover); }
.badge-dot { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.notif-link .badge-dot { position: absolute; top: 2px; right: 0; }

.user-wrap { position: relative; }
.user-trigger { display: inline-flex; align-items: center; gap: 6px; background: var(--panel-2); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 7px 12px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; max-width: 160px; }
.user-trigger:hover { background: var(--hover); }
.user-drop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 168px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); display: none; z-index: 60; }
.user-wrap:hover .user-drop, .user-wrap:focus-within .user-drop { display: block; }
.user-drop a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); font-size: 14px; }
.user-drop a:hover { background: var(--hover); color: var(--text); }
.drop-sep { height: 1px; background: var(--border); margin: 5px 8px; }

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 1px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 0; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600;
  padding: 10px 18px; border-radius: 9px; transition: filter .15s, background .15s, border-color .15s, box-shadow .15s;
  text-decoration: none; line-height: 1.4;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, #3fb950, #2ea043); color: #fff; box-shadow: 0 2px 0 #1a7f37, 0 4px 16px rgba(46, 160, 67, .22); }
.btn-primary:hover { filter: brightness(1.1); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--hover); color: var(--text); }
.btn-danger { background: linear-gradient(180deg, #f85149, #da3633); color: #fff; box-shadow: 0 2px 0 #9e221f; }
.btn-danger:hover { filter: brightness(1.08); color: #fff; }
.btn-blue { background: linear-gradient(180deg, #4c9aff, #2d7cf6); color: #fff; box-shadow: 0 2px 0 #1a5fbf; }
.btn-blue:hover { filter: brightness(1.08); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.flash-area { margin-top: 16px; }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 12px; font-size: 14px; border: 1px solid; }
.alert-success { background: rgba(46, 160, 67, .12); border-color: rgba(46, 160, 67, .4); color: #7ee2a8; }
.alert-warning { background: rgba(210, 153, 34, .12); border-color: rgba(210, 153, 34, .4); color: #e3b341; }
.alert-error { background: rgba(248, 81, 73, .12); border-color: rgba(248, 81, 73, .4); color: #ff9c95; }

.hero { position: relative; padding: 64px 0 52px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px 300px at 18% 0%, rgba(63, 185, 80, .16), transparent 62%),
              radial-gradient(700px 340px at 82% 8%, rgba(76, 154, 255, .13), transparent 62%);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(63, 185, 80, .05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(63, 185, 80, .05) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.hero-logo, .hero-banner { width: min(680px, 92%); margin: 0 auto; mix-blend-mode: screen; image-rendering: pixelated; border: 2px solid var(--border); box-shadow: 0 0 0 5px var(--panel), 0 0 0 6px #26364a; }
.hero-banner { margin-bottom: 2px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 900; letter-spacing: 1px; }
.hero h1 .dot { color: var(--accent); }
.hero .sub { color: var(--dim); font-size: clamp(14px, 2.4vw, 17px); }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tag { font-size: 12px; padding: 5px 13px; border-radius: 999px; border: 1px solid var(--border); color: var(--dim); background: var(--panel); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }

.ip-box { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 6px 6px 6px 18px; }
.ip-box code { font-size: 18px; font-weight: 700; letter-spacing: 1px; }

.status-card { width: 100%; max-width: 330px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: left; }
.status-head { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 12px; font-size: 15px; }
.status-light { width: 10px; height: 10px; border-radius: 50%; background: var(--dim); flex-shrink: 0; }
.status-light.on { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.status-light.off { background: var(--red); box-shadow: 0 0 10px var(--red); }
.status-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.status-row span { color: var(--dim); }
.status-row strong { font-weight: 600; }
.status-motd { margin-top: 14px; font-size: 13px; color: var(--dim); background: rgba(0, 0, 0, .28); border-radius: 8px; padding: 10px 12px; word-break: break-word; }
.status-players { margin-top: 12px; }
.status-players .label { font-size: 12px; color: var(--dim); margin-bottom: 6px; }
.player-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.player-chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(76, 154, 255, .12); border: 1px solid rgba(76, 154, 255, .3); color: #8cbaff; }

.notice { background: rgba(63, 185, 80, .08); border: 1px solid rgba(63, 185, 80, .32); border-radius: 10px; padding: 11px 16px; font-size: 13px; margin-top: 18px; color: #a5e8b8; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }

.game-card { position: relative; overflow: hidden; transition: transform .15s, border-color .15s; display: flex; gap: 14px; align-items: flex-start; }
.game-card:hover { transform: translateY(-3px); border-color: rgba(63, 185, 80, .5); }
.game-icon { width: 54px; height: 54px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; color: #08130c; background: linear-gradient(135deg, #3fb950, #2ea043); }
.game-card:nth-child(3n+2) .game-icon { background: linear-gradient(135deg, #4c9aff, #2d7cf6); color: #08101d; }
.game-card:nth-child(3n) .game-icon { background: linear-gradient(135deg, #bc8cff, #9a5cff); color: #120b1d; }
.game-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.game-card p { color: var(--dim); font-size: 13px; }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.badge-green { background: rgba(63, 185, 80, .14); color: #7ee2a8; border: 1px solid rgba(63, 185, 80, .35); }
.badge-yellow { background: rgba(210, 153, 34, .14); color: #e3b341; border: 1px solid rgba(210, 153, 34, .35); }
.badge-red { background: rgba(248, 81, 73, .14); color: #ff9c95; border: 1px solid rgba(248, 81, 73, .35); }
.badge-blue { background: rgba(76, 154, 255, .14); color: #8cbaff; border: 1px solid rgba(76, 154, 255, .35); }
.badge-purple { background: rgba(188, 140, 255, .14); color: #c9a5ff; border: 1px solid rgba(188, 140, 255, .35); }
.badge-gray { background: rgba(143, 161, 179, .12); color: #aebccb; border: 1px solid rgba(143, 161, 179, .3); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.stat b { display: block; font-size: 26px; font-weight: 800; line-height: 1.3; }
.stat span { font-size: 12px; color: var(--dim); }
.stat.green b { color: #7ee2a8; }
.stat.blue b { color: #8cbaff; }
.stat.yellow b { color: #e3b341; }
.stat.red b { color: #ff9c95; }
.stat.purple b { color: #c9a5ff; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 10px 12px; color: var(--dim); font-weight: 600; font-size: 12px; letter-spacing: .5px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid rgba(31, 42, 56, .55); vertical-align: middle; }
.table tbody tr:hover td { background: var(--hover); }
.table .num { font-variant-numeric: tabular-nums; }

.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--dim); }
.form-control { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 9px; padding: 10px 14px; font-size: 14px; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(63, 185, 80, .16); }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { appearance: auto; }
.form-hint { font-size: 12px; color: var(--dim); margin-top: 5px; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.form-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }

.auth-wrap { max-width: 440px; margin: 52px auto; }
.auth-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 34px; }
.auth-title { font-size: 23px; font-weight: 800; margin-bottom: 4px; }
.auth-sub { color: var(--dim); font-size: 13px; margin-bottom: 24px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 13px; color: var(--dim); }

.thread { display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 12px; }
.msg-avatar { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; color: #0b0f14; }
.msg.user .msg-avatar { background: linear-gradient(135deg, #4c9aff, #2d7cf6); }
.msg.staff .msg-avatar { background: linear-gradient(135deg, #3fb950, #2ea043); }
.msg-body { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; flex: 1; min-width: 0; }
.msg-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 12px; color: var(--dim); flex-wrap: wrap; }
.msg-meta .who { color: var(--text); font-weight: 700; font-size: 13px; }
.msg-meta .role-tag { font-size: 11px; padding: 1px 7px; border-radius: 999px; }
.msg-content { font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.msg-attachments { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.attach-img { max-height: 180px; border-radius: 8px; border: 1px solid var(--border); cursor: zoom-in; }
.attach-file { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; color: var(--dim); }
.attach-file:hover { color: var(--text); border-color: var(--accent); }

.ticket-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.ticket-head h1 { font-size: clamp(20px, 3.4vw, 28px); font-weight: 800; word-break: break-word; }
.ticket-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0 22px; font-size: 13px; color: var(--dim); }
.ticket-meta .sep { opacity: .4; }

.actions-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }

.feedback-list { display: flex; flex-direction: column; gap: 12px; }
.feedback-item { display: flex; gap: 14px; align-items: flex-start; }
.vote-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 56px; padding: 9px 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; color: var(--dim); cursor: pointer; font-family: inherit; font-size: 11px; transition: .15s; }
.vote-btn:hover { border-color: var(--accent); color: var(--accent); }
.vote-btn.voted { background: rgba(63, 185, 80, .12); border-color: var(--accent); color: var(--accent); }
.vote-btn .vote-count { font-size: 16px; font-weight: 800; }
.vote-btn .vote-text { font-size: 11px; }

.fb-body { flex: 1; min-width: 0; }
.fb-title { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.fb-title a { color: var(--text); }
.fb-title a:hover { color: var(--accent); }
.fb-content { color: var(--dim); font-size: 13px; margin-top: 4px; white-space: pre-wrap; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fb-meta { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--dim); }

.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; margin-top: 26px; }
.admin-side { position: sticky; top: 84px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; }
.admin-side a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 9px; color: var(--dim); font-size: 14px; }
.admin-side a:hover { color: var(--text); background: var(--hover); }
.admin-side a.active { color: var(--accent); background: rgba(63, 185, 80, .12); font-weight: 600; }
.admin-main { min-width: 0; }
.admin-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.admin-card .card-title { margin-bottom: 16px; }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filter-bar .form-control { width: auto; min-width: 130px; }

.empty { text-align: center; padding: 48px 20px; color: var(--dim); }
.empty .empty-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty .empty-desc { font-size: 13px; }

.pagination { display: flex; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.page { min-width: 34px; height: 34px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--border); color: var(--dim); font-size: 13px; }
.page.current { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
a.page:hover { color: var(--text); border-color: var(--accent); }

.news-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(31, 42, 56, .55); }
.news-item:last-child { border-bottom: 0; }
.news-item .news-date { flex-shrink: 0; width: 58px; text-align: center; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 8px 4px; align-self: flex-start; }
.news-item .news-date b { display: block; font-size: 18px; line-height: 1.2; }
.news-item .news-date span { font-size: 11px; color: var(--dim); }
.news-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.news-item h3 a { color: var(--text); }
.news-item h3 a:hover { color: var(--accent); }
.news-item p { color: var(--dim); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.article { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.article h1 { font-size: clamp(22px, 3.6vw, 30px); font-weight: 800; margin-bottom: 10px; }
.article .article-meta { color: var(--dim); font-size: 13px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 20px; display: flex; gap: 14px; flex-wrap: wrap; }
.article .article-body { font-size: 15px; white-space: pre-wrap; word-break: break-word; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: relative; }
.step .step-num { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #3fb950, #2ea043); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 15px; }
.step h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--dim); font-size: 13px; }

.footer-ip { text-align: right; }
.footer-ip > span { font-size: 12px; color: var(--dim); display: block; margin-bottom: 6px; }

.site-footer { border-top: 1px solid var(--border); margin-top: 64px; background: var(--bg-soft); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 32px 0; flex-wrap: wrap; }
.footer-brand { font-size: 18px; font-weight: 800; }
.footer-desc { color: var(--dim); font-size: 13px; margin-top: 4px; }
.ip-copy { display: inline-flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 9px 14px; font-family: inherit; cursor: pointer; transition: .15s; }
.ip-copy:hover { border-color: var(--accent); color: var(--accent); }
.ip-copy code { font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.footer-bar { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; border-top: 1px solid var(--border); color: var(--dim); font-size: 12px; flex-wrap: wrap; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.brand-mark { width: 34px; height: 34px; border-radius: 3px; image-rendering: pixelated; box-shadow: 0 0 0 2px var(--border), 0 0 0 3px #2a3a52; }
.btn, .tag, .badge, .ip-box, .status-card, .game-icon, .step-num, .auth-card, .user-trigger, .user-drop, .vote-btn, .page, .news-date, .stat, .attach-file { border-radius: 2px; }
.section-title::before { border-radius: 0; width: 6px; height: 22px; box-shadow: 3px 0 0 rgba(63, 185, 80, .2), 6px 0 0 rgba(63, 185, 80, .1); }
.status-light { border-radius: 2px; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; opacity: .26; pointer-events: none; background: repeating-linear-gradient(90deg, #2ea043 0 10px, #55b95c 10px 20px, #1f6f33 20px 30px, #3fb950 30px 40px); }
.step-num, .game-icon { image-rendering: pixelated; }


#toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(16px); background: var(--panel-2); border: 1px solid var(--border); color: var(--text); padding: 12px 20px; border-radius: 10px; opacity: 0; pointer-events: none; transition: .25s; z-index: 100; font-size: 14px; box-shadow: var(--shadow); max-width: 86vw; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.install-card { max-width: 640px; margin: 48px auto; }
.req-table td:last-child { text-align: right; }
.req-ok { color: #7ee2a8; font-weight: 700; }
.req-bad { color: #ff9c95; font-weight: 700; }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .admin-side a { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 720px) {
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-soft); flex-direction: column; padding: 12px 4%; border-bottom: 1px solid var(--border); gap: 2px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .header-user .btn { padding: 6px 10px; font-size: 13px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-ip { text-align: center; }
  .page-head { padding-top: 28px; }
}

.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 22px; }
.board-card { padding: 18px; }
.board-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.board-icon { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; font-weight: 900; font-size: 20px; color: var(--accent); flex: none; }
.board-name h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.board-desc { color: var(--dim); font-size: 13px; margin-bottom: 14px; min-height: 42px; }
.board-join { display: flex; align-items: center; gap: 8px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; }
.board-join code { font-size: 12px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .page-head h1 { font-size: 25px; }
  .page-head p { font-size: 13px; }
  .brand-text { font-size: 17px; }
  .brand small { display: none; }
  .btn { padding: 9px 14px; font-size: 13.5px; }
  .header-user .btn { padding: 7px 12px; }
  .filter-bar { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .filter-bar .btn { flex: none; }
  .table-wrap { overflow-x: auto; }
  .table-wrap table { min-width: 620px; }
  .alert { padding: 11px 14px; font-size: 13px; }
  .form-actions .btn { width: 100%; }
  .status-card { padding: 18px 16px; }
  .status-row { padding: 11px 0; }
  .player-chips { max-height: 110px; overflow-y: auto; }
  .card { padding: 16px; }
  .empty { padding: 34px 14px; }
  .footer-inner { padding: 28px 0 24px; }
}


.admin-layout { gap: 20px; }
.admin-side {
  position: sticky;
  top: 84px;
  background: linear-gradient(180deg, #121b29, #0e1520);
  border: 1px solid #22324a;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.admin-side a {
  position: relative;
  padding: 10px 14px 10px 18px;
  border-radius: 6px;
  color: #8fa1b3;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .3px;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.admin-side a::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 5px;
  height: 5px;
  transform: translateY(-50%) rotate(45deg);
  background: #2c3e58;
  transition: background .15s, box-shadow .15s;
}
.admin-side a:hover { color: #e8eef5; background: rgba(76, 154, 255, .08); border-color: rgba(76, 154, 255, .22); }
.admin-side a:hover::before { background: #4c9aff; box-shadow: 0 0 8px rgba(76, 154, 255, .7); }
.admin-side a.active {
  color: #ffd83d;
  background: linear-gradient(180deg, rgba(255, 216, 61, .12), rgba(255, 193, 7, .05));
  border-color: rgba(255, 216, 61, .32);
  font-weight: 800;
}
.admin-side a.active::before { background: #ffd83d; box-shadow: 0 0 10px rgba(255, 216, 61, .85); }
.admin-side .drop-sep { background: #1e2b3d; margin: 8px 4px; }

.admin-card {
  background: linear-gradient(180deg, #121b29, #0e1520);
  border: 1px solid #22324a;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
}
.admin-card .card-title {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: .5px;
  padding-left: 16px;
  position: relative;
}
.admin-card .card-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4px;
  transform: rotate(45deg);
  background: linear-gradient(160deg, #ffd83d, #f0a000);
  box-shadow: 0 0 12px rgba(255, 216, 61, .55);
}

.admin-main .stats { gap: 14px; }
.admin-main .stat {
  position: relative;
  background: linear-gradient(180deg, #121b29, #0e1520);
  border: 1px solid #22324a;
  border-radius: 12px;
  padding: 18px 18px 16px;
  overflow: hidden;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.admin-main .stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 216, 61, .5), transparent);
  opacity: 0;
  transition: opacity .2s;
}
.admin-main .stat:hover { transform: translateY(-4px); border-color: rgba(255, 216, 61, .3); box-shadow: 0 18px 38px rgba(0, 0, 0, .5); }
.admin-main .stat:hover::before { opacity: 1; }
.admin-main .stat b {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.admin-main .stat span { font-size: 12px; color: #8fa1b3; margin-top: 6px; display: block; }
.admin-main .stat.green b { color: #4ade80; text-shadow: 0 0 16px rgba(63, 185, 80, .45); }
.admin-main .stat.blue b { color: #7cb8ff; text-shadow: 0 0 16px rgba(76, 154, 255, .45); }
.admin-main .stat.yellow b { color: #ffd83d; text-shadow: 0 0 16px rgba(255, 216, 61, .45); }
.admin-main .stat.red b { color: #ff7b72; text-shadow: 0 0 16px rgba(248, 81, 73, .45); }
.admin-main .stat.purple b { color: #c9a5ff; text-shadow: 0 0 16px rgba(188, 140, 255, .45); }
.admin-main .stat:not(.green):not(.blue):not(.yellow):not(.red):not(.purple) b { color: #e8eef5; }

.admin-main .table th {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #6d7f92;
}
.admin-main .table td { border-bottom: 1px solid rgba(34, 50, 74, .5); }
.admin-main .table tbody tr { transition: background .15s; }
.admin-main .table tbody tr:hover td { background: rgba(63, 185, 80, .05); }
.admin-main .table code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  color: #ffd83d;
  background: rgba(10, 14, 20, .7);
  border: 1px solid #263549;
  padding: 2px 7px;
  border-radius: 4px;
}
.admin-main .badge { font-weight: 700; letter-spacing: .3px; }

.admin-main .form-control {
  background: rgba(10, 14, 20, .6);
  border: 1px solid #22324a;
  border-radius: 6px;
  color: #e8eef5;
  padding: 10px 13px;
}
.admin-main .form-control:focus {
  border-color: #3fb950;
  box-shadow: 0 0 0 3px rgba(63, 185, 80, .16);
  background: rgba(10, 14, 20, .85);
}
.admin-main .form-label { color: #9fb0c2; font-weight: 700; font-size: 12.5px; letter-spacing: .3px; }
.admin-main .form-hint { color: #6d7f92; }
.admin-main .form-check input { accent-color: #3fb950; }

.admin-main .filter-bar {
  background: rgba(10, 14, 20, .45);
  border: 1px solid #1f2a3a;
  border-radius: 12px;
  padding: 12px;
}

.admin-main .btn { border-radius: 4px; font-weight: 700; letter-spacing: .3px; }
.admin-main .btn-primary {
  background: linear-gradient(180deg, #ffe27a, #ffc107 55%, #f0a000);
  color: #1a1200;
  border: 1px solid rgba(255, 216, 61, .9);
  box-shadow: 0 3px 0 #b57a00, 0 8px 20px rgba(255, 193, 7, .25), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.admin-main .btn-primary:hover { filter: brightness(1.07); color: #1a1200; transform: translateY(-1px); }
.admin-main .btn-ghost {
  background: rgba(16, 24, 36, .6);
  border: 1px solid rgba(143, 161, 179, .35);
  color: #d8e4ee;
}
.admin-main .btn-ghost:hover { background: rgba(24, 36, 52, .75); border-color: rgba(76, 154, 255, .5); color: #fff; }

.admin-main .pagination .page {
  background: rgba(10, 14, 20, .6);
  border: 1px solid #22324a;
  color: #8fa1b3;
  border-radius: 4px;
}
.admin-main .pagination a.page:hover { border-color: rgba(255, 216, 61, .5); color: #ffd83d; }
.admin-main .pagination .page.current {
  background: linear-gradient(180deg, #ffe27a, #f0a000);
  border-color: #f0a000;
  color: #1a1200;
  box-shadow: 0 0 14px rgba(255, 193, 7, .4);
}

.admin-main .empty .empty-title { color: #e8eef5; }
.admin-main .empty .empty-desc { color: #6d7f92; }

.admin-pix-head h1 {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-pix-head h1::before {
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: linear-gradient(160deg, #ffd83d, #f0a000);
  box-shadow: 0 0 14px rgba(255, 216, 61, .55);
  transform: rotate(45deg);
}

@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; gap: 16px; }
  .admin-side { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .admin-side a { flex: 1 1 auto; justify-content: center; }
  .admin-main .stat b { font-size: 26px; }
  .admin-main .form-row { grid-template-columns: 1fr; }
}
