:root {
  --ink: #08090b;
  --panel: #111318;
  --panel-2: #171a20;
  --line: rgba(255,255,255,.105);
  --text: #f3f4ef;
  --muted: #8b909b;
  --lime: #c8ff45;
  --violet: #9b7cff;
  --red: #ff5d55;
  --amber: #ffbd3e;
  --cyan: #45e1ff;
  --discord: #5865f2;
  --display: "Arial Black", "Segoe UI Black", Impact, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--ink); }
body { min-height: 100vh; margin: 0; color: var(--text); background: radial-gradient(circle at 75% 18%, rgba(155,124,255,.07), transparent 28rem), var(--ink); font: 15px/1.5 Manrope, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .22; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E"); }

.site-header { height: 86px; padding: 0 clamp(22px, 4vw, 72px); display: flex; align-items: center; gap: 34px; border-bottom: 1px solid var(--line); background: rgba(8,9,11,.86); backdrop-filter: blur(18px); position: relative; z-index: 10; }
.brand { display: flex; align-items: center; gap: 12px; font: 800 13px/1.05 var(--display); letter-spacing: .04em; }
.brand small { color: var(--muted); font: 700 8px/1 var(--display); letter-spacing: .15em; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--lime); color: var(--lime); font: 800 13px var(--display); transform: rotate(-3deg); }
.brand-mark span { display: inline-block; transform: translateY(4px) rotate(90deg); color: var(--text); }
.site-header nav { display: flex; gap: 24px; margin-left: auto; }
.nav-link { color: var(--muted); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.nav-link:hover { color: var(--lime); }
.user-bar { display: flex; align-items: center; gap: 10px; border-left: 1px solid var(--line); padding-left: 24px; min-width: 210px; }
.user-bar span:not(.avatar) { display: flex; flex-direction: column; min-width: 0; }
.user-bar b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 135px; }
.user-bar small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.avatar { flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: #272b34; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 800; }
.avatar-small { width: 38px; height: 38px; }
.avatar-large { width: 104px; height: 104px; font-size: 28px; }
.icon-button { width: 34px; height: 34px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; }
.icon-button:hover { color: var(--red); }

.site-footer { min-height: 64px; padding: 0 clamp(22px, 4vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: #616670; font: 700 9px var(--display); letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { color: var(--muted); font: 700 10px var(--display); letter-spacing: .14em; }
.eyebrow i { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 16px var(--lime); }
.primary-button, .discord-button { border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 50px; padding: 0 22px; color: var(--ink); background: var(--lime); font: 800 11px var(--display); letter-spacing: .05em; cursor: pointer; transition: .18s ease; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(200,255,69,.14); }
.primary-button.compact { min-height: 42px; padding: 0 16px; font-size: 9px; }
.text-button { border: 0; background: none; color: var(--muted); cursor: pointer; text-decoration: underline; }
.muted { color: var(--muted); }

.login-body { overflow-x: hidden; }
.login-body .site-header { border-bottom-color: rgba(255,255,255,.07); }
.login-page { min-height: calc(100vh - 150px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); align-items: stretch; }
.login-copy { padding: clamp(70px, 9vw, 150px) clamp(34px, 7vw, 130px); position: relative; overflow: hidden; }
.login-copy::after { content: '404'; position: absolute; right: -4vw; bottom: -10vw; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.06); font: 800 clamp(180px, 30vw, 520px)/.7 var(--display); transform: rotate(-7deg); pointer-events: none; }
.login-copy h1, .hub-hero h1, .admin-heading h1, .status-card h1 { margin: 24px 0; font: 800 clamp(48px, 6.4vw, 104px)/.92 var(--display); letter-spacing: -.07em; }
.login-copy h1 em, .hub-hero h1 em, .admin-heading h1 em { color: var(--lime); font-style: normal; }
.login-copy > p { max-width: 660px; color: #a4a9b3; font-size: clamp(16px, 1.4vw, 20px); }
.signal-row { display: flex; gap: clamp(22px, 5vw, 70px); margin-top: 70px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.signal-row span { display: flex; align-items: baseline; gap: 8px; }
.signal-row b { color: var(--text); font: 700 24px var(--display); }
.login-card { padding: clamp(40px, 7vw, 110px) clamp(30px, 5vw, 78px); background: linear-gradient(150deg, #191b23, #101216); border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; position: relative; }
.card-code { position: absolute; top: 28px; right: 30px; color: #555b66; font: 700 8px var(--display); letter-spacing: .12em; }
.discord-orbit { width: 120px; height: 120px; display: grid; place-items: center; position: relative; margin-bottom: 34px; }
.discord-orbit span { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 22px; background: var(--discord); font-size: 34px; box-shadow: 0 0 60px rgba(88,101,242,.28); }
.discord-orbit i { position: absolute; inset: 0; border: 1px solid rgba(155,124,255,.28); border-radius: 50%; animation: orbit 12s linear infinite; }
.discord-orbit i:nth-child(3) { inset: 12px -14px; transform: rotate(54deg); animation-duration: 17s; }
.discord-orbit i:nth-child(4) { inset: -12px 16px; transform: rotate(-24deg); animation-duration: 21s; }
@keyframes orbit { to { transform: rotate(360deg); } }
.login-card h2 { margin: 0 0 12px; font: 700 clamp(26px, 2.6vw, 42px) var(--display); }
.login-card > p { color: var(--muted); max-width: 460px; }
.discord-button { justify-content: flex-start; background: var(--discord); color: white; min-height: 70px; margin-top: 28px; }
.discord-button:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(88,101,242,.24); }
.discord-button > span:nth-child(2) { display: flex; flex-direction: column; }
.discord-button small { color: rgba(255,255,255,.55); font: 600 9px Manrope; margin-top: 2px; }
.discord-button b { margin-left: auto; font-size: 22px; }
.discord-logo { font-size: 28px; }
.login-foot { display: flex; justify-content: space-between; margin-top: 18px; color: #626875; font-size: 10px; }

.alert { padding: 14px 17px; margin: 20px 0; border: 1px solid; transition: opacity .4s; }
.alert-error { color: #ffaaa5; border-color: rgba(255,93,85,.35); background: rgba(255,93,85,.08); }
.alert-warn { color: #ffe0a1; border-color: rgba(255,189,62,.32); background: rgba(255,189,62,.07); }
.alert-success { color: #dbffa0; border-color: rgba(200,255,69,.32); background: rgba(200,255,69,.07); }
.alert.is-fading { opacity: .35; }

.hub-page, .admin-page { padding: clamp(44px, 6vw, 94px) clamp(22px, 4vw, 72px) 100px; max-width: 1760px; margin: 0 auto; }
.hub-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 58px; }
.hub-hero h1 { font-size: clamp(48px, 6vw, 88px); margin-bottom: 12px; }
.hub-hero > div > p { color: var(--muted); font-size: 18px; }
.hero-ticker { width: 260px; border-top: 1px solid var(--line); padding-top: 18px; display: grid; grid-template-columns: 1fr auto; color: var(--muted); }
.hero-ticker span, .hero-ticker small { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.hero-ticker strong { grid-row: span 2; font: 700 64px/.8 var(--display); color: var(--lime); }
.admin-sight { margin: -30px 0 30px; padding: 11px 15px; border: 1px dashed rgba(155,124,255,.42); color: var(--muted); font-size: 12px; }
.admin-sight span { color: var(--violet); font: 700 9px var(--display); margin-right: 14px; }
.game-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.game-tile { --accent: var(--lime); min-height: 520px; padding: 24px; border: 1px solid var(--line); background: linear-gradient(150deg, rgba(255,255,255,.035), transparent 50%), var(--panel); display: flex; flex-direction: column; position: relative; overflow: hidden; transition: .22s ease; }
.game-tile:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 24px 70px rgba(0,0,0,.32); }
.accent-lime { --accent: var(--lime); }.accent-violet { --accent: var(--violet); }.accent-red { --accent: var(--red); }.accent-amber { --accent: var(--amber); }.accent-cyan { --accent: var(--cyan); }
.tile-top { display: flex; justify-content: space-between; position: relative; z-index: 2; }
.tile-number, .tile-status { color: var(--muted); font: 700 9px var(--display); letter-spacing: .12em; }
.tile-status { color: var(--accent); }
.tile-art { height: 210px; display: grid; place-items: center; position: relative; }
.tile-art span { color: var(--accent); font: 800 clamp(54px, 5vw, 92px) var(--display); position: relative; z-index: 2; filter: drop-shadow(0 0 24px color-mix(in srgb, var(--accent) 24%, transparent)); }
.tile-art i { position: absolute; width: 160px; height: 160px; border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); border-radius: 50%; }
.tile-art i:last-child { width: 240px; height: 100px; transform: rotate(-38deg); }
.tile-copy { margin-top: auto; }
.tile-copy small { color: var(--accent); font: 700 9px var(--display); letter-spacing: .08em; }
.tile-copy h2 { margin: 9px 0; font: 700 clamp(22px, 2vw, 31px) var(--display); letter-spacing: -.04em; }
.tile-copy p { min-height: 66px; color: var(--muted); }
.tile-action { margin: 24px -24px -24px; padding: 18px 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font: 700 9px var(--display); letter-spacing: .1em; }
.tile-action b { color: var(--accent); font-size: 18px; }
.game-tile.is-hidden-game { opacity: .55; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.025) 0 8px, transparent 8px 18px), var(--panel); }
.club-note { margin-top: 22px; padding: 28px 32px; border: 1px solid var(--line); display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 30px; }
.club-note span, .club-note i { color: var(--muted); font: 700 9px var(--display); letter-spacing: .1em; font-style: normal; }
.club-note p { margin: 0; max-width: 760px; }.club-note i { color: var(--lime); }
.empty-state { grid-column: 1 / -1; min-height: 280px; border: 1px dashed var(--line); display: grid; place-content: center; text-align: center; color: var(--muted); }
.empty-state b { color: var(--text); font: 700 24px var(--display); }

.status-page { min-height: calc(100vh - 150px); display: grid; place-items: center; padding: 40px 22px; }
.status-card { width: min(620px, 100%); padding: clamp(35px, 6vw, 76px); border: 1px solid var(--line); background: var(--panel); text-align: center; }
.status-card h1 { font-size: clamp(42px, 6vw, 72px); margin: 28px 0 20px; }
.status-card > p { color: var(--muted); font-size: 17px; }
.status-avatar { width: max-content; margin: 0 auto 26px; position: relative; }
.status-avatar i { position: absolute; right: -4px; bottom: -4px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: var(--ink); font: 800 18px var(--display); }
.is-blocked .status-avatar i { background: var(--red); color: white; }
.owner-note { padding: 16px; margin: 22px 0; border: 1px solid var(--line); color: var(--muted); }
.owner-note span { display: block; color: var(--red); font: 700 8px var(--display); margin-bottom: 6px; }
.status-actions { margin-top: 32px; display: flex; align-items: center; justify-content: center; gap: 22px; }
.error-code { color: var(--red); font: 700 10px var(--display); letter-spacing: .14em; }

.admin-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 46px; }
.admin-heading h1 { font-size: clamp(45px, 5vw, 76px); margin-bottom: 0; }
.admin-counters { display: flex; gap: 34px; padding-bottom: 8px; }
.admin-counters span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.admin-counters b { display: block; color: var(--text); font: 700 28px var(--display); }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; }
.admin-panel { border: 1px solid var(--line); background: var(--panel); }
.admin-panel > header { min-height: 94px; padding: 22px 26px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.admin-panel > header span, .admin-panel > header p { color: var(--muted); font: 700 9px var(--display); letter-spacing: .1em; }
.admin-panel > header h2 { margin: 5px 0 0; font: 700 22px var(--display); }
.panel-count { color: var(--lime) !important; font-size: 28px !important; }
.quick-add { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 12px; padding: 20px 26px; background: #0d0f12; border-bottom: 1px solid var(--line); align-items: end; }
label { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
input, select, textarea { width: 100%; min-height: 43px; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); background: #0b0d10; color: var(--text); outline: none; }
input:focus, select:focus, textarea:focus { border-color: rgba(200,255,69,.55); }
textarea { min-height: 76px; resize: vertical; }
.user-list { max-height: 600px; overflow: auto; }
.user-row { min-height: 82px; padding: 14px 20px 14px 26px; border-bottom: 1px solid rgba(255,255,255,.06); display: grid; grid-template-columns: minmax(230px, 1fr) 180px auto; align-items: center; gap: 18px; }
.user-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.user-identity > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.user-identity small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.user-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }.user-meta small { color: #5d626c; }
.status-badge { width: max-content; padding: 4px 7px; font: 700 7px var(--display); letter-spacing: .07em; border: 1px solid; }
.status-approved { color: var(--lime); border-color: rgba(200,255,69,.28); }.status-pending { color: var(--amber); border-color: rgba(255,189,62,.3); }.status-blocked { color: var(--red); border-color: rgba(255,93,85,.3); }
.user-actions { display: flex; gap: 6px; justify-content: flex-end; }
.mini-button { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 7px 9px; font-size: 9px; cursor: pointer; }
.mini-button:hover, .mini-button.approve { color: var(--lime); }.mini-button.danger:hover { color: var(--red); }
.protected-label { color: var(--violet); font: 700 8px var(--display); }
.audit-list { padding: 18px 22px; }
.audit-list > div { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.055); }
.audit-list i { width: 7px; height: 7px; margin-top: 6px; background: var(--violet); border-radius: 50%; }
.audit-list span { display: flex; flex-direction: column; }.audit-list b { font-size: 11px; }.audit-list small { color: var(--muted); font-size: 9px; }
.games-panel { margin-top: 18px; }
.game-editors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.game-editor { padding: 24px; background: var(--panel); }
.editor-title { display: flex; align-items: center; gap: 12px; margin-bottom: 21px; }
.editor-title > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; flex: 1; }
.editor-title small { color: var(--muted); }
.game-glyph { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); font: 700 15px var(--display); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }.form-grid .wide { grid-column: 1 / -1; }
.check-label { display: flex; align-items: center; gap: 9px; padding-top: 20px; cursor: pointer; }.check-label input { display: none; }.check-label span { width: 18px; height: 18px; border: 1px solid var(--line); }.check-label input:checked + span { background: var(--lime); box-shadow: inset 0 0 0 4px #101216; }
.game-editor .primary-button { margin-top: 18px; }
.new-game { margin: 0; padding: 24px; border-top: 1px solid var(--line); background: #0d0f12; }
.new-game summary { color: var(--lime); font: 700 10px var(--display); cursor: pointer; }.new-game form { max-width: 900px; margin-top: 24px; }

@media (max-width: 1180px) {
  .game-wall, .game-editors { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }.audit-panel { order: -1; }
  .site-header nav { display: none; }
}
@media (max-width: 780px) {
  .site-header { height: auto; min-height: 76px; padding: 12px 18px; }.brand > span:last-child, .user-bar small { display: none; }.user-bar { min-width: 0; margin-left: auto; border: 0; padding: 0; }.user-bar b { max-width: 90px; }.site-header nav { display: flex; order: 3; width: 100%; }
  .login-page { grid-template-columns: 1fr; }.login-copy { padding: 70px 24px; }.login-card { border-left: 0; border-top: 1px solid var(--line); padding: 80px 24px; }
  .signal-row { margin-top: 45px; }.login-foot { flex-direction: column; gap: 6px; }
  .hub-hero, .admin-heading { align-items: flex-start; flex-direction: column; }.hero-ticker { width: 100%; }.admin-counters { width: 100%; justify-content: space-between; gap: 12px; }
  .game-wall, .game-editors { grid-template-columns: 1fr; }.game-tile { min-height: 460px; }.club-note { grid-template-columns: 1fr; }
  .admin-page, .hub-page { padding-left: 15px; padding-right: 15px; }.quick-add { grid-template-columns: 1fr; }.user-row { grid-template-columns: 1fr; }.user-actions { justify-content: flex-start; flex-wrap: wrap; }.user-list { max-height: none; }
  .site-footer { flex-direction: column; padding: 24px; text-align: center; }.status-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
