* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html,
body {
  background: #000;
  color: #fff;
  min-height: 100vh;
}

body {
  margin: 0;
}

body.home-body,
.home-body {
  background: radial-gradient(circle at top, #0b0b0b, #000 65%);
  color: #fff;
  min-height: 100vh;
}

a {
  color: inherit;
}

.corner-bloxy-logo {
  display: none !important;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 24px;
  font-weight: bold;
}

.logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.auth-buttons {
  position: absolute;
  top: 20px;
  right: 30px;
  display: flex;
  gap: 12px;
}

.btn {
  padding: 10px 22px;
  font-size: 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s ease;
}

.login {
  background: #111;
  color: #fff;
  border: 1px solid #333;
}

.login:hover {
  background: #1a1a1a;
}

.signup {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.45);
}

.signup:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

@keyframes float {
  0% {
    transform: perspective(500px) rotateX(10deg) translateY(0);
  }

  50% {
    transform: perspective(500px) rotateX(10deg) translateY(-10px);
  }

  100% {
    transform: perspective(500px) rotateX(10deg) translateY(0);
  }
}

.hero {
  text-align: center;
  padding: 120px 20px 80px;
}

.hero h1 {
  font-size: 50px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  color: #aaa;
  max-width: 600px;
  margin: 0 auto;
}

.why-bloxy {
  text-align: center;
  padding: 80px 20px;
  color: #fff;
}

.why-bloxy h1,
.why-bloxy h2 {
  font-size: 40px;
  margin-bottom: 50px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature {
  background: #111;
  border: 1px solid #222;
  padding: 25px;
  border-radius: 12px;
  transition: 0.2s ease;
}

.feature:hover {
  transform: translateY(-5px);
  border-color: #2563eb;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.28);
}

.feature h2 {
  margin-bottom: 10px;
}

.navbar {
  width: 100%;
  padding: 24px 60px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.signin-page {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.signin-card {
  width: 100%;
  max-width: 450px;
  background: #0b0b0b;
  border: 1px solid #1f1f1f;
  border-radius: 18px;
  padding: 40px 32px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.04);
  text-align: center;
}

.signin-card h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.subtitle {
  color: #b8b8b8;
  font-size: 1rem;
  margin-bottom: 30px;
  line-height: 1.5;
}

.signin-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.input-group input {
  width: 100%;
  padding: 14px 15px;
  border-radius: 10px;
  border: 1px solid #222;
  background: #111;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: 0.2s ease;
}

.input-group input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d0d0d0;
}

.forgot-password {
  color: #3b82f6;
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

.signin-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.signin-btn:hover {
  background: #1d4ed8;
}

.signup-text {
  margin-top: 22px;
  color: #b8b8b8;
  font-size: 0.95rem;
}

.signup-text a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 700;
}

.signup-text a:hover {
  text-decoration: underline;
}

.roblox-topbar {
  width: calc(100% - 80px);
  max-width: 1700px;
  margin: 28px auto 0;
  height: 60px;
  background: #111;
  border: 1px solid #262626;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
  box-sizing: border-box;
  position: relative;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  border-radius: 0;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.top-links a,
.user-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

.top-links a:hover,
.top-links a.active,
.user-nav a:hover {
  color: #3b82f6;
}

.search-bar {
  flex: 1;
  max-width: 520px;
  height: auto;
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #343434;
  border-radius: 6px;
  padding: 11px 14px;
  outline: none;
}

.search-bar::placeholder {
  color: #777;
}

.search-bar:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.user-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  white-space: nowrap;
}

.user-nav a {
  color: #ff6b6b;
}

.blocks-pill {
  background: #1100ff;
  color: #fff;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
}

.oldblox-layout {
  width: calc(100% - 80px);
  max-width: 1200px;
  margin: 28px auto 80px;
  display: block;
}

.main-feed {
  width: 100%;
}

.profile-hero {
  background: #111;
  border: 1px solid #2c2c2c;
  border-radius: 10px;
  padding: 32px;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 34px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.profile-hero h1 {
  font-size: 44px;
  margin: 0 0 10px;
  font-weight: 900;
}

.profile-hero p {
  margin: 0;
  color: #c9c9c9;
  font-size: 17px;
}

.pfp-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.pfp-img {
  width: 110px;
  height: 110px;
  border-radius: 20px;
  object-fit: cover;
  background: #111;
  border: 1px solid #222;
}

.pfp-btn {
  width: 110px;
  background: #2f65e9;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 10px;
  font-weight: 800;
  cursor: pointer;
}

.pfp-btn:hover {
  background: #1d4ed8;
}

.pfp-btn.secondary {
  background: #151515;
  border: 1px solid #2f65e9;
  color: #fff;
}

.pfp-btn.secondary:hover {
  background: #202020;
}

.mini-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.mini-badges span {
  background: #171717;
  border: 1px solid #333;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.panel-section {
  margin-bottom: 36px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: 28px;
  margin: 0;
}

.section-header button {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 11px 34px;
  font-weight: 800;
  cursor: pointer;
}

.section-header button:hover {
  background: #1d4ed8;
}

.see-all {
  color: #aaa;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.see-all:hover {
  color: #fff;
}

.main-feed .friends-row {
  background: #111;
  border: 1px solid #2c2c2c;
  border-radius: 10px;
  padding: 18px 20px;
  margin-top: 10px;
  display: flex;
  flex-direction: row;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  height: auto;
}

.main-feed .friend-card {
  width: 86px;
  min-width: 86px;
  max-width: 86px;
  text-align: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.main-feed .friend-avatar {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 8px;
  border-radius: 50%;
  overflow: hidden;
  background: #151515;
  border: 2px solid #333;
}

.main-feed .friend-avatar img {
  width: 100%;
  height: 100%;
  max-width: 76px;
  max-height: 76px;
  object-fit: cover;
  display: block;
}

.main-feed .friend-name {
  width: 86px;
  font-size: 13px;
  color: #ddd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-feed .status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid #111;
  z-index: 5;
}

.main-feed .status-dot.online {
  background: #22c55e;
}

.main-feed .status-dot.offline {
  background: #555;
}

.main-feed .friends-row::-webkit-scrollbar {
  height: 8px;
}

.main-feed .friends-row::-webkit-scrollbar-track {
  background: #111;
}

.main-feed .friends-row::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 999px;
}

.blue-link-btn {
  background: #2f65e9;
  color: #003cff;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  border: none;
}

.blue-link-btn:hover {
  background: #1d4ed8;
}

.friend-search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.friend-search-box input {
  flex: 1;
  padding: 12px;
  background: #111;
  border: 1px solid #222;
  color: #fff;
  border-radius: 10px;
  outline: none;
}

.friend-search-box input:focus {
  border-color: #2563eb;
}

.friend-search-box button,
.friend-result button {
  background: #2f65e9;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.friend-search-box button:hover,
.friend-result button:hover {
  background: #1d4ed8;
}

.friend-search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.friend-result {
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.empty-friends {
  color: #888;
  padding: 12px;
}

.old-games-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.old-game-card {
  background: #111;
  border: 1px solid #2c2c2c;
  border-radius: 9px;
  overflow: hidden;
  transition: 0.2s ease;
  cursor: pointer;
}

.old-game-card:hover {
  transform: translateY(-5px);
  border-color: #2563eb;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.15);
}

.game-img {
  height: 165px;
  background: linear-gradient(145deg, #202020, #333);
}

.old-game-card h3 {
  font-size: 16px;
  padding: 11px 11px 2px;
  margin: 0;
}

.old-game-card p {
  color: #aaa;
  padding: 0 11px 12px;
  margin: 0;
  font-size: 14px;
}

.chat-body {
  overflow: hidden;
  background: #000;
}

.chat-body .roblox-topbar .brand img {
  width: 26px !important;
  height: 26px !important;
  object-fit: contain !important;
  display: block !important;
}

.chat-only-page {
  height: calc(100vh - 80px);
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chat-container {
  width: min(1500px, 98vw);
  height: calc(100vh - 130px);
  display: flex;
  background: #0f0f0f;
  border: 1px solid #242424;
  border-radius: 18px;
  overflow: hidden;
}

.chat-sidebar {
  width: 400px;
  min-width: 360px;
  background: #0b0b0b;
  border-right: 1px solid #242424;
  padding: 22px;
  overflow-y: auto;
}

.chat-sidebar h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.chat-sidebar p {
  color: #b8b8b8;
  font-size: 14px;
}

.room {
  width: 100%;
  padding: 14px;
  margin-bottom: 10px;
  border: none;
  border-radius: 12px;
  background: #151515;
  color: #fff;
  text-align: left;
  font-size: 16px;
  cursor: pointer;
}

.room.active,
.room:hover {
  background: #2f65e9;
}

.dm-box {
  margin-top: 24px;
  background: #111;
  border: 1px solid #222;
  padding: 15px;
  border-radius: 16px;
}

.dm-box h3 {
  margin: 0 0 10px;
}

.dm-box button,
.friend-chat-btn {
  width: 100%;
  padding: 11px;
  margin-top: 8px;
  border: none;
  border-radius: 10px;
  background: #2f65e9;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.dm-box button:hover {
  background: #1d4ed8;
}

.friend-chat-btn {
  background: #151515 !important;
  border: 1px solid #2f65e9 !important;
  color: #fff !important;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-chat-btn:hover {
  background: #202020 !important;
}

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #050505;
}

.chat-header {
  height: 90px;
  padding: 22px 28px;
  border-bottom: 1px solid #242424;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header h1 {
  margin: 0;
  font-size: 28px;
}

.chat-header p {
  margin: 4px 0 0;
  color: #b8b8b8;
}

.chat-header span {
  color: #35d66b;
  font-weight: bold;
}

.messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.message-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.message-row.mine {
  flex-direction: row-reverse;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #2f65e9;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  flex-shrink: 0;
}

.avatar img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.message-bubble {
  max-width: 560px;
  background: #121212;
  border: 1px solid #222;
  border-radius: 14px;
  padding: 12px 15px;
}

.message-row.mine .message-bubble {
  background: #1d3f91;
  border-color: #2f65e9;
}

.message-name {
  font-weight: bold;
  margin-bottom: 4px;
}

.message-text {
  color: #e9e9e9;
}

.system-message {
  color: #888;
  text-align: center;
  font-size: 13px;
  margin: 12px 0;
}

.emoji-bar {
  display: flex;
  gap: 8px;
  padding: 10px 18px;
  border-top: 1px solid #242424;
}

.emoji-bar button {
  background: #151515;
  border: 1px solid #222;
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.emoji-bar button:hover {
  background: #202020;
  border-color: #2f65e9;
}

.chat-input {
  height: 76px;
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid #242424;
}

.chat-input input {
  flex: 1;
  background: #0b0b0b;
  color: #fff;
  border: 1px solid #222;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 16px;
  outline: none;
}

.chat-input input:focus {
  border-color: #2563eb;
}

.chat-input button {
  background: #2f65e9;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
}

.chat-input button:hover {
  background: #1d4ed8;
}

.party-check {
  display: block;
  color: #fff;
  margin: 8px 0;
}

.small-muted,
.empty-friends {
  color: #888 !important;
  font-size: 13px !important;
}

.friend-row,
.party-card {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.remove-btn,
.reject-btn {
  background: #8b1e1e !important;
  color: #fff !important;
  border: none;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
}

.remove-btn:hover,
.reject-btn:hover {
  background: #a62222 !important;
}

.request-card {
  background: #151515;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
}

.global-warning-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(6px);
}

.global-warning-box {
  width: 90%;
  max-width: 430px;
  background: #181818;
  border: 1px solid #333;
  border-radius: 18px;
  padding: 26px;
  color: #fff;
  text-align: center;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
}

.global-warning-box h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.global-warning-box p {
  color: #cfcfcf;
  font-size: 14px;
  line-height: 1.5;
}

.global-warning-buttons {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.global-warning-buttons button {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-weight: 800;
  cursor: pointer;
  background: #2563eb;
  color: #fff;
}

.global-warning-buttons button:hover {
  background: #1d4ed8;
}

.global-warning-buttons .cancel-global {
  background: #333;
}

.global-warning-buttons .cancel-global:hover {
  background: #444;
}

.party-add-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.party-add-row button {
  flex: 0 0 auto;
  width: auto;
  padding: 10px 16px;
  white-space: nowrap;
}

.custom-dropdown {
  position: relative;
  flex: 1;
  cursor: pointer;
}

.dropdown-selected {
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 10px;
  color: #e5e5e5;
  font-size: 13px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  z-index: 1000;
}

.custom-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  padding: 10px;
  color: #ccc;
  transition: 0.2s ease;
}

.dropdown-item:hover {
  background: #2563eb;
  color: #fff;
}

.develop-page {
  width: calc(100% - 80px);
  max-width: 1180px;
  margin: 28px auto 80px;
  padding: 0;
}

.develop-hero {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 42px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  margin-bottom: 32px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.develop-hero > div:first-child {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.develop-hero h1 {
  color: #fff;
  font-size: 42px;
  margin: 0 0 12px;
  letter-spacing: 1px;
  line-height: 1.1;
}

.develop-hero p {
  color: #cfcfcf;
  font-size: 16px;
  max-width: 650px;
  line-height: 1.6;
}

.godot-link {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  background: #0b0b0b;
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 11px 16px;
  text-decoration: none;
  font-weight: 800;
  transition: 0.2s ease;
}

.godot-link:hover {
  background: #151515;
  border-color: #2563eb;
  color: #3b82f6;
  transform: translateY(-2px);
}

.hero-buttons {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: none;
  border-radius: 8px;
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s ease;
}

.primary-btn {
  background: #2f65e9;
  color: #fff;
  box-shadow: 0 8px 22px rgba(47, 101, 233, 0.25);
}

.primary-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.secondary-btn {
  background: #181818;
  color: #fff;
  border: 1px solid #333;
}

.secondary-btn:hover {
  background: #222;
  border-color: #2f65e9;
  color: #fff;
  transform: translateY(-2px);
}

.hero-card {
  min-width: 260px;
  background: #171717;
  border: 1px solid #303030;
  border-radius: 10px;
  padding: 24px;
  box-shadow: none;
}

.hero-card h3 {
  color: #fff;
  margin: 0 0 10px;
  font-size: 22px;
}

.hero-card p {
  color: #bdbdbd;
  font-size: 14px;
  margin: 0;
}

.status-pill {
  display: inline-block;
  width: fit-content;
  margin-top: 16px;
  background: rgba(47, 101, 233, 0.15);
  color: #7aa2ff;
  border: 1px solid #2f65e9;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.dev-section {
  margin-top: 32px;
}

.dev-section h2 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 18px;
}

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

.rule-card {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 22px;
  min-height: 145px;
  transition: 0.2s ease;
}

.rule-card:hover {
  background: #151515;
  border-color: #2563eb;
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.12);
}

.rule-card h3 {
  color: #fff;
  font-size: 18px;
  margin: 0 0 10px;
}

.rule-card p {
  color: #bdbdbd;
  line-height: 1.5;
  font-size: 14px;
}

.rules-list {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
}

.rule-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid #242424;
}

.rule-row:last-child {
  border-bottom: none;
}

.rule-row p {
  margin: 0;
  color: #ddd;
  font-size: 15px;
  line-height: 1.5;
}

.rule-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.rule-icon.good {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid #34d399;
}

.rule-icon.bad {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid #ef4444;
}

.code-box {
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 22px;
  overflow-x: auto;
}

.code-box pre {
  color: #dcdcdc;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  font-family: "JetBrains Mono", "Courier New", monospace;
}

.nav-links .active {
  border: 1px solid #fff;
  border-radius: 4px;
  padding: 2px 6px;
}

@media (max-width: 1300px) {
  .oldblox-layout {
    max-width: 1100px;
  }

  .old-games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 950px) {
  .roblox-topbar {
    width: calc(100% - 32px);
    margin-top: 16px;
    height: auto;
    min-height: 60px;
    gap: 16px;
    overflow-x: auto;
    flex-wrap: wrap;
    padding: 14px 18px;
  }

  .search-bar {
    display: none;
  }

  .oldblox-layout,
  .develop-page {
    width: calc(100% - 32px);
  }

  .profile-hero {
    flex-direction: column;
    text-align: center;
  }

  .mini-badges {
    justify-content: center;
  }

  .old-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .chat-body {
    overflow: auto;
  }

  .chat-only-page {
    height: auto;
    padding: 16px;
  }

  .chat-container {
    flex-direction: column;
    height: auto;
  }

  .chat-sidebar {
    width: 100%;
    min-width: 0;
    border-right: none;
    border-bottom: 1px solid #242424;
  }

  .chat-main {
    min-height: 600px;
  }

  .develop-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .rules-grid {
    grid-template-columns: 1fr;
  }

  .develop-hero h1 {
    font-size: 32px;
  }
}

@media (max-width: 550px) {
  .top-links {
    display: none;
  }

  .profile-hero h1 {
    font-size: 32px;
  }

  .old-games-grid {
    grid-template-columns: 1fr;
  }

  .friend-search-box {
    flex-direction: column;
  }

  .friend-search-box button {
    padding: 12px;
  }

  .auth-buttons {
    position: static;
    justify-content: center;
    margin-top: 20px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .why-bloxy h1,
  .why-bloxy h2 {
    font-size: 30px;
  }
}
.block-pack button {
  width: 100%;
  margin-top: 10px;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.block-pack button:hover {
  background: #1d4ed8;
}

.block-img {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 34px;
  font-weight: 900;
}
.support-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-form label {
  font-weight: 700;
  color: #ffffff;
}

.support-form input,
.support-form select,
.support-form textarea,
.ticket-card textarea,
.ticket-card select {
  background: #111;
  border: 1px solid #2a2a2a;
  color: white;
  border-radius: 10px;
  padding: 12px;
  outline: none;
}

.support-form textarea,
.ticket-card textarea {
  min-height: 130px;
  resize: vertical;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus,
.ticket-card textarea:focus,
.ticket-card select:focus {
  border-color: #2f63eb;
}

.support-form button,
.ticket-card button {
  background: #3367eb;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-weight: 800;
  cursor: pointer;
}

.support-form button:hover,
.ticket-card button:hover {
  background: #2556d8;
}

.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ticket-card {
  background: #111;
  border: 1px solid #292929;
  border-radius: 14px;
  padding: 16px;
}

.ticket-card h3 {
  margin: 0;
  color: white;
}

.ticket-card p {
  color: #cfcfcf;
}

.ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.ticket-status {
  background: #1d4ed8;
  color: white;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
}

.admin-reply {
  background: #0b1b3a;
  border: 1px solid #244caa;
  border-radius: 12px;
  padding: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.muted-text {
  color: #888;
}
.admin-layout {
  max-width: 1400px;
  margin: 25px auto;
  padding: 0 20px 50px;
}

.admin-hero {
  background: #111;
  border: 1px solid #292929;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}

.admin-hero h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 34px;
}

.admin-hero p {
  color: #aaa;
  margin: 0 0 16px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-card {
  background: #111;
  border: 1px solid #292929;
  border-radius: 16px;
  padding: 18px;
}

.admin-card.full-width {
  margin-bottom: 18px;
}

.admin-card h2 {
  color: white;
  margin-top: 0;
}

.admin-card input,
.admin-card textarea,
.admin-card select {
  width: 100%;
  box-sizing: border-box;
  background: #070707;
  border: 1px solid #2a2a2a;
  color: white;
  border-radius: 10px;
  padding: 12px;
  outline: none;
  margin-bottom: 10px;
}

.admin-card textarea {
  min-height: 100px;
  resize: vertical;
}

.admin-card input:focus,
.admin-card textarea:focus,
.admin-card select:focus {
  border-color: #3367eb;
}

.admin-card button,
.admin-row button,
.admin-table-row button,
.ticket-card button {
  background: #3367eb;
  color: white;
  border: none;
  border-radius: 9px;
  padding: 9px 14px;
  font-weight: 800;
  cursor: pointer;
}

.admin-card button:hover,
.admin-row button:hover,
.admin-table-row button:hover,
.ticket-card button:hover {
  background: #2556d8;
}

.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #080808;
  border: 1px solid #252525;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  gap: 12px;
}

.admin-row b {
  color: white;
}

.admin-row p {
  color: #bbb;
  margin: 4px 0;
}

.admin-row small {
  color: #777;
}

.admin-table {
  border: 1px solid #292929;
  border-radius: 12px;
  overflow: hidden;
}

.admin-table-head,
.admin-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.admin-table-head {
  background: #181818;
  color: #fff;
  font-weight: 900;
}

.admin-table-row {
  background: #080808;
  border-top: 1px solid #242424;
  color: #ccc;
}

.admin-tag {
  background: #9333ea;
  color: white;
  font-size: 10px;
  border-radius: 999px;
  padding: 3px 7px;
  margin-left: 6px;
}

.bad-tag {
  background: #dc2626;
  color: white;
  font-size: 11px;
  border-radius: 999px;
  padding: 4px 8px;
}

.good-tag {
  background: #16a34a;
  color: white;
  font-size: 11px;
  border-radius: 999px;
  padding: 4px 8px;
}

.ticket-card {
  background: #080808;
  border: 1px solid #292929;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

.ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticket-top h3 {
  color: white;
  margin: 0;
}

.ticket-card p {
  color: #ccc;
}

.ticket-status {
  background: #1d4ed8;
  color: white;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
}

.admin-reply {
  background: #0b1b3a;
  border: 1px solid #244caa;
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
}

.muted-text {
  color: #888;
}

@media (max-width: 900px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-table-head,
  .admin-table-row {
    grid-template-columns: 1fr;
 }
}
.admin-nav-link {
  color: #c084fc !important;
  font-weight: 900;
} 
.danger-btn {
  background: #dc2626 !important;
  color: white;
  border: none;
  border-radius: 9px;
  padding: 9px 14px;
  font-weight: 800;
  cursor: pointer;
  margin-left: 8px;
}

.danger-btn:hover {
  background: #b91c1c !important;
}
.wiki-page {
  width: min(1250px, calc(100% - 40px));
  margin: 38px auto 80px auto;
}

.wiki-hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: stretch;
  background: linear-gradient(135deg, #090909, #111827);
  border: 1px solid #242424;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.wiki-hero-left {
  display: flex;
  gap: 22px;
  align-items: center;
  max-width: 820px;
}

.wiki-logo-box {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: #050505;
  border: 1px solid #2d2d2d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wiki-logo-box img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.wiki-hero h1 {
  font-size: 42px;
  line-height: 1.05;
  color: #ffffff;
  margin: 0 0 12px 0;
}

.wiki-hero p {
  color: #b8b8b8;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.wiki-hero-buttons {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.wiki-info-card {
  width: 300px;
  background: #0b0b0b;
  border: 1px solid #252525;
  border-radius: 20px;
  padding: 24px;
  flex-shrink: 0;
}

.wiki-info-card h3 {
  color: #ffffff;
  margin: 0 0 10px 0;
  font-size: 22px;
}

.wiki-info-card p {
  color: #bdbdbd;
  margin-bottom: 18px;
}

.wiki-section {
  margin-top: 34px;
}

.wiki-section h2 {
  font-size: 28px;
  color: #ffffff;
  margin: 0 0 18px 0;
}

.wiki-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.wiki-card {
  display: block;
  text-decoration: none;
  background: #0d0d0d;
  border: 1px solid #242424;
  border-radius: 18px;
  padding: 22px;
  min-height: 145px;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.wiki-card:hover {
  transform: translateY(-3px);
  border-color: #2563eb;
  background: #111111;
}

.wiki-card h3 {
  color: #ffffff;
  font-size: 20px;
  margin: 0 0 10px 0;
}

.wiki-card p {
  color: #b8b8b8;
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.wiki-doc-box {
  background: #0d0d0d;
  border: 1px solid #242424;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.wiki-doc-box p {
  color: #c7c7c7;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 16px 0;
}

.wiki-doc-box p:last-child {
  margin-bottom: 0;
}

.wiki-code-box {
  background: #050505;
  border: 1px solid #2b2b2b;
  border-radius: 16px;
  padding: 18px;
  margin: 18px 0;
  overflow-x: auto;
}

.wiki-code-box pre {
  color: #e5e5e5;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  font-family: monospace;
}

.wiki-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.wiki-list div {
  background: #080808;
  border: 1px solid #242424;
  border-radius: 16px;
  padding: 18px;
}

.wiki-list h4 {
  color: #ffffff;
  font-size: 18px;
  margin: 0 0 8px 0;
}

.wiki-list p {
  color: #bdbdbd;
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 900px) {
  .wiki-hero {
    flex-direction: column;
  }

  .wiki-hero-left {
    flex-direction: column;
    align-items: flex-start;
  }

  .wiki-info-card {
    width: 100%;
  }

  .wiki-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wiki-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .wiki-page {
    width: min(100% - 24px, 1250px);
    margin-top: 24px;
  }

  .wiki-hero {
    padding: 22px;
  }

  .wiki-hero h1 {
    font-size: 32px;
  }

  .wiki-card-grid {
    grid-template-columns: 1fr;
  }
}
.settings-page {
  width: min(1250px, calc(100% - 40px));
  margin: 38px auto 80px auto;
}

.settings-hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, #090909, #111827);
  border: 1px solid #242424;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.settings-hero h1 {
  color: #ffffff;
  font-size: 42px;
  margin: 0 0 10px 0;
}

.settings-hero p {
  color: #b8b8b8;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.settings-profile-card {
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #0b0b0b;
  border: 1px solid #252525;
  border-radius: 20px;
  padding: 18px;
}

.settings-profile-card img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  background: #050505;
  border: 1px solid #2d2d2d;
}

.settings-profile-card h3 {
  color: #ffffff;
  margin: 0 0 6px 0;
  font-size: 21px;
}

.settings-profile-card p {
  color: #a9a9a9;
  margin: 0;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.single-settings-grid {
  grid-template-columns: minmax(0, 720px);
}

.settings-card {
  background: #0d0d0d;
  border: 1px solid #242424;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.settings-card h2 {
  color: #ffffff;
  font-size: 24px;
  margin: 0 0 10px 0;
}

.settings-card p {
  color: #bdbdbd;
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 16px 0;
}

.settings-card input,
.settings-card select,
.settings-card textarea {
  width: 100%;
  background: #050505;
  color: #e5e5e5;
  border: 1px solid #2f2f2f;
  border-radius: 12px;
  padding: 13px 14px;
  margin: 8px 0 12px 0;
  font-size: 14px;
  outline: none;
}

.settings-card textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.5;
}

.settings-card input:focus,
.settings-card select:focus,
.settings-card textarea:focus {
  border-color: #2563eb;
}

.settings-card label {
  display: block;
  color: #e5e5e5;
  margin-top: 10px;
  font-size: 14px;
}

.settings-check {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 12px 0 18px 0 !important;
}

.settings-check input {
  width: auto;
  margin: 0;
}

.settings-card button,
.settings-link-btn {
  display: inline-block;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  margin-top: 6px;
}

.settings-card button:hover,
.settings-link-btn:hover {
  background: #1d4ed8;
}

.danger-link {
  background: #7f1d1d;
  margin-left: 8px;
}

.danger-link:hover {
  background: #991b1b;
}

.settings-status {
  margin-top: 14px !important;
  min-height: 20px;
}

.settings-small-link {
  display: inline-block;
  color: #60a5fa;
  text-decoration: none;
  margin-top: 16px;
}

.settings-small-link:hover {
  text-decoration: underline;
}

.danger-settings-card {
  border-color: #3f1f1f;
}

@media (max-width: 900px) {
  .settings-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .settings-profile-card {
    width: 100%;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .settings-page {
    width: min(100% - 24px, 1250px);
    margin-top: 24px;
  }

  .settings-hero {
    padding: 22px;
  }

  .settings-hero h1 {
    font-size: 32px;
  }
}
.chat-main {
  background: #050505 !important;
  overflow: hidden;
}

.messages {
  background: #050505 !important;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #2563eb #050505;
}

.messages::-webkit-scrollbar {
  width: 10px;
}

.messages::-webkit-scrollbar-track {
  background: #050505;
}

.messages::-webkit-scrollbar-thumb {
  background: #2563eb;
  border-radius: 999px;
  border: 2px solid #050505;
}

.messages::-webkit-scrollbar-thumb:hover {
  background: #3b82f6;
}

@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
    background: #000;
  }

  body.home-body,
  .home-body {
    background: #000;
    padding-bottom: 86px;
  }

  * {
    -webkit-tap-highlight-color: transparent;
  }

  .roblox-topbar {
    width: calc(100% - 20px) !important;
    margin: 10px auto 0 !important;
    height: 58px !important;
    min-height: 58px !important;
    padding: 0 14px !important;
    border-radius: 16px !important;
    background: #0d0d0d !important;
    border: 1px solid #252525 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    overflow: visible !important;
    flex-wrap: nowrap !important;
  }

  .brand {
    font-size: 22px !important;
    gap: 9px !important;
    flex: 1 !important;
  }

  .brand img {
    width: 28px !important;
    height: 28px !important;
  }

  .search-bar {
    display: none !important;
  }

  .user-nav {
    margin-left: 0 !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
  }

  .user-nav span {
    display: none !important;
  }

  .user-nav .blocks-pill {
    display: inline-flex !important;
  }

  .user-nav a {
    font-size: 0 !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    background: #171717 !important;
    border: 1px solid #2a2a2a !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ff6b6b !important;
  }

  .user-nav a::before {
    content: "↪";
    font-size: 18px;
    font-weight: 900;
  }

  .blocks-pill {
    padding: 7px 10px !important;
    font-size: 12px !important;
    border-radius: 999px !important;
  }

  .top-links {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    z-index: 9999 !important;

    height: 62px !important;
    width: auto !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    gap: 6px !important;

    padding: 7px !important;
    border-radius: 20px !important;
    background: rgba(13, 13, 13, 0.96) !important;
    border: 1px solid #2a2a2a !important;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(10px) !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
  }

  .top-links::-webkit-scrollbar {
    display: none !important;
  }

  .top-links a {
    flex: 0 0 auto !important;
    min-width: 58px !important;
    height: 46px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 10px !important;
    border-radius: 15px !important;

    background: transparent !important;
    border: none !important;
    color: #bdbdbd !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  .top-links a.active,
  .top-links a:hover {
    background: #2563eb !important;
    color: #fff !important;
  }

  .oldblox-layout,
  .develop-page,
  .settings-page,
  .wiki-page,
  .admin-layout {
    width: calc(100% - 20px) !important;
    max-width: none !important;
    margin: 16px auto 100px !important;
    padding: 0 !important;
  }

  .main-feed {
    width: 100% !important;
  }

  .profile-hero,
  .develop-hero,
  .settings-hero,
  .wiki-hero,
  .admin-hero {
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;

    padding: 20px !important;
    gap: 18px !important;
    border-radius: 20px !important;

    background: linear-gradient(135deg, #0d0d0d, #101827) !important;
    border: 1px solid #252525 !important;
    box-shadow: none !important;
  }

  .profile-hero {
    align-items: center !important;
    text-align: center !important;
  }

  .profile-hero h1,
  .develop-hero h1,
  .settings-hero h1,
  .wiki-hero h1,
  .admin-hero h1 {
    font-size: 30px !important;
    line-height: 1.1 !important;
    margin-bottom: 8px !important;
  }

  .profile-hero p,
  .develop-hero p,
  .settings-hero p,
  .wiki-hero p,
  .admin-hero p {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  .pfp-img {
    width: 92px !important;
    height: 92px !important;
    border-radius: 22px !important;
  }

  .pfp-btn {
    width: 92px !important;
    padding: 8px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
  }

  .mini-badges {
    justify-content: center !important;
    gap: 8px !important;
  }

  .mini-badges span {
    font-size: 12px !important;
    padding: 7px 10px !important;
  }

  .panel-section,
  .dev-section,
  .wiki-section {
    margin-top: 22px !important;
    margin-bottom: 24px !important;
  }

  .section-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .section-header h2,
  .dev-section h2,
  .wiki-section h2 {
    font-size: 24px !important;
  }

  .section-header button {
    width: 100% !important;
  }

  .old-games-grid,
  .rules-grid,
  .settings-grid,
  .wiki-card-grid,
  .wiki-list,
  .admin-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .old-game-card,
  .rule-card,
  .settings-card,
  .wiki-card,
  .wiki-doc-box,
  .hero-card,
  .wiki-info-card,
  .admin-card {
    width: 100% !important;
    min-width: 0 !important;
    border-radius: 18px !important;
    padding: 18px !important;
  }

  .game-img {
    height: 145px !important;
  }

  /* BUTTONS */
  .hero-buttons {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .primary-btn,
  .secondary-btn,
  .blue-link-btn,
  .godot-link,
  .settings-link-btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .danger-link {
    margin-left: 0 !important;
    margin-top: 10px !important;
  }

  .main-feed .friends-row {
    padding: 14px !important;
    gap: 14px !important;
    border-radius: 18px !important;
  }

  .main-feed .friend-card {
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
  }

  .main-feed .friend-avatar {
    width: 66px !important;
    height: 66px !important;
  }

  .main-feed .friend-name {
    width: 78px !important;
    font-size: 12px !important;
  }

  .friend-search-box {
    flex-direction: column !important;
  }

  .friend-search-box input,
  .friend-search-box button {
    width: 100% !important;
    min-height: 44px !important;
  }

  .friend-result {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .friend-result button {
    width: 100% !important;
    padding: 12px !important;
  }

  /* FORMS */
  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  .settings-card input,
  .settings-card select,
  .settings-card textarea,
  .support-form input,
  .support-form select,
  .support-form textarea,
  .admin-card input,
  .admin-card textarea,
  .admin-card select {
    font-size: 16px !important;
    border-radius: 14px !important;
  }

  .settings-card button,
  .support-form button,
  .ticket-card button,
  .admin-card button {
    width: 100% !important;
    min-height: 44px !important;
    border-radius: 14px !important;
  }

  .settings-profile-card {
    width: 100% !important;
    min-width: 0 !important;
    border-radius: 18px !important;
  }

  .settings-profile-card img {
    width: 62px !important;
    height: 62px !important;
    border-radius: 15px !important;
  }

  .wiki-hero-left {
    width: 100% !important;
    max-width: none !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .wiki-logo-box {
    width: 74px !important;
    height: 74px !important;
    border-radius: 18px !important;
  }

  .wiki-logo-box img {
    width: 52px !important;
    height: 52px !important;
  }

  .wiki-code-box,
  .code-box {
    overflow-x: auto !important;
    padding: 14px !important;
  }

  .wiki-code-box pre,
  .code-box pre {
    font-size: 12px !important;
  }

  .ticket-top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .danger-btn {
    margin-left: 0 !important;
    margin-top: 8px !important;
    width: 100% !important;
  }

  .admin-table-head {
    display: none !important;
  }

  .admin-table-row,
  .admin-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 14px !important;
  }

  .admin-row button,
  .admin-table-row button {
    width: 100% !important;
  }

  .chat-body {
    overflow: auto !important;
    padding-bottom: 86px !important;
  }

  .chat-only-page {
    width: calc(100% - 20px) !important;
    height: auto !important;
    min-height: auto !important;
    padding: 16px 0 0 !important;
    display: block !important;
    margin: 0 auto 100px !important;
  }

  .chat-container {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    flex-direction: column !important;
    border-radius: 20px !important;
  }

  .chat-sidebar {
    width: 100% !important;
    min-width: 0 !important;
    max-height: 260px !important;
    overflow-y: auto !important;
    border-right: none !important;
    border-bottom: 1px solid #242424 !important;
    padding: 16px !important;
  }

  .chat-sidebar h2 {
    font-size: 24px !important;
  }

  .dm-box {
    margin-top: 14px !important;
    padding: 13px !important;
    border-radius: 16px !important;
  }

  .room,
  .dm-box button,
  .friend-chat-btn {
    min-height: 42px !important;
    font-size: 14px !important;
    border-radius: 14px !important;
  }

  .chat-main {
    height: calc(100vh - 420px) !important;
    min-height: 470px !important;
  }

  .chat-header {
    height: auto !important;
    min-height: 70px !important;
    padding: 15px !important;
  }

  .chat-header h1 {
    font-size: 22px !important;
  }

  .chat-header p,
  .chat-header span {
    font-size: 12px !important;
  }

  .messages {
    min-height: 0 !important;
    max-height: none !important;
    flex: 1 !important;
    padding: 15px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .message-row {
    gap: 9px !important;
    margin-bottom: 13px !important;
  }

  .avatar,
  .avatar img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
  }

  .message-bubble {
    max-width: calc(100vw - 105px) !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
  }

  .message-name {
    font-size: 13px !important;
  }

  .message-text {
    font-size: 14px !important;
    line-height: 1.45 !important;
    word-break: break-word !important;
  }

  .emoji-bar {
    padding: 8px 10px !important;
    gap: 7px !important;
    overflow-x: auto !important;
  }

  .emoji-bar button {
    flex: 0 0 auto !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
  }

  .chat-input {
    height: auto !important;
    min-height: 66px !important;
    padding: 10px !important;
    gap: 8px !important;
    background: #050505 !important;
  }

  .chat-input input {
    min-width: 0 !important;
    height: 46px !important;
    border-radius: 14px !important;
  }

  .chat-input button {
    height: 46px !important;
    padding: 0 15px !important;
    border-radius: 14px !important;
  }

  .party-add-row {
    flex-direction: column !important;
  }

  .party-add-row button {
    width: 100% !important;
  }

  .dropdown-menu {
    position: static !important;
    margin-top: 6px !important;
  }

  .global-warning-box {
    width: calc(100% - 30px) !important;
    padding: 22px !important;
    border-radius: 20px !important;
  }

  .global-warning-buttons {
    flex-direction: column !important;
  }

  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  ::-webkit-scrollbar-track {
    background: #050505;
  }

  ::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 999px;
    border: 2px solid #050505;
  }
}

@media (max-width: 420px) {
  .roblox-topbar {
    width: calc(100% - 14px) !important;
  }

  .brand {
    font-size: 20px !important;
  }

  .top-links a {
    min-width: 54px !important;
    font-size: 11px !important;
    padding: 0 8px !important;
  }

  .oldblox-layout,
  .develop-page,
  .settings-page,
  .wiki-page,
  .admin-layout,
  .chat-only-page {
    width: calc(100% - 14px) !important;
  }

  .profile-hero h1,
  .develop-hero h1,
  .settings-hero h1,
  .wiki-hero h1,
  .admin-hero h1 {
    font-size: 27px !important;
  }

  .profile-hero,
  .develop-hero,
  .settings-hero,
  .wiki-hero,
  .admin-hero,
  .settings-card,
  .rule-card,
  .wiki-card,
  .wiki-doc-box,
  .admin-card {
    padding: 16px !important;
  }

  .message-bubble {
    max-width: calc(100vw - 98px) !important;
  }
}
@media (max-width: 760px) {
  .search-bar {
    display: block !important;
    order: 3 !important;
    width: 100% !important;
    max-width: none !important;
    flex: 1 1 100% !important;
    height: 42px !important;
    margin-top: 8px !important;
    background: #111 !important;
    color: #fff !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 14px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
  }

  .top-links {
    bottom: 10px !important;
  }

  .roblox-topbar {
    height: auto !important;
    min-height: 58px !important;
    flex-wrap: wrap !important;
  }
}
@media (max-width: 760px) {
  .navbar {
    width: calc(100% - 24px) !important;
    margin: 16px auto 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }

  .navbar .logo,
  .logo {
    font-size: 28px !important;
    gap: 10px !important;
    white-space: nowrap !important;
  }

  .navbar .logo img,
  .logo img {
    width: 28px !important;
    height: 28px !important;
  }

  .auth-buttons {
    position: static !important;
    margin: 0 !important;
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  .auth-buttons a,
  .auth-buttons .btn {
    text-decoration: none !important;
  }

  .auth-buttons .btn {
    padding: 9px 14px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
    min-width: auto !important;
    white-space: nowrap !important;
  }

  .hero {
    padding: 150px 18px 70px !important;
  }

  .hero h1 {
    font-size: 42px !important;
    line-height: 1.15 !important;
    letter-spacing: 2px !important;
  }

  .hero p {
    font-size: 17px !important;
    line-height: 1.5 !important;
    max-width: 92% !important;
  }
}

@media (max-width: 430px) {
  .navbar {
    width: calc(100% - 20px) !important;
    gap: 8px !important;
  }

  .navbar .logo,
  .logo {
    font-size: 24px !important;
  }

  .navbar .logo img,
  .logo img {
    width: 24px !important;
    height: 24px !important;
  }

  .auth-buttons {
    gap: 7px !important;
  }

  .auth-buttons .btn {
    padding: 8px 11px !important;
    font-size: 13px !important;
    border-radius: 11px !important;
  }

  .hero h1 {
    font-size: 36px !important;
  }

  .hero p {
    font-size: 15px !important;
  }
}
@media (max-width: 760px) {
  .hero {
    padding: 90px 20px 55px !important;
  }

  .hero h1 {
    font-size: 34px !important;
    line-height: 1.15 !important;
    letter-spacing: 1.2px !important;
    margin-bottom: 18px !important;
  }

  .hero p {
    font-size: 15px !important;
    line-height: 1.55 !important;
    max-width: 92% !important;
  }

  .why-bloxy {
    padding: 45px 18px !important;
  }

  .why-bloxy h1,
  .why-bloxy h2 {
    font-size: 30px !important;
    margin-bottom: 28px !important;
  }

  .features {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .feature {
    padding: 22px 18px !important;
    border-radius: 18px !important;
  }
}
@media (max-width: 760px) {
  .user-nav a[href="/logout"] {
    width: auto !important;
    height: 34px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    background: rgba(127, 29, 29, 0.35) !important;
    border: 1px solid #7f1d1d !important;
    color: #ff8a8a !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .user-nav a[href="/logout"]::before,
  .user-nav a[href="/logout"]::after {
    content: none !important;
    display: none !important;
  }

  .user-nav a[href="/logout"]:hover {
    background: #991b1b !important;
    color: #ffffff !important;
  }
}
@media (max-width: 768px) {
  .chat-only-page {
    width: 100%;
    margin: 0;
    padding: 10px;
  }

  .chat-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    min-height: auto;
  }

  .chat-sidebar {
    width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
    order: 1;
    padding: 16px;
    border-radius: 18px;
  }

  .chat-main {
    width: 100%;
    height: 70vh;
    min-height: 520px;
    order: 2;
    border-radius: 18px;
  }

  .dm-box {
    display: block !important;
    width: 100%;
    margin-top: 16px;
  }

  .friend-row,
  .party-card,
  .request-card {
    display: block !important;
    width: 100%;
  }

  .friend-chat-btn,
  .remove-btn,
  .chat-sidebar button,
  .dm-box button {
    width: 100%;
    margin-top: 8px;
  }

  .party-add-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .custom-dropdown {
    width: 100%;
  }

  .messages {
    flex: 1;
    min-height: 0;
    padding: 16px;
    overflow-y: auto;
  }

  .chat-header {
    padding: 16px;
  }

  .chat-header h1 {
    font-size: 22px;
  }

  .emoji-bar {
    padding: 10px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }

  .chat-input {
    padding: 10px;
    display: flex;
    gap: 8px;
  }

  .chat-input input {
    min-width: 0;
    flex: 1;
  }

  .chat-input button {
    flex-shrink: 0;
  }
}
.upload-box {
  background: #0b0f18;
  border: 1px solid #1f2937;
  border-radius: 14px;
  padding: 24px;
  max-width: 760px;
  margin: 30px auto;
  color: #f8fafc;
}

.upload-box h1,
.upload-box h2 {
  color: #f8fafc;
  margin-bottom: 10px;
}

.upload-box p {
  color: #9ca3af;
  line-height: 1.5;
}

.upload-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.upload-form input[type="file"] {
  background: #020617;
  border: 1px solid #334155;
  color: #e5e7eb;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
}

.upload-form input[type="file"]::file-selector-button {
  background: #2563eb;
  color: white;
  border: none;
  padding: 9px 14px;
  border-radius: 8px;
  margin-right: 12px;
  cursor: pointer;
  font-weight: 700;
}

.upload-form input[type="file"]::file-selector-button:hover {
  background: #1d4ed8;
}

.upload-form button,
.primary-btn,
.blue-link-btn {
  background: #2563eb;
  color: white;
  border: none;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  display: inline-block;
  transition: 0.15s ease;
}

.upload-form button:hover,
.primary-btn:hover,
.blue-link-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.secondary-btn {
  background: #111827;
  color: #e5e7eb;
  border: 1px solid #374151;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
  display: inline-block;
}

.secondary-btn:hover {
  background: #1f2937;
}

#uploadStatus {
  margin-top: 15px;
  color: #93c5fd;
  font-weight: 700;
}

.upload-requirements {
  margin-top: 24px;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 16px;
}

.upload-requirements pre {
  color: #dbeafe;
  background: #020617;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.5;
}

.admin-layout {
  padding: 28px;
  color: #f8fafc;
}

.admin-hero {
  background: #0b0f18;
  border: 1px solid #1f2937;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.admin-hero h1 {
  margin: 0 0 8px;
  color: #f8fafc;
}

.admin-hero p {
  color: #9ca3af;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.admin-card {
  background: #0b0f18;
  border: 1px solid #1f2937;
  border-radius: 16px;
  padding: 20px;
  color: #f8fafc;
}

.admin-card.full-width {
  width: 100%;
  margin-bottom: 24px;
}

.admin-card h2 {
  margin-top: 0;
  margin-bottom: 14px;
  color: #f8fafc;
}

.admin-card input,
.admin-card textarea,
.admin-card select {
  width: 100%;
  background: #020617;
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 11px;
  margin-bottom: 12px;
  outline: none;
}

.admin-card textarea {
  min-height: 90px;
  resize: vertical;
}

.admin-card input:focus,
.admin-card textarea:focus,
.admin-card select:focus {
  border-color: #2563eb;
}

.admin-card button,
.ticket-card button,
.admin-row button {
  background: #2563eb;
  color: white;
  border: none;
  padding: 9px 13px;
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
  margin-right: 8px;
  margin-top: 8px;
}

.admin-card button:hover,
.ticket-card button:hover,
.admin-row button:hover {
  background: #1d4ed8;
}

.danger-btn {
  background: #dc2626 !important;
}

.danger-btn:hover {
  background: #b91c1c !important;
}

.ticket-card {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.ticket-top h3 {
  margin: 0;
  color: #f8fafc;
}

.ticket-status {
  background: #1e3a8a;
  color: #dbeafe;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ticket-card p {
  color: #cbd5e1;
}

.ticket-card b {
  color: #f8fafc;
}

.admin-reply {
  background: #0f172a;
  border-left: 4px solid #2563eb;
  padding: 12px;
  border-radius: 10px;
  margin: 12px 0;
}

.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: #020617;
  border: 1px solid #1e293b;
  padding: 13px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.admin-row p {
  margin: 4px 0;
  color: #cbd5e1;
}

.admin-row small {
  color: #64748b;
}

.admin-table {
  width: 100%;
  overflow-x: auto;
}

.admin-table-head,
.admin-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.admin-table-head {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 10px;
  color: #93c5fd;
  font-weight: 800;
}

.admin-table-row {
  border-bottom: 1px solid #1e293b;
  color: #e5e7eb;
}

.good-tag {
  color: #22c55e;
}

.bad-tag {
  color: #ef4444;
}

.admin-tag {
  color: #93c5fd;
  font-size: 11px;
  margin-left: 8px;
}

.muted-text {
  color: #94a3b8;
}

.manifest-box {
  display: none;
  white-space: pre-wrap;
  background: #020617;
  color: #dbeafe;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 12px;
  margin-top: 12px;
  overflow-x: auto;
  max-height: 300px;
}

.game-page-card {
  background: #0b0f18;
  border: 1px solid #1f2937;
  border-radius: 18px;
  padding: 26px;
  color: #f8fafc;
  max-width: 850px;
  margin: 30px auto;
}

.game-page-card h1 {
  margin-top: 0;
  color: #f8fafc;
}

.game-page-card p {
  color: #cbd5e1;
  line-height: 1.5;
}

.play-btn {
  background: #22c55e;
  color: #04130a;
  border: none;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
  margin-top: 18px;
  font-size: 16px;
}

.play-btn:hover {
  background: #16a34a;
}

#playStatus {
  margin-top: 15px;
  color: #93c5fd;
  font-weight: 700;
}

@media (max-width: 850px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-table-head,
  .admin-table-row {
    grid-template-columns: 1fr;
  }

  .ticket-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
.upload-page {
  min-height: calc(100vh - 80px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 46px 20px;
  color: #f8fafc;
}

.upload-hero {
  width: 100%;
  max-width: 760px;
  background: #0b0f18;
  border: 1px solid #1f2937;
  border-radius: 20px;
  padding: 34px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.upload-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  color: white;
  border-radius: 16px;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.upload-hero h1 {
  margin: 0 0 12px;
  font-size: 32px;
  color: #f8fafc;
}

.upload-hero p {
  max-width: 590px;
  margin: 0 auto;
  color: #aeb6c4;
  line-height: 1.6;
  font-size: 15px;
}

.upload-format-box {
  margin: 26px auto;
  text-align: left;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 18px 22px;
  max-width: 500px;
}

.upload-format-box pre {
  margin: 0;
  color: #dbeafe;
  font-size: 14px;
  line-height: 1.55;
  overflow-x: auto;
}

.big-upload-btn {
  width: 100%;
  max-width: 360px;
  background: #1100ff;
  color: white;
  border: none;
  border-radius: 14px;
  padding: 15px 22px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.15s ease;
}

.big-upload-btn:hover {
  background: #000000;
  transform: translateY(-1px);
}

.big-upload-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.selected-file-name {
  margin-top: 16px !important;
  color: #000000 !important;
  font-weight: 700;
}

.upload-status {
  margin-top: 10px !important;
  color: #22c55e !important;
  font-weight: 800;
}
.game-page-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px 60px;
  color: #f8fafc;
}

.game-hero-card {
  background: #0b0f18;
  border: 1px solid #1f2937;
  border-radius: 22px;
  padding: 26px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 30px;
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.38);
}

.game-thumbnail {
  position: relative;
  min-height: 340px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.28), transparent 34%),
    radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.18), transparent 35%),
    linear-gradient(135deg, #111827, #020617);
  border: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.game-thumbnail::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.55;
}

.game-thumbnail-logo {
  position: relative;
  z-index: 2;
  width: 94px;
  height: 94px;
  background: #2563eb;
  color: white;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.35);
}

.game-status-pill {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.game-main-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-title-row h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.05;
  color: #f8fafc;
  letter-spacing: -0.04em;
}

.game-creator {
  margin: 8px 0 0;
  color: #93c5fd;
  font-weight: 800;
}

.game-description {
  margin: 22px 0;
  max-width: 720px;
  color: #cbd5e1;
  line-height: 1.65;
  font-size: 16px;
}

.game-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin: 8px 0 22px;
}

.game-stat-box {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 15px;
  padding: 14px;
}

.game-stat-box b {
  display: block;
  color: #f8fafc;
  font-size: 20px;
  margin-bottom: 3px;
}

.game-stat-box span {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
}

.game-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.play-btn {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 14px;
  padding: 13px 26px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
  transition: 0.15s ease;
}

.play-btn.big {
  padding: 15px 40px;
  font-size: 18px;
}

.play-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.play-btn:active {
  transform: translateY(0);
}

.secondary-game-btn {
  background: #111827;
  color: #e5e7eb;
  border: 1px solid #334155;
  border-radius: 13px;
  padding: 13px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.15s ease;
}

.secondary-game-btn:hover {
  background: #1f2937;
  border-color: #475569;
}

#playStatus {
  margin-top: 15px;
  color: #93c5fd;
  font-weight: 800;
}

.game-content-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 22px;
  margin-top: 24px;
}

.game-panel {
  background: #0b0f18;
  border: 1px solid #1f2937;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

.game-panel h2 {
  margin: 0 0 12px;
  color: #f8fafc;
  font-size: 22px;
}

.game-panel p {
  color: #cbd5e1;
  line-height: 1.6;
}

.info-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.info-list div {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 13px;
  padding: 13px 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.info-list span {
  color: #94a3b8;
  font-weight: 700;
}

.info-list b {
  color: #f8fafc;
  font-weight: 800;
  text-align: right;
  word-break: break-all;
}

.server-status-box {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 15px;
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.server-dot {
  width: 13px;
  height: 13px;
  background: #22c55e;
  border-radius: 50%;
  margin-top: 4px;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.8);
  flex: 0 0 auto;
}

.server-status-box b {
  color: #f8fafc;
  font-size: 15px;
}

.server-status-box p {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 14px;
}

.small-note {
  margin-top: 14px;
  color: #94a3b8;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 13px;
  padding: 13px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .game-hero-card {
    grid-template-columns: 1fr;
  }

  .game-thumbnail {
    min-height: 240px;
  }

  .game-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .game-page-wrap {
    padding: 22px 14px 40px;
  }

  .game-hero-card {
    padding: 18px;
  }

  .game-title-row h1 {
    font-size: 32px;
  }

  .game-stats-row {
    grid-template-columns: 1fr;
  }

  .play-btn.big,
  .secondary-game-btn {
    width: 100%;
  }
}
.game-page-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px 60px;
  color: #f8fafc;
}

.game-hero-card {
  background: #0b0f18;
  border: 1px solid #1f2937;
  border-radius: 22px;
  padding: 26px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 30px;
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.38);
}

.game-thumbnail {
  position: relative;
  min-height: 340px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.28), transparent 34%),
    radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.18), transparent 35%),
    linear-gradient(135deg, #111827, #020617);
  border: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.game-thumbnail::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.55;
}

.game-thumbnail-img {
  position: relative;
  z-index: 2;
  width: 125px;
  height: 125px;
  object-fit: contain;
  border-radius: 24px;
  background: #020617;
  border: 1px solid #1e293b;
  padding: 20px;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.25);
}

.game-status-pill {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.game-main-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-title-row h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.05;
  color: #f8fafc;
  letter-spacing: -0.04em;
}

.game-creator {
  margin: 8px 0 0;
  color: #93c5fd;
  font-weight: 800;
}

.game-description {
  margin: 22px 0;
  max-width: 720px;
  color: #cbd5e1;
  line-height: 1.65;
  font-size: 16px;
}

.game-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin: 8px 0 22px;
}

.game-stat-box {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 15px;
  padding: 14px;
}

.game-stat-box b {
  display: block;
  color: #f8fafc;
  font-size: 20px;
  margin-bottom: 3px;
}

.game-stat-box span {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
}

.game-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.play-btn {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 14px;
  padding: 13px 26px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
  transition: 0.15s ease;
}

.play-btn.big {
  min-width: 220px;
  padding: 16px 44px;
  font-size: 19px;
}

.play-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.play-btn:active {
  transform: translateY(0);
}

#playStatus {
  margin-top: 15px;
  color: #93c5fd;
  font-weight: 800;
}

.game-content-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 22px;
  margin-top: 24px;
}

.game-panel {
  background: #0b0f18;
  border: 1px solid #1f2937;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

.game-panel h2 {
  margin: 0 0 12px;
  color: #f8fafc;
  font-size: 22px;
}

.game-panel p {
  color: #cbd5e1;
  line-height: 1.6;
}

.info-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.info-list div {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 13px;
  padding: 13px 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.info-list span {
  color: #94a3b8;
  font-weight: 700;
}

.info-list b {
  color: #f8fafc;
  font-weight: 800;
  text-align: right;
  word-break: break-all;
}

.server-status-box {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 15px;
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.server-dot {
  width: 13px;
  height: 13px;
  background: #22c55e;
  border-radius: 50%;
  margin-top: 4px;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.8);
  flex: 0 0 auto;
}

.server-status-box b {
  color: #f8fafc;
  font-size: 15px;
}

.server-status-box p {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 14px;
}

.small-note {
  margin-top: 14px;
  color: #94a3b8;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 13px;
  padding: 13px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .game-hero-card {
    grid-template-columns: 1fr;
  }

  .game-thumbnail {
    min-height: 240px;
  }

  .game-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .game-page-wrap {
    padding: 22px 14px 40px;
  }

  .game-hero-card {
    padding: 18px;
  }

  .game-title-row h1 {
    font-size: 32px;
  }

  .game-stats-row {
    grid-template-columns: 1fr;
  }

  .play-btn.big {
    width: 100%;
  }
}
.game-page-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px 60px;
  color: #f8fafc;
}

.game-hero-card {
  background: #0a0a0a;
  border: 1px solid #242424;
  border-radius: 22px;
  padding: 26px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 30px;
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.45);
}

.game-thumbnail {
  position: relative;
  min-height: 340px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.07), transparent 34%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.04), transparent 35%),
    linear-gradient(135deg, #151515, #050505);
  border: 1px solid #242424;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.game-thumbnail::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.45;
}

.game-thumbnail-img {
  position: relative;
  z-index: 2;
  width: 125px;
  height: 125px;
  object-fit: contain;
  border-radius: 24px;
  background: #080808;
  border: 1px solid #262626;
  padding: 20px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

.game-status-pill {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.28);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.game-main-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-title-row h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: -0.04em;
}

.game-creator {
  margin: 8px 0 0;
  color: #cfcfcf;
  font-weight: 800;
}

.game-description {
  margin: 22px 0;
  max-width: 720px;
  color: #b8b8b8;
  line-height: 1.65;
  font-size: 16px;
}

.game-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin: 8px 0 22px;
}

.game-stat-box {
  background: #050505;
  border: 1px solid #242424;
  border-radius: 15px;
  padding: 14px;
}

.game-stat-box b {
  display: block;
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 3px;
}

.game-stat-box span {
  color: #a1a1a1;
  font-size: 13px;
  font-weight: 700;
}

.game-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.play-btn {
  background: #ffffff;
  color: #050505;
  border: none;
  border-radius: 14px;
  padding: 13px 26px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.08);
  transition: 0.15s ease;
}

.play-btn.big {
  min-width: 220px;
  padding: 16px 44px;
  font-size: 19px;
}

.play-btn:hover {
  background: #e5e5e5;
  transform: translateY(-1px);
}

.play-btn:active {
  transform: translateY(0);
}

#playStatus {
  margin-top: 15px;
  color: #d4d4d4;
  font-weight: 800;
}

.game-content-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 22px;
  margin-top: 24px;
}

.game-panel {
  background: #0a0a0a;
  border: 1px solid #242424;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
}

.game-panel h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 22px;
}

.game-panel p {
  color: #b8b8b8;
  line-height: 1.6;
}

.info-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.info-list div {
  background: #050505;
  border: 1px solid #242424;
  border-radius: 13px;
  padding: 13px 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.info-list span {
  color: #a1a1a1;
  font-weight: 700;
}

.info-list b {
  color: #ffffff;
  font-weight: 800;
  text-align: right;
  word-break: break-all;
}

.server-status-box {
  background: #050505;
  border: 1px solid #242424;
  border-radius: 15px;
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.server-dot {
  width: 13px;
  height: 13px;
  background: #22c55e;
  border-radius: 50%;
  margin-top: 4px;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.65);
  flex: 0 0 auto;
}

.server-status-box b {
  color: #ffffff;
  font-size: 15px;
}

.server-status-box p {
  margin: 4px 0 0;
  color: #a1a1a1;
  font-size: 14px;
}

.small-note {
  margin-top: 14px;
  color: #b8b8b8;
  background: #050505;
  border: 1px solid #242424;
  border-radius: 13px;
  padding: 13px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .game-hero-card {
    grid-template-columns: 1fr;
  }

  .game-thumbnail {
    min-height: 240px;
  }

  .game-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .game-page-wrap {
    padding: 22px 14px 40px;
  }

  .game-hero-card {
    padding: 18px;
  }

  .game-title-row h1 {
    font-size: 32px;
  }

  .game-stats-row {
    grid-template-columns: 1fr;
  }

  .play-btn.big {
    width: 100%;
  }
}
.my-games-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 24px 60px;
  color: #f8fafc;
}

.my-games-hero {
  background: #0a0a0a;
  border: 1px solid #242424;
  border-radius: 20px;
  padding: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.my-games-hero h1 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 34px;
}

.my-games-hero p {
  margin: 0;
  color: #b8b8b8;
}

.my-games-list {
  display: grid;
  gap: 16px;
}

.my-game-card {
  background: #0a0a0a;
  border: 1px solid #242424;
  border-radius: 18px;
  padding: 20px;
}

.my-game-main {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.my-game-icon {
  width: 90px;
  height: 90px;
  border-radius: 16px;
  background: #050505;
  border: 1px solid #242424;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.my-game-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.my-game-card h2 {
  margin: 0 0 8px;
  color: #ffffff;
}

.my-game-card p {
  margin: 0 0 12px;
  color: #b8b8b8;
  line-height: 1.5;
}

.my-game-card small {
  display: block;
  margin-top: 12px;
  color: #888;
  word-break: break-all;
}

.my-game-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.file-update-btn {
  cursor: pointer;
}

.game-manage-status {
  margin-top: 12px !important;
  color: #d4d4d4 !important;
  font-weight: 700;
}

.empty-games-box {
  background: #0a0a0a;
  border: 1px solid #242424;
  border-radius: 18px;
  padding: 34px;
  text-align: center;
}

.empty-games-box h2 {
  color: #ffffff;
  margin-top: 0;
}

.empty-games-box p {
  color: #b8b8b8;
}

@media (max-width: 700px) {
  .my-games-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .my-game-main {
    flex-direction: column;
  }

  .my-game-actions a,
  .my-game-actions button,
  .file-update-btn {
    width: 100%;
    text-align: center;
  }
}
.develop-page {
  max-width: 1220px;
  margin: 0 auto;
  padding: 34px 24px 70px;
  color: #f8fafc;
}

.clean-dev-hero {
  background: #0a0a0a;
  border: 1px solid #242424;
  border-radius: 22px;
  padding: 34px;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 32px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.38);
}

.dev-hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dev-kicker {
  color: #a1a1a1;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.clean-dev-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: 48px;
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-width: 620px;
}

.clean-dev-hero p {
  color: #b8b8b8;
  line-height: 1.65;
  font-size: 16px;
  max-width: 650px;
  margin: 18px 0 0;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-btn,
.secondary-btn,
.blue-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 11px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: 0.15s ease;
}

.primary-btn,
.blue-link-btn {
  background: #ffffff;
  color: #050505;
  border: 1px solid #ffffff;
}

.primary-btn:hover,
.blue-link-btn:hover {
  background: #e5e5e5;
  transform: translateY(-1px);
}

.secondary-btn {
  background: #111111;
  color: #f1f1f1;
  border: 1px solid #2c2c2c;
}

.secondary-btn:hover {
  background: #191919;
  border-color: #3a3a3a;
  transform: translateY(-1px);
}

.hero-card.alpha-card {
  background: #050505;
  border: 1px solid #242424;
  border-radius: 18px;
  padding: 24px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-card.alpha-card h3 {
  color: #ffffff;
  margin: 0 0 10px;
  font-size: 22px;
}

.hero-card.alpha-card p {
  margin: 0 0 16px;
  color: #b8b8b8;
  font-size: 14px;
}

.alpha-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  background: #111111;
  border: 1px solid #303030;
  color: #d4d4d4;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
}

.godot-link {
  color: #ffffff;
  background: #111111;
  border: 1px solid #2c2c2c;
  border-radius: 11px;
  padding: 11px 14px;
  text-decoration: none;
  font-weight: 900;
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
}

.godot-link:hover {
  background: #191919;
  border-color: #3a3a3a;
}

.dev-section {
  background: transparent;
  margin-top: 34px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 16px;
}

.dev-section h2 {
  color: #ffffff;
  font-size: 28px;
  margin: 0 0 7px;
  letter-spacing: -0.03em;
}

.dev-section > p,
.section-title-row p {
  color: #a8a8a8;
  margin: 0;
  line-height: 1.5;
}

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

.rule-card {
  background: #0a0a0a;
  border: 1px solid #242424;
  border-radius: 17px;
  padding: 21px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.25);
}

.rule-card h3 {
  color: #ffffff;
  margin: 0 0 10px;
  font-size: 18px;
}

.rule-card p {
  color: #b8b8b8;
  line-height: 1.55;
  margin: 0 0 16px;
  font-size: 14px;
}

.rule-card .godot-link {
  margin-top: auto;
}

.rules-list {
  background: #0a0a0a;
  border: 1px solid #242424;
  border-radius: 18px;
  overflow: hidden;
}

.rule-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 18px;
  border-bottom: 1px solid #1f1f1f;
}

.rule-row:last-child {
  border-bottom: none;
}

.rule-row p {
  margin: 0;
  color: #d4d4d4;
  line-height: 1.45;
}

.rule-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.rule-icon.good {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.rule-icon.bad {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.upload-format-section {
  background: #0a0a0a;
  border: 1px solid #242424;
  border-radius: 20px;
  padding: 26px;
  margin-top: 34px;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
}

.upload-format-section h2 {
  margin-top: 0;
}

.upload-format-section p {
  color: #a8a8a8;
}

.code-box {
  background: #050505;
  border: 1px solid #242424;
  border-radius: 16px;
  padding: 18px 20px;
  margin-top: 18px;
  overflow-x: auto;
}

.code-box pre {
  margin: 0;
  color: #e5e5e5;
  line-height: 1.6;
  font-size: 14px;
}

.format-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 980px) {
  .clean-dev-hero {
    grid-template-columns: 1fr;
  }

  .rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clean-dev-hero h1 {
    font-size: 40px;
  }
}

@media (max-width: 620px) {
  .develop-page {
    padding: 22px 14px 44px;
  }

  .clean-dev-hero {
    padding: 22px;
  }

  .clean-dev-hero h1 {
    font-size: 34px;
  }

  .rules-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons a,
  .format-actions a {
    width: 100%;
  }

  .rule-row {
    align-items: flex-start;
  }
}
.upload-page {
  min-height: calc(100vh - 80px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 46px 20px;
  color: #f8fafc;
  background: #050505;
}

.upload-hero {
  width: 100%;
  max-width: 760px;
  background: #0a0a0a;
  border: 1px solid #242424;
  border-radius: 20px;
  padding: 34px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.upload-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #050505;
  border: 1px solid #ffffff;
  border-radius: 16px;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 12px 34px rgba(255, 255, 255, 0.08);
}

.upload-hero h1 {
  margin: 0 0 12px;
  font-size: 32px;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.upload-hero p {
  max-width: 590px;
  margin: 0 auto;
  color: #b8b8b8;
  line-height: 1.6;
  font-size: 15px;
}

.upload-format-box {
  margin: 26px auto;
  text-align: left;
  background: #050505;
  border: 1px solid #242424;
  border-radius: 16px;
  padding: 18px 22px;
  max-width: 500px;
}

.upload-format-box pre {
  margin: 0;
  color: #e5e5e5;
  font-size: 14px;
  line-height: 1.55;
  overflow-x: auto;
}

.big-upload-btn {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  color: #050505;
  border: 1px solid #ffffff;
  border-radius: 14px;
  padding: 15px 22px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.15s ease;
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.08);
}

.big-upload-btn:hover {
  background: #e5e5e5;
  transform: translateY(-1px);
}

.big-upload-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.selected-file-name {
  margin-top: 16px !important;
  color: #d4d4d4 !important;
  font-weight: 700;
}

.upload-status {
  margin-top: 10px !important;
  color: #d4d4d4 !important;
  font-weight: 800;
}

#uploadStatus {
  color: #d4d4d4 !important;
}

#selectedFileName {
  color: #a8a8a8 !important;
}
.blue-link-btn {
  background: #2563eb;
  color: white;
  border: 1px solid #2563eb;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.15s ease;
}

.blue-link-btn:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-1px);
}
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: #000 !important;
  }

  body.home-body,
  .home-body {
    background: #000 !important;
    padding-bottom: 92px !important;
  }

  * {
    -webkit-tap-highlight-color: transparent;
  }

  .roblox-topbar {
    width: calc(100% - 20px) !important;
    height: 60px !important;
    min-height: 60px !important;
    margin: 10px auto 0 !important;
    padding: 0 12px !important;
    border-radius: 18px !important;
    background: rgba(13, 13, 13, 0.98) !important;
    border: 1px solid #252525 !important;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
    position: sticky !important;
    top: 8px !important;
    z-index: 9998 !important;
    backdrop-filter: blur(12px) !important;
  }

  .brand {
    font-size: 21px !important;
    gap: 9px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .brand img {
    width: 29px !important;
    height: 29px !important;
  }

  .search-bar {
    display: none !important;
  }

  .user-nav {
    margin-left: 0 !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
  }

  .user-nav > span:first-child {
    display: none !important;
  }

  .blocks-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 34px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    background: #2563eb !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }

  .user-nav a {
    font-size: 0 !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 13px !important;
    background: #171717 !important;
    border: 1px solid #2a2a2a !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ff6b6b !important;
  }

  .user-nav a::before {
    content: "↪";
    font-size: 18px;
    font-weight: 900;
  }

  .top-links {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    height: 68px !important;
    padding: 8px !important;
    z-index: 99999 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;

    background: rgba(12, 12, 12, 0.97) !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 23px !important;
    box-shadow: 0 18px 65px rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(14px) !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
  }

  .top-links::-webkit-scrollbar {
    display: none !important;
  }

  .top-links a {
    min-width: 66px !important;
    height: 50px !important;
    padding: 0 12px !important;
    border-radius: 17px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: transparent !important;
    color: #bdbdbd !important;
    border: none !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
  }

  .top-links a.active,
  .top-links a:hover {
    background: #2563eb !important;
    color: #fff !important;
  }

  .admin-nav-link {
    color: #c084fc !important;
  }

  .oldblox-layout,
  .develop-page,
  .settings-page,
  .wiki-page,
  .admin-layout,
  .upload-page,
  .my-games-page,
  .game-page-wrap {
    width: calc(100% - 20px) !important;
    max-width: none !important;
    margin: 16px auto 105px !important;
    padding: 0 !important;
  }

  .main-feed {
    width: 100% !important;
  }

  .profile-hero,
  .develop-hero,
  .settings-hero,
  .wiki-hero,
  .admin-hero,
  .upload-hero,
  .my-games-hero,
  .game-hero-card,
  .game-panel,
  .admin-card,
  .settings-card,
  .wiki-card,
  .wiki-doc-box,
  .rule-card,
  .ticket-card,
  .my-game-card {
    border-radius: 21px !important;
    background: #0d0d0d !important;
    border: 1px solid #262626 !important;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35) !important;
  }

  .profile-hero,
  .develop-hero,
  .settings-hero,
  .wiki-hero,
  .admin-hero,
  .my-games-hero {
    padding: 21px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
    text-align: left !important;
  }

  .profile-hero {
    align-items: center !important;
    text-align: center !important;
  }

  .profile-hero h1,
  .develop-hero h1,
  .settings-hero h1,
  .wiki-hero h1,
  .admin-hero h1,
  .upload-hero h1,
  .my-games-hero h1,
  .game-title-row h1 {
    font-size: 30px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.03em !important;
  }

  .profile-hero p,
  .develop-hero p,
  .settings-hero p,
  .wiki-hero p,
  .admin-hero p,
  .upload-hero p,
  .my-games-hero p,
  .game-description {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #b8b8b8 !important;
  }

  .pfp-img {
    width: 92px !important;
    height: 92px !important;
    border-radius: 23px !important;
  }

  .pfp-btn {
    width: 92px !important;
    min-height: 36px !important;
    padding: 8px !important;
    border-radius: 13px !important;
    font-size: 12px !important;
  }

  .mini-badges {
    justify-content: center !important;
    gap: 8px !important;
  }

  .mini-badges span {
    font-size: 12px !important;
    padding: 7px 10px !important;
    border-radius: 999px !important;
  }

  .panel-section,
  .dev-section,
  .wiki-section {
    margin-top: 23px !important;
    margin-bottom: 25px !important;
  }

  .section-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .section-header h2,
  .dev-section h2,
  .wiki-section h2,
  .admin-card h2,
  .settings-card h2,
  .game-panel h2 {
    font-size: 23px !important;
    line-height: 1.15 !important;
  }

  .section-header button,
  .section-header a {
    width: 100% !important;
  }

  .old-games-grid,
  .rules-grid,
  .settings-grid,
  .wiki-card-grid,
  .wiki-list,
  .admin-grid,
  .game-content-grid,
  .game-stats-row {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .old-game-card {
    border-radius: 19px !important;
    overflow: hidden !important;
  }

  .game-img {
    height: 160px !important;
  }

  .old-game-card h3 {
    font-size: 17px !important;
    padding: 13px 13px 3px !important;
  }

  .old-game-card p {
    font-size: 13px !important;
    padding: 0 13px 13px !important;
  }

  .main-feed .friends-row {
    padding: 14px !important;
    gap: 14px !important;
    border-radius: 19px !important;
    scroll-snap-type: x mandatory;
  }

  .main-feed .friend-card {
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
    scroll-snap-align: start;
  }

  .main-feed .friend-avatar {
    width: 66px !important;
    height: 66px !important;
  }

  .main-feed .friend-name {
    width: 78px !important;
    font-size: 12px !important;
  }

  .friend-search-box {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .friend-search-box input,
  .friend-search-box button,
  .friend-result button {
    width: 100% !important;
    min-height: 46px !important;
    border-radius: 15px !important;
  }

  .friend-result {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    border-radius: 17px !important;
  }

  .hero-buttons,
  .format-actions,
  .my-game-actions,
  .game-actions {
    width: 100% !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .primary-btn,
  .secondary-btn,
  .blue-link-btn,
  .godot-link,
  .settings-link-btn,
  .big-upload-btn,
  .play-btn,
  .play-btn.big {
    width: 100% !important;
    min-height: 47px !important;
    border-radius: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 15px !important;
  }

  .blue-link-btn {
    background: #2563eb !important;
    color: #fff !important;
    border: 1px solid #2563eb !important;
  }

  .blue-link-btn:hover {
    background: #1d4ed8 !important;
  }

  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  .settings-card input,
  .settings-card select,
  .settings-card textarea,
  .support-form input,
  .support-form select,
  .support-form textarea,
  .admin-card input,
  .admin-card textarea,
  .admin-card select,
  .friend-search-box input {
    min-height: 46px !important;
    border-radius: 15px !important;
    font-size: 16px !important;
  }

  .settings-card button,
  .support-form button,
  .ticket-card button,
  .admin-card button,
  .danger-btn {
    width: 100% !important;
    min-height: 46px !important;
    border-radius: 15px !important;
    margin-left: 0 !important;
    margin-top: 8px !important;
  }

  .upload-page {
    min-height: auto !important;
    display: block !important;
  }

  .upload-hero {
    padding: 24px !important;
    text-align: center !important;
  }

  .upload-icon {
    width: 58px !important;
    height: 58px !important;
  }

  .upload-format-box,
  .code-box,
  .wiki-code-box {
    border-radius: 17px !important;
    padding: 14px !important;
    overflow-x: auto !important;
  }

  .upload-format-box pre,
  .code-box pre,
  .wiki-code-box pre {
    font-size: 12px !important;
    line-height: 1.55 !important;
  }

  .game-hero-card {
    display: block !important;
    padding: 20px !important;
  }

  .game-thumbnail {
    min-height: 210px !important;
    margin-bottom: 20px !important;
    border-radius: 19px !important;
  }

  .game-thumbnail-img {
    width: 98px !important;
    height: 98px !important;
    border-radius: 22px !important;
  }

  .game-status-pill {
    top: 12px !important;
    right: 12px !important;
    font-size: 11px !important;
  }

  .game-stat-box {
    border-radius: 17px !important;
    padding: 14px !important;
  }

  .info-list div {
    flex-direction: column !important;
    align-items: flex-start !important;
    border-radius: 15px !important;
  }

  .info-list b {
    text-align: left !important;
    word-break: break-all !important;
  }

  .my-games-hero {
    align-items: stretch !important;
  }

  .my-game-main {
    flex-direction: column !important;
  }

  .my-game-icon {
    width: 82px !important;
    height: 82px !important;
    border-radius: 18px !important;
  }

  .my-game-actions a,
  .my-game-actions button,
  .file-update-btn {
    width: 100% !important;
  }

  .admin-table-head {
    display: none !important;
  }

  .admin-table-row,
  .admin-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 15px !important;
    border-radius: 16px !important;
    margin-bottom: 10px !important;
  }

  .ticket-top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .ticket-status {
    align-self: flex-start !important;
  }

  .settings-hero,
  .wiki-hero {
    align-items: stretch !important;
  }

  .settings-profile-card,
  .wiki-info-card {
    width: 100% !important;
    min-width: 0 !important;
    border-radius: 18px !important;
  }

  .wiki-hero-left {
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
  }

  .wiki-logo-box {
    width: 74px !important;
    height: 74px !important;
    border-radius: 18px !important;
  }

  .wiki-logo-box img {
    width: 52px !important;
    height: 52px !important;
  }

  .chat-body {
    overflow: auto !important;
    padding-bottom: 92px !important;
  }

  .chat-only-page {
    width: calc(100% - 20px) !important;
    height: auto !important;
    padding: 16px 0 0 !important;
    margin: 0 auto 105px !important;
    display: block !important;
  }

  .chat-container {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    flex-direction: column !important;
    border-radius: 22px !important;
    overflow: hidden !important;
  }

  .chat-sidebar {
    width: 100% !important;
    min-width: 0 !important;
    max-height: 270px !important;
    overflow-y: auto !important;
    border-right: none !important;
    border-bottom: 1px solid #242424 !important;
    padding: 16px !important;
  }

  .chat-sidebar h2 {
    font-size: 24px !important;
  }

  .dm-box {
    margin-top: 14px !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .room,
  .dm-box button,
  .friend-chat-btn {
    min-height: 44px !important;
    font-size: 14px !important;
    border-radius: 15px !important;
  }

  .chat-main {
    height: calc(100vh - 430px) !important;
    min-height: 480px !important;
  }

  .chat-header {
    height: auto !important;
    min-height: 72px !important;
    padding: 15px !important;
  }

  .chat-header h1 {
    font-size: 22px !important;
  }

  .chat-header p,
  .chat-header span {
    font-size: 12px !important;
  }

  .messages {
    padding: 15px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex: 1 !important;
  }

  .message-row {
    gap: 9px !important;
    margin-bottom: 13px !important;
  }

  .avatar,
  .avatar img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 11px !important;
  }

  .message-bubble {
    max-width: calc(100vw - 105px) !important;
    padding: 10px 12px !important;
    border-radius: 15px !important;
  }

  .message-name {
    font-size: 13px !important;
  }

  .message-text {
    font-size: 14px !important;
    line-height: 1.45 !important;
    word-break: break-word !important;
  }

  .emoji-bar {
    padding: 8px 10px !important;
    gap: 7px !important;
    overflow-x: auto !important;
  }

  .emoji-bar button {
    flex: 0 0 auto !important;
    min-width: 42px !important;
    padding: 8px 10px !important;
    border-radius: 13px !important;
  }

  .chat-input {
    min-height: 68px !important;
    height: auto !important;
    padding: 10px !important;
    gap: 8px !important;
    background: #050505 !important;
  }

  .chat-input input {
    height: 46px !important;
    min-width: 0 !important;
    border-radius: 15px !important;
  }

  .chat-input button {
    height: 46px !important;
    padding: 0 16px !important;
    border-radius: 15px !important;
  }

  .party-add-row,
  .global-warning-buttons {
    flex-direction: column !important;
  }

  .party-add-row button,
  .global-warning-buttons button {
    width: 100% !important;
  }

  .global-warning-box {
    width: calc(100% - 28px) !important;
    padding: 22px !important;
    border-radius: 22px !important;
  }

  ::-webkit-scrollbar {
    width: 7px;
    height: 7px;
  }

  ::-webkit-scrollbar-track {
    background: #050505;
  }

  ::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 999px;
  }
}

@media (max-width: 420px) {
  .roblox-topbar {
    width: calc(100% - 14px) !important;
    padding: 0 10px !important;
  }

  .brand {
    font-size: 19px !important;
  }

  .brand img {
    width: 26px !important;
    height: 26px !important;
  }

  .blocks-pill {
    max-width: 92px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .top-links {
    left: 7px !important;
    right: 7px !important;
    bottom: 7px !important;
    height: 64px !important;
    border-radius: 21px !important;
  }

  .top-links a {
    min-width: 58px !important;
    height: 47px !important;
    font-size: 11px !important;
    padding: 0 8px !important;
  }

  .oldblox-layout,
  .develop-page,
  .settings-page,
  .wiki-page,
  .admin-layout,
  .upload-page,
  .my-games-page,
  .game-page-wrap,
  .chat-only-page {
    width: calc(100% - 14px) !important;
  }

  .profile-hero,
  .develop-hero,
  .settings-hero,
  .wiki-hero,
  .admin-hero,
  .upload-hero,
  .my-games-hero,
  .game-hero-card,
  .game-panel,
  .admin-card,
  .settings-card,
  .wiki-card,
  .wiki-doc-box,
  .rule-card,
  .ticket-card,
  .my-game-card {
    padding: 17px !important;
    border-radius: 19px !important;
  }

  .profile-hero h1,
  .develop-hero h1,
  .settings-hero h1,
  .wiki-hero h1,
  .admin-hero h1,
  .upload-hero h1,
  .my-games-hero h1,
  .game-title-row h1 {
    font-size: 26px !important;
  }

  .game-img {
    height: 135px !important;
  }

  .chat-main {
    min-height: 455px !important;
  }

  .message-bubble {
    max-width: calc(100vw - 94px) !important;
  }
}
.my-game-info {
  flex: 1;
  min-width: 0;
}

.my-game-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.game-edit-box {
  margin-top: 18px;
  background: #050505;
  border: 1px solid #242424;
  border-radius: 16px;
  padding: 16px;
}

.game-edit-box h3 {
  color: #ffffff;
  margin: 0 0 12px;
  font-size: 18px;
}

.game-edit-box label {
  display: block;
  color: #d4d4d4;
  font-weight: 800;
  margin: 10px 0 7px;
}

.game-edit-box input,
.game-edit-box textarea {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  border-radius: 12px;
  padding: 12px;
  outline: none;
  font-size: 14px;
}

.game-edit-box textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

.game-edit-box input:focus,
.game-edit-box textarea:focus {
  border-color: #2563eb;
}

.game-edit-box button {
  margin-top: 12px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 15px;
  font-weight: 900;
  cursor: pointer;
}

.game-edit-box button:hover {
  background: #1d4ed8;
}

.my-game-icon img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
}

.file-update-btn {
  cursor: pointer;
  user-select: none;
}
.game-img {
  height: 165px;
  background: #050505;
  border-bottom: 1px solid #242424;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.game-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.game-thumbnail {
  padding: 0 !important;
  overflow: hidden !important;
  display: block !important;
}

.game-thumbnail-img {
  width: 100% !important;
  height: 100% !important;
  min-height: 340px !important;
  object-fit: cover !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 20px !important;
  background: #050505 !important;
  box-shadow: none !important;
  display: block !important;
}
.search-form {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 420px;
}

.search-form .search-bar {
  width: 100%;
}
.brand {
  background: transparent;
}

.brand img {
  background: transparent;
  padding: 0;
  border: none;
  object-fit: contain;
}
.roblox-topbar {
  background: black;
  
}
.search-combo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 520px;
}

.search-combo .search-bar {
  flex: 1;
  min-width: 180px;
}

.search-type-select {
  background: #111;
  color: white;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
  font-weight: 800;
  cursor: pointer;
}

.search-type-select:focus {
  border-color: #2563eb;
}

.brand {
  cursor: pointer;
}

.clean-pfp-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-hero-text h1 {
  margin-bottom: 8px;
}

.profile-hero-text p {
  margin-top: 0;
  color: #cfcfcf;
}

.settings-profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.settings-profile-card img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 18px;
  background: #050505;
  border: 1px solid #333;
}

.settings-profile-info h3 {
  margin: 0 0 4px;
  color: white;
  font-size: 22px;
}

.settings-profile-info p {
  margin: 0;
  color: #9ca3af;
}

.settings-pfp-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.settings-pfp-actions button {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}

.settings-pfp-actions button:hover {
  background: #1d4ed8;
}

.account-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-result-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 14px;
}

.account-result-card img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
  background: #050505;
  border: 1px solid #333;
}

.account-result-info {
  flex: 1;
  min-width: 0;
}

.account-result-info h3 {
  margin: 0;
  color: white;
  font-size: 18px;
}

.account-result-info p {
  margin: 5px 0 0;
  color: #888;
  font-size: 13px;
}

.account-result-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-result-actions button,
.account-result-card button {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.account-result-actions button:hover,
.account-result-card button:hover {
  background: #1d4ed8;
}

.empty-search-text {
  color: #888;
}

@media (max-width: 900px) {
  .roblox-topbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .search-combo {
    order: 3;
    width: 100%;
    max-width: none;
  }

  .account-result-card {
    align-items: flex-start;
  }

  .account-result-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 600px) {
  .account-result-card {
    flex-direction: column;
  }

  .account-result-actions {
    width: 100%;
  }

  .account-result-actions button {
    width: 100%;
  }

  .settings-profile-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
.profile-page {
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto 70px;
}

.profile-main-card {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 28px;
  display: flex;
  gap: 26px;
  align-items: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.profile-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-big-pfp {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 24px;
  background: #050505;
  border: 1px solid #333;
}

.profile-main-info {
  flex: 1;
  min-width: 0;
}

.profile-main-info h1 {
  margin: 0 0 12px;
  color: white;
  font-size: 42px;
  line-height: 1;
}

.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.profile-stats span {
  background: #171717;
  border: 1px solid #333;
  color: white;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 800;
}

.profile-bio {
  color: #bdbdbd;
  margin: 0 0 18px;
  font-size: 15px;
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-actions button {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 9px;
  padding: 10px 16px;
  font-weight: 900;
  cursor: pointer;
}

.profile-actions button:hover {
  background: #1d4ed8;
}

.profile-actions button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.profile-actions button:disabled:hover {
  background: #2563eb;
}

.secondary-profile-btn {
  background: #1f1f1f !important;
  border: 1px solid #333 !important;
}

.secondary-profile-btn:hover {
  background: #2a2a2a !important;
}

.profile-action-status {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
}

.profile-content-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 22px;
}

.profile-panel {
  margin-top: 0;
}

.profile-friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}

.profile-friend-card {
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  text-align: center;
  transition: 0.15s ease;
}

.profile-friend-card:hover {
  transform: translateY(-2px);
  border-color: #2563eb;
}

.profile-friend-card img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 14px;
  background: #050505;
  border: 1px solid #333;
  margin-bottom: 8px;
}

.profile-friend-card span {
  color: white;
  font-weight: 800;
  font-size: 13px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty-profile-text {
  color: #888;
}

@media (max-width: 850px) {
  .profile-main-card {
    align-items: flex-start;
  }

  .profile-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .profile-main-card {
    flex-direction: column;
  }

  .profile-big-pfp {
    width: 120px;
    height: 120px;
  }

  .profile-main-info h1 {
    font-size: 34px;
  }

  .profile-page {
    width: min(100% - 20px, 1200px);
    margin-top: 18px;
  }
}
.profile-content-grid {
  margin-top: 24px;
  display: flex !important;
  flex-direction: column !important;
  gap: 26px;
  width: 100%;
}

.profile-panel {
  width: 100%;
  margin-top: 0;
}

.profile-wide-panel {
  width: 100%;
  grid-column: 1 / -1;
}

/* Make game grids on profile normal, not skinny */
.profile-page .old-games-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
  gap: 18px !important;
  width: 100%;
}

/* Make profile game cards clean */
.profile-page .old-game-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
}

/* Fix game image box */
.profile-page .old-game-card .game-img {
  width: 100%;
  height: 160px;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-page .old-game-card .game-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text spacing */
.profile-page .old-game-card h3 {
  margin: 10px 12px 4px;
  color: white;
  font-size: 16px;
  line-height: 1.2;
}

.profile-page .old-game-card p {
  margin: 4px 12px;
  color: #aaa;
  font-size: 13px;
  line-height: 1.35;
}

.profile-page .old-game-card p:last-child {
  margin-bottom: 12px;
}

.profile-page .game-description {
  color: #bdbdbd;
}

/* Make the profile body aligned nicely */
.profile-page {
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto 70px;
}

/* Mobile */
@media (max-width: 700px) {
  .profile-page .old-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
  }

  .profile-page .old-game-card .game-img {
    height: 130px;
  }
}
.settings-card textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  background: #0b0b0b;
  color: white;
  border: 1px solid #333;
  border-radius: 9px;
  padding: 10px;
  outline: none;
  font-family: inherit;
}

.settings-card textarea:focus {
  border-color: #2563eb;
}

.settings-profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.settings-profile-card img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 18px;
  background: #050505;
  border: 1px solid #333;
}

.settings-profile-info h3 {
  margin: 0 0 4px;
  color: white;
  font-size: 22px;
}

.settings-profile-info p {
  margin: 0;
  color: #9ca3af;
}

.settings-pfp-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.settings-pfp-actions button {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}

.settings-pfp-actions button:hover {
  background: #1d4ed8;
}
.game-creator a,
.info-list a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 800;
}

.game-creator a:hover,
.info-list a:hover {
  text-decoration: underline;
}

.game-social-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.game-social-actions button {
  background: #151515;
  color: white;
  border: 1px solid #333;
  border-radius: 9px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}

.game-social-actions button:hover {
  background: #1f1f1f;
  border-color: #2563eb;
}

.game-comments-panel {
  margin-top: 24px;
}

.comment-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-box textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  background: #0b0b0b;
  color: white;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 12px;
  outline: none;
  font-family: inherit;
}

.comment-box textarea:focus {
  border-color: #2563eb;
}

.comment-box button {
  align-self: flex-start;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 9px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}

.comment-box button:hover {
  background: #1d4ed8;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.comment-card {
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 13px;
}

.comment-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-top a {
  color: white;
  font-weight: 900;
  text-decoration: none;
}

.comment-top a:hover {
  color: #60a5fa;
}

.comment-top span {
  color: #777;
  font-size: 12px;
}

.comment-card p {
  color: #ccc;
  margin: 0;
  line-height: 1.4;
}
.discover-shortcuts-panel {
  margin-top: 22px;
}

.discover-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.discover-shortcuts button {
  background: #111;
  color: white;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 16px 14px;
  font-weight: 900;
  cursor: pointer;
  text-align: left;
  transition: 0.15s ease;
}

.discover-shortcuts button:hover {
  background: #171717;
  border-color: #2563eb;
  transform: translateY(-2px);
}

.discover-page-header {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.discover-page-header h1 {
  color: white;
  font-size: 34px;
  margin: 0 0 6px;
}

.discover-page-header p {
  color: #aaa;
  margin: 0;
}

.discover-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.discover-tabs a {
  color: #ddd;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
}

.discover-tabs a:hover {
  border-color: #2563eb;
  color: white;
}

.discover-tabs a.active {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
}

.discover-games-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
}

.empty-state-box {
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 22px;
  color: #aaa;
}

.empty-state-box p {
  margin: 0 0 12px;
}

.empty-state-box button {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 9px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}

.empty-state-box button:hover {
  background: #1d4ed8;
}
/* ================================
   BLOXY HOME PAGE CLEAN FIX
   Paste this at the VERY BOTTOM
   of style.css
================================ */

/* Base */
body.home-body {
  background: #000 !important;
  color: #fff !important;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Top Navbar */
.roblox-topbar {
  width: min(1400px, calc(100% - 48px)) !important;
  height: 58px !important;
  margin: 18px auto 0 !important;
  padding: 0 18px !important;

  display: flex !important;
  align-items: center !important;
  gap: 22px !important;
  flex-wrap: nowrap !important;

  background: #111 !important;
  border: 1px solid #252525 !important;
  border-radius: 6px !important;
  overflow: visible !important;
}

/* Brand */
.brand {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 0 0 auto !important;

  font-size: 24px !important;
  font-weight: 900 !important;
  color: #fff !important;
  cursor: pointer;
}

.brand img {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain !important;
}

/* Nav Links */
.top-links {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  flex: 0 0 auto !important;
}

.top-links a {
  color: #d8d8d8 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.top-links a:hover,
.top-links a.active {
  color: #3b82f6 !important;
}

.admin-nav-link {
  color: #c084fc !important;
}

/* Search */
.search-form,
.search-combo {
  flex: 1 1 auto !important;
  min-width: 220px !important;
  max-width: 460px !important;

  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.search-type-select {
  height: 38px !important;
  background: #181818 !important;
  color: #fff !important;
  border: 1px solid #333 !important;
  border-radius: 6px !important;
  padding: 0 8px !important;
  outline: none !important;
}

.search-bar {
  display: block !important;
  width: 100% !important;
  height: 38px !important;
  flex: 1 !important;

  background: #181818 !important;
  color: #fff !important;
  border: 1px solid #333 !important;
  border-radius: 6px !important;
  padding: 0 12px !important;
  outline: none !important;
}

.search-bar:focus,
.search-type-select:focus {
  border-color: #2563eb !important;
}

/* User Nav */
.user-nav {
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

.user-nav span {
  font-size: 14px !important;
  font-weight: 800 !important;
}

.user-nav a {
  color: #ff7070 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.blocks-pill {
  background: #000 !important;
  color: #fff !important;
  border: 1px solid #333 !important;
  border-radius: 999px !important;
  padding: 7px 12px !important;
  font-size: 13px !important;
}

/* Main Layout */
.oldblox-layout {
  width: min(1200px, calc(100% - 48px)) !important;
  margin: 26px auto 80px !important;
  display: block !important;
}

.main-feed {
  width: 100% !important;
}

/* Profile Hero */
.profile-hero {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;

  background: #111 !important;
  border: 1px solid #292929 !important;
  border-radius: 12px !important;
  padding: 28px !important;
  margin-bottom: 28px !important;
  box-shadow: none !important;
}

.clean-pfp-section {
  flex: 0 0 auto !important;
}

.pfp-img {
  width: 96px !important;
  height: 96px !important;
  border-radius: 18px !important;
  object-fit: cover !important;
  background: #050505 !important;
  border: 1px solid #333 !important;
}

.profile-hero-text h1 {
  font-size: 38px !important;
  line-height: 1 !important;
  margin: 0 !important;
  font-weight: 900 !important;
}

.mini-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 14px !important;
}

.mini-badges span {
  background: #171717 !important;
  color: #e8e8e8 !important;
  border: 1px solid #333 !important;
  border-radius: 999px !important;
  padding: 7px 12px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

/* Sections */
.panel-section {
  margin-bottom: 34px !important;
}

.section-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 14px !important;
}

.section-header h2 {
  font-size: 26px !important;
  margin: 0 !important;
  font-weight: 900 !important;
}

/* Buttons */
.section-header button,
.discover-button-row button,
.blue-link-btn {
  background: #2563eb !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

.section-header button:hover,
.discover-button-row button:hover,
.blue-link-btn:hover {
  background: #1d4ed8 !important;
}

/* Discover Buttons */
.discover-button-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;

  background: #111 !important;
  border: 1px solid #292929 !important;
  border-radius: 12px !important;
  padding: 18px !important;
}

.discover-button-row button {
  min-height: 42px !important;
}

/* Friends */
.main-feed .friends-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 16px !important;

  background: #111 !important;
  border: 1px solid #292929 !important;
  border-radius: 12px !important;
  padding: 16px !important;

  overflow-x: auto !important;
  overflow-y: hidden !important;
}

.main-feed .friend-card {
  width: 82px !important;
  min-width: 82px !important;
  max-width: 82px !important;
  text-align: center !important;
  cursor: pointer !important;
}

.main-feed .friend-avatar {
  position: relative !important;
  width: 68px !important;
  height: 68px !important;
  margin: 0 auto 8px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: #171717 !important;
  border: 2px solid #333 !important;
}

.main-feed .friend-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.main-feed .friend-name {
  width: 82px !important;
  color: #ddd !important;
  font-size: 13px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.status-dot {
  position: absolute !important;
  right: 3px !important;
  bottom: 3px !important;
  width: 13px !important;
  height: 13px !important;
  border-radius: 50% !important;
  border: 2px solid #111 !important;
}

.status-dot.online {
  background: #22c55e !important;
}

.status-dot.offline {
  background: #555 !important;
}

/* Games Grid */
.old-games-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
  gap: 18px !important;
}

.old-game-card {
  background: #111 !important;
  border: 1px solid #292929 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  transition: 0.18s ease !important;
}

.old-game-card:hover {
  transform: translateY(-4px) !important;
  border-color: #2563eb !important;
}

.game-img {
  width: 100% !important;
  height: 160px !important;
  background: #181818 !important;
  overflow: hidden !important;
}

.game-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.old-game-card h3 {
  color: #fff !important;
  font-size: 16px !important;
  margin: 0 !important;
  padding: 12px 12px 4px !important;
}

.old-game-card p {
  color: #aaa !important;
  font-size: 13px !important;
  margin: 0 !important;
  padding: 0 12px 10px !important;
}

.game-description {
  min-height: 34px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Empty State */
.empty-state-box {
  grid-column: 1 / -1 !important;
  background: #111 !important;
  border: 1px solid #292929 !important;
  border-radius: 12px !important;
  padding: 24px !important;
  text-align: center !important;
}

.empty-state-box button {
  margin-top: 12px !important;
  background: #2563eb !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

/* Tablet */
@media (max-width: 1100px) {
  .roblox-topbar {
    height: auto !important;
    min-height: 58px !important;
    flex-wrap: wrap !important;
    padding: 14px 18px !important;
  }

  .search-form,
  .search-combo {
    order: 3 !important;
    flex: 1 1 100% !important;
    max-width: none !important;
  }

  .user-nav {
    margin-left: auto !important;
  }
}

/* Phone */
@media (max-width: 700px) {
  body.home-body {
    padding-bottom: 84px !important;
  }

  .roblox-topbar {
    width: calc(100% - 20px) !important;
    margin-top: 10px !important;
    border-radius: 14px !important;
    gap: 10px !important;
  }

  .brand span {
    display: none !important;
  }

  .top-links {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    z-index: 9999 !important;

    display: flex !important;
    justify-content: space-around !important;
    gap: 6px !important;

    background: #111 !important;
    border: 1px solid #292929 !important;
    border-radius: 18px !important;
    padding: 8px !important;

    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .top-links::-webkit-scrollbar {
    display: none !important;
  }

  .top-links a {
    min-width: 62px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 13px !important;
    font-size: 12px !important;
  }

  .top-links a.active,
  .top-links a:hover {
    background: #2563eb !important;
    color: #fff !important;
  }

  .search-form,
  .search-combo {
    display: none !important;
  }

  .user-nav {
    margin-left: auto !important;
  }

  .user-nav > span:first-child {
    display: none !important;
  }

  .user-nav a {
    font-size: 13px !important;
  }

  .oldblox-layout {
    width: calc(100% - 20px) !important;
    margin-top: 16px !important;
  }

  .profile-hero {
    flex-direction: column !important;
    text-align: center !important;
    padding: 22px !important;
  }

  .profile-hero-text h1 {
    font-size: 32px !important;
  }

  .mini-badges {
    justify-content: center !important;
  }

  .section-header {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .section-header h2 {
    font-size: 23px !important;
  }

  .blue-link-btn,
  .section-header button {
    width: 100% !important;
    text-align: center !important;
  }

  .discover-button-row {
    flex-direction: column !important;
  }

  .discover-button-row button {
    width: 100% !important;
  }

  .old-games-grid {
    grid-template-columns: 1fr !important;
  }

  .game-img {
    height: 190px !important;
  }
}
/* =========================================================
   BLOXY DISCOVER PAGE - CLEAN FINISHED CSS
   Paste at VERY BOTTOM of style.css
========================================================= */

/* Page wrapper */
.discover-page {
  width: 100%;
  min-height: calc(100vh - 90px);
  background: #000;
  color: #fff;
  padding: 28px 24px 90px;
  box-sizing: border-box;
}

.discover-inner {
  width: min(1250px, 100%);
  margin: 0 auto;
}

/* Top tabs panel */
.discover-tabs-wrap {
  width: 100%;
  background: #101010;
  border: 1px solid #292929;
  border-radius: 16px;
  padding: 14px;
  margin: 0 0 34px 0;
  box-sizing: border-box;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.discover-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.discover-tabs a {
  min-height: 44px;
  padding: 0 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #171717;
  border: 1px solid #303030;
  border-radius: 13px;

  color: #d9d9d9;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;

  transition: 0.18s ease;
}

.discover-tabs a:hover {
  background: #202020;
  border-color: #2563eb;
  color: #fff;
  transform: translateY(-1px);
}

.discover-tabs a.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28);
}

/* Main games section */
.discover-inner .panel-section {
  width: 100%;
  margin: 0;
}

/* Header above games */
.discover-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.discover-section-header h2 {
  color: #fff;
  font-size: 32px;
  line-height: 1;
  font-weight: 950;
  margin: 0;
  letter-spacing: -0.5px;
}

.discover-section-header p {
  color: #8e8e8e;
  font-size: 14px;
  margin: 8px 0 0;
}

/* Game grid */
.discover-games-grid {
  width: 100%;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 20px !important;
  align-items: start;
}

/* Game card */
.discover-game-card {
  background: #101010 !important;
  border: 1px solid #292929 !important;
  border-radius: 17px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  transition: 0.18s ease !important;
  min-width: 0;
  box-shadow: none !important;
}

.discover-game-card:hover {
  transform: translateY(-5px) !important;
  border-color: #2563eb !important;
  box-shadow: 0 16px 42px rgba(37, 99, 235, 0.16) !important;
}

/* Game image */
.discover-game-card .game-img {
  width: 100% !important;
  height: 175px !important;
  background: #181818 !important;
  border-bottom: 1px solid #252525 !important;
  overflow: hidden !important;
}

.discover-game-card .game-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Info area */
.discover-game-info {
  padding: 14px;
}

.discover-game-info h3 {
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 950 !important;
  line-height: 1.2 !important;
  margin: 0 0 8px !important;
  padding: 0 !important;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discover-game-info .game-description {
  color: #aaa !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  margin: 0 0 13px !important;
  padding: 0 !important;
  min-height: 38px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stats */
.game-stats-row,
.game-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.game-stats-row {
  margin-bottom: 8px;
}

.game-stats-row span,
.game-bottom-row span {
  min-width: 0;
  max-width: 100%;

  background: #171717;
  color: #d1d1d1;
  border: 1px solid #2d2d2d;
  border-radius: 999px;

  padding: 6px 9px;
  font-size: 12px;
  font-weight: 850;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-bottom-row span:last-child {
  max-width: 125px;
}

/* Empty state */
.discover-empty {
  width: 100%;
  background:
    radial-gradient(circle at top, rgba(37, 99, 235, 0.16), transparent 38%),
    #101010 !important;
  border: 1px solid #292929 !important;
  border-radius: 18px !important;
  padding: 42px 24px !important;
  text-align: center !important;
  box-sizing: border-box;
}

.discover-empty h3 {
  color: #fff;
  font-size: 28px;
  font-weight: 950;
  margin: 0 0 10px;
}

.discover-empty p {
  color: #aaa;
  font-size: 15px;
  margin: 0 0 20px;
}

.discover-empty button {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 900;
  cursor: pointer;
}

.discover-empty button:hover {
  background: #1d4ed8;
}

/* Fix old inherited card text rules */
.discover-game-card p,
.discover-game-card h3 {
  box-sizing: border-box;
}

/* Tablet */
@media (max-width: 900px) {
  .discover-page {
    padding: 22px 16px 90px;
  }

  .discover-tabs-wrap {
    margin-bottom: 28px;
  }

  .discover-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
    gap: 16px !important;
  }

  .discover-game-card .game-img {
    height: 160px !important;
  }
}

/* Phone */
@media (max-width: 650px) {
  .discover-page {
    padding: 18px 10px 95px;
  }

  .discover-tabs-wrap {
    border-radius: 16px;
    padding: 10px;
  }

  .discover-tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .discover-tabs a {
    width: 100%;
    min-height: 45px;
  }

  .discover-section-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 16px;
  }

  .discover-section-header h2 {
    font-size: 28px;
  }

  .discover-games-grid {
    grid-template-columns: 1fr !important;
  }

  .discover-game-card .game-img {
    height: 205px !important;
  }

  .game-stats-row,
  .game-bottom-row {
    flex-direction: column;
    align-items: stretch;
  }

  .game-bottom-row span:last-child {
    max-width: none;
  }
}
/* ================================
   DARKER NAVBAR + WHITE TEXT
================================ */

.roblox-topbar {
  background: #050505 !important;
  border: 1px solid #1c1c1c !important;
}

/* Bloxy logo text */
.roblox-topbar .brand,
.roblox-topbar .brand span {
  color: #ffffff !important;
}

/* Navbar links */
.roblox-topbar .top-links a {
  color: #ffffff !important;
}

/* Hover/active still blue */
.roblox-topbar .top-links a:hover,
.roblox-topbar .top-links a.active {
  color: #3b82f6 !important;
}

/* Username */
.roblox-topbar .user-nav span {
  color: #ffffff !important;
}

/* Blocks pill */
.roblox-topbar .blocks-pill {
  background: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #2a2a2a !important;
}

/* Search box darker */
.roblox-topbar .search-bar,
.roblox-topbar .search-type-select {
  background: #0b0b0b !important;
  color: #ffffff !important;
  border: 1px solid #252525 !important;
}

.roblox-topbar .search-bar::placeholder {
  color: #8a8a8a !important;
}

/* Logout stays red */
.roblox-topbar .user-nav a {
  color: #ff5f5f !important;
}

/* Admin link still purple but brighter */
.roblox-topbar .admin-nav-link {
  color: #d8b4fe !important;
}
.old-games-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
}

.old-game-card {
  max-width: 230px;
}
/* ================================
   BLOXY DOWNLOAD PAGE
================================ */

.download-page {
  width: min(1150px, calc(100% - 48px));
  margin: 30px auto 90px;
  color: #fff;
}

.download-hero {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 36%),
    #101010;
  border: 1px solid #292929;
  border-radius: 22px;
  padding: 38px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 28px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.38);
}

.download-hero-left {
  max-width: 720px;
}

.download-kicker {
  width: fit-content;
  background: rgba(37, 99, 235, 0.16);
  color: #8ab0ff;
  border: 1px solid rgba(37, 99, 235, 0.45);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 16px;
}

.download-hero h1 {
  color: #fff;
  font-size: 52px;
  line-height: 1;
  margin: 0 0 14px;
  font-weight: 950;
  letter-spacing: -1px;
}

.download-hero p {
  color: #b7b7b7;
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

.download-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.download-btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 950;
  transition: 0.18s ease;
}

.download-btn.primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.25);
}

.download-btn.primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.download-btn.secondary {
  background: #171717;
  color: #fff;
  border: 1px solid #333;
}

.download-btn.secondary:hover {
  border-color: #2563eb;
  background: #202020;
  transform: translateY(-2px);
}

.download-logo-card {
  width: 280px;
  min-width: 260px;
  background: #080808;
  border: 1px solid #2b2b2b;
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.download-logo-card img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  margin-bottom: 8px;
}

.download-logo-card h2 {
  color: #fff;
  font-size: 24px;
  margin: 0;
}

.download-logo-card p {
  color: #999;
  font-size: 14px;
  margin: 0;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.download-platform-card {
  background: #101010;
  border: 1px solid #292929;
  border-radius: 18px;
  padding: 24px;
  transition: 0.18s ease;
}

.download-platform-card:hover {
  border-color: #2563eb;
  transform: translateY(-3px);
}

.download-platform-card h3 {
  color: #fff;
  font-size: 24px;
  margin: 0 0 10px;
}

.download-platform-card p {
  color: #aaa;
  line-height: 1.55;
  margin: 0 0 16px;
}

.download-platform-card span {
  display: inline-flex;
  background: #171717;
  border: 1px solid #303030;
  color: #d8d8d8;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
}

.download-platform-card.muted {
  opacity: 0.7;
}

.download-info-box {
  margin-top: 24px;
  background: #101010;
  border: 1px solid #292929;
  border-radius: 18px;
  padding: 28px;
}

.download-info-box h2 {
  color: #fff;
  font-size: 28px;
  margin: 0 0 18px;
}

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

.download-steps div {
  background: #080808;
  border: 1px solid #242424;
  border-radius: 16px;
  padding: 18px;
}

.download-steps strong {
  width: 32px;
  height: 32px;
  background: #2563eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  margin-bottom: 12px;
}

.download-steps p {
  color: #bdbdbd;
  margin: 0;
  line-height: 1.5;
}

/* Mobile */
@media (max-width: 850px) {
  .download-page {
    width: calc(100% - 20px);
    margin-top: 18px;
  }

  .download-hero {
    flex-direction: column;
    padding: 26px;
  }

  .download-hero h1 {
    font-size: 38px;
  }

  .download-logo-card {
    width: 100%;
    min-width: 0;
  }

  .download-grid,
  .download-steps {
    grid-template-columns: 1fr;
  }

  .download-buttons {
    flex-direction: column;
  }

  .download-btn {
    width: 100%;
  }
}
.roblox-discover-page {
  width: min(1280px, calc(100% - 48px));
  margin: 26px auto 90px;
  color: #fff;
}

/* Top */
.roblox-discover-top {
  margin-bottom: 24px;
}

.roblox-discover-top h1 {
  font-size: 36px;
  font-weight: 950;
  margin: 0 0 18px;
  color: #fff;
  letter-spacing: -0.5px;
}

/* Tabs */
.roblox-discover-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.roblox-discover-tabs::-webkit-scrollbar {
  display: none;
}

.roblox-discover-tabs a {
  flex: 0 0 auto;
  background: #111;
  color: #fff;
  border: 1px solid #292929;
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  transition: 0.15s ease;
}

.roblox-discover-tabs a:hover {
  background: #191919;
  border-color: #2563eb;
}

.roblox-discover-tabs a.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

/* Row sections */
.roblox-game-row-section {
  margin-bottom: 36px;
}

.roblox-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.roblox-row-header h2 {
  font-size: 24px;
  font-weight: 950;
  color: #fff;
  margin: 0;
}

.roblox-row-header a {
  color: #bdbdbd;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
}

.roblox-row-header a:hover {
  color: #fff;
}

/* Horizontal Roblox-like row */
.roblox-game-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 170px;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: #333 #050505;
}

.roblox-game-row::-webkit-scrollbar {
  height: 8px;
}

.roblox-game-row::-webkit-scrollbar-track {
  background: #050505;
}

.roblox-game-row::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 999px;
}

/* Game tile */
.roblox-game-tile {
  width: 170px;
  cursor: pointer;
  transition: 0.15s ease;
}

.roblox-game-tile:hover {
  transform: translateY(-3px);
}

.roblox-game-thumb {
  width: 170px;
  height: 170px;
  background: #111;
  border: 1px solid #292929;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
}

.roblox-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Title */
.roblox-game-tile h3 {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 6px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Meta */
.roblox-game-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aaa;
  font-size: 13px;
  font-weight: 800;
}

.roblox-game-meta span {
  white-space: nowrap;
}

/* Empty */
.roblox-empty-discover {
  background: #101010;
  border: 1px solid #292929;
  border-radius: 18px;
  padding: 42px 24px;
  text-align: center;
}

.roblox-empty-discover h2 {
  color: #fff;
  font-size: 28px;
  margin: 0 0 10px;
}

.roblox-empty-discover p {
  color: #aaa;
  margin: 0 0 20px;
}

.roblox-empty-discover button {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 900;
  cursor: pointer;
}

.roblox-empty-discover button:hover {
  background: #1d4ed8;
}

/* Mobile */
@media (max-width: 700px) {
  .roblox-discover-page {
    width: calc(100% - 20px);
    margin-top: 18px;
  }

  .roblox-discover-top h1 {
    font-size: 30px;
  }

  .roblox-game-row {
    grid-auto-columns: 145px;
    gap: 12px;
  }

  .roblox-game-tile,
  .roblox-game-thumb {
    width: 145px;
  }

  .roblox-game-thumb {
    height: 145px;
    border-radius: 10px;
  }

  .roblox-row-header h2 {
    font-size: 21px;
  }
}