/* PLASTIX - old-school Roblox-style pages: sky background, boxed panels, glossy buttons */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 14px;
  color: #222;
  background: #8aa4c8 url(/sky.png) center / cover no-repeat fixed;
  position: relative;
}

/* ---- top bar ---- */
.topbar {
  position: relative; z-index: 2;
  background: linear-gradient(#2a62b8, #1b438a);
  border-bottom: 3px solid #14306a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.topbar-inner { max-width: 980px; margin: 0 auto; padding: 0 14px; height: 52px; display: flex; align-items: center; gap: 22px; }
.logo {
  color: #fff; text-decoration: none; font: 900 26px/1 "Trebuchet MS", Verdana, sans-serif; letter-spacing: 3px;
  text-shadow: 2px 2px 0 #0d2250, 0 0 8px rgba(255, 255, 255, .25);
}
.nav { display: flex; gap: 4px; flex: 1; }
.nav-item { color: #cfe0ff; padding: 6px 12px; border-radius: 0; font-weight: bold; }
.nav-item.active { background: rgba(255, 255, 255, .2); color: #fff; }
.nav-item.soft { opacity: .6; cursor: default; }
.who { margin-left: auto; display: flex; align-items: center; gap: 10px; color: #fff; font-weight: bold; }

/* ---- layout ---- */
.page { position: relative; z-index: 1; max-width: 980px; margin: 22px auto 40px; padding: 0 14px; }
.auth { max-width: 420px; margin: 40px auto 0; }
.footer { position: relative; z-index: 1; text-align: center; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); padding: 10px 0 24px; font-size: 12px; }

/* ---- panels with tabs ---- */
.panel { margin-bottom: 22px; }
.tabs { display: flex; gap: 3px; padding-left: 10px; }
.tab {
  font: bold 13px Verdana, sans-serif; color: #fff; padding: 7px 18px; border: 2px solid #14306a; border-bottom: 0;
  border-radius: 0; background: linear-gradient(#5a8fe0, #2f62b8); cursor: pointer;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}
.tab.active { background: #fff; color: #14306a; text-shadow: none; position: relative; top: 2px; padding-bottom: 8px; cursor: default; }
.panel-body {
  background: #fff; border: 2px solid #14306a; border-radius: 0; padding: 18px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
h1 { margin: 0 0 8px; font: bold 26px "Trebuchet MS", Verdana, sans-serif; color: #14306a; }
h2 { margin: 0 0 10px; font: bold 16px "Trebuchet MS", Verdana, sans-serif; color: #14306a; }

/* ---- welcome + news ---- */
.welcome-grid { display: grid; grid-template-columns: 1fr 280px; gap: 20px; }
.welcome { display: flex; gap: 18px; align-items: center; min-width: 0; }
.welcome h1 { word-break: break-word; }
.welcome p { margin: 0; line-height: 1.5; color: #444; }
.news { border-left: 2px solid #c3d4ee; padding: 2px 0 2px 20px; }
.news h2 { margin-bottom: 6px; }
.news ul { margin: 0; padding-left: 18px; line-height: 1.6; }

/* CSS-only R6 noob for the welcome box */
.noob { position: relative; width: 78px; height: 112px; flex: none; }
.noob i { position: absolute; display: block; border: 1px solid rgba(0, 0, 0, .35); }
.n-head { width: 26px; height: 26px; left: 26px; top: 0; background: #f5cd30; border-radius: 0; }
.n-torso { width: 40px; height: 40px; left: 19px; top: 27px; background: #0d69ac; }
.n-arm { width: 19px; height: 40px; top: 27px; background: #f5cd30; }
.n-arm.n-l { left: 0; } .n-arm.n-r { left: 59px; }
.n-leg { width: 20px; height: 40px; top: 68px; background: #4b974b; }
.n-leg.n-l { left: 19px; } .n-leg.n-r { left: 39px; }

/* ---- forms ---- */
label { display: block; font-weight: bold; font-size: 12px; margin: 10px 0 4px; color: #333; }
input, select {
  font: 14px Verdana, sans-serif; padding: 8px 10px; border: 2px solid #9db6dc; border-radius: 0; width: 100%; background: #fff;
}
input:focus, select:focus { outline: none; border-color: #2f62b8; box-shadow: 0 0 0 3px rgba(47, 98, 184, .2); }
.hint { font-size: 12px; color: #666; margin: 8px 0 0; }
.error { color: #c0261b; font-weight: bold; min-height: 18px; margin: 8px 0 4px; font-size: 13px; }
#auth-form .btn { width: 100%; margin-top: 6px; }

.create { background: #eef4fd; border: 1px solid #c3d4ee; border-radius: 0; padding: 12px 14px 4px; margin-bottom: 20px; }
.create-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.field { min-width: 120px; }
.field.grow { flex: 1; min-width: 180px; }
.field.narrow { width: 110px; min-width: 110px; }
.create label { margin-top: 0; }

/* ---- buttons ---- */
.btn {
  font: bold 14px Verdana, sans-serif; color: #fff; padding: 9px 20px; border-radius: 0; border: 2px solid; cursor: pointer;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn.big { font-size: 16px; padding: 11px 24px; }
.btn.small { font-size: 12px; padding: 5px 12px; }
.btn.green { background: linear-gradient(#5fd35f, #2e9c2e); border-color: #1d6e1d; }
.btn.blue { background: linear-gradient(#5aa0f0, #2561c0); border-color: #14306a; }
.btn.gray { background: linear-gradient(#b8c2d4, #7d8aa3); border-color: #4a556b; }
.btn.red { background: linear-gradient(#f06a5a, #c0261b); border-color: #7d1810; }
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }
.btn:disabled { filter: grayscale(1); opacity: .6; cursor: not-allowed; }

/* ---- server list ---- */
.count { font-weight: normal; color: #667; font-size: 13px; }
.servers { width: 100%; border-collapse: collapse; }
.servers th { text-align: left; font-size: 12px; color: #fff; background: linear-gradient(#5a8fe0, #2f62b8); padding: 7px 10px; }
.servers td { padding: 9px 10px; border-bottom: 1px solid #dbe5f5; vertical-align: middle; }
.servers tbody tr:nth-child(even) { background: #f4f8fe; }
.servers td.name { font-weight: bold; color: #14306a; word-break: break-word; }
.servers td.right, .servers th.right { text-align: right; }
.empty { text-align: center; color: #667; padding: 22px 0 6px; margin: 0; }

@media (max-width: 720px) {
  .welcome-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .welcome { flex-direction: column; align-items: flex-start; }
}
