@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@400;600;700;900&family=Outfit:wght@300;400;500;600;700&display=swap');

/* =====================================================================
   SuperGameServer — skin GameX
   Cores e tipografia extraidas do tema (tekken.wpengine.com):
     acento #FF6321 · fundo #1D1D1D · texto #BDBDBD · titulos #FFFFFF
     titulos Titillium Web 700 caixa alta · corpo Outfit
   Forma: cantos chanfrados (clip-path) + cantoneiras laranja.

   Nota de implementacao: o chanfro dos botoes e desenhado no ::before, e nao
   no proprio botao. Aplicar clip-path no .btn recortaria tambem a moldura
   decorativa (::after), que fica FORA dele.
   ===================================================================== */

:root {
  --bg:        #161616;
  --bg-soft:   #1D1D1D;
  --surface:   #232323;
  --surface-2: #2A2A2A;
  --surface-3: #343434;
  --border:    #303030;
  --border-soft: #262626;

  --text:      #FFFFFF;
  --text-dim:  #BDBDBD;
  --muted:     #8C8C8C;
  --faint:     #6A6A6A;

  --brand:      #FF6321;
  --brand-dim:  #E5541A;
  --brand-lit:  #FF8A54;
  --brand-soft: rgba(255, 99, 33, .14);
  --brand-glow: rgba(255, 99, 33, .5);

  --ok:        #3FCF6A;
  --ok-soft:   rgba(63, 207, 106, .13);
  --warn:      #FFB020;
  --warn-soft: rgba(255, 176, 32, .13);
  --danger:    #FF4D4D;
  --danger-soft: rgba(255, 77, 77, .13);
  --sleep:     #4DA3FF;
  --sleep-soft: rgba(77, 163, 255, .13);

  --radius:    4px;
  --radius-sm: 3px;
  --radius-lg: 6px;

  --shadow:    0 16px 46px rgba(0, 0, 0, .62);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, .4);

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Titillium Web", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace;

  --sidebar-w: 252px;
  --topbar-h: 64px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg-soft);
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 15px; line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(880px 440px at 82% -6%, rgba(255, 99, 33, .10), transparent 62%),
    radial-gradient(700px 400px at 4% 102%, rgba(255, 99, 33, .05), transparent 60%);
}

a { color: var(--brand); text-decoration: none; transition: color .13s; }
a:hover { color: var(--brand-lit); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  font-weight: 700; line-height: 1.2;
  text-transform: uppercase; color: var(--text);
}
h1 { font-size: 34px; }
h2 { font-size: 25px; }
h3 { font-size: 17px; }
h4 { font-size: 15px; }
p  { margin: 0 0 1em; }

code, pre, .mono { font-family: var(--mono); }
::selection { background: var(--brand); color: #fff; }

svg { width: 16px; height: 16px; flex: 0 0 auto; vertical-align: middle; }
.pill svg { width: 13px; height: 13px; }
.badge-top svg { width: 15px; height: 15px; }
.table svg { width: 15px; height: 15px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--brand-dim); }

/* ====================================================== layout do painel */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  background: var(--bg);
  border-right: 1px solid var(--border-soft);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}

.brand {
  display: flex; align-items: center; gap: 11px;
  padding: 20px 18px 18px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 19px; text-transform: uppercase; color: #fff;
}
.brand .logo {
  width: 34px; height: 34px; flex: 0 0 34px;
  background: var(--brand); display: grid; place-items: center;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  filter: drop-shadow(0 4px 14px var(--brand-glow));
}
.brand .logo svg { width: 18px; height: 18px; fill: #fff; }
.brand small {
  display: block; font-family: var(--font); font-size: 9.5px; font-weight: 600;
  color: var(--faint); letter-spacing: .18em; text-transform: uppercase; margin-top: 1px;
}

.nav { padding: 6px 10px 18px; }
.nav-label {
  font-family: var(--font-display);
  font-size: 11px; text-transform: uppercase; letter-spacing: .17em;
  color: var(--brand); font-weight: 700; padding: 18px 10px 8px;
}
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; margin-bottom: 2px;
  color: var(--text-dim); font-size: 14px; font-weight: 500;
  transition: background .13s, color .13s;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.nav a:hover { background: var(--surface); color: #fff; }
.nav a.active { background: var(--brand); color: #fff; font-weight: 600; }
.nav a.active svg { color: #fff; }
.nav svg { width: 17px; height: 17px; color: var(--muted); }
.nav .badge {
  margin-left: auto; background: rgba(0,0,0,.3); color: #fff;
  font-size: 11px; font-weight: 700; padding: 1px 8px;
}
.nav a:not(.active) .badge { background: var(--surface-2); color: var(--text-dim); }

/* selo quadrado de estado na lista de servidores do menu */
.status-chip {
  margin-left: auto; flex: 0 0 auto;
  font-family: var(--font-display); font-size: 9.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 7px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--muted); border-radius: 2px;
}
.status-chip.ok     { background: var(--ok-soft);     color: var(--ok);     border-color: rgba(63,207,106,.45); }
.status-chip.warn   { background: var(--warn-soft);   color: var(--warn);   border-color: rgba(255,176,32,.45); }
.status-chip.danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(255,77,77,.45); }
.status-chip.sleep  { background: var(--sleep-soft);  color: var(--sleep);  border-color: rgba(77,163,255,.45); }
.nav a.active .status-chip { background: rgba(0, 0, 0, .28); color: #fff; border-color: transparent; }

.sidebar-foot { margin-top: auto; padding: 16px; border-top: 1px solid var(--border-soft); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 16px; padding: 0 26px;
  background: rgba(29, 29, 29, .9); backdrop-filter: blur(14px);
  position: sticky; top: 0; z-index: 40;
}
.topbar h1 { font-size: 18px; margin: 0; }
.topbar .spacer { flex: 1; }

.content { padding: 26px; max-width: 1460px; width: 100%; }
.content.narrow { max-width: 960px; }

/* ------------------------------------------------- seletor de idioma (globo) */
.lang-menu { position: relative; }
.lang-menu > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 6px;
  padding: 7px 11px; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-dim);
  font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .06em;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  transition: color .13s, background .13s;
}
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover { color: #fff; background: var(--surface-3); }
.lang-menu[open] > summary { color: var(--brand); border-color: var(--brand); }
.lang-menu svg { width: 15px; height: 15px; }

.lang-drop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60;
  min-width: 186px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.lang-drop a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; color: var(--text-dim); font-size: 14px;
}
.lang-drop a:hover { background: var(--surface-2); color: #fff; }
.lang-drop a.active { color: var(--brand); }
.lang-drop a svg { margin-left: auto; width: 14px; height: 14px; }
.lang-flag { font-size: 17px; line-height: 1; }

/* ================================================================ cards */
.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; margin-bottom: 18px;
}
/* cantoneira laranja: marca visual do tema */
.card::before {
  content: ''; position: absolute; top: -1px; left: -1px;
  width: 20px; height: 20px; pointer-events: none;
  border-top: 2px solid var(--brand); border-left: 2px solid var(--brand);
}
.card.tight { padding: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head {
  display: flex; align-items: center; gap: 12px;
  margin: -22px -22px 18px; padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}
.card.flush .card-head { margin: 0; }
.card-head h2, .card-head h3 { margin: 0; font-size: 15px; }
.card-head .spacer { flex: 1; }
.card-desc { color: var(--muted); font-size: 14px; margin: -6px 0 16px; }

.grid { display: grid; gap: 18px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.sidebar-right { grid-template-columns: minmax(0, 1fr) 336px; align-items: start; }

/* ================================================================ stats */
.stat {
  position: relative;
  background: var(--surface); border: 1px solid var(--border); padding: 18px 20px;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}
.stat::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--brand);
}
.stat .label {
  font-family: var(--font-display);
  font-size: 11px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--brand); font-weight: 700; display: flex; align-items: center; gap: 7px;
}
.stat .label svg { width: 14px; height: 14px; }
.stat .value {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 700; margin-top: 6px; color: #fff; line-height: 1.1;
}
.stat .value small {
  font-size: 15px; font-weight: 700; color: var(--brand); margin-left: 3px;
  font-family: var(--font-display);
}
.stat .sub { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* ================================================================ pills */
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px;
  font-family: var(--font-display);
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 7px; }
.pill.ok     { background: var(--ok-soft);     color: var(--ok);     border-color: rgba(63,207,106,.34); }
.pill.warn   { background: var(--warn-soft);   color: var(--warn);   border-color: rgba(255,176,32,.34); }
.pill.danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(255,77,77,.34); }
.pill.sleep  { background: var(--sleep-soft);  color: var(--sleep);  border-color: rgba(77,163,255,.34); }
.pill.off    { color: var(--muted); }
.pill.brand  { background: var(--brand-soft); color: var(--brand); border-color: rgba(255,99,33,.4); }

.pill.ok .dot { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(63, 207, 106, .6); }
  60%      { box-shadow: 0 0 0 6px rgba(63, 207, 106, 0); }
}
.pill.warn .dot { animation: blink 1.1s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ==============================================================  botoes
   A forma chanfrada mora no ::before para nao recortar a moldura (::after). */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px;
  border: 0; background: transparent; color: var(--text);
  font-family: var(--font-display);
  font-size: 13.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  transition: color .14s, transform .07s;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--surface-2); border: 1px solid var(--border);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background .14s, border-color .14s;
}
.btn:hover { color: #fff; }
.btn:hover::before { background: var(--surface-3); border-color: #3D3D3D; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; }

.btn.primary { color: #fff; }
.btn.primary::before { background: var(--brand); border-color: var(--brand); }
.btn.primary:hover { color: var(--brand); }
.btn.primary:hover::before { background: #fff; border-color: #fff; }

.btn.ok { color: var(--ok); }
.btn.ok::before { background: var(--ok-soft); border-color: rgba(63,207,106,.4); }
.btn.ok:hover { color: #10240F; }
.btn.ok:hover::before { background: var(--ok); border-color: var(--ok); }

.btn.danger { color: var(--danger); }
.btn.danger::before { background: var(--danger-soft); border-color: rgba(255,77,77,.4); }
.btn.danger:hover { color: #fff; }
.btn.danger:hover::before { background: var(--danger); border-color: var(--danger); }

.btn.ghost { color: var(--text-dim); }
.btn.ghost::before { background: transparent; border-color: transparent; }
.btn.ghost:hover::before { background: var(--surface-2); border-color: transparent; }

.btn.sm { padding: 7px 14px; font-size: 12px; }
.btn.sm::before {
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.btn.sm svg { width: 14px; height: 14px; }
.btn.block { width: 100%; }
.btn:disabled, .btn.disabled { opacity: .42; cursor: not-allowed; pointer-events: none; }

.btn-row { display: flex; gap: 9px; flex-wrap: wrap; }

/* Moldura vazada em volta do botao — assinatura do GameX, so nas paginas
   publicas. No painel os botoes ficam limpos: la a tela e densa. */
.public .btn.primary, .auth-box .btn.primary { margin: 12px 14px; }
.public .btn.primary::after, .auth-box .btn.primary::after {
  content: ''; position: absolute; inset: -11px -13px; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .34);
  clip-path: polygon(0 0, 36% 0, 36% 2px, 64% 2px, 64% 0, 100% 0,
                     100% 100%, 64% 100%, 64% calc(100% - 2px), 36% calc(100% - 2px),
                     36% 100%, 0 100%);
  transition: border-color .14s;
}
.public .btn.primary:hover::after, .auth-box .btn.primary:hover::after { border-color: var(--brand); }

/* ============================================================== forms */
.field { margin-bottom: 17px; }
.field label {
  display: block; font-family: var(--font-display);
  font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  margin-bottom: 7px; color: var(--text-dim);
}
.field .help { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

input[type=text], input[type=email], input[type=password], input[type=number],
input[type=search], select, textarea {
  width: 100%; padding: 11px 14px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; font-size: 14px;
  transition: border-color .13s, box-shadow .13s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%238C8C8C' d='M6 8.5 2 4.5h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  background-size: 11px; padding-right: 34px;
}

.switch { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .track {
  width: 44px; height: 24px; flex: 0 0 44px;
  background: var(--surface-3); border: 1px solid var(--border);
  position: relative; transition: background .16s, border-color .16s;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.switch .track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; background: var(--muted); transition: transform .16s, background .16s;
}
.switch input:checked + .track { background: var(--brand); border-color: var(--brand); }
.switch input:checked + .track::after { transform: translateX(20px); background: #fff; }
.switch .text { font-size: 14px; text-transform: none; letter-spacing: 0; }

/* ============================================================== tabelas */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); font-weight: 700;
  border-bottom: 1px solid var(--border); background: var(--bg);
}
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover td { background: rgba(255, 99, 33, .05); }
.table .right { text-align: right; }
.table-wrap { overflow-x: auto; }

/* ============================================================== console */
.console {
  position: relative;
  background: #0E0E0E; border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.console::before {
  content: ''; position: absolute; top: -1px; left: -1px; width: 20px; height: 20px;
  border-top: 2px solid var(--brand); border-left: 2px solid var(--brand);
  pointer-events: none; z-index: 1;
}
.console-out {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.65;
  padding: 16px 18px; height: 440px; overflow-y: auto;
  color: #C9C9C9; white-space: pre-wrap; word-break: break-word;
}
.console-out .l { display: block; }
.console-out .l.warn  { color: var(--warn); }
.console-out .l.error { color: var(--danger); }
.console-out .l.info  { color: #9E9E9E; }
.console-out .l.cmd   { color: var(--brand); font-weight: 600; }
.console-out .l.sys   { color: var(--ok); font-style: italic; }

.console-in { display: flex; border-top: 1px solid var(--border); background: var(--bg); }
.console-in span.prompt {
  display: grid; place-items: center; padding: 0 4px 0 15px;
  color: var(--brand); font-family: var(--mono); font-weight: 700;
}
.console-in input {
  flex: 1; background: transparent; border: 0; border-radius: 0;
  font-family: var(--mono); font-size: 13px; padding: 13px 8px;
}
.console-in input:focus { box-shadow: none; }
.console-in button { padding: 0 16px; }
.console-in button::before { display: none; }

/* ============================================================== barras */
.bar { height: 6px; background: var(--surface-3); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); transition: width .4s ease; }
.bar > i.ok { background: var(--ok); }
.bar > i.warn { background: var(--warn); }
.bar > i.danger { background: var(--danger); }
.bar-label { display: flex; justify-content: space-between; font-size: 12.5px;
             color: var(--muted); margin-bottom: 6px; }

/* =============================================================== abas */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border);
        margin-bottom: 20px; overflow-x: auto; }
.tabs a {
  padding: 12px 18px;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border-bottom: 2px solid transparent;
  white-space: nowrap; transition: color .13s;
}
.tabs a:hover { color: var(--text-dim); }
.tabs a.active { color: var(--brand); border-bottom-color: var(--brand); }

/* ============================================================= alertas */
.alert {
  padding: 14px 17px; font-size: 14px; margin-bottom: 16px;
  border: 1px solid; border-left-width: 3px;
  display: flex; gap: 12px; align-items: flex-start;
}
.alert svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; }
.alert.info   { background: var(--brand-soft); border-color: rgba(255,99,33,.36); color: var(--brand-lit); }
.alert.ok     { background: var(--ok-soft); border-color: rgba(63,207,106,.36); color: var(--ok); }
.alert.warn   { background: var(--warn-soft); border-color: rgba(255,176,32,.36); color: var(--warn); }
.alert.danger { background: var(--danger-soft); border-color: rgba(255,77,77,.36); color: var(--danger); }

/* ============================================================== toasts */
#toasts { position: fixed; bottom: 22px; right: 22px; z-index: 200;
          display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--surface-2); border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  padding: 13px 18px; box-shadow: var(--shadow);
  font-size: 14px; max-width: 380px; animation: slidein .22s ease;
}
.toast.ok { border-left-color: var(--ok); }
.toast.danger { border-left-color: var(--danger); }
@keyframes slidein { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ============================================================== modais */
.modal-bg {
  position: fixed; inset: 0; background: rgba(10, 10, 10, .82);
  backdrop-filter: blur(5px); z-index: 150;
  display: grid; place-items: center; padding: 20px;
}
.modal {
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  width: 100%; max-width: 470px; padding: 26px; animation: pop .16s ease;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.modal h3 { margin-top: 0; font-size: 18px; }

/* ========================================================= cards de jogo */
.game-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  padding: 20px; cursor: pointer;
  transition: border-color .16s, transform .13s, box-shadow .16s;
  clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 17px, 100% 100%, 17px 100%, 0 calc(100% - 17px));
}
.game-card:hover {
  border-color: var(--brand); transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 99, 33, .16);
}
.game-card.selected { border-color: var(--brand); background: rgba(255, 99, 33, .08); }
.game-card.disabled { opacity: .42; cursor: not-allowed; }
.game-card.disabled:hover { border-color: var(--border); transform: none; box-shadow: none; }
.game-card .ico {
  width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 14px;
  font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #fff;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.game-card h3 { font-size: 15px; margin: 0 0 5px; }
.game-card p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.55;
               text-transform: none; }
.game-card .soon {
  position: absolute; top: 13px; right: 13px;
  font-family: var(--font-display);
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  background: var(--surface-3); color: var(--muted); padding: 4px 9px;
}
/* Selo de situacao do jogo: verde = pode criar agora, vermelho = so fila. */
.game-card .soon.disponivel {
  background: var(--ok-soft); color: var(--ok);
  border: 1px solid rgba(63, 207, 106, .4);
}
.game-card .soon.esgotado {
  background: var(--danger-soft); color: var(--danger);
  border: 1px solid rgba(255, 77, 77, .4);
}
/* Card de jogo esgotado continua clicavel (leva para a fila), so perde o brilho. */
.game-card.esgotado { opacity: 1; cursor: pointer; }
.game-card.esgotado .ico { filter: grayscale(.55) brightness(.8); }
.game-card.esgotado:hover .ico { filter: none; }
.game-card .fila-btn { margin-top: 14px; width: 100%; }

/* card de regiao: bandeira grande no lugar do icone do jogo */
.region-card .flag { margin-bottom: 13px; }
/* a bandeira e SVG (emoji de bandeira nao renderiza no Windows) */
.region-card .flag svg {
  width: 54px; height: 38px; border-radius: 3px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .55);
}
.region-card h3 { font-size: 16px; }

/* botao redondo de ajuda ("?") ao lado do titulo */
.ajuda-btn {
  width: 34px; height: 34px; flex: 0 0 34px; padding: 0;
  border-radius: 50%; font-size: 17px; line-height: 1;
  border: 1px solid var(--border); color: var(--brand);
}
.ajuda-btn::before { border-radius: 50%; clip-path: none; }
.ajuda-btn:hover { color: #fff; }
.ajuda-btn:hover::before { background: var(--brand); border-color: var(--brand); }
.game-card .vagas {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  margin-top: 12px; display: block;
}

/* ====================================================== "sou humano" (captcha) */
.captcha {
  /* fundo neutro com borda de acento: o preenchimento laranja cheio ficava
     pesado no tema escuro e competia com o botao primario logo abaixo */
  border: 1px solid var(--brand); background: var(--bg);
  padding: 14px 16px; margin-bottom: 17px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.captcha-label {
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 10px;
}
.captcha-row { display: flex; align-items: center; gap: 11px; }
.captcha-input {
  width: 84px; flex: 0 0 84px; text-align: center;
  font-family: var(--font-display); font-size: 19px; font-weight: 700;
  padding: 9px 6px; background: var(--bg);
}
/* esconde as setinhas do input number: aqui elas so atrapalham */
.captcha-input::-webkit-outer-spin-button,
.captcha-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.captcha-input { -moz-appearance: textfield; }
.captcha-op, .captcha-num {
  font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--brand);
}
.captcha-op { color: var(--text-dim); }

/* ====================================================== lista de servidores */
.server-row {
  display: flex; align-items: center; gap: 15px;
  padding: 16px 18px; border: 1px solid var(--border);
  background: var(--surface); margin-bottom: 11px;
  transition: border-color .14s, background .14s;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}
.server-row:hover { border-color: var(--brand); background: var(--surface-2); }
.server-row .ico {
  width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 18px;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}
.server-row .info { min-width: 0; flex: 1; }
.server-row .info .name { font-family: var(--font-display); font-weight: 700; font-size: 16px;
                          margin-bottom: 2px; color: #fff; }
.server-row .info .meta { font-size: 13px; color: var(--muted);
                          display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.server-row .addr {
  font-family: var(--mono); font-size: 12.5px; color: var(--brand);
  background: var(--bg); padding: 7px 12px; border: 1px solid var(--border);
  cursor: pointer; transition: border-color .13s;
}
.server-row .addr:hover { border-color: var(--brand); }

/* ================================================================ misc */
.muted { color: var(--muted); }
.dim { color: var(--text-dim); }
.small { font-size: 13.5px; }
.tiny { font-size: 12.5px; }
.right { text-align: right; }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.mt16 { margin-top: 16px; } .mb16 { margin-bottom: 16px; }
.mt24 { margin-top: 24px; } .mb24 { margin-bottom: 24px; }
.flex { display: flex; align-items: center; gap: 11px; }
.flex.between { justify-content: space-between; }
.flex.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }

.empty { text-align: center; padding: 58px 20px; color: var(--muted); }
.empty svg { width: 48px; height: 48px; opacity: .25; margin-bottom: 14px; }
.empty h3 { color: var(--text-dim); font-size: 17px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; color: var(--text); }

.copyable {
  font-family: var(--mono); background: var(--bg); border: 1px solid var(--border);
  padding: 12px 14px; display: flex; align-items: center; gap: 10px;
  font-size: 14px; cursor: pointer; color: var(--brand);
  transition: border-color .14s;
}
.copyable:hover { border-color: var(--brand); }
.copyable .spacer { flex: 1; }
.copyable svg { width: 15px; height: 15px; color: var(--muted); }

/* ====================================================== paginas publicas */
.public { max-width: 1200px; margin: 0 auto; padding: 0 22px; }

.pub-header {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--border-soft);
  position: sticky; top: 0; background: rgba(29,29,29,.92); backdrop-filter: blur(14px); z-index: 40;
}
.pub-header .brand { padding: 0; }
.pub-nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.pub-nav a {
  padding: 10px 15px; color: var(--text-dim);
  font-family: var(--font-display); font-size: 13.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.pub-nav a:hover { color: var(--brand); }
.pub-nav .btn.primary { margin-left: 20px; }

.hero { padding: 78px 0 62px; text-align: center; position: relative; }
.hero::before {
  content: ''; position: absolute; top: -130px; left: 50%; transform: translateX(-50%);
  width: 860px; height: 470px; pointer-events: none;
  background: radial-gradient(ellipse at center, var(--brand-glow), transparent 66%);
  opacity: .34; filter: blur(60px);
}
.hero > * { position: relative; }
.hero h1 { font-size: 54px; line-height: 1.08; margin-bottom: 20px; }
/* o nome do jogo ocupa a linha inteira: como ele muda em ciclo, deixar no meio
   da frase faria o titulo quebrar linha de novo a cada troca */
.hero h1 em {
  display: block; font-style: normal; color: var(--brand);
  text-shadow: 0 0 34px rgba(255, 99, 33, .55);
}
.hero p.lead { font-size: 17px; color: var(--text-dim); max-width: 640px; margin: 0 auto 34px; }

.badge-top {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  background: none; border: 0; padding: 0; color: var(--brand);
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: .17em; text-transform: uppercase;
}

.price-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  padding: 28px; display: flex; flex-direction: column;
  transition: border-color .16s, transform .14s;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.price-card:hover { border-color: var(--brand); transform: translateY(-3px); }
.price-card.featured {
  border-color: var(--brand); box-shadow: 0 18px 46px rgba(255, 99, 33, .16);
}
.price-card .tag {
  position: absolute; top: 0; right: 0;
  background: var(--brand); color: #fff;
  font-family: var(--font-display);
  font-size: 10.5px; font-weight: 700; padding: 6px 16px 6px 22px;
  text-transform: uppercase; letter-spacing: .1em; white-space: nowrap;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%);
}
.price-card h3 { font-size: 18px; margin-bottom: 4px; }
.price-card .tagline { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; min-height: 36px; }
.price-card .price {
  font-family: var(--font-display); font-size: 42px; font-weight: 700; color: #fff; line-height: 1;
}
.price-card .price small { font-size: 14px; font-weight: 500; color: var(--muted);
                           font-family: var(--font); }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 26px; font-size: 14px; flex: 1; }
.price-card li { padding: 8px 0; display: flex; gap: 10px; align-items: center; color: var(--text-dim); }
.price-card li svg { width: 15px; height: 15px; color: var(--brand); flex: 0 0 15px; }
.price-card li strong { color: #fff; font-weight: 600; }
/* dentro de card (plano ou jogo) o botao nao leva moldura: ficaria apertado */
.public .price-card .btn.primary,
.public .game-card .btn.primary,
.modal .btn.primary { margin: 0; }
.public .price-card .btn.primary::after,
.public .game-card .btn.primary::after,
.modal .btn.primary::after { display: none; }

.feature { text-align: left; }
.feature .ico {
  width: 46px; height: 46px; border: 2px solid var(--brand);
  display: grid; place-items: center; margin-bottom: 16px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.feature .ico svg { width: 20px; height: 20px; color: var(--brand); }
.feature h3 { font-size: 16px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.65; }

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 30px 20px; }
.auth-box {
  width: 100%; max-width: 424px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 32px; box-shadow: var(--shadow);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}
.auth-box .brand { padding: 0 0 22px; justify-content: center; }
.auth-box h2 { font-size: 20px; }
.auth-box .btn.primary { margin: 12px 14px 14px; }

.pub-footer {
  border-top: 1px solid var(--border-soft); margin-top: 72px; padding: 36px 0;
  color: var(--muted); font-size: 14px;
}

/* ============================================================= responsivo */
@media (max-width: 980px) {
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.sidebar-right { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 40px; }
}

@media (max-width: 760px) {
  :root { --sidebar-w: 100%; }
  .shell { flex-direction: column; }
  .sidebar { position: static; height: auto; width: 100%; flex: none;
             border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .sidebar .nav { display: flex; overflow-x: auto; gap: 4px; padding: 8px 10px; }
  .sidebar .nav-label, .sidebar-foot { display: none; }
  .nav a { white-space: nowrap; }
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: minmax(0, 1fr); }
  .content { padding: 18px 15px; }
  .topbar { padding: 0 15px; }
  .server-row { flex-wrap: wrap; }
  .hero { padding: 46px 0 38px; }
  .hero h1 { font-size: 31px; }
  .pub-nav a { padding: 8px 10px; font-size: 12px; }
}

/* ====================================================== endereco do servidor
   Campo do subdominio + grade de nomes gregos. O chanfro segue o resto do
   painel: clip-path nos cantos opostos. */

.addr-input { display: flex; align-items: stretch; }
.addr-input input {
  flex: 1 1 auto; min-width: 0;
  border-right: none;
  text-transform: lowercase;
  font-family: var(--mono);
  letter-spacing: .02em;
}
.addr-suffix {
  flex: 0 0 auto;
  display: flex; align-items: center;
  padding: 0 13px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
  font-size: 13.5px;
  font-family: var(--mono);
  white-space: nowrap;
}
/* Em tela estreita o sufixo nao cabe do lado: vira segunda linha. */
@media (max-width: 560px) {
  .addr-input { flex-wrap: wrap; }
  .addr-input input { border-right: 1px solid var(--border); }
  .addr-suffix {
    width: 100%; border-top: none; justify-content: flex-start;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  }
}

.addr-input input.ok  { border-color: rgba(63,207,106,.55); }
.addr-input input.bad { border-color: rgba(255,77,77,.55); }
.field .help.ok  { color: var(--ok); }
.field .help.bad { color: var(--danger); }

.god-grid {
  display: grid; gap: 7px; margin-top: 4px;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  max-height: 232px; overflow-y: auto;
  padding: 3px;
}
.god {
  position: relative;
  padding: 8px 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font: inherit; font-size: 13px;
  text-align: center; cursor: pointer;
  transition: color .12s, background .12s, border-color .12s;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.god:hover:not(.taken) { color: var(--text); border-color: var(--brand); background: var(--brand-soft); }
.god.selected {
  color: #fff; background: var(--brand); border-color: var(--brand);
  font-weight: 700;
}
.god.taken {
  color: var(--faint); cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: rgba(255,77,77,.5);
  background: var(--bg);
}
