/* ==================================================
   BASIC RESET
================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #c8cec5;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #233023;
  background:
    radial-gradient(
      circle at center top,
      #f7faf4 0%,
      #dce2d9 42%,
      #bcc4b8 100%
    );
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  font-size: 14px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-width {
  width: min(1120px, calc(100% - 34px));
  margin: 0 auto;
}


/* ==================================================
   COLORS
================================================== */

:root {
  --green-light: #a7eb6f;
  --green-main: #62c83b;
  --green-dark: #2c8f2a;
  --green-deep: #1f641f;

  --silver-light: #f8faf6;
  --silver-mid: #d6dcd3;
  --silver-dark: #9ea79b;

  --text-dark: #233023;
  --text-soft: #647064;
  --line: rgba(62, 82, 62, 0.28);
}


/* ==================================================
   TOP BAR
================================================== */

.top-bar {
  border-bottom: 1px solid rgba(76, 95, 76, 0.35);
  color: #4f5c4f;
  background:
    linear-gradient(
      180deg,
      #f8faf6,
      #d8ddd5
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 10px;
  letter-spacing: 1px;
}

.top-bar-inner {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.online-status {
  color: #4b5a4b;
}

.online-dot {
  width: 8px;
  height: 8px;
  margin-right: 5px;
  display: inline-block;
  border-radius: 50%;
  background: #55c52f;
  box-shadow:
    0 0 7px rgba(78, 194, 43, 0.8);
}


/* ==================================================
   HEADER
================================================== */

.site-header {
  border-bottom: 1px solid #7f987d;
  background:
    radial-gradient(
      circle at 72% 25%,
      rgba(150, 235, 103, 0.42),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      #f8faf6,
      #cbd2c8
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 10px rgba(60, 80, 60, 0.18);
}

.header-inner {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #253225;
  text-decoration: none;
}

.logo-circle {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 3px solid #65b844;
  border-radius: 50%;
  color: #3e9c2d;
  background:
    radial-gradient(
      circle at 35% 30%,
      #ffffff 0%,
      #eef3eb 45%,
      #bcc6b9 100%
    );
  font-family:
    "Arial Black",
    Arial,
    sans-serif;
  font-size: 30px;
  font-style: italic;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.95),
    inset 0 -8px 16px rgba(85, 105, 85, 0.18),
    0 4px 10px rgba(60, 80, 60, 0.22);
}

.logo-name {
  display: flex;
  align-items: baseline;
  line-height: 0.88;
}

.logo-name strong {
  color: #2b382b;
  font-family:
    "Arial Black",
    Arial,
    sans-serif;
  font-size: 43px;
  letter-spacing: -4px;
}

.logo-name span {
  margin-left: 10px;
  color: #4baa32;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 3px;
}

.header-text {
  max-width: 430px;
  padding-left: 25px;
  border-left: 1px solid rgba(80, 100, 80, 0.3);
  text-align: right;
}

.header-text p {
  margin: 0 0 7px;
  color: #344234;
  font-size: 14px;
}

.header-text span {
  color: #718071;
  font-size: 11px;
}


/* ==================================================
   MAIN NAVIGATION
================================================== */

.main-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #718a70;
  background:
    linear-gradient(
      180deg,
      #edf2e9,
      #c5ccc2
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 3px 8px rgba(45, 65, 45, 0.2);
}

.nav-inner {
  display: flex;
}

.main-nav a {
  min-width: 120px;
  padding: 16px 20px 14px;
  border-right: 1px solid rgba(77, 97, 77, 0.28);
  color: #435043;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.55),
      rgba(255, 255, 255, 0)
    );
  text-align: center;
  text-decoration: none;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.main-nav a:first-child {
  border-left: 1px solid rgba(77, 97, 77, 0.28);
}

.main-nav a:hover {
  color: #173617;
  background:
    linear-gradient(
      180deg,
      #a7eb6f,
      #59c83a
    );
}

.main-nav a.active {
  color: #143114;
  background:
    linear-gradient(
      180deg,
      #b8f386 0%,
      #66cf40 48%,
      #3da52f 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -7px 14px rgba(34, 110, 28, 0.18);
}


/* ==================================================
   GENERAL PAGE LAYOUT
================================================== */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 26px;
  padding-top: 28px;
  padding-bottom: 50px;
}

.main-column {
  min-width: 0;
}


/* ==================================================
   FEATURE SECTION
================================================== */

.feature {
  min-height: 330px;
  display: grid;
  grid-template-columns: 56% 44%;
  overflow: hidden;
  border: 1px solid #8ea28b;
  border-radius: 24px;
  background:
    linear-gradient(
      180deg,
      #f5f8f2,
      #cbd3c8
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -10px 20px rgba(82, 102, 82, 0.12),
    0 7px 18px rgba(55, 75, 55, 0.2);
}

.feature-image {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      #a5c79b,
      #4d8b42
    );
}

.feature-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      transparent 65%,
      rgba(221, 229, 218, 0.92)
    );
  pointer-events: none;
}

.feature-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-label {
  position: absolute;
  left: 18px;
  bottom: 20px;
  z-index: 3;
  padding: 10px 16px;
  border: 1px solid #2f8d29;
  border-radius: 16px;
  color: #183318;
  background:
    linear-gradient(
      180deg,
      #baf48c,
      #62c83b
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 3px 8px rgba(35, 90, 35, 0.2);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1px;
}

.feature-info {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 34px 32px 34px 20px;
}

.small-heading {
  margin: 0 0 8px;
  color: #3d9c2f;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 2px;
}

.feature-info h1 {
  margin: 0 0 16px;
  color: #253225;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -2px;
}

.feature-info > p:not(.small-heading) {
  margin-bottom: 22px;
  color: #5f6d5f;
  line-height: 1.6;
}

.main-button {
  display: inline-block;
  padding: 11px 16px;
  border: 1px solid #2d8d29;
  border-radius: 14px;
  color: #173317;
  background:
    linear-gradient(
      180deg,
      #b5f081,
      #58c637
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -7px 12px rgba(33, 104, 28, 0.12),
    0 3px 7px rgba(50, 80, 50, 0.18);
  text-decoration: none;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.8px;
}

.main-button:hover {
  background:
    linear-gradient(
      180deg,
      #c6f89e,
      #70d44a
    );
}


/* ==================================================
   CONTENT SECTIONS
================================================== */

.content-section {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid #9da89a;
  border-radius: 20px;
  background:
    linear-gradient(
      180deg,
      #f8faf6,
      #d4dbd1
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 5px 14px rgba(65, 85, 65, 0.16);
}

.section-heading {
  min-height: 49px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(72, 94, 72, 0.28);
  background:
    linear-gradient(
      180deg,
      #a9ea79 0%,
      #5bc63a 55%,
      #3aa12d 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -8px 14px rgba(37, 104, 30, 0.12);
}

.section-heading h2 {
  margin: 0;
  color: #173017;
  font-size: 13px;
  letter-spacing: 1.3px;
}

.section-heading a {
  color: #214a20;
  text-decoration: none;
  font-size: 10px;
  font-weight: bold;
}

.section-heading a:hover {
  color: #ffffff;
}


/* ==================================================
   GAME GRID
================================================== */

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

.game-item {
  min-width: 0;
}

.game-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid #879a84;
  border-radius: 12px;
  background: #d7ddd4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 4px 10px rgba(54, 74, 54, 0.22);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.game-item:hover img {
  transform: translateY(-3px);
  box-shadow:
    0 7px 14px rgba(48, 95, 40, 0.25);
}

.game-item h3 {
  margin: 9px 0 3px;
  color: #2a372a;
  font-size: 13px;
}

.game-item p {
  margin: 0;
  color: #738073;
  font-size: 10px;
}


/* ==================================================
   POSTS
================================================== */

.post {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid rgba(70, 90, 70, 0.2);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.58),
      rgba(255, 255, 255, 0.12)
    );
}

.post:last-child {
  border-bottom: 0;
}

.post:hover {
  background:
    linear-gradient(
      90deg,
      rgba(171, 235, 123, 0.35),
      rgba(255, 255, 255, 0.28)
    );
}

.post-date {
  height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #70996a;
  border-radius: 14px;
  background:
    linear-gradient(
      180deg,
      #f4f7f1,
      #bec8bb
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.post-date strong {
  color: #2e7928;
  font-size: 21px;
  line-height: 1;
}

.post-date span {
  margin-top: 3px;
  color: #536153;
  font-size: 9px;
  letter-spacing: 1px;
}

.post-content h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.post-content h3 a {
  color: #2b382b;
  text-decoration: none;
}

.post-content h3 a:hover {
  color: #2f9629;
}

.post-content p {
  margin: 0 0 8px;
  color: #647064;
  line-height: 1.5;
}

.post-details {
  color: #829082;
  font-size: 10px;
}


/* ==================================================
   SCREENSHOTS
================================================== */

.screenshot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
  padding: 14px;
}

.screenshot-grid a {
  display: block;
  overflow: hidden;
  border: 1px solid #869783;
  border-radius: 13px;
  background: #d5dbd2;
  box-shadow:
    0 4px 10px rgba(55, 75, 55, 0.18);
}

.screenshot-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.screenshot-grid a:hover img {
  opacity: 0.9;
  transform: scale(1.025);
}


/* ==================================================
   REVIEWS
================================================== */

.review-list {
  padding: 0 15px;
}

.review {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(70, 90, 70, 0.2);
}

.review:last-child {
  border-bottom: 0;
}

.review-score {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid #478e3f;
  border-radius: 50%;
  color: #1f4d1e;
  background:
    linear-gradient(
      180deg,
      #bdf28f,
      #5ec93d
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 3px 7px rgba(47, 85, 47, 0.18);
  font-size: 20px;
  font-weight: bold;
}

.review h3 {
  margin: 2px 0 5px;
  color: #2d3a2d;
  font-size: 15px;
}

.review p {
  margin: 0;
  color: #697669;
  line-height: 1.5;
}


/* ==================================================
   SIDEBAR
================================================== */

.sidebar {
  min-width: 0;
}

.sidebar-section {
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid #9ca79a;
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      #f7f9f5,
      #d1d8ce
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 5px 12px rgba(59, 79, 59, 0.17);
}

.sidebar-heading {
  padding: 11px 13px 10px;
  border-bottom: 1px solid rgba(68, 89, 68, 0.26);
  color: #173017;
  background:
    linear-gradient(
      180deg,
      #afea83,
      #5bc63a
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1.2px;
}


/* ==================================================
   PROFILE CARD
================================================== */

.profile {
  display: flex;
  gap: 12px;
  padding: 14px 14px 11px;
}

.profile img {
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  object-fit: cover;
  border: 2px solid #58ad42;
  border-radius: 14px;
  background: #d9ded6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 3px 8px rgba(50, 75, 50, 0.2);
}

.profile-details strong,
.profile-details span {
  display: block;
}

.profile-details strong {
  margin: 4px 0 8px;
  color: #2f9429;
  font-size: 13px;
}

.profile-details span {
  margin-top: 4px;
  color: #6e7a6e;
  font-size: 9px;
}

.profile-bio {
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid rgba(72, 92, 72, 0.2);
  color: #6b776b;
  font-size: 10px;
}

.profile-links {
  display: flex;
  border-top: 1px solid rgba(72, 92, 72, 0.2);
}

.profile-links a {
  width: 50%;
  padding: 10px;
  color: #526152;
  text-align: center;
  text-decoration: none;
  font-size: 9px;
}

.profile-links a + a {
  border-left: 1px solid rgba(72, 92, 72, 0.2);
}

.profile-links a:hover {
  color: #1d4f1c;
  background:
    linear-gradient(
      180deg,
      rgba(180, 240, 130, 0.55),
      rgba(102, 201, 63, 0.32)
    );
}


/* ==================================================
   SITE STATS
================================================== */

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

.site-stats div {
  padding: 13px;
  border-bottom: 1px solid rgba(72, 92, 72, 0.2);
}

.site-stats div:nth-child(odd) {
  border-right: 1px solid rgba(72, 92, 72, 0.2);
}

.site-stats div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.site-stats span,
.site-stats strong {
  display: block;
}

.site-stats span {
  margin-bottom: 4px;
  color: #758175;
  font-size: 9px;
  text-transform: uppercase;
}

.site-stats strong {
  color: #2e3b2e;
  font-size: 16px;
}


/* ==================================================
   FORUM LIST
================================================== */

.forum-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.forum-list li {
  padding: 11px 13px;
  border-bottom: 1px solid rgba(72, 92, 72, 0.2);
}

.forum-list li:hover {
  background:
    linear-gradient(
      90deg,
      rgba(175, 235, 130, 0.42),
      rgba(255, 255, 255, 0.15)
    );
}

.forum-list a {
  display: block;
  margin-bottom: 3px;
  color: #405040;
  text-decoration: none;
  font-size: 11px;
  line-height: 1.35;
}

.forum-list a:hover {
  color: #2d9028;
}

.forum-list span {
  color: #7b877b;
  font-size: 9px;
}

.sidebar-bottom-link {
  display: block;
  padding: 11px 13px;
  color: #2c8427;
  text-decoration: none;
  font-size: 9px;
  font-weight: bold;
}


/* ==================================================
   POLL
================================================== */

.poll {
  padding: 13px;
}

.poll p {
  margin: 0 0 11px;
  color: #354335;
  font-size: 12px;
  font-weight: bold;
}

.poll label {
  display: block;
  margin: 8px 0;
  color: #667266;
  font-size: 11px;
  cursor: pointer;
}

.poll input {
  accent-color: #4eb233;
}

.poll button {
  margin-top: 8px;
  padding: 8px 14px;
  border: 1px solid #398f30;
  border-radius: 12px;
  color: #173017;
  background:
    linear-gradient(
      180deg,
      #b7ef88,
      #5fc63d
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
}


/* ==================================================
   POPULAR LIST
================================================== */

.popular-list {
  margin: 0;
  padding: 6px 13px 8px 34px;
}

.popular-list li {
  padding: 8px 0;
  color: #3d922f;
  border-bottom: 1px solid rgba(72, 92, 72, 0.2);
  font-size: 10px;
}

.popular-list li:last-child {
  border-bottom: 0;
}

.popular-list a {
  color: #566356;
  text-decoration: none;
}

.popular-list a:hover {
  color: #2e9229;
}


/* ==================================================
   SIDE LINKS
================================================== */

.side-links {
  padding: 5px 0;
}

.side-links a {
  display: block;
  padding: 9px 12px;
  color: #5f6b5f;
  text-decoration: none;
  font-size: 10px;
}

.side-links a::before {
  content: "› ";
  color: #3c9a2f;
}

.side-links a:hover {
  color: #224622;
  background:
    linear-gradient(
      90deg,
      rgba(175, 236, 128, 0.42),
      transparent
    );
}


/* ==================================================
   VISITOR COUNTER
================================================== */

.visitor-counter {
  padding-bottom: 15px;
  text-align: center;
}

.visitor-counter > span {
  display: block;
  margin: 14px 0 5px;
  color: #7a867a;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.visitor-counter > strong {
  display: block;
  color: #398f2e;
  font-family:
    "Courier New",
    monospace;
  font-size: 23px;
  letter-spacing: 4px;
}


/* ==================================================
   PROFILE PAGE
================================================== */

.profile-page {
  padding-top: 28px;
  padding-bottom: 50px;
}

.profile-header {
  overflow: hidden;
  border: 1px solid #93a290;
  border-radius: 24px 24px 0 0;
  background:
    linear-gradient(
      180deg,
      #f8faf6,
      #d4dbd1
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 7px 18px rgba(55, 75, 55, 0.2);
}

.profile-banner {
  height: 175px;
  overflow: hidden;
  background:
    linear-gradient(
      115deg,
      #b8eb91,
      #4e9d3d 60%,
      #2c6c2b
    );
}

.profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-header-content {
  min-height: 145px;
  display: flex;
  gap: 22px;
  padding: 0 25px 22px;
}

.large-avatar {
  width: 132px;
  height: 132px;
  margin-top: -50px;
  flex-shrink: 0;
  object-fit: cover;
  border: 5px solid #e8eee5;
  border-radius: 22px;
  background: #d2d9cf;
  box-shadow:
    0 0 0 2px #54aa3b,
    0 5px 12px rgba(48, 70, 48, 0.22);
}

.profile-main-info {
  width: 100%;
  padding-top: 18px;
}

.profile-name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.profile-name-row h1 {
  margin: 0 0 5px;
  color: #283528;
  font-size: 30px;
}

.profile-online {
  color: #6c796c;
  font-size: 10px;
}

.profile-button {
  padding: 10px 14px;
  border: 1px solid #3b9131;
  border-radius: 13px;
  color: #173017;
  background:
    linear-gradient(
      180deg,
      #baf18d,
      #5bc63a
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
}

.profile-description {
  max-width: 620px;
  margin: 17px 0;
  color: #647064;
  line-height: 1.5;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #7a867a;
  font-size: 10px;
}


/* ==================================================
   PROFILE TABS
================================================== */

.profile-tabs {
  display: flex;
  overflow: hidden;
  border: 1px solid #94a191;
  border-top: 0;
  border-radius: 0 0 20px 20px;
  background:
    linear-gradient(
      180deg,
      #eef2eb,
      #c9d0c6
    );
  box-shadow:
    0 4px 10px rgba(55, 75, 55, 0.16);
}

.profile-tabs a {
  padding: 15px 19px 13px;
  border-right: 1px solid rgba(72, 92, 72, 0.22);
  color: #5f6c5f;
  text-decoration: none;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.8px;
}

.profile-tabs a:hover,
.profile-tabs a.active {
  color: #173017;
  background:
    linear-gradient(
      180deg,
      #b8f087,
      #5fc93d
    );
}


/* ==================================================
   PROFILE LAYOUT
================================================== */

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 305px;
  gap: 22px;
  margin-top: 22px;
}

.profile-main-column,
.profile-sidebar {
  min-width: 0;
}

.profile-section {
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid #9ca89a;
  border-radius: 19px;
  background:
    linear-gradient(
      180deg,
      #f8faf6,
      #d4dbd1
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 5px 13px rgba(55, 75, 55, 0.16);
}

.profile-section-heading {
  min-height: 44px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(70, 90, 70, 0.24);
  color: #173017;
  background:
    linear-gradient(
      180deg,
      #afea80,
      #5ac538
    );
}

.profile-section-heading h2 {
  margin: 0;
  color: #173017;
  font-size: 11px;
  letter-spacing: 1px;
}

.profile-section-heading a {
  color: #275d24;
  font-size: 9px;
  text-decoration: none;
}


/* ==================================================
   CURRENT GAME
================================================== */

.current-game {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 18px;
  padding: 16px;
}

.current-game img {
  width: 115px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid #81927e;
  border-radius: 12px;
  box-shadow:
    0 4px 10px rgba(55, 75, 55, 0.2);
}

.current-game-info h3 {
  margin: 4px 0 5px;
  color: #2c392c;
  font-size: 18px;
}

.current-game-info > span {
  color: #768276;
  font-size: 10px;
}

.current-game-info p {
  margin: 20px 0;
  color: #647064;
  line-height: 1.5;
}

.game-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-progress-bar {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 1px solid #9aa799;
  border-radius: 20px;
  background:
    linear-gradient(
      180deg,
      #aab3a8,
      #dce2d9
    );
}

.game-progress-bar span {
  width: 65%;
  height: 100%;
  display: block;
  background:
    linear-gradient(
      180deg,
      #9ce56a,
      #46b42f
    );
}

.game-progress strong {
  color: #687568;
  font-size: 10px;
}


/* ==================================================
   FAVORITE GAMES
================================================== */

.favorite-games {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 15px;
}

.favorite-games a {
  color: #5d695d;
  text-decoration: none;
  font-size: 10px;
}

.favorite-games img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid #879784;
  border-radius: 11px;
  box-shadow:
    0 4px 9px rgba(55, 75, 55, 0.18);
}

.favorite-games span {
  display: block;
  margin-top: 7px;
}


/* ==================================================
   ACTIVITY LIST
================================================== */

.activity-list {
  padding: 0 15px;
}

.activity-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(72, 92, 72, 0.2);
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-item > img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 1px solid #81927e;
  border-radius: 10px;
}

.activity-item p {
  margin: 0 0 3px;
  color: #5f6c5f;
  font-size: 11px;
}

.activity-item p strong {
  color: #2f3d2f;
}

.activity-item p a {
  color: #329329;
  text-decoration: none;
}

.activity-item span {
  color: #829082;
  font-size: 9px;
}

.activity-item blockquote {
  margin: 9px 0 0;
  color: #6a766a;
  font-size: 11px;
  line-height: 1.45;
}

.activity-comments {
  align-self: center;
  color: #6b786b;
  text-decoration: none;
  font-size: 9px;
}

.rating {
  margin-top: 8px;
  color: #419f31;
  letter-spacing: 2px;
}


/* ==================================================
   ABOUT LIST
================================================== */

.about-list {
  margin: 0;
  padding: 4px 14px 12px;
}

.about-list div {
  padding: 11px 0;
  border-bottom: 1px solid rgba(72, 92, 72, 0.2);
}

.about-list div:last-child {
  border-bottom: 0;
}

.about-list dt {
  margin-bottom: 4px;
  color: #7b877b;
  font-size: 9px;
  text-transform: uppercase;
}

.about-list dd {
  margin: 0;
  color: #415041;
  font-size: 11px;
}


/* ==================================================
   PROFILE STATS
================================================== */

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

.profile-stats div {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid rgba(72, 92, 72, 0.2);
}

.profile-stats div:nth-child(odd) {
  border-right: 1px solid rgba(72, 92, 72, 0.2);
}

.profile-stats div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.profile-stats strong,
.profile-stats span {
  display: block;
}

.profile-stats strong {
  margin-bottom: 4px;
  color: #2d3a2d;
  font-size: 18px;
}

.profile-stats span {
  color: #758175;
  font-size: 9px;
}


/* ==================================================
   FRIEND GRID
================================================== */

.friend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px;
}

.friend-grid a {
  color: #687468;
  text-align: center;
  text-decoration: none;
  font-size: 9px;
}

.friend-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 6px;
  border: 1px solid #849480;
  border-radius: 11px;
  background: #d6ddd3;
}


/* ==================================================
   FOOTER
================================================== */

footer {
  border-top: 1px solid #859682;
  background:
    linear-gradient(
      180deg,
      #dbe1d8,
      #b9c2b6
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.footer-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #687568;
  font-size: 9px;
  letter-spacing: 0.6px;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 860px) {

  .page-layout {
    grid-template-columns: 1fr;
  }

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

  .sidebar-section {
    margin-bottom: 0;
  }

  .header-text {
    display: none;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    display: grid;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .profile-sidebar .profile-section {
    margin-bottom: 0;
  }

}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 680px) {

  .site-width {
    width: min(1120px, calc(100% - 20px));
  }

  .top-bar-inner {
    justify-content: center;
  }

  .top-bar-inner > span:first-child {
    display: none;
  }

  .header-inner {
    min-height: 110px;
    justify-content: center;
  }

  .logo-circle {
    width: 55px;
    height: 55px;
    font-size: 25px;
  }

  .logo-name strong {
    font-size: 38px;
  }

  .logo-name span {
    font-size: 12px;
  }

  .main-nav {
    position: static;
  }

  .nav-inner {
    width: 100%;
    overflow-x: auto;
  }

  .main-nav a {
    min-width: auto;
    flex: 0 0 auto;
    padding: 13px 15px;
  }

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

  .feature-image {
    min-height: 225px;
  }

  .feature-image::after {
    background:
      linear-gradient(
        0deg,
        rgba(220, 228, 217, 0.95),
        transparent 45%
      );
  }

  .feature-info {
    padding: 24px;
  }

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

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

  .screenshot-grid img {
    height: 210px;
  }

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

  .profile-header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .large-avatar {
    width: 105px;
    height: 105px;
  }

  .profile-main-info {
    padding-top: 0;
  }

  .profile-name-row {
    width: 100%;
  }

  .profile-tabs {
    overflow-x: auto;
  }

  .profile-tabs a {
    flex: 0 0 auto;
  }

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

  .profile-sidebar {
    grid-template-columns: 1fr;
  }

  .current-game {
    grid-template-columns: 90px 1fr;
  }

  .current-game img {
    width: 90px;
  }

  .activity-item {
    grid-template-columns: 40px 1fr;
  }

  .activity-comments {
    display: none;
  }

  .footer-inner {
    min-height: 90px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .footer-inner p {
    margin: 4px 0;
  }

}


/* ==================================================
   SMALL PHONES
================================================== */

@media (max-width: 430px) {

  .logo-name span {
    display: none;
  }

  .feature-info h1 {
    font-size: 34px;
  }

  .game-grid {
    gap: 11px;
  }

}
/* ==================================================
   LOGIN AND SIGNUP
================================================== */

.auth-page {
  min-height: 100vh;
  padding: 60px 20px;
  display: grid;
  place-items: start center;
}

.auth-box {
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid #9ca89a;
  border-radius: 22px;
  background:
    linear-gradient(
      180deg,
      #f8faf6,
      #d4dbd1
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 7px 18px rgba(55, 75, 55, 0.2);
}

.auth-box h1 {
  margin: 0 0 7px;
  color: #283528;
  font-size: 28px;
}

.auth-intro {
  margin: 0 0 23px;
  color: #687568;
}

.auth-box label {
  display: block;
  margin: 15px 0 6px;
  color: #3f4d3f;
  font-size: 11px;
  font-weight: bold;
}

.auth-box input,
.auth-box textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #94a191;
  border-radius: 11px;
  outline: none;
  color: #283528;
  background:
    linear-gradient(
      180deg,
      #ffffff,
      #f1f4ef
    );
  box-shadow:
    inset 0 1px 3px rgba(50, 70, 50, 0.12);
}

.auth-box input:focus,
.auth-box textarea:focus {
  border-color: #55ad3c;
  box-shadow:
    0 0 0 3px rgba(87, 190, 59, 0.18);
}

.auth-box textarea {
  min-height: 110px;
  resize: vertical;
}

.auth-box button {
  margin-top: 19px;
  padding: 10px 17px;
  border: 1px solid #3b9131;
  border-radius: 13px;
  color: #173017;
  background:
    linear-gradient(
      180deg,
      #baf18d,
      #5bc63a
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
}

.auth-box button:hover {
  background:
    linear-gradient(
      180deg,
      #caf5a5,
      #72d14f
    );
}

.auth-message {
  min-height: 18px;
  margin: 14px 0 0;
  color: #396d32;
  font-size: 11px;
  line-height: 1.45;
}

.auth-switch {
  margin: 24px 0 10px;
  color: #687568;
  font-size: 11px;
}

.auth-switch a,
.auth-back {
  color: #338f2a;
}

.auth-back {
  font-size: 10px;
}
/* ==================================================
   BLADES-ERA VISUAL OVERHAUL
   Original mid-2000s console dashboard styling
================================================== */

:root {
  --blade-green-1: #c7ff75;
  --blade-green-2: #83d735;
  --blade-green-3: #3f9c1d;
  --blade-green-4: #23630f;
  --blade-white: #fbfcfa;
  --blade-silver-1: #eef1ec;
  --blade-silver-2: #c8cec5;
  --blade-silver-3: #949d92;
  --blade-dark: #202720;
  --blade-line: rgba(33, 51, 31, 0.42);
  --blade-glow: rgba(116, 218, 47, 0.48);
}

html {
  background: #8f978d;
}

body {
  color: #273027;
  background:
    radial-gradient(circle at 72% 4%, rgba(192, 255, 111, 0.42), transparent 28%),
    radial-gradient(circle at 12% 34%, rgba(255, 255, 255, 0.82), transparent 32%),
    linear-gradient(115deg, #aeb5ab 0%, #e8ebe5 42%, #a5ada1 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.38;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 5px
    );
}

.site-width {
  width: min(1180px, calc(100% - 42px));
}

.top-bar {
  color: #dfe5dc;
  border-bottom: 1px solid #111711;
  background:
    linear-gradient(180deg, #465045 0%, #222a22 48%, #161c16 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 3px 9px rgba(0, 0, 0, 0.34);
}

.top-bar-inner {
  min-height: 29px;
}

.online-status {
  color: #e9eee6;
}

.site-header {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #7b8578;
  background:
    radial-gradient(circle at 76% 28%, rgba(183, 255, 102, 0.7), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #dde2da 54%, #afb7ac 100%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -18px 40px rgba(60, 70, 59, 0.13),
    0 7px 16px rgba(24, 34, 23, 0.25);
}

.site-header::after {
  content: "";
  position: absolute;
  right: -130px;
  top: -150px;
  width: 540px;
  height: 420px;
  border-radius: 50%;
  border: 55px solid rgba(123, 214, 53, 0.19);
  transform: rotate(-18deg);
  pointer-events: none;
}

.header-inner {
  min-height: 118px;
}

.logo-circle {
  border: 1px solid #6f786e;
  color: #f6fff0;
  background:
    radial-gradient(circle at 35% 25%, #caff8f 0%, #79d23b 32%, #378e1b 66%, #173f0f 100%);
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.55);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.7),
    inset 0 -10px 17px rgba(11, 60, 3, 0.5),
    0 0 0 5px rgba(255, 255, 255, 0.44),
    0 7px 16px rgba(31, 49, 28, 0.34);
}

.logo-name strong {
  color: #293129;
  text-shadow: 0 1px 0 #ffffff;
}

.logo-name span {
  color: #4ca620;
}

.header-text {
  border-left-color: rgba(55, 70, 54, 0.34);
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid #1e2a1c;
  background: transparent;
  box-shadow: 0 7px 18px rgba(22, 31, 21, 0.3);
}

.nav-inner {
  align-items: stretch;
  overflow: visible;
}

.main-nav a {
  position: relative;
  min-width: 132px;
  margin-right: -18px;
  padding: 18px 28px 16px;
  overflow: hidden;
  border: 1px solid #7e887b;
  border-bottom-color: #505a4e;
  border-radius: 0 0 23px 23px;
  color: #3a4438;
  background:
    linear-gradient(180deg, #ffffff 0%, #e7eae4 18%, #bbc2b8 61%, #8f998d 100%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset -10px 0 16px rgba(51, 63, 50, 0.11),
    5px 5px 10px rgba(30, 39, 29, 0.24);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  clip-path: polygon(8% 0, 94% 0, 100% 100%, 0 100%);
  transition: transform 0.16s ease, filter 0.16s ease, color 0.16s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  inset: 1px 10px auto;
  height: 8px;
  border-radius: 0 0 50% 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.main-nav a:first-child {
  border-left: 1px solid #7e887b;
}

.main-nav a:hover {
  z-index: 4;
  color: #17320d;
  transform: translateY(4px);
  filter: brightness(1.05);
  background:
    linear-gradient(180deg, #d7ff9e 0%, #a1e454 25%, #62ba26 65%, #347d17 100%);
}

.main-nav a.active {
  z-index: 5;
  color: #14280d;
  transform: translateY(7px);
  background:
    radial-gradient(circle at 55% 15%, rgba(255, 255, 255, 0.64), transparent 23%),
    linear-gradient(180deg, #d7ff96 0%, #9cdf47 27%, #57ad22 65%, #2c7114 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -14px 22px rgba(16, 70, 4, 0.35),
    0 0 20px var(--blade-glow),
    6px 7px 12px rgba(25, 38, 23, 0.32);
}

.page-layout,
.profile-page {
  position: relative;
}

.page-layout::before,
.profile-page::before {
  content: "";
  position: absolute;
  inset: 12px -12px 26px;
  z-index: -1;
  border: 1px solid rgba(79, 90, 77, 0.56);
  border-radius: 34px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.7), rgba(196, 203, 193, 0.8));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 42px rgba(31, 42, 30, 0.27);
}

.feature,
.content-section,
.sidebar-section,
.profile-header,
.profile-section,
.auth-box {
  border-color: #6f796c;
  background:
    linear-gradient(180deg, #fbfcfa 0%, #e6e9e3 18%, #c4cbc1 66%, #a8b0a5 100%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -16px 26px rgba(57, 69, 55, 0.12),
    0 9px 21px rgba(36, 46, 34, 0.25);
}

.feature {
  border-radius: 32px 15px 32px 15px;
}

.feature-image::after {
  background:
    linear-gradient(90deg, transparent 58%, rgba(231, 235, 228, 0.96) 88%);
}

.feature-info h1 {
  color: #202820;
  text-shadow: 0 1px 0 #ffffff;
}

.main-button,
.profile-button,
.poll button,
.auth-box button {
  border-color: #2f6e18;
  border-radius: 18px;
  color: #15250f;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.78), transparent 34%),
    linear-gradient(180deg, #caff89 0%, #86d33c 45%, #43931f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -8px 13px rgba(21, 76, 7, 0.28),
    0 3px 7px rgba(36, 57, 31, 0.3);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.14s ease, filter 0.14s ease, box-shadow 0.14s ease;
}

.main-button:hover,
.profile-button:hover,
.poll button:hover,
.auth-box button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 13px rgba(113, 212, 55, 0.45),
    0 6px 11px rgba(30, 50, 27, 0.28);
}

.section-heading,
.sidebar-heading,
.profile-section-heading {
  border-bottom-color: #326817;
  color: #10230b;
  background:
    radial-gradient(circle at 58% 0%, rgba(255, 255, 255, 0.64), transparent 28%),
    linear-gradient(180deg, #caff8b 0%, #91d842 35%, #4a9f20 75%, #2d7014 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -9px 14px rgba(18, 70, 8, 0.25);
}

.content-section,
.sidebar-section,
.profile-section {
  border-radius: 24px 10px 24px 10px;
}

.game-item img,
.favorite-games img,
.current-game img,
.screenshot-grid a,
.friend-grid img,
.activity-item > img,
.profile img {
  border-color: #566252;
  border-radius: 7px;
  box-shadow:
    0 0 0 3px rgba(244, 247, 242, 0.75),
    0 5px 12px rgba(37, 47, 35, 0.28);
}

.game-item:hover img,
.favorite-games a:hover img,
.friend-grid a:hover img {
  transform: translateY(-4px) scale(1.015);
  box-shadow:
    0 0 0 3px rgba(152, 226, 87, 0.72),
    0 0 16px rgba(92, 185, 43, 0.43),
    0 8px 15px rgba(31, 45, 29, 0.3);
}

.post:hover,
.forum-list li:hover,
.side-links a:hover {
  background:
    linear-gradient(90deg, rgba(180, 243, 105, 0.62), rgba(255, 255, 255, 0.23));
}

.profile-header {
  border-radius: 34px 13px 0 0;
}

.profile-banner {
  position: relative;
  height: 205px;
  background:
    radial-gradient(circle at 68% 35%, #caff83, transparent 26%),
    linear-gradient(120deg, #6fb633, #2d7417 58%, #15380d);
}

.profile-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 48%, rgba(255, 255, 255, 0.23) 49%, transparent 52%);
  pointer-events: none;
}

.large-avatar {
  border-radius: 12px;
  border-color: #f2f5ef;
  box-shadow:
    0 0 0 2px #447e28,
    0 0 0 6px rgba(255, 255, 255, 0.64),
    0 8px 17px rgba(35, 48, 32, 0.34);
}

.profile-tabs {
  border-color: #687364;
  border-radius: 0 0 29px 12px;
  background:
    linear-gradient(180deg, #f7f8f5 0%, #d2d7cf 48%, #9ba49a 100%);
}

.profile-tabs a {
  position: relative;
  min-width: 112px;
  text-align: center;
  border-right-color: #788275;
}

.profile-tabs a:hover,
.profile-tabs a.active {
  color: #11240a;
  background:
    linear-gradient(180deg, #d2ff95 0%, #8cd83d 48%, #3e8e1b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -7px 12px rgba(16, 69, 5, 0.2);
}

.auth-page {
  background:
    radial-gradient(circle at 50% 16%, rgba(195, 255, 119, 0.52), transparent 28%);
}

.auth-box {
  position: relative;
  overflow: hidden;
  border-radius: 34px 12px 34px 12px;
}

.auth-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 13px;
  background:
    linear-gradient(180deg, #ccff8b, #5aad26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.auth-box input,
.auth-box textarea,
.auth-form input,
.auth-form textarea {
  border-color: #7b8577;
  border-radius: 5px 13px 5px 13px;
  background:
    linear-gradient(180deg, #ffffff, #e7ebe4);
  box-shadow:
    inset 0 2px 5px rgba(48, 58, 46, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.72);
}

.auth-box input:focus,
.auth-box textarea:focus,
.auth-form input:focus,
.auth-form textarea:focus {
  border-color: #4f9c23;
  box-shadow:
    inset 0 2px 5px rgba(48, 58, 46, 0.14),
    0 0 0 3px rgba(116, 207, 53, 0.28),
    0 0 14px rgba(102, 194, 47, 0.25);
}

footer {
  color: #dde3da;
  border-top-color: #151b15;
  background:
    linear-gradient(180deg, #414b40 0%, #202720 55%, #121712 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 -5px 14px rgba(28, 38, 27, 0.19);
}

.footer-inner {
  color: #cbd2c8;
}

@media (max-width: 860px) {
  .main-nav a {
    min-width: 118px;
    margin-right: -12px;
  }

  .page-layout::before,
  .profile-page::before {
    inset: 12px -5px 22px;
  }
}

@media (max-width: 680px) {
  .site-width {
    width: min(1180px, calc(100% - 18px));
  }

  .nav-inner {
    padding-bottom: 8px;
  }

  .main-nav a {
    min-width: 104px;
    margin-right: -10px;
    padding: 15px 18px 14px;
    clip-path: polygon(7% 0, 94% 0, 100% 100%, 0 100%);
  }

  .page-layout::before,
  .profile-page::before {
    display: none;
  }

  .feature,
  .content-section,
  .sidebar-section,
  .profile-section,
  .auth-box {
    border-radius: 20px 8px 20px 8px;
  }
}

/* ==================================================
   EDIT PROFILE IMAGE UPLOAD
================================================== */

.edit-profile-panel {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.edit-profile-form {
  padding: 24px;
}

.edit-avatar-area {
  margin-bottom: 25px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px solid rgba(77, 95, 77, 0.35);
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.7),
      rgba(208, 216, 205, 0.75)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -12px 24px rgba(58, 75, 58, 0.1);
}

.edit-avatar-preview-frame {
  width: 130px;
  height: 130px;
  flex: 0 0 130px;
  padding: 5px;
  border: 1px solid #60705f;
  border-radius: 20px;
  background:
    linear-gradient(
      180deg,
      #f8faf6,
      #aeb8aa
    );
  box-shadow:
    0 0 0 2px rgba(83, 184, 58, 0.75),
    0 7px 18px rgba(28, 38, 28, 0.35);
}

.edit-avatar-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  background: #cbd2c8;
}

.edit-avatar-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.edit-avatar-controls p {
  margin: 0;
  color: #6c796c;
  font-size: 10px;
  line-height: 1.5;
}

#edit-avatar-file {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.avatar-upload-button {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

.secondary-profile-button {
  padding: 8px 12px;
  border: 1px solid #7e897c;
  border-radius: 11px;
  color: #4e594e;
  background:
    linear-gradient(
      180deg,
      #f5f7f3,
      #bcc5b9
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 9px;
  font-weight: bold;
  cursor: pointer;
}

.secondary-profile-button:hover {
  color: #213321;
  background:
    linear-gradient(
      180deg,
      #ffffff,
      #ccd5c8
    );
}

.edit-profile-form .form-group {
  margin-bottom: 18px;
}

.edit-profile-form label:not(.avatar-upload-button) {
  display: block;
  margin-bottom: 6px;
  color: #344234;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.edit-profile-form input:not([type="file"]),
.edit-profile-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #8e9a8b;
  border-radius: 11px;
  outline: none;
  color: #283528;
  background:
    linear-gradient(
      180deg,
      #ffffff,
      #eef2eb
    );
  box-shadow:
    inset 0 2px 4px rgba(42, 57, 42, 0.14);
}

.edit-profile-form input:focus,
.edit-profile-form textarea:focus {
  border-color: #55ad3c;
  box-shadow:
    0 0 0 3px rgba(87, 190, 59, 0.18),
    inset 0 2px 4px rgba(42, 57, 42, 0.12);
}

.edit-profile-form textarea {
  resize: vertical;
}

.edit-profile-form small {
  display: block;
  margin-top: 6px;
  color: #7a867a;
  font-size: 9px;
  text-align: right;
}

.edit-profile-actions {
  margin-top: 24px;
}

.cancel-profile-button {
  text-decoration: none;
  background:
    linear-gradient(
      180deg,
      #f4f6f2,
      #b7c0b4
    );
  border-color: #788575;
  color: #4a574a;
}

#edit-profile-message[data-status="error"] {
  color: #a52b2b;
}

@media (max-width: 600px) {
  .edit-profile-form {
    padding: 16px;
  }

  .edit-avatar-area {
    flex-direction: column;
    align-items: flex-start;
  }

  .edit-avatar-preview-frame {
    width: 110px;
    height: 110px;
    flex-basis: 110px;
  }
}


/* ==================================================
   FINAL PROFILE HEADER FIX
   Keeps the avatar fully inside the silver panel
================================================== */

.profile-header-content {
  min-height: 190px !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 28px !important;
  padding: 28px 34px 30px !important;
  background:
    linear-gradient(
      180deg,
      rgba(223, 228, 220, 0.99),
      rgba(157, 168, 154, 0.99)
    ) !important;
}

.large-avatar {
  width: 132px !important;
  height: 132px !important;
  margin-top: 0 !important;
  flex: 0 0 132px !important;
  object-fit: cover !important;
  border: 5px solid #e8eee5 !important;
  border-radius: 22px !important;
  background: #d2d9cf !important;
  box-shadow:
    0 0 0 2px #54aa3b,
    0 6px 14px rgba(30, 42, 30, 0.32) !important;
}

.profile-main-info {
  width: 100% !important;
  padding-top: 4px !important;
}

.profile-name-row h1 {
  color: #182018 !important;
}

.profile-description {
  color: #364236 !important;
  font-size: 14px !important;
}

.profile-meta,
.profile-online {
  color: #536153 !important;
}

@media (max-width: 680px) {
  .profile-header-content {
    padding: 22px 20px 26px !important;
  }

  .large-avatar {
    width: 105px !important;
    height: 105px !important;
    flex-basis: 105px !important;
  }
}

/* ==================================================
   DARK CHARCOAL BLADES BACKGROUND
   Original mid-2000s console-dashboard styling
================================================== */

html {
  background: #111611 !important;
}

body {
  color: #d9ded7;
  background:
    radial-gradient(
      circle at 72% 5%,
      rgba(105, 190, 44, 0.18),
      transparent 24%
    ),
    radial-gradient(
      circle at 15% 35%,
      rgba(255, 255, 255, 0.04),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #202720 0%,
      #151b15 44%,
      #0d120d 100%
    ) !important;
  background-attachment: fixed !important;
}

body::before {
  opacity: 0.22 !important;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 5px
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02),
      transparent 25%,
      rgba(0, 0, 0, 0.16)
    ) !important;
}

.top-bar {
  color: #d9dfd7 !important;
  border-bottom-color: #080b08 !important;
  background:
    linear-gradient(
      180deg,
      #303930 0%,
      #1e251e 45%,
      #111711 100%
    ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.55) !important;
}

.site-header {
  border-bottom-color: #151c15 !important;
  background:
    radial-gradient(
      circle at 77% 27%,
      rgba(155, 233, 71, 0.25),
      transparent 24%
    ),
    linear-gradient(
      180deg,
      #414a41 0%,
      #2d352d 48%,
      #1a211a 100%
    ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -20px 42px rgba(0, 0, 0, 0.28),
    0 7px 18px rgba(0, 0, 0, 0.45) !important;
}

.site-logo,
.logo-name strong,
.header-text p {
  color: #f2f5ef !important;
}

.logo-name span,
.header-text span {
  color: #8fd74c !important;
}

.header-text {
  border-left-color: rgba(255, 255, 255, 0.13) !important;
}

.logo-circle {
  border-color: #72c934 !important;
  color: #54ac27 !important;
  background:
    radial-gradient(
      circle at 35% 28%,
      #ffffff 0%,
      #d8ddd5 43%,
      #808a7d 100%
    ) !important;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.82),
    inset 0 -10px 20px rgba(20, 28, 20, 0.35),
    0 0 18px rgba(105, 197, 48, 0.22),
    0 5px 12px rgba(0, 0, 0, 0.5) !important;
}

.main-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-bottom-color: #080c08 !important;
  background:
    linear-gradient(
      180deg,
      #495249 0%,
      #303830 45%,
      #1d241d 100%
    ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 5px 14px rgba(0, 0, 0, 0.5) !important;
}

.main-nav a {
  color: #e1e6df !important;
  border-right-color: rgba(0, 0, 0, 0.42) !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.75);
}

.main-nav a:first-child {
  border-left-color: rgba(0, 0, 0, 0.42) !important;
}

.main-nav a:hover,
.main-nav a.active {
  color: #10200e !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) !important;
  background:
    linear-gradient(
      180deg,
      #c8ff7b 0%,
      #79d530 44%,
      #3a9418 100%
    ) !important;
}

.page-layout,
.profile-page,
.auth-page {
  position: relative;
}

.content-section,
.sidebar-section,
.profile-section,
.auth-box {
  border-color: #111711 !important;
  background:
    linear-gradient(
      180deg,
      #3b433b 0%,
      #252d25 58%,
      #171d17 100%
    ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -18px 28px rgba(0, 0, 0, 0.18),
    0 8px 22px rgba(0, 0, 0, 0.48) !important;
}

.section-heading,
.sidebar-heading,
.profile-section-heading {
  border-bottom-color: rgba(0, 0, 0, 0.52) !important;
  background:
    linear-gradient(
      180deg,
      #bff66f 0%,
      #6bc72a 50%,
      #318014 100%
    ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 -10px 18px rgba(23, 72, 11, 0.3) !important;
}

.section-heading h2,
.sidebar-heading,
.profile-section-heading h1,
.profile-section-heading h2 {
  color: #11200f !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.36);
}

.post,
.review,
.activity-item,
.about-list div,
.forum-list li,
.profile-links,
.site-stats div,
.profile-stats div {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.post,
.review,
.activity-item {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.035),
      rgba(0, 0, 0, 0.04)
    ) !important;
}

.post:hover,
.forum-list li:hover {
  background:
    linear-gradient(
      90deg,
      rgba(112, 202, 44, 0.22),
      rgba(255, 255, 255, 0.035)
    ) !important;
}

.game-item h3,
.post-content h3 a,
.review h3,
.current-game-info h3,
.activity-item p strong,
.about-list dd,
.profile-stats strong,
.site-stats strong {
  color: #edf1eb !important;
}

.game-item p,
.post-content p,
.post-details,
.review p,
.current-game-info p,
.current-game-info > span,
.activity-item p,
.activity-item blockquote,
.activity-item span,
.about-list dt,
.profile-stats span,
.site-stats span,
.forum-list span,
.forum-list a,
.popular-list a,
.side-links a,
.profile-bio,
.profile-details span {
  color: #aeb8ac !important;
}

.profile-details strong,
.activity-item p a,
.section-heading a,
.profile-section-heading a,
.sidebar-bottom-link,
.auth-switch a,
.auth-back {
  color: #8edc4b !important;
}

.feature {
  border-color: #101610 !important;
  background:
    linear-gradient(
      180deg,
      #414a41 0%,
      #262e26 58%,
      #171d17 100%
    ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -16px 28px rgba(0, 0, 0, 0.18),
    0 10px 26px rgba(0, 0, 0, 0.5) !important;
}

.feature-image::after {
  background:
    linear-gradient(
      90deg,
      transparent 63%,
      rgba(35, 43, 35, 0.92)
    ) !important;
}

.feature-info h1 {
  color: #f2f5ef !important;
}

.feature-info > p:not(.small-heading) {
  color: #b6c0b3 !important;
}

.profile-header {
  border-color: #0d120d !important;
  background:
    linear-gradient(
      180deg,
      #3d463d,
      #252d25
    ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 28px rgba(0, 0, 0, 0.55) !important;
}

.profile-banner {
  background:
    radial-gradient(
      circle at 72% 40%,
      rgba(151, 234, 72, 0.72),
      transparent 18%
    ),
    linear-gradient(
      120deg,
      #52624f 0%,
      #315e24 45%,
      #122510 100%
    ) !important;
}

.profile-header-content {
  background:
    linear-gradient(
      180deg,
      #d9ded6 0%,
      #a6aea3 60%,
      #8e978c 100%
    ) !important;
}

.profile-tabs {
  border-color: #0e140e !important;
  background:
    linear-gradient(
      180deg,
      #cbd1c8 0%,
      #929b8f 55%,
      #727b70 100%
    ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 7px 18px rgba(0, 0, 0, 0.42) !important;
}

.profile-tabs a {
  color: #202820 !important;
  border-right-color: rgba(18, 25, 18, 0.35) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.profile-tabs a:hover,
.profile-tabs a.active {
  color: #10200e !important;
  background:
    linear-gradient(
      180deg,
      #c8ff7d 0%,
      #72d12b 48%,
      #318015 100%
    ) !important;
}

.edit-avatar-area {
  border-color: #111711 !important;
  background:
    linear-gradient(
      180deg,
      #424a42,
      #272e27
    ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -14px 26px rgba(0, 0, 0, 0.2) !important;
}

.edit-avatar-controls p,
.edit-profile-form small {
  color: #aeb8ac !important;
}

.edit-profile-form label:not(.avatar-upload-button),
.auth-box label {
  color: #dde3da !important;
}

.edit-profile-form input:not([type="file"]),
.edit-profile-form textarea,
.auth-box input,
.auth-box textarea {
  color: #eef2ec !important;
  border-color: #596359 !important;
  background:
    linear-gradient(
      180deg,
      #2b332b,
      #1c231c
    ) !important;
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.58) !important;
}

.edit-profile-form input::placeholder,
.edit-profile-form textarea::placeholder,
.auth-box input::placeholder,
.auth-box textarea::placeholder {
  color: #7f8b7d !important;
}

.auth-box h1,
.auth-intro,
.auth-switch {
  color: #eef2ec !important;
}

footer {
  color: #b5beb2 !important;
  border-top-color: #090d09 !important;
  background:
    linear-gradient(
      180deg,
      #2c342c,
      #151b15
    ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
}

.footer-inner {
  color: #adb7aa !important;
}

/* ==================================================
   FINAL NAVIGATION FIX
   Clean, evenly spaced blade tabs
================================================== */

.main-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  min-height: 78px !important;
  padding: 0 !important;
  overflow: visible !important;
  border-top: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-bottom: 1px solid #080c08 !important;
  background:
    linear-gradient(
      180deg,
      #3b443b 0%,
      #242c24 52%,
      #151b15 100%
    ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 5px 14px rgba(0, 0, 0, 0.52) !important;
}

.nav-inner {
  width: min(1180px, calc(100% - 42px)) !important;
  min-height: 78px !important;
  margin: 0 auto !important;
  padding: 0 10px 10px !important;
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: 2px !important;
  overflow: visible !important;
}

.main-nav a {
  position: relative !important;
  z-index: 1 !important;
  min-width: 0 !important;
  width: 100% !important;
  height: 66px !important;
  margin: 0 !important;
  padding: 24px 12px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border: 1px solid #7d877a !important;
  border-top-color: #d8ddd5 !important;
  border-bottom-color: #404940 !important;
  border-radius: 0 0 24px 24px !important;
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%) !important;
  color: #263026 !important;
  background:
    radial-gradient(
      ellipse at 50% 2%,
      rgba(255, 255, 255, 0.92),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      #f5f7f3 0%,
      #d7dcd4 34%,
      #aeb6ab 72%,
      #899286 100%
    ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -11px 20px rgba(45, 56, 44, 0.14),
    0 5px 9px rgba(0, 0, 0, 0.3) !important;
  text-align: center !important;
  text-decoration: none !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 1.6px !important;
  line-height: 1 !important;
  transform: none !important;
  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    color 0.15s ease !important;
}

.main-nav a::after {
  content: "" !important;
  position: absolute !important;
  inset: 1px 12px auto !important;
  height: 9px !important;
  border-radius: 0 0 50% 50% !important;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0)
    ) !important;
  pointer-events: none !important;
}

.main-nav a:first-child {
  border-left: 1px solid #7d877a !important;
}

.main-nav a:hover {
  z-index: 3 !important;
  color: #14240f !important;
  transform: translateY(4px) !important;
  filter: brightness(1.04) !important;
  background:
    radial-gradient(
      ellipse at 50% 2%,
      rgba(255, 255, 255, 0.9),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      #d5ff99 0%,
      #9ce552 33%,
      #5cbc25 70%,
      #347d17 100%
    ) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.48) !important;
}

.main-nav a.active {
  z-index: 4 !important;
  color: #10200d !important;
  transform: translateY(8px) !important;
  background:
    radial-gradient(
      ellipse at 50% 1%,
      rgba(255, 255, 255, 0.95),
      transparent 35%
    ),
    linear-gradient(
      180deg,
      #d9ff9d 0%,
      #9ce64e 31%,
      #58b822 68%,
      #2c7114 100%
    ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -14px 22px rgba(18, 70, 5, 0.33),
    0 0 18px rgba(116, 218, 47, 0.28),
    0 7px 12px rgba(0, 0, 0, 0.34) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

@media (max-width: 760px) {
  .main-nav {
    min-height: 68px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  .nav-inner {
    width: max-content !important;
    min-width: 100% !important;
    min-height: 68px !important;
    padding: 0 8px 8px !important;
    display: flex !important;
    gap: 2px !important;
  }

  .main-nav a {
    width: 138px !important;
    min-width: 138px !important;
    height: 58px !important;
    padding: 21px 10px 12px !important;
    font-size: 10px !important;
    letter-spacing: 1.1px !important;
  }

  .main-nav a.active {
    transform: translateY(6px) !important;
  }
}

/* ==================================================
   GAME SEARCH PAGE
   ================================================== */

.games-page {
  padding-top: 28px;
  padding-bottom: 55px;
}


/* Hero */

.games-hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  margin-bottom: 22px;
  padding: 30px 34px;
  border: 1px solid #4f574f;
  border-radius: 22px 22px 4px 4px;
  background:
    radial-gradient(
      circle at 85% 30%,
      rgba(134, 211, 64, 0.22),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #242a25 0%,
      #121713 62%,
      #0b0f0c 100%
    );
  color: #ffffff;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.32),
    inset 0 1px rgba(255, 255, 255, 0.07);
}


.games-hero-copy {
  max-width: 720px;
}


.games-hero .small-heading {
  margin: 0 0 8px;
  color: #8edf45;
  letter-spacing: 1.5px;
}


.games-hero h1 {
  margin: 0 0 10px;
  font-size: 36px;
  line-height: 1.05;
}


.games-hero p {
  margin: 0;
  max-width: 650px;
  color: #c8cec9;
  line-height: 1.55;
}


.games-hero-stat {
  flex: 0 0 190px;
  padding: 18px;
  border: 1px solid #596259;
  border-radius: 6px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.09),
      rgba(255, 255, 255, 0.025)
    );
  text-align: center;
}


.games-hero-stat span,
.games-hero-stat small {
  display: block;
}


.games-hero-stat span {
  margin-bottom: 5px;
  color: #9ca59d;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1.4px;
}


.games-hero-stat strong {
  display: block;
  margin-bottom: 4px;
  color: #91df4a;
  font-size: 20px;
}


.games-hero-stat small {
  color: #c9ceca;
  font-size: 11px;
}


/* Search panel */

.game-search-panel {
  margin-bottom: 24px;
  padding: 25px 28px 20px;
  border: 1px solid #747b74;
  border-radius: 4px;
  background:
    linear-gradient(
      180deg,
      #f4f5f2 0%,
      #d8dcd7 100%
    );
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.24),
    inset 0 1px #ffffff;
}


.game-search-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 19px;
}


.game-search-heading .small-heading {
  margin: 0 0 2px;
}


.game-search-heading h2 {
  margin: 0;
  color: #242924;
  font-size: 25px;
}


.game-search-platform {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid #427027;
  border-radius: 14px;
  background:
    linear-gradient(
      180deg,
      #9be557,
      #55a328
    );
  color: #10210d;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.55);
}


#game-search-form label {
  display: block;
  margin-bottom: 7px;
  color: #313731;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


.game-search-row {
  display: flex;
  gap: 9px;
}


.game-search-row input {
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #626a62;
  border-radius: 3px;
  outline: none;
  background: #ffffff;
  color: #222722;
  font: inherit;
  box-shadow:
    inset 0 1px 4px rgba(0, 0, 0, 0.14);
}


.game-search-row input:focus {
  border-color: #5fae2e;
  box-shadow:
    0 0 0 3px rgba(109, 191, 56, 0.18),
    inset 0 1px 4px rgba(0, 0, 0, 0.12);
}


.game-search-row button {
  min-width: 125px;
  padding: 0 22px;
  border: 1px solid #386723;
  border-radius: 3px;
  background:
    linear-gradient(
      180deg,
      #9ae557 0%,
      #69bc35 48%,
      #438c22 100%
    );
  color: #12210e;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.8px;
  cursor: pointer;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.65),
    0 2px 3px rgba(0, 0, 0, 0.2);
}


.game-search-row button:hover {
  filter: brightness(1.08);
}


.game-search-row button:active {
  transform: translateY(1px);
}


.game-search-help {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 9px;
  color: #666d66;
  font-size: 10px;
}


.form-message {
  min-height: 20px;
  margin: 13px 0 0;
  color: #325f22;
  font-size: 12px;
  font-weight: bold;
}


/* Results */

.game-results-section {
  overflow: hidden;
  border-radius: 22px 22px 4px 4px;
}


.results-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}


.game-search-results {
  display: grid;
  grid-template-columns:
    repeat(
      auto-fill,
      minmax(310px, 1fr)
    );
  gap: 15px;
  padding: 20px;
  border: 1px solid #5e655e;
  border-top: none;
  background:
    linear-gradient(
      180deg,
      #999e99 0%,
      #828882 100%
    );
}


/* Empty state */

.game-search-empty {
  grid-column: 1 / -1;
  padding: 45px 20px;
  text-align: center;
  color: #f3f4f3;
}


.game-search-empty-icon {
  display: flex;
  width: 58px;
  height: 58px;
  margin: 0 auto 13px;
  align-items: center;
  justify-content: center;
  border: 2px solid #9ddf5d;
  border-radius: 50%;
  background:
    linear-gradient(
      180deg,
      #5b655b,
      #343a34
    );
  color: #a5ec62;
  font-size: 28px;
  font-weight: bold;
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.3);
}


.game-search-empty h3 {
  margin: 0 0 5px;
  font-size: 17px;
}


.game-search-empty p {
  margin: 0;
  color: #d5d8d5;
}


/* Game cards */

.game-search-card {
  display: flex;
  min-width: 0;
  min-height: 235px;
  border: 1px solid #5c635c;
  border-radius: 4px;
  background:
    linear-gradient(
      180deg,
      #f6f7f4 0%,
      #dadeda 100%
    );
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px #ffffff;
  overflow: hidden;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}


.game-search-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 13px rgba(0, 0, 0, 0.38),
    inset 0 1px #ffffff;
}


.game-search-cover {
  position: relative;
  flex: 0 0 145px;
  min-height: 235px;
  border-right: 1px solid #656b65;
  background: #202520;
}


.game-search-cover img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 235px;
  object-fit: cover;
}


.game-cover-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 235px;
  align-items: center;
  justify-content: center;
  color: #aeb5ae;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
}


.game-search-info {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  padding: 16px;
}


.game-search-info h3 {
  margin: 0 0 6px;
  color: #202620;
  font-size: 18px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}


.game-search-info p {
  margin: 3px 0;
  color: #4e554e;
  font-size: 11px;
  line-height: 1.4;
}


.game-search-info strong {
  color: #272d27;
}


.game-search-date {
  margin-bottom: 7px !important;
  color: #6a716a !important;
  font-weight: bold;
}


.game-result-overview {
  display: -webkit-box;
  margin-top: 8px !important;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}


.game-card-actions {
  margin-top: auto;
  padding-top: 13px;
}


.game-card-actions .main-button {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #376423;
  border-radius: 3px;
  background:
    linear-gradient(
      180deg,
      #96df54 0%,
      #55a12b 100%
    );
  color: #10200d;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.55);
}


.game-card-actions .main-button:hover {
  filter: brightness(1.08);
}


.game-card-actions button:disabled {
  opacity: 0.68;
  cursor: default;
}


/* Bottom information box */

.game-search-about {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  margin-top: 22px;
  padding: 20px 24px;
  border: 1px solid #4c544c;
  background:
    linear-gradient(
      180deg,
      #252b26,
      #151a16
    );
  color: #d5d9d5;
}


.game-search-about strong {
  display: block;
  margin-bottom: 4px;
  color: #8eda4c;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}


.game-search-about p {
  max-width: 750px;
  margin: 0;
  color: #bdc4bd;
  font-size: 11px;
  line-height: 1.5;
}


.game-search-about a {
  flex-shrink: 0;
  padding: 9px 13px;
  border: 1px solid #6b746b;
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
  text-decoration: none;
}


.game-search-about a:hover {
  border-color: #8dd84d;
  color: #9be15c;
}


/* Mobile */

@media (max-width: 760px) {
  .games-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 25px;
  }


  .games-hero h1 {
    font-size: 30px;
  }


  .games-hero-stat {
    flex-basis: auto;
  }


  .game-search-heading {
    align-items: flex-start;
  }


  .game-search-row {
    flex-direction: column;
  }


  .game-search-row button {
    min-height: 43px;
  }


  .game-search-help {
    flex-direction: column;
    gap: 3px;
  }


  .game-search-results {
    grid-template-columns: 1fr;
    padding: 13px;
  }


  .game-search-about {
    align-items: flex-start;
    flex-direction: column;
  }
}


@media (max-width: 480px) {
  .game-search-panel {
    padding: 20px;
  }


  .game-search-heading {
    flex-direction: column;
    gap: 10px;
  }


  .game-search-card {
    min-height: 215px;
  }


  .game-search-cover {
    flex-basis: 112px;
    min-height: 215px;
  }


  .game-search-cover img,
  .game-cover-placeholder {
    min-height: 215px;
  }


  .game-search-info {
    padding: 13px;
  }


  .game-search-info h3 {
    font-size: 16px;
  }
}

/* ==================================================
   POLISHED REVIEWS AND CLIPS
   ================================================== */

.section-heading-title {
  display: flex;
  align-items: center;
  gap: 10px;
}


.section-count {
  padding: 3px 8px;
  border: 1px solid rgba(24, 54, 18, 0.45);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.28);
  color: #173017;
  font-size: 9px;
  font-weight: bold;
}


/* Review form */

.review-form {
  position: relative;
  margin: 18px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid #111711;
  border-radius: 18px 7px 18px 7px;
  background:
    radial-gradient(
      circle at 90% 0,
      rgba(139, 219, 72, 0.15),
      transparent 32%
    ),
    linear-gradient(
      145deg,
      #272d28,
      #151a16 68%
    );
  color: #e8ede7;
  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.35),
    inset 0 1px rgba(255, 255, 255, 0.07);
}


.review-form h3 {
  color: #f3f6f2;
}


.review-form label {
  color: #aeb7ae;
}


.review-form input,
.review-form textarea,
.review-form select {
  border: 1px solid #596359;
  border-radius: 9px;
  background:
    linear-gradient(
      180deg,
      #f8faf7,
      #dce1da
    );
}


.review-form input:focus,
.review-form textarea:focus,
.review-form select:focus {
  border-color: #75c946;
  outline: none;
  box-shadow:
    0 0 0 3px rgba(117, 201, 70, 0.2);
}


.game-review-list {
  display: grid;
  gap: 15px;
  padding: 18px;
}


.game-review-card {
  position: relative;
  display: grid;
  grid-template-columns: 82px 1fr;
  overflow: hidden;
  border: 1px solid #111711;
  border-radius: 18px 7px 18px 7px;
  background:
    linear-gradient(
      145deg,
      #282e29,
      #171c18
    );
  color: #e9ede8;
  box-shadow:
    0 4px 11px rgba(0, 0, 0, 0.3);
}


.game-review-score {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(255, 255, 255, 0.42),
      transparent 30%
    ),
    linear-gradient(
      180deg,
      #a3e760,
      #57ad2c 60%,
      #347a1b
    );
  color: #10200d;
  font-size: 34px;
  font-weight: bold;
  text-shadow:
    0 1px rgba(255, 255, 255, 0.35);
}


.game-review-score::after {
  content: "/10";
  position: absolute;
  right: 8px;
  bottom: 7px;
  font-size: 8px;
  letter-spacing: 0.4px;
}


.game-review-content {
  padding: 17px 20px;
}


.game-review-content h3 {
  margin: 2px 0 8px;
  color: #ffffff;
  font-size: 18px;
}


.game-review-content p {
  color: #cbd1cb;
  line-height: 1.6;
}


.game-review-user {
  display: flex;
  align-items: center;
  gap: 10px;
}


.game-review-user img {
  width: 38px;
  height: 38px;
  border: 2px solid #70bf42;
  border-radius: 9px;
  object-fit: cover;
}


.game-review-user strong {
  color: #9fe365;
}


.game-review-user span {
  color: #8f998f;
}


/* Clip form */

.clip-upload-form {
  margin: 18px;
  padding: 22px;
  border: 1px solid #111711;
  border-radius: 22px 8px 22px 8px;
  background:
    radial-gradient(
      circle at 90% 0,
      rgba(131, 216, 65, 0.18),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      #292f2a,
      #131815
    );
  color: #e9eee8;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.38),
    inset 0 1px rgba(255, 255, 255, 0.07);
}


.clip-form-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}


.clip-form-header h3 {
  margin: 2px 0 0;
  color: #ffffff;
  font-size: 23px;
}


.clip-close-button {
  width: 32px;
  height: 32px;
  border: 1px solid #596259;
  border-radius: 50%;
  background: #171c18;
  color: #bfc7bf;
  font-size: 20px;
  cursor: pointer;
}


.clip-close-button:hover {
  border-color: #7bc84d;
  color: #9be166;
}


.clip-field {
  display: block;
  margin-bottom: 17px;
}


.clip-field > span,
.clip-source-field legend {
  display: block;
  margin-bottom: 7px;
  color: #b9c1b9;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}


.clip-field input,
.clip-field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #606960;
  border-radius: 9px;
  outline: none;
  background:
    linear-gradient(
      180deg,
      #fafbf9,
      #dce1da
    );
  color: #222722;
  font: inherit;
}


.clip-field input:focus,
.clip-field textarea:focus {
  border-color: #79ca4b;
  box-shadow:
    0 0 0 3px rgba(121, 202, 75, 0.2);
}


.clip-source-field {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}


.clip-source-options {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 10px;
}


.clip-source-option {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px;
  border: 1px solid #596259;
  border-radius: 12px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.025)
    );
  cursor: pointer;
}


.clip-source-option:has(input:checked) {
  border-color: #79cb49;
  background:
    linear-gradient(
      180deg,
      rgba(132, 216, 73, 0.22),
      rgba(68, 135, 37, 0.12)
    );
  box-shadow:
    0 0 0 2px rgba(121, 203, 73, 0.13);
}


.clip-source-option input {
  accent-color: #72c747;
}


.clip-source-option strong,
.clip-source-option small {
  display: block;
}


.clip-source-option strong {
  color: #f3f6f2;
  font-size: 12px;
}


.clip-source-option small {
  margin-top: 2px;
  color: #9fa89f;
  font-size: 9px;
}


#clip-video-file {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}


.clip-file-drop {
  display: flex;
  min-height: 130px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 2px dashed #657065;
  border-radius: 15px;
  background:
    rgba(255, 255, 255, 0.035);
  text-align: center;
  cursor: pointer;
}


.clip-file-drop:hover {
  border-color: #7ed04f;
  background:
    rgba(126, 208, 79, 0.08);
}


.clip-file-icon {
  display: flex;
  width: 44px;
  height: 44px;
  margin-bottom: 9px;
  align-items: center;
  justify-content: center;
  border: 1px solid #73c444;
  border-radius: 50%;
  background:
    linear-gradient(
      180deg,
      #8fda57,
      #458f24
    );
  color: #10200d;
  font-size: 15px;
}


.clip-file-drop strong {
  color: #e9ede8;
}


.clip-file-drop small {
  margin-top: 4px;
  color: #98a298;
}


.clip-file-preview {
  display: block;
  width: 100%;
  max-height: 430px;
  margin-top: 13px;
  border: 1px solid #596259;
  border-radius: 12px;
  background: #050705;
}


.clip-upload-progress {
  margin: 16px 0;
}


.clip-upload-progress-bar {
  height: 8px;
  overflow: hidden;
  border: 1px solid #485248;
  border-radius: 8px;
  background: #0c100d;
}


.clip-upload-progress-bar span {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #4a9827,
      #9ae45c,
      #4a9827
    );
  animation:
    clip-upload-moving 1.1s linear infinite;
}


.clip-upload-progress p {
  margin: 6px 0 0;
  color: #9fab9f;
  font-size: 10px;
}


@keyframes clip-upload-moving {
  from {
    transform: translateX(-110%);
  }

  to {
    transform: translateX(230%);
  }
}


.clip-form-actions {
  display: flex;
  gap: 10px;
}


.clip-submit-button,
.section-action-button {
  padding: 10px 15px;
  border: 1px solid #367321;
  border-radius: 10px;
  background:
    linear-gradient(
      180deg,
      #a0e65e,
      #59ad2d 60%,
      #377c1d
    );
  color: #10200d;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.6px;
  cursor: pointer;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.6),
    0 2px 5px rgba(0, 0, 0, 0.28);
}


.clip-cancel-button {
  padding: 10px 15px;
  border: 1px solid #626b62;
  border-radius: 10px;
  background:
    linear-gradient(
      180deg,
      #e8ebe6,
      #aeb6ad
    );
  color: #293029;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
}


/* Clip cards */

.game-clip-list {
  display: grid;
  grid-template-columns:
    repeat(
      auto-fit,
      minmax(300px, 1fr)
    );
  gap: 18px;
  padding: 18px;
}


.game-clip-card {
  overflow: hidden;
  border: 1px solid #111711;
  border-radius: 21px 8px 21px 8px;
  background:
    linear-gradient(
      145deg,
      #282e29,
      #151a16
    );
  color: #e9ede8;
  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.34);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}


.game-clip-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.42);
}


.game-clip-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050705;
}


.game-clip-media iframe,
.game-clip-media video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}


.clip-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background:
    rgba(12, 17, 13, 0.83);
  color: #9ee167;
  font-size: 8px;
  font-weight: bold;
  letter-spacing: 0.7px;
  backdrop-filter: blur(5px);
}


.game-clip-info {
  padding: 15px 16px 17px;
}


.game-clip-author {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 12px;
}


.game-clip-author img {
  width: 34px;
  height: 34px;
  border: 2px solid #65b53b;
  border-radius: 9px;
  object-fit: cover;
}


.game-clip-author strong,
.game-clip-author span {
  display: block;
}


.game-clip-author strong {
  color: #9ee166;
  font-size: 11px;
}


.game-clip-author span {
  margin-top: 2px;
  color: #8e988e;
  font-size: 9px;
}


.game-clip-info h3 {
  margin: 0 0 7px;
  color: #ffffff;
  font-size: 17px;
}


.game-clip-info p {
  margin: 0 0 13px;
  color: #c4cbc4;
  line-height: 1.5;
  white-space: pre-wrap;
}


.game-clip-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}


.game-clip-actions a {
  color: #91db5c;
  font-size: 9px;
  font-weight: bold;
  text-decoration: none;
}


.delete-clip-button {
  border: 0;
  background: transparent;
  color: #c78585;
  font-size: 9px;
  font-weight: bold;
  cursor: pointer;
}


.delete-clip-button:hover {
  color: #eea1a1;
}


.clips-empty-state {
  grid-column: 1 / -1;
  padding: 45px 20px;
  text-align: center;
}


.clips-empty-icon {
  display: flex;
  width: 56px;
  height: 56px;
  margin: 0 auto 13px;
  align-items: center;
  justify-content: center;
  border: 2px solid #71c146;
  border-radius: 50%;
  background:
    linear-gradient(
      180deg,
      #3a433a,
      #171c18
    );
  color: #94dc5f;
}


.clips-empty-state h3 {
  margin: 0 0 5px;
  color: #eef2ed;
}


.clips-empty-state p {
  margin: 0;
  color: #9fa79f;
}


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


  .game-review-score {
    font-size: 26px;
  }


  .clip-source-options {
    grid-template-columns: 1fr;
  }


  .game-clip-list {
    grid-template-columns: 1fr;
    padding: 12px;
  }


  .clip-upload-form,
  .review-form {
    margin: 12px;
    padding: 17px;
  }
}


/* ==================================================
   FINAL REVIEW FORM
   Matches the Add a Clip panel
   ================================================== */

.review-form {
  display: block;
  margin: 18px;
  padding: 24px;
  border: 1px solid #111711;
  border-radius: 22px 8px 22px 8px;
  background:
    radial-gradient(
      circle at 92% 0,
      rgba(132, 216, 73, 0.18),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      #292f2a,
      #131815
    );
  color: #e9eee8;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.38),
    inset 0 1px rgba(255, 255, 255, 0.07);
}


.review-form[hidden] {
  display: none;
}


.review-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}


.review-form-header .small-heading {
  margin: 0 0 6px;
  color: #69c43a;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 2px;
}


.review-form-header h3 {
  margin: 0;
  color: #ffffff;
  font-size: 23px;
  line-height: 1.2;
}


.review-form-description {
  max-width: 520px;
  margin: 7px 0 0;
  color: #a8b1a8;
  font-size: 11px;
  line-height: 1.5;
}


.review-rating-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 15px 16px;
  border: 1px solid #596259;
  border-radius: 13px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.025)
    );
}


.review-rating-panel strong,
.review-rating-panel small {
  display: block;
}


.review-rating-panel strong {
  color: #f2f5f1;
  font-size: 12px;
}


.review-rating-panel small {
  margin-top: 3px;
  color: #98a298;
  font-size: 9px;
}


.review-rating-field {
  display: block;
  flex: 0 0 auto;
  margin: 0;
}


.review-rating-field select {
  min-width: 125px;
  padding: 11px 34px 11px 13px;
  border: 1px solid #75c747;
  border-radius: 10px;
  outline: none;
  background:
    linear-gradient(
      180deg,
      #f8faf7,
      #dce1da
    );
  color: #202620;
  font: inherit;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.8),
    0 0 0 2px rgba(117, 199, 71, 0.08);
}


.review-field {
  display: block;
  width: 100%;
  margin: 0 0 18px;
}


.review-field > span {
  display: block;
  margin-bottom: 7px;
  color: #b9c1b9;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}


.review-field input,
.review-field textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 13px;
  border: 1px solid #606960;
  border-radius: 10px;
  outline: none;
  background:
    linear-gradient(
      180deg,
      #fafbf9,
      #dce1da
    );
  color: #222722;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
}


.review-field textarea {
  min-height: 155px;
  resize: vertical;
}


.review-field input:focus,
.review-field textarea:focus,
.review-rating-field select:focus {
  border-color: #79ca4b;
  box-shadow:
    0 0 0 3px rgba(121, 202, 75, 0.2);
}


.review-field input::placeholder,
.review-field textarea::placeholder {
  color: #7e887e;
}


.review-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 3px;
}


.review-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}


.review-submit-button {
  padding: 11px 17px;
  border: 1px solid #367321;
  border-radius: 10px;
  background:
    linear-gradient(
      180deg,
      #a0e65e,
      #59ad2d 60%,
      #377c1d
    );
  color: #10200d;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.7px;
  cursor: pointer;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.6),
    0 2px 5px rgba(0, 0, 0, 0.28);
}


.review-submit-button:hover {
  filter: brightness(1.08);
}


.review-delete-button {
  padding: 11px 17px;
  border: 1px solid #744444;
  border-radius: 10px;
  background:
    linear-gradient(
      180deg,
      #4a3333,
      #2b1e1e
    );
  color: #efb3b3;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.7px;
  cursor: pointer;
}


.review-delete-button:hover {
  border-color: #a45a5a;
  color: #ffd0d0;
}


.review-submit-button:disabled,
.review-delete-button:disabled {
  cursor: wait;
  opacity: 0.6;
}


.review-character-note {
  color: #8e988e;
  font-size: 9px;
}


.review-form .form-message {
  margin: 14px 0 0;
  min-height: 16px;
  color: #9fe166;
  font-size: 10px;
}


@media (max-width: 650px) {
  .review-form {
    margin: 12px;
    padding: 18px;
  }


  .review-rating-panel {
    align-items: flex-start;
    flex-direction: column;
  }


  .review-rating-field,
  .review-rating-field select {
    width: 100%;
  }


  .review-form-footer {
    align-items: flex-start;
    flex-direction: column;
  }


  .review-form-actions {
    width: 100%;
  }


  .review-submit-button,
  .review-delete-button {
    flex: 1;
  }
}

/* ==================================================
   SYNCED PROFILE REVIEWS, CLIPS AND ACTIVITY
   ================================================== */

.profile-review-list,
.profile-clip-list {
  display: grid;
  gap: 14px;
  padding: 18px;
}


.profile-review-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  overflow: hidden;
  border: 1px solid #111711;
  border-radius: 17px 6px 17px 6px;
  background:
    linear-gradient(
      145deg,
      #282e29,
      #151a16
    );
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3);
}


.profile-review-score {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(
      180deg,
      #9ce359,
      #55a92b 60%,
      #337719
    );
  color: #10200d;
  font-size: 28px;
  font-weight: bold;
}


.profile-review-card-content,
.profile-clip-card-content {
  padding: 16px 18px;
}


.profile-review-card h3,
.profile-clip-card h3 {
  margin: 5px 0 8px;
  color: #ffffff;
  font-size: 17px;
}


.profile-review-card h3 a {
  color: inherit;
  text-decoration: none;
}


.profile-review-card p,
.profile-clip-card p {
  margin: 0 0 12px;
  color: #c3cbc3;
  line-height: 1.55;
  white-space: pre-wrap;
}


.profile-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  color: #8e998e;
  font-size: 9px;
  text-transform: uppercase;
}


.profile-card-meta span:last-child {
  color: #8ed55a;
}


.profile-card-link {
  color: #96dc61;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.6px;
  text-decoration: none;
}


.profile-clip-card {
  overflow: hidden;
  border: 1px solid #111711;
  border-radius: 20px 7px 20px 7px;
  background:
    linear-gradient(
      145deg,
      #282e29,
      #151a16
    );
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3);
}


.profile-clip-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050705;
}


.profile-clip-media iframe,
.profile-clip-media video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}


.profile-clip-media > span {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9px;
  background: rgba(9, 13, 10, 0.85);
  color: #96dd61;
  font-size: 8px;
  font-weight: bold;
}


.profile-clip-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #8e998e;
  font-size: 10px;
}


.profile-activity {
  padding: 14px 18px;
}


.profile-activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #c7cec7;
  text-decoration: none;
}


.profile-activity-item:last-child {
  border-bottom: 0;
}


.profile-activity-item:hover {
  color: #ffffff;
}


.profile-activity-icon {
  display: flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #5ca934;
  border-radius: 10px;
  background:
    linear-gradient(
      180deg,
      #80cd4a,
      #387c20
    );
  color: #10200d;
}


.profile-activity-item p {
  margin: 0 0 3px;
  line-height: 1.4;
}


.profile-activity-item p span {
  color: #96dc61;
}


.profile-activity-item small {
  color: #8e988e;
}


.profile-empty-state,
.profile-empty-message {
  margin: 0;
  padding: 22px;
  color: #aab2aa;
  line-height: 1.5;
}


.profile-section-heading > span {
  color: #295d20;
  font-size: 9px;
  font-weight: bold;
}


@media (min-width: 760px) {
  .profile-clip-list {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }
}


@media (max-width: 600px) {
  .profile-review-card {
    grid-template-columns: 55px 1fr;
  }

  .profile-review-score {
    font-size: 23px;
  }

  .profile-review-list,
  .profile-clip-list {
    padding: 12px;
  }
}

/* ==================================================
   PROFILE TABS + STAFF ROLES — FINAL
   ================================================== */

.profile-tabs {
  display: flex;
  gap: 3px;
  margin: 0 0 22px;
  padding: 7px 8px;
  overflow-x: auto;
  border: 1px solid #465046;
  border-radius: 18px 7px 18px 7px;
  background:
    radial-gradient(
      circle at 50% 0,
      rgba(255, 255, 255, 0.32),
      transparent 48%
    ),
    linear-gradient(
      180deg,
      #d5dbd2 0%,
      #9fa89d 48%,
      #7d877b 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -10px 18px rgba(32, 42, 32, 0.16),
    0 5px 14px rgba(0, 0, 0, 0.32);
  scrollbar-width: thin;
  scrollbar-color: #5db82f #4c554b;
}

.profile-tab-button {
  min-width: 128px;
  padding: 14px 21px 13px;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 13px 5px 13px 5px;
  color: #263026;
  background: rgba(255, 255, 255, 0.07);
  text-shadow: 0 1px rgba(255, 255, 255, 0.38);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.1px;
  cursor: pointer;
  transition:
    color 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.profile-tab-button:hover {
  color: #0d160d;
  border-color: rgba(49, 67, 48, 0.35);
  background: rgba(255, 255, 255, 0.22);
}

.profile-tab-button:focus-visible {
  outline: 3px solid rgba(134, 222, 72, 0.42);
  outline-offset: 2px;
}

.profile-tab-button.active {
  color: #10200d;
  border-color: #3b811f;
  background:
    radial-gradient(
      circle at 50% 0,
      rgba(255, 255, 255, 0.62),
      transparent 36%
    ),
    linear-gradient(
      180deg,
      #b5f27b 0%,
      #69c932 54%,
      #39891b 100%
    );
  text-shadow: 0 1px rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    inset 0 -7px 12px rgba(26, 79, 18, 0.18),
    0 2px 7px rgba(0, 0, 0, 0.28);
}

.profile-tab-panel {
  animation: profile-tab-fade 0.16s ease;
}

.profile-tab-panel[hidden] {
  display: none;
}

@keyframes profile-tab-fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-section-heading > span {
  color: #183c13;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.profile-name-with-role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.profile-name-with-role h1 {
  margin: 0;
}

.profile-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px 5px;
  border: 1px solid #33731e;
  border-radius: 11px 4px 11px 4px;
  color: #10200d;
  background:
    radial-gradient(
      circle at 50% 0,
      rgba(255, 255, 255, 0.58),
      transparent 38%
    ),
    linear-gradient(
      180deg,
      #a7eb64,
      #5db62f 58%,
      #347b1b
    );
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.68),
    0 2px 6px rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px rgba(255, 255, 255, 0.35);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.1px;
  line-height: 1;
}

.profile-role-badge[hidden] {
  display: none;
}

.profile-role-badge[data-role="co-creator"] {
  border-color: #616d61;
  color: #1e281e;
  background:
    radial-gradient(
      circle at 50% 0,
      rgba(255, 255, 255, 0.7),
      transparent 38%
    ),
    linear-gradient(
      180deg,
      #f0f3ed,
      #b2bbb0 58%,
      #707b6f
    );
}

.profile-role-badge[data-role="co-creator-dev"] {
  border-color: #33731e;
  color: #10200d;
  background:
    radial-gradient(
      circle at 50% 0,
      rgba(255, 255, 255, 0.58),
      transparent 38%
    ),
    linear-gradient(
      180deg,
      #a7eb64,
      #5db62f 58%,
      #347b1b
    );
}

.profile-staff-card {
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: 650px;
  margin: 15px 0;
  padding: 13px 15px;
  border: 1px solid #397c22;
  border-radius: 15px 5px 15px 5px;
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(138, 220, 75, 0.16),
      transparent 38%
    ),
    linear-gradient(
      145deg,
      rgba(40, 48, 41, 0.96),
      rgba(20, 25, 21, 0.96)
    );
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.07),
    0 4px 10px rgba(0, 0, 0, 0.25);
}

.profile-staff-card[hidden] {
  display: none;
}

.profile-staff-icon {
  display: flex;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid #36751f;
  border-radius: 50%;
  color: #10200d;
  background:
    radial-gradient(
      circle at 40% 28%,
      #c3f18c,
      #65b836 55%,
      #34731d
    );
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.7),
    0 2px 6px rgba(0, 0, 0, 0.35);
  font-size: 14px;
  font-weight: 900;
}

.profile-staff-card strong {
  display: block;
  margin-bottom: 3px;
  color: #9ee164;
  font-size: 9px;
  letter-spacing: 1.2px;
}

.profile-staff-card p {
  margin: 0;
  color: #c9d0c8;
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 650px) {
  .profile-tabs {
    padding: 5px;
  }

  .profile-tab-button {
    min-width: 108px;
    padding-right: 15px;
    padding-left: 15px;
  }

  .profile-name-with-role {
    align-items: flex-start;
  }

  .profile-staff-card {
    align-items: flex-start;
  }
}


/* ==================================================
   GAME SEARCH RESULTS
   ================================================== */

.game-result-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}


.game-platform-badge,
.compatibility-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 5px 10px;
  border-radius: 12px 4px 12px 4px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.8px;
  line-height: 1;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.45),
    0 2px 5px rgba(0, 0, 0, 0.28);
}


.game-platform-badge {
  border: 1px solid #5f6b60;
  color: #1f281f;
  background:
    linear-gradient(
      180deg,
      #f1f3ef,
      #aeb7ad 58%,
      #7a857a
    );
}


.game-platform-badge.original-xbox {
  border-color: #667467;
  color: #202a20;
  background:
    radial-gradient(
      circle at 50% 0,
      rgba(255, 255, 255, 0.7),
      transparent 38%
    ),
    linear-gradient(
      180deg,
      #edf2eb,
      #aeb9ad 58%,
      #6f7c70
    );
}


.compatibility-badge.compatible {
  position: relative;
  padding-left: 27px;
  border: 1px solid #397a22;
  color: #10210d;
  background:
    radial-gradient(
      circle at 50% 0,
      rgba(255, 255, 255, 0.62),
      transparent 38%
    ),
    linear-gradient(
      180deg,
      #b9f176,
      #65bf34 58%,
      #347b1b
    );
  text-shadow:
    0 1px rgba(255, 255, 255, 0.35);
}


.compatibility-badge.compatible::before {
  content: "✓";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #efffe7;
  background: #296717;
  font-size: 8px;
  transform: translateY(-50%);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.25);
}


.compatibility-badge.incompatible {
  border: 1px solid #716c5c;
  color: #ded9ca;
  background:
    linear-gradient(
      180deg,
      #555246,
      #323129 58%,
      #22221d
    );
}


.game-result-description {
  position: relative;
  max-width: 820px;
  max-height: 105px;
  margin: 14px 0 16px;
  padding: 13px 15px;
  overflow: hidden;
  border: 1px solid rgba(113, 130, 111, 0.36);
  border-radius: 13px 5px 13px 5px;
  color: #c5cec4;
  background:
    linear-gradient(
      145deg,
      rgba(43, 51, 44, 0.92),
      rgba(22, 27, 23, 0.95)
    );
  font-size: 11px;
  line-height: 1.65;
  white-space: normal;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.06);
}


.game-result-description::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 30px;
  pointer-events: none;
  background:
    linear-gradient(
      transparent,
      rgba(22, 27, 23, 0.98)
    );
}


.compatibility-note {
  margin: 0 0 15px;
  padding: 11px 13px;
  border-left: 4px solid #65ba35;
  border-radius: 4px 11px 11px 4px;
  color: #bdc7bc;
  background:
    rgba(107, 187, 58, 0.09);
  font-size: 10px;
  line-height: 1.55;
}


.compatibility-note strong {
  color: #96dd62;
  font-size: 9px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}


.game-search-result-info h2 {
  margin: 0 0 5px;
  color: #f1f4ef;
  font-size: 22px;
  line-height: 1.12;
}


.game-result-date,
.game-result-genres {
  margin: 4px 0;
  color: #929d92;
  font-size: 10px;
}


.game-result-genres {
  color: #9ed36e;
}


@media (max-width: 600px) {
  .game-result-badges {
    gap: 5px;
  }

  .game-platform-badge,
  .compatibility-badge {
    padding: 5px 8px;
    font-size: 8px;
  }

  .compatibility-badge.compatible {
    padding-left: 25px;
  }

  .game-result-description {
    max-height: 120px;
    font-size: 10px;
  }
}


/* ==================================================
   PUBLIC PROFILES, FOLLOWING, AND SEARCH
   ================================================== */

.site-search-form {
  width: min(470px, 100%);
  display: flex;
  gap: 8px;
}

.site-search-form input,
.archive-search-form input {
  min-width: 0;
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #737e72;
  border-radius: 15px 5px 15px 5px;
  outline: none;
  color: #eff4ed;
  background:
    linear-gradient(180deg, #3c443c, #1d231e);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.35),
    0 1px rgba(255, 255, 255, 0.2);
}

.site-search-form input::placeholder,
.archive-search-form input::placeholder {
  color: #aeb8ad;
}

.site-search-form input:focus,
.archive-search-form input:focus {
  border-color: #65bb38;
  box-shadow:
    0 0 0 3px rgba(96, 192, 52, 0.2),
    inset 0 2px 5px rgba(0, 0, 0, 0.35);
}

.site-search-form button,
.archive-search-form button,
.profile-follow-button {
  padding: 11px 16px;
  border: 1px solid #347b22;
  border-radius: 13px 5px 13px 5px;
  color: #10200d;
  background:
    linear-gradient(180deg, #baf17d, #5fbd33 58%, #347b1b);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.8px;
  cursor: pointer;
}

.profile-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-follow-button[data-state="following"] {
  color: #e8eee6;
  border-color: #5d695d;
  background:
    linear-gradient(180deg, #555e55, #2b322b 58%, #1a1f1a);
}

.profile-follow-stats {
  display: flex;
  gap: 9px;
  margin-top: 16px;
}

.profile-follow-stats button {
  min-width: 105px;
  padding: 9px 12px;
  border: 1px solid rgba(91, 112, 89, 0.35);
  border-radius: 12px 4px 12px 4px;
  color: #354235;
  background:
    linear-gradient(180deg, #f4f6f2, #c6cec3);
  cursor: pointer;
}

.profile-follow-stats strong,
.profile-follow-stats span {
  display: block;
}

.profile-follow-stats strong {
  color: #2f8e28;
  font-size: 16px;
}

.profile-follow-stats span {
  margin-top: 2px;
  color: #657164;
  font-size: 8px;
  font-weight: bold;
  letter-spacing: 0.7px;
}

.profile-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.profile-tag-list:empty {
  display: none;
}

.profile-tag-list a {
  padding: 6px 9px;
  border: 1px solid #4c8c34;
  border-radius: 11px 4px 11px 4px;
  color: #dff3d4;
  background:
    linear-gradient(180deg, #506348, #263122);
  text-decoration: none;
  font-size: 9px;
}

.follow-list-modal[hidden] {
  display: none;
}

.follow-list-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.follow-list-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 8, 0.72);
  backdrop-filter: blur(3px);
}

.follow-list-dialog {
  position: relative;
  z-index: 1;
  width: min(580px, 100%);
  max-height: min(680px, calc(100vh - 40px));
  overflow: hidden;
  border: 1px solid #667464;
  border-radius: 21px 7px 21px 7px;
  background:
    linear-gradient(180deg, #eff3ec, #bdc6ba);
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.5),
    inset 0 1px #ffffff;
}

.follow-list-header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background:
    linear-gradient(180deg, #b7ef7b, #60bd34 58%, #39851f);
}

.follow-list-header h2 {
  margin: 0;
  color: #153015;
  font-size: 13px;
  letter-spacing: 1px;
}

.follow-list-header button {
  width: 31px;
  height: 31px;
  border: 1px solid rgba(24, 55, 21, 0.4);
  border-radius: 50%;
  color: #183517;
  background: rgba(255, 255, 255, 0.34);
  font-size: 20px;
  cursor: pointer;
}

.follow-list-results {
  max-height: 585px;
  overflow-y: auto;
  padding: 12px;
}

.follow-list-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid rgba(74, 91, 72, 0.2);
  color: #293529;
  text-decoration: none;
}

.follow-list-item:last-child {
  border-bottom: 0;
}

.follow-list-item:hover {
  border-radius: 12px;
  background: rgba(121, 203, 70, 0.16);
}

.follow-list-item img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 2px solid #55a63b;
  border-radius: 13px;
}

.follow-list-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.follow-list-name-row span {
  padding: 4px 6px;
  border-radius: 8px 3px 8px 3px;
  color: #173016;
  background: #8bd750;
  font-size: 7px;
  font-weight: bold;
}

.follow-list-item p {
  margin: 6px 0 0;
  color: #667266;
  font-size: 10px;
  line-height: 1.4;
}

body.modal-open {
  overflow: hidden;
}

.search-page {
  padding-top: 28px;
  padding-bottom: 55px;
}

.search-hero {
  padding: 26px;
  border: 1px solid #778574;
  border-radius: 23px 8px 23px 8px;
  background:
    radial-gradient(circle at 85% 0, rgba(167, 235, 111, 0.32), transparent 35%),
    linear-gradient(145deg, #343d34, #171d18);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.12),
    0 7px 19px rgba(0, 0, 0, 0.32);
}

.search-hero h1 {
  margin: 0 0 19px;
  color: #f3f7f1;
  font-size: clamp(32px, 5vw, 48px);
}

.archive-search-form {
  display: flex;
  gap: 8px;
}

.archive-search-filters {
  display: flex;
  gap: 5px;
  margin-top: 17px;
  overflow-x: auto;
}

.archive-search-filters button {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid #5f695f;
  border-radius: 11px 4px 11px 4px;
  color: #d5ddd3;
  background:
    linear-gradient(180deg, #4b544b, #252c25);
  font-size: 8px;
  font-weight: bold;
  letter-spacing: 0.7px;
  cursor: pointer;
}

.archive-search-filters button.active {
  color: #11220e;
  border-color: #438527;
  background:
    linear-gradient(180deg, #baf17c, #61bf35 58%, #377e1d);
}

.archive-search-filters button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.archive-search-results {
  display: grid;
  gap: 22px;
  margin-top: 18px;
}

.search-result-section {
  overflow: hidden;
  border: 1px solid #697468;
  border-radius: 19px 6px 19px 6px;
  background:
    linear-gradient(180deg, #303731, #171c18);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.3);
}

.search-result-section .section-heading span {
  color: #20491d;
  font-size: 9px;
  font-weight: bold;
}

.search-people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.search-person-card {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  padding: 13px;
  border: 1px solid #4f594f;
  border-radius: 15px 5px 15px 5px;
  color: #dce3da;
  background:
    linear-gradient(145deg, #3a423a, #202621);
  text-decoration: none;
}

.search-person-card:hover {
  border-color: #63aa3e;
  transform: translateY(-1px);
}

.search-person-card img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border: 2px solid #5aad3d;
  border-radius: 14px;
}

.search-person-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.search-person-name h3 {
  margin: 0;
  color: #f0f4ee;
  font-size: 15px;
}

.search-person-name span {
  padding: 4px 6px;
  border-radius: 8px 3px 8px 3px;
  color: #10200d;
  background: #8ed651;
  font-size: 7px;
  font-weight: bold;
}

.search-person-card p {
  margin: 7px 0;
  color: #b8c2b7;
  font-size: 10px;
  line-height: 1.4;
}

.search-person-card small {
  color: #83bd5d;
  font-size: 8px;
}

.search-games-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.search-game-card {
  overflow: hidden;
  border: 1px solid #4f594f;
  border-radius: 14px 5px 14px 5px;
  color: #e6ece4;
  background:
    linear-gradient(145deg, #384038, #202520);
  text-decoration: none;
}

.search-game-card img,
.search-game-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #101410;
}

.search-game-placeholder {
  display: grid;
  place-items: center;
  color: #7f897f;
  font-size: 9px;
}

.search-game-card > div:last-child {
  padding: 10px;
}

.search-game-card span {
  color: #82c551;
  font-size: 7px;
  font-weight: bold;
}

.search-game-card h3 {
  margin: 5px 0;
  color: #eff3ed;
  font-size: 12px;
}

.search-game-card p {
  margin: 0;
  color: #9da79d;
  font-size: 8px;
}

.search-tags-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.search-tag-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px;
  border: 1px solid #4d584d;
  border-radius: 14px 5px 14px 5px;
  color: #dce5d9;
  background:
    linear-gradient(145deg, #364037, #202620);
  text-decoration: none;
}

.search-tag-card > span {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 10px 3px 10px 3px;
  color: #12250f;
  background: #84ce4d;
  font-size: 9px;
  font-weight: bold;
}

.search-tag-card strong {
  color: #edf2eb;
}

.search-tag-card p {
  margin: 5px 0 0;
  color: #aeb8ad;
  font-size: 9px;
}

.search-empty-state {
  padding: 40px 20px;
  border: 1px solid #687368;
  border-radius: 18px;
  color: #b9c2b8;
  background: #252b25;
  text-align: center;
}

@media (max-width: 850px) {
  .site-search-form {
    max-width: 420px;
  }

  .search-games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .header-inner {
    flex-direction: column;
    padding: 20px 0;
  }

  .site-search-form {
    width: 100%;
  }

  .profile-name-row {
    flex-direction: column;
  }

  .profile-follow-stats {
    width: 100%;
  }

  .profile-follow-stats button {
    flex: 1;
  }

  .archive-search-form {
    flex-direction: column;
  }

  .search-people-grid,
  .search-tags-grid {
    grid-template-columns: 1fr;
  }

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


/* ==================================================
   ARTICLES
   ================================================== */

.article-editor-page,
.article-page {
  padding-top: 30px;
  padding-bottom: 60px;
}


.article-editor-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.2fr)
    minmax(320px, 0.8fr);
  gap: 20px;
  align-items: start;
}


.article-editor-panel,
.article-preview-panel,
.published-article {
  overflow: hidden;
  border: 1px solid #687467;
  border-radius:
    22px 7px 22px 7px;
  background:
    linear-gradient(
      180deg,
      #eef2eb,
      #bbc5b8
    );
  box-shadow:
    0 8px 25px
      rgba(0, 0, 0, 0.34),
    inset 0 1px #ffffff;
}


.article-editor-panel {
  padding: 22px;
}


.article-editor-heading,
.article-preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}


.article-editor-heading {
  margin-bottom: 22px;
}


.article-editor-heading h1 {
  margin: 3px 0 0;
  color: #263426;
  font-size: 27px;
}


.article-status-badge {
  padding: 7px 10px;
  border: 1px solid #687467;
  border-radius:
    11px 4px 11px 4px;
  color: #dce4da;
  background:
    linear-gradient(
      180deg,
      #596259,
      #2c332c
    );
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.8px;
}


.article-status-badge[data-status="published"] {
  color: #10230d;
  border-color: #428429;
  background:
    linear-gradient(
      180deg,
      #baf17b,
      #62bd35 58%,
      #357d1c
    );
}


.article-field {
  display: grid;
  gap: 6px;
  margin-bottom: 17px;
}


.article-field > span {
  color: #526052;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.8px;
}


.article-field input,
.article-field select,
.article-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 13px;
  border: 1px solid #798578;
  border-radius:
    13px 5px 13px 5px;
  outline: none;
  color: #203020;
  background:
    linear-gradient(
      180deg,
      #ffffff,
      #e2e7df
    );
  font: inherit;
  box-shadow:
    inset 0 2px 4px
      rgba(0, 0, 0, 0.12);
}


.article-field textarea {
  min-height: 430px;
  resize: vertical;
  font-family:
    Consolas,
    "Courier New",
    monospace;
  font-size: 12px;
  line-height: 1.65;
}


.article-field input:focus,
.article-field select:focus,
.article-field textarea:focus {
  border-color: #59a934;
  box-shadow:
    0 0 0 3px
      rgba(91, 178, 50, 0.18),
    inset 0 2px 4px
      rgba(0, 0, 0, 0.12);
}


.article-format-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  padding: 12px;
  border-left: 4px solid #5eb438;
  border-radius:
    4px 12px 12px 4px;
  background:
    rgba(98, 184, 55, 0.11);
}


.article-format-help strong {
  margin-right: 5px;
  color: #35642c;
  font-size: 8px;
}


.article-format-help code {
  padding: 5px 7px;
  border-radius: 5px;
  color: #dbe7d7;
  background: #354135;
  font-size: 9px;
}


.article-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}


.secondary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 15px;
  border-radius:
    13px 5px 13px 5px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-decoration: none;
  cursor: pointer;
}


.secondary-button {
  border: 1px solid #667066;
  color: #e4eae2;
  background:
    linear-gradient(
      180deg,
      #596259,
      #293029 58%,
      #1b201b
    );
}


.danger-button {
  margin-left: auto;
  border: 1px solid #7a312d;
  color: #ffe4df;
  background:
    linear-gradient(
      180deg,
      #a54b43,
      #702e2a 58%,
      #491d1a
    );
}


.article-preview-panel {
  position: sticky;
  top: 20px;
}


.article-preview-heading {
  min-height: 48px;
  padding: 0 14px;
  background:
    linear-gradient(
      180deg,
      #b9ef7d,
      #62bd36 58%,
      #39821f
    );
}


.article-preview-heading h2 {
  margin: 0;
  color: #183017;
  font-size: 11px;
  letter-spacing: 0.9px;
}


.article-preview-heading button {
  padding: 7px 9px;
  border: 1px solid
    rgba(33, 74, 28, 0.45);
  border-radius:
    9px 3px 9px 3px;
  color: #193318;
  background:
    rgba(255, 255, 255, 0.27);
  font-size: 7px;
  font-weight: bold;
  cursor: pointer;
}


.article-editor-preview {
  max-height:
    calc(100vh - 130px);
  overflow-y: auto;
  padding: 22px;
}


.article-preview-title {
  margin-bottom: 25px;
}


.article-preview-title h1 {
  margin: 0 0 8px;
  color: #263326;
  font-size: 29px;
}


.article-preview-title p {
  color: #697569;
  font-size: 13px;
  line-height: 1.5;
}


.published-article {
  max-width: 930px;
  margin: 0 auto;
}


.article-cover-image {
  display: block;
  width: 100%;
  max-height: 470px;
  object-fit: cover;
  background: #161c16;
}


.published-article-header {
  padding: 35px
    clamp(22px, 6vw, 68px)
    25px;
}


.article-header-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 13px;
  color: #498f31;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}


.published-article-header > h1 {
  margin: 0;
  color: #202e20;
  font-size:
    clamp(34px, 7vw, 61px);
  line-height: 1.04;
  letter-spacing: -1.3px;
}


.article-subtitle {
  max-width: 750px;
  margin: 17px 0 0;
  color: #697469;
  font-size: 16px;
  line-height: 1.55;
}


.article-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 26px;
  padding-top: 18px;
  border-top:
    1px solid
    rgba(78, 95, 77, 0.25);
}


.article-author {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #293529;
  text-decoration: none;
}


.article-author img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 2px solid #59aa3c;
  border-radius: 12px;
}


.article-author span {
  display: grid;
  gap: 3px;
}


.article-author small {
  color: #758075;
  font-size: 7px;
  font-weight: bold;
}


.article-author strong {
  color: #2e6327;
  font-size: 12px;
}


.article-body {
  color: #354135;
  font-size: 14px;
  line-height: 1.85;
}


.published-article > .article-body {
  padding:
    10px
    clamp(22px, 6vw, 68px)
    50px;
}


.article-body h1,
.article-body h2,
.article-body h3 {
  color: #243224;
  line-height: 1.2;
}


.article-body h1 {
  margin: 42px 0 16px;
  font-size: 30px;
}


.article-body h2 {
  margin: 36px 0 14px;
  padding-bottom: 9px;
  border-bottom:
    1px solid
    rgba(70, 90, 69, 0.22);
  font-size: 24px;
}


.article-body h3 {
  margin: 29px 0 11px;
  font-size: 18px;
}


.article-body p {
  margin: 0 0 18px;
}


.article-body blockquote {
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 5px solid #61b43a;
  border-radius:
    4px 13px 13px 4px;
  color: #4b594b;
  background:
    rgba(96, 180, 57, 0.11);
}


.article-body a {
  color: #3a8e2a;
  font-weight: bold;
}


.article-body ul {
  margin: 0 0 20px;
  padding-left: 25px;
}


.article-footer {
  display: flex;
  justify-content: flex-end;
  padding:
    22px
    clamp(22px, 6vw, 68px);
  border-top:
    1px solid
    rgba(75, 92, 74, 0.24);
  background:
    rgba(92, 107, 90, 0.09);
}


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

  .article-preview-panel {
    position: static;
  }

  .article-editor-preview {
    max-height: none;
  }
}


@media (max-width: 600px) {
  .article-editor-panel {
    padding: 16px;
  }

  .article-author-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .danger-button {
    margin-left: 0;
  }
}


/* ==================================================
   COMMUNITY
   ================================================== */

.community-page {
  padding-top: 28px;
  padding-bottom: 60px;
}


.community-hero {
  position: relative;
  overflow: hidden;
  padding:
    clamp(24px, 5vw, 46px);
  border: 1px solid #70806d;
  border-radius:
    27px 9px 27px 9px;
  background:
    radial-gradient(
      circle at 88% 0,
      rgba(171, 239, 108, 0.34),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      #3b463b,
      #171d18
    );
  box-shadow:
    inset 0 1px
      rgba(255, 255, 255, 0.13),
    0 10px 28px
      rgba(0, 0, 0, 0.35);
}


.community-hero-copy {
  max-width: 760px;
}


.community-hero h1 {
  margin: 4px 0 12px;
  color: #f2f6f0;
  font-size:
    clamp(34px, 6vw, 58px);
  line-height: 1.02;
}


.community-hero-copy > p:last-child {
  max-width: 650px;
  color: #b9c5b7;
  font-size: 13px;
  line-height: 1.65;
}


.community-search-form {
  display: flex;
  gap: 8px;
  max-width: 850px;
  margin-top: 24px;
}


.community-search-form input {
  min-width: 0;
  flex: 1;
  padding: 14px 16px;
  border: 1px solid #748072;
  border-radius:
    16px 5px 16px 5px;
  outline: none;
  color: #eef4ec;
  background:
    linear-gradient(
      180deg,
      #3a433a,
      #191f1a
    );
  font: inherit;
  box-shadow:
    inset 0 2px 6px
      rgba(0, 0, 0, 0.42);
}


.community-search-form input::placeholder {
  color: #9faa9e;
}


.community-search-form input:focus {
  border-color: #65bd39;
  box-shadow:
    0 0 0 3px
      rgba(99, 190, 54, 0.2),
    inset 0 2px 6px
      rgba(0, 0, 0, 0.42);
}


.community-search-form button {
  padding: 12px 19px;
  border: 1px solid #367d20;
  border-radius:
    14px 5px 14px 5px;
  color: #10220d;
  background:
    linear-gradient(
      180deg,
      #baf17b,
      #62be35 58%,
      #367e1d
    );
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.8px;
  cursor: pointer;
}


.community-search-filters {
  display: flex;
  gap: 6px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 3px;
}


.community-search-filters button {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid #5b675b;
  border-radius:
    11px 4px 11px 4px;
  color: #d7dfd5;
  background:
    linear-gradient(
      180deg,
      #4c564c,
      #242b24
    );
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.65px;
  cursor: pointer;
}


.community-search-filters button.active {
  color: #10220e;
  border-color: #408329;
  background:
    linear-gradient(
      180deg,
      #b9f07a,
      #61bd35 58%,
      #367d1d
    );
}


.community-message {
  margin: 18px 0;
}


.community-default-view,
.community-search-view {
  display: grid;
  gap: 23px;
  margin-top: 23px;
}


.community-default-view[hidden],
.community-search-view[hidden] {
  display: none;
}


.community-section,
.community-search-section {
  overflow: hidden;
  border: 1px solid #667266;
  border-radius:
    21px 7px 21px 7px;
  background:
    linear-gradient(
      180deg,
      #303831,
      #171c18
    );
  box-shadow:
    0 7px 19px
      rgba(0, 0, 0, 0.3);
}


.community-section-heading,
.community-search-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}


.community-section-heading {
  min-height: 58px;
  padding: 0 17px;
  border-bottom:
    1px solid
    rgba(71, 87, 70, 0.28);
  background:
    linear-gradient(
      180deg,
      #eef2eb,
      #bec8bb
    );
}


.community-section-heading h2,
.community-search-heading h2 {
  margin: 0;
}


.community-section-heading h2 {
  color: #253325;
  font-size: 16px;
}


.community-section-heading .small-heading {
  margin: 0 0 3px;
  color: #4a8d34;
  font-size: 7px;
}


.community-section-heading > a {
  color: #397b2c;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-decoration: none;
}


.community-two-column {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 23px;
}


.community-article-grid,
.community-search-articles {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 13px;
  padding: 14px;
}


.community-article-card {
  overflow: hidden;
  border: 1px solid #4e594e;
  border-radius:
    15px 5px 15px 5px;
  background:
    linear-gradient(
      145deg,
      #394239,
      #202620
    );
}


.community-article-cover {
  display: block;
  color: inherit;
  text-decoration: none;
}


.community-article-cover img,
.community-cover-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}


.community-cover-placeholder {
  display: grid;
  place-items: center;
  color: #87cc58;
  background:
    radial-gradient(
      circle,
      #3b5435,
      #171d18
    );
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1px;
}


.community-article-content {
  padding: 12px;
}


.community-card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px;
  color: #84c655;
  font-size: 7px;
  font-weight: bold;
  text-transform: uppercase;
}


.community-article-card h3,
.community-review-card h3,
.community-clip-card h3 {
  margin: 7px 0;
}


.community-article-card h3 a,
.community-review-card h3 a,
.community-clip-card h3 a {
  color: #edf3eb;
  text-decoration: none;
}


.community-article-card h3 {
  font-size: 14px;
}


.community-article-card p,
.community-review-card p,
.community-clip-card p {
  color: #aeb9ad;
  font-size: 9px;
  line-height: 1.5;
}


.community-author-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #a9d88a;
  font-size: 8px;
  font-weight: bold;
  text-decoration: none;
}


.community-author-link img {
  width: 25px;
  height: 25px;
  object-fit: cover;
  border: 1px solid #5ca53e;
  border-radius: 7px;
}


.community-member-list,
.community-search-members {
  display: grid;
  gap: 1px;
  padding: 9px;
}


.community-member-card {
  display: grid;
  grid-template-columns:
    55px 1fr;
  gap: 11px;
  padding: 11px;
  border-radius: 12px;
  color: #e1e7df;
  text-decoration: none;
}


.community-member-card:hover {
  background:
    rgba(110, 198, 64, 0.12);
}


.community-member-card > img {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border: 2px solid #59a83c;
  border-radius: 12px;
}


.community-member-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}


.community-member-name span {
  padding: 4px 6px;
  border-radius:
    8px 3px 8px 3px;
  color: #11230e;
  background: #88d04e;
  font-size: 7px;
  font-weight: bold;
}


.community-member-card p {
  margin: 6px 0 0;
  color: #aab5aa;
  font-size: 9px;
  line-height: 1.4;
}


.community-review-list,
.community-search-reviews {
  display: grid;
  gap: 9px;
  padding: 12px;
}


.community-review-card {
  display: grid;
  grid-template-columns:
    44px 1fr;
  gap: 11px;
  padding: 11px;
  border: 1px solid #485348;
  border-radius:
    13px 4px 13px 4px;
  background:
    linear-gradient(
      145deg,
      #343d34,
      #202620
    );
}


.community-review-score {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #438929;
  border-radius:
    12px 4px 12px 4px;
  color: #132610;
  background:
    linear-gradient(
      180deg,
      #b8ef78,
      #5fba34
    );
  font-size: 15px;
  font-weight: 900;
}


.community-review-card h3 {
  font-size: 12px;
}


.community-review-card p {
  max-height: 48px;
  margin: 5px 0;
  overflow: hidden;
}


.community-clip-grid,
.community-search-clips {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 13px;
  padding: 14px;
}


.community-clip-card {
  overflow: hidden;
  border: 1px solid #4e594e;
  border-radius:
    15px 5px 15px 5px;
  background:
    linear-gradient(
      145deg,
      #394239,
      #202620
    );
}


.community-clip-media {
  aspect-ratio: 16 / 9;
  background: #0e120f;
}


.community-clip-media iframe,
.community-clip-media video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}


.community-clip-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #81c653;
  font-size: 10px;
}


.community-clip-content {
  padding: 11px;
}


.community-clip-card h3 {
  font-size: 12px;
}


.community-search-heading {
  padding: 7px 4px;
}


.community-search-heading h2 {
  color: #edf3eb;
  font-size: 23px;
}


.community-search-heading button {
  padding: 9px 12px;
  border: 1px solid #626e62;
  border-radius:
    11px 4px 11px 4px;
  color: #dce4da;
  background:
    linear-gradient(
      180deg,
      #505a50,
      #242b24
    );
  font-size: 8px;
  font-weight: bold;
  cursor: pointer;
}


.community-search-results {
  display: grid;
  gap: 20px;
}


.community-search-tags {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 13px;
}


.community-tag-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid #4c574c;
  border-radius:
    13px 4px 13px 4px;
  color: #e1e8df;
  background:
    linear-gradient(
      145deg,
      #354035,
      #202620
    );
  text-decoration: none;
}


.community-tag-name {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius:
    10px 3px 10px 3px;
  color: #12240f;
  background: #87d04e;
  font-size: 9px;
  font-weight: 900;
}


.community-tag-card p {
  margin: 5px 0 0;
  color: #aab5a9;
  font-size: 9px;
}


.community-empty-message {
  grid-column: 1 / -1;
  padding: 26px 15px;
  color: #aeb8ad;
  text-align: center;
}


.community-search-empty {
  padding: 50px 20px;
  border: 1px solid #616d61;
  border-radius:
    18px 6px 18px 6px;
  color: #afb9ae;
  background:
    linear-gradient(
      145deg,
      #303830,
      #191e19
    );
  text-align: center;
}


.community-search-empty h2 {
  margin-top: 0;
  color: #edf3eb;
}


@media (max-width: 1000px) {
  .community-article-grid,
  .community-search-articles,
  .community-clip-grid,
  .community-search-clips {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 760px) {
  .community-two-column {
    grid-template-columns: 1fr;
  }

  .community-search-form {
    flex-direction: column;
  }

  .community-search-tags {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 520px) {
  .community-article-grid,
  .community-search-articles,
  .community-clip-grid,
  .community-search-clips {
    grid-template-columns: 1fr;
  }

  .community-search-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* ==================================================
   SHARED NAV + COMMUNITY SUBNAV CLEANUP
   ================================================== */

.community-subnav {
  border-bottom: 1px solid rgba(107, 121, 106, 0.45);
  background: linear-gradient(180deg, #2e352f, #1b211c);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.community-subnav-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 7px 0;
  scrollbar-width: thin;
}

.community-subnav a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px 3px 10px 3px;
  color: #c7d0c5;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.65px;
  text-decoration: none;
}

.community-subnav a:hover,
.community-subnav a.active {
  border-color: #4d8f33;
  color: #152611;
  background: linear-gradient(180deg, #b6eb78, #61ba37 60%, #387e22);
}

.auth-page {
  min-height: calc(100vh - 48px);
}

.coming-soon-page {
  padding-top: 45px;
  padding-bottom: 70px;
}

.coming-soon-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(25px, 6vw, 55px);
  border: 1px solid #677367;
  border-radius: 24px 8px 24px 8px;
  color: #b8c2b6;
  background: linear-gradient(145deg, #333b34, #171c18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.coming-soon-panel h1 {
  margin: 6px 0 14px;
  color: #eff4ed;
  font-size: clamp(31px, 6vw, 54px);
  line-height: 1.05;
}

.coming-soon-panel p:not(.small-heading) {
  margin-bottom: 24px;
  line-height: 1.65;
}

.legacy-search-page {
  padding-top: 40px;
  padding-bottom: 60px;
}

/* ==================================================
   HOMEPAGE LIVE CONTENT
   ================================================== */
.home-loading-message {
  grid-column: 1 / -1;
  padding: 24px;
  margin: 0;
  color: #9ca89b;
  text-align: center;
}

.game-item h3 a {
  color: inherit;
  text-decoration: none;
}

.game-item > a {
  display: block;
}

.home-game-placeholder,
.home-clip-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  color: #8aca59;
  background: radial-gradient(circle, #344231, #171d18);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.8px;
}

.home-clip-placeholder {
  aspect-ratio: 16 / 9;
}

.home-clip-link {
  display: grid;
  gap: 8px;
  color: #e7ede4;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.home-clip-link img,
.home-clip-link .home-clip-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.review h3 a {
  color: inherit;
  text-decoration: none;
}

.home-member-list {
  display: grid;
}

.home-member-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 9px;
  align-items: center;
  padding: 10px 13px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: #e5ebe2;
  text-decoration: none;
}

.home-member-row:last-child {
  border-bottom: 0;
}

.home-member-row:hover {
  background: rgba(112, 197, 67, 0.09);
}

.home-member-row img {
  width: 38px;
  height: 38px;
  border: 1px solid #6cab49;
  border-radius: 8px;
  object-fit: cover;
}

.home-member-row span {
  display: grid;
  gap: 3px;
}

.home-member-row small {
  color: #97a395;
  font-size: 8px;
}

.home-about-card {
  padding: 14px;
  color: #aeb8ac;
  font-size: 10px;
  line-height: 1.6;
}


/* ==================================================
   PREVIOUS SAVE BRANDING + HOMEPAGE CREATOR ACTIONS
================================================== */

.logo-mark {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  flex: 0 0 68px;
  border: 2px solid #65b844;
  border-radius: 18px;
  background: linear-gradient(145deg, #f9fbf7, #bfc9bc);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -8px 16px rgba(85, 105, 85, 0.18),
    0 4px 10px rgba(60, 80, 60, 0.22);
  transform: rotate(-2deg);
}

.logo-mark svg {
  width: 46px;
  height: 46px;
  fill: #45a92f;
  filter: drop-shadow(0 3px 2px rgba(37, 80, 35, 0.24));
}

.logo-mark .logo-mark-cutout {
  fill: #dfe6dc;
}

.logo-mark .logo-mark-slot {
  fill: #526152;
}

.logo-mark .logo-mark-label {
  fill: #eef3eb;
}

.logo-mark .logo-mark-dot {
  fill: #62c83b;
}

.previous-save-name {
  align-items: flex-end;
  gap: 10px;
}

.previous-save-name strong {
  color: #2b382b;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -2.5px;
  line-height: 0.9;
}

.previous-save-name span {
  margin: 0 0 2px;
  color: #4baa32;
  font-size: 18px;
  letter-spacing: 4px;
  line-height: 1;
}

.header-action-button {
  display: inline-block;
  margin-top: 13px;
  padding: 9px 13px;
  border: 1px solid #2d8d29;
  border-radius: 12px;
  color: #173317;
  background: linear-gradient(180deg, #b5f081, #58c637);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 3px 7px rgba(50,80,50,.18);
  text-decoration: none;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: .8px;
}

.header-action-button:hover {
  background: linear-gradient(180deg, #c6f89e, #70d44a);
}

.header-action-button[hidden] {
  display: none;
}

.footer-inner {
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: inherit;
  font-size: 10px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .7px;
}

.footer-links a:hover {
  color: var(--green-main);
}

@media (max-width: 700px) {
  .previous-save-name {
    display: block;
  }

  .previous-save-name strong,
  .previous-save-name span {
    display: block;
    margin: 0;
  }

  .previous-save-name span {
    margin-top: 6px;
  }
}


/* Previous Save article heading actions */
.section-heading-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-heading .section-write-link {
  padding: 8px 14px;
  border: 1px solid #102510;
  border-radius: 12px;
  color: #ffffff;
  background:
    linear-gradient(
      180deg,
      #334733,
      #152515
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 2px 6px rgba(20, 45, 20, 0.34);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 800;
}

.section-heading .section-write-link::before {
  content: "+ ";
  color: #a7eb6f;
  font-size: 13px;
}

.section-heading .section-write-link:hover {
  color: #ffffff;
  background:
    linear-gradient(
      180deg,
      #456145,
      #1d321d
    );
  transform: translateY(-1px);
}

.section-heading .section-write-link[hidden] {
  display: none;
}

/* ==================================================
   ARTICLE COVER IMAGE UPLOAD
   ================================================== */

.article-image-upload-box {
  padding: 13px;
  border: 1px dashed #748272;
  border-radius: 15px 6px 15px 6px;
  background: rgba(255, 255, 255, 0.34);
}

.article-cover-file-input {
  position: absolute;
  width: 1px !important;
  height: 1px;
  padding: 0 !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0 !important;
}

.article-image-picker {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 15px;
  border: 1px solid #4e8e38;
  border-radius: 13px 5px 13px 5px;
  color: #173017;
  background: linear-gradient(180deg, #c8f59b, #69c53e 58%, #3d8d24);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.75), 0 3px 8px rgba(45, 75, 40, 0.18);
  text-align: center;
  cursor: pointer;
}

.article-image-picker:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.article-image-picker strong {
  font-size: 10px;
  letter-spacing: 0.9px;
}

.article-image-picker span {
  color: #2f552c;
  font-size: 9px;
}

.article-image-selection {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #788476;
  border-radius: 12px 5px 12px 5px;
  background: linear-gradient(180deg, #f7f9f5, #d7ded4);
}

.article-image-selection[hidden] {
  display: none;
}

.article-image-selection img {
  width: 76px;
  height: 58px;
  object-fit: cover;
  border: 1px solid #667463;
  border-radius: 8px 3px 8px 3px;
  background: #202820;
}

.article-image-selection strong,
.article-image-selection span {
  display: block;
  overflow-wrap: anywhere;
}

.article-image-selection strong {
  color: #293629;
  font-size: 10px;
}

.article-image-selection span {
  margin-top: 4px;
  color: #687568;
  font-size: 9px;
}

.article-remove-image {
  padding: 8px 10px;
  border: 1px solid #7a312d;
  border-radius: 10px 4px 10px 4px;
  color: #ffe7e2;
  background: linear-gradient(180deg, #a75048, #6d2d29);
  font-size: 8px;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 560px) {
  .article-image-selection {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .article-image-selection img {
    width: 64px;
    height: 52px;
  }

  .article-remove-image {
    grid-column: 1 / -1;
  }
}

/* ==================================================
   PREVIOUS SAVE — INTERACTIVE CONTRAST FIX
   Keep buttons and action links readable on dark/green panels.
   ================================================== */

/* General action buttons */
.main-button,
.profile-button,
.auth-box button,
.poll button,
.header-action-button {
  color: #10200c !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

/* Green section bars need dark, high-contrast utility links. */
.section-heading a,
.profile-section-heading a {
  color: #13240f !important;
  opacity: 1 !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.48) !important;
}

.section-heading a:hover,
.profile-section-heading a:hover {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55) !important;
}

/* Primary author action: intentionally dark so it stands out from the green bar. */
.section-heading .section-write-link {
  border: 1px solid #0a110a !important;
  color: #ffffff !important;
  background: linear-gradient(180deg, #354435 0%, #111a11 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 2px 7px rgba(0, 0, 0, 0.42) !important;
  opacity: 1 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.72) !important;
}

.section-heading .section-write-link::before {
  color: #b8ff7e !important;
}

.section-heading .section-write-link:hover {
  color: #ffffff !important;
  background: linear-gradient(180deg, #4a604a 0%, #1b2a1b 100%) !important;
}

/* Links sitting on dark cards and footers. */
.sidebar-bottom-link,
.profile-links a,
.footer-links a,
.auth-switch a,
.auth-back {
  color: #b8f47f !important;
  opacity: 1 !important;
  font-weight: 800;
}

.sidebar-bottom-link:hover,
.profile-links a:hover,
.footer-links a:hover,
.auth-switch a:hover,
.auth-back:hover {
  color: #ffffff !important;
}

/* Disabled buttons should still remain legible. */
button:disabled,
.main-button[aria-disabled="true"] {
  color: #3e493d !important;
  opacity: 0.72 !important;
}

@media (max-width: 620px) {
  .section-heading-actions {
    gap: 8px;
  }

  .section-heading .section-write-link {
    padding: 7px 10px;
    font-size: 8px;
  }
}



/* ==================================================
   PASSWORD RECOVERY
================================================== */

.auth-page-main {
  min-height: 520px;
  padding-top: 42px;
  padding-bottom: 60px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.auth-card {
  width: min(100%, 570px);
  overflow: hidden;
  border: 1px solid #8f9f8c;
  border-radius: 22px;
  background:
    linear-gradient(
      180deg,
      #f8faf6,
      #d1d8ce
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 20px rgba(55, 75, 55, 0.2);
}

.auth-card-heading {
  padding: 28px 30px 23px;
  border-bottom: 1px solid rgba(70, 90, 70, 0.22);
}

.auth-card-heading h1 {
  margin: 0 0 13px;
  color: #263426;
  font-size: 31px;
  line-height: 1.05;
}

.auth-card-heading > p:not(.small-heading) {
  margin: 0;
  color: #647064;
  line-height: 1.6;
}

.auth-form {
  padding: 27px 30px 30px;
}

.auth-form[hidden],
.auth-invalid-link[hidden],
.auth-loading-message[hidden] {
  display: none;
}

.auth-field {
  margin-bottom: 19px;
}

.auth-field label {
  display: block;
  margin-bottom: 7px;
  color: #415041;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1px;
}

.auth-field input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #899887;
  border-radius: 12px;
  outline: none;
  color: #263326;
  background: #f9fbf7;
  box-shadow:
    inset 0 2px 5px rgba(70, 85, 70, 0.1);
}

.auth-field input:focus {
  border-color: #429b32;
  box-shadow:
    0 0 0 3px rgba(91, 198, 58, 0.19),
    inset 0 2px 5px rgba(70, 85, 70, 0.08);
}

.auth-field-help {
  display: block;
  margin-top: 6px;
  color: #778477;
  font-size: 9px;
}

.forgot-password-row {
  margin: -5px 0 17px;
  text-align: right;
}

.forgot-password-row a {
  color: #2f8128;
  font-size: 10px;
  font-weight: bold;
  text-decoration: none;
}

.forgot-password-row a:hover {
  color: #1f5d1b;
  text-decoration: underline;
}

.auth-submit-button {
  width: 100%;
  padding: 13px 17px;
  border: 1px solid #2d7f27;
  border-radius: 13px;
  color: #112d10;
  background:
    linear-gradient(
      180deg,
      #baf18a,
      #57c438
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 3px 8px rgba(45, 90, 40, 0.18);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.8px;
  cursor: pointer;
}

.auth-submit-button:hover:not(:disabled) {
  background:
    linear-gradient(
      180deg,
      #c9f6a3,
      #68cf47
    );
}

.auth-submit-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.auth-message {
  min-height: 18px;
  margin: 17px 0 0;
  font-size: 11px;
  line-height: 1.5;
}

.auth-message:empty {
  display: none;
}

.auth-message-success {
  padding: 11px 12px;
  border: 1px solid rgba(50, 135, 43, 0.42);
  border-radius: 10px;
  color: #245f20;
  background: rgba(167, 235, 111, 0.28);
}

.auth-message-error {
  padding: 11px 12px;
  border: 1px solid rgba(159, 59, 52, 0.42);
  border-radius: 10px;
  color: #7e2925;
  background: rgba(228, 130, 122, 0.18);
}

.auth-loading-message {
  padding: 30px;
  color: #647064;
  text-align: center;
}

.auth-invalid-link {
  padding: 28px 30px 31px;
  text-align: center;
}

.auth-invalid-link p {
  margin: 0 0 20px;
  color: #6e3a36;
  line-height: 1.5;
}

.auth-card-footer {
  padding: 15px 30px;
  border-top: 1px solid rgba(70, 90, 70, 0.22);
  background: rgba(255, 255, 255, 0.2);
}

.auth-card-footer a {
  color: #347c2d;
  font-size: 10px;
  font-weight: bold;
  text-decoration: none;
}

.auth-card-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 650px) {
  .auth-page-main {
    padding-top: 25px;
  }

  .auth-card-heading,
  .auth-form,
  .auth-invalid-link {
    padding-left: 20px;
    padding-right: 20px;
  }

  .auth-card-heading h1 {
    font-size: 27px;
  }
}
/* ==================================================
   PROFILE ACTION VISIBILITY + META CONTRAST FIX
   ================================================== */

/* Some existing button rules set display values that can override the
   browser's default [hidden] behavior. Keep private/profile-only actions
   genuinely hidden until profile.js decides they belong on the page. */
#profile-edit-button[hidden],
#profile-follow-button[hidden],
#profile-account-section[hidden],
.profile-tab-panel[hidden] {
  display: none !important;
}

/* Make profile metadata readable against the light profile header. */
.profile-meta {
  align-items: center;
  gap: 10px;
  color: #334333;
  font-size: 11px;
  font-weight: 700;
}

#profile-location,
#profile-member-since {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 11px;
  border: 1px solid rgba(65, 91, 63, 0.35);
  border-radius: 10px 4px 10px 4px;
  color: #263526;
  background: rgba(247, 250, 245, 0.72);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.8),
    0 2px 5px rgba(32, 48, 31, 0.12);
}

#profile-location::before {
  content: "●";
  margin-right: 7px;
  color: #4fae2d;
  font-size: 9px;
}

/* Following is a destructive action, so make its state unmistakable. */
.profile-follow-button[data-state="following"] {
  border-color: #7b3636 !important;
  color: #fff4f4 !important;
  background:
    linear-gradient(180deg, #8f4b4b, #5f2929 58%, #381818) !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.25),
    0 3px 8px rgba(48, 15, 15, 0.28) !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.65);
}

.profile-follow-button[data-state="following"]:hover:not(:disabled) {
  border-color: #a85353 !important;
  background:
    linear-gradient(180deg, #aa5a5a, #743232 58%, #461d1d) !important;
  transform: translateY(-1px);
}

.profile-follow-button:disabled {
  opacity: 0.68;
  cursor: wait;
}

@media (max-width: 650px) {
  .profile-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  #profile-location,
  #profile-member-since {
    width: 100%;
  }
}



/* ==================================================
   PREVIOUS SAVE FORUM
================================================== */

.forum-page {
  padding-top: 32px;
  padding-bottom: 60px;
}

.forum-page-heading {
  margin-bottom: 24px;
  padding: 27px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border: 1px solid #536153;
  border-radius: 22px;
  color: #e7eee5;
  background:
    linear-gradient(
      135deg,
      #202820,
      #121812
    );
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.09),
    0 7px 18px rgba(0, 0, 0, 0.28);
}

.forum-page-heading h1 {
  margin: 0 0 9px;
  color: #ffffff;
  font-size: 34px;
}

.forum-page-heading p {
  margin: 0;
  color: #aeb8ae;
  line-height: 1.6;
}

.forum-page-heading .small-heading {
  margin-bottom: 7px;
  color: #91df57;
}

.forum-loading,
.forum-empty {
  padding: 34px 22px;
  color: #aeb8ae;
  text-align: center;
}

.forum-category-list {
  margin-bottom: 27px;
  display: grid;
  gap: 12px;
}

.forum-category-card {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #4d5b4d;
  border-radius: 17px;
  color: #e6ece4;
  background:
    linear-gradient(
      180deg,
      #293129,
      #1b211b
    );
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.06),
    0 4px 11px rgba(0, 0, 0, 0.22);
  text-decoration: none;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}

.forum-category-card:hover {
  transform: translateY(-2px);
  border-color: #7bc945;
}

.forum-category-card h2 {
  margin: 0 0 6px;
  color: #9ce85f;
  font-size: 17px;
}

.forum-category-card p {
  margin: 0;
  color: #a7b1a7;
  line-height: 1.5;
}

.forum-category-card > span {
  min-width: 86px;
  color: #c5cec5;
  text-align: right;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
}

.forum-panel {
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid #485448;
  border-radius: 19px;
  background:
    linear-gradient(
      180deg,
      #242b24,
      #171d17
    );
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.05),
    0 5px 14px rgba(0, 0, 0, 0.23);
}

.forum-panel-heading {
  min-height: 52px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #4e5a4e;
  background:
    linear-gradient(
      180deg,
      #9bea5c,
      #54b92f 58%,
      #35881e
    );
}

.forum-panel-heading h2 {
  margin: 0;
  color: #132011;
  font-size: 12px;
  letter-spacing: 1.2px;
}

.forum-panel-heading span {
  color: #22491d;
  font-size: 9px;
  font-weight: bold;
  text-transform: uppercase;
}

.forum-thread-row {
  min-height: 77px;
  padding: 14px 17px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(119, 135, 119, 0.2);
}

.forum-thread-row:last-child {
  border-bottom: 0;
}

.forum-thread-row:hover {
  background: rgba(128, 207, 73, 0.07);
}

.forum-thread-status {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.forum-thread-summary h3 {
  margin: 0 0 7px;
  font-size: 15px;
}

.forum-thread-summary h3 a {
  color: #e9eee7;
  text-decoration: none;
}

.forum-thread-summary h3 a:hover {
  color: #9be35f;
}

.forum-thread-summary p {
  margin: 0;
  color: #929d92;
  font-size: 10px;
}

.forum-thread-summary p a {
  color: #9bdc68;
  text-decoration: none;
}

.forum-open-thread {
  padding: 9px 12px;
  border: 1px solid #536153;
  border-radius: 10px;
  color: #dfe7dc;
  background: #182018;
  text-decoration: none;
  font-size: 9px;
  font-weight: bold;
}

.forum-open-thread:hover {
  border-color: #79cc43;
  color: #a5eb6b;
}

.forum-category-actions {
  margin-bottom: 17px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.forum-primary-button,
.forum-secondary-button {
  display: inline-block;
  padding: 11px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.7px;
  cursor: pointer;
}

.forum-primary-button {
  border: 1px solid #377b22;
  color: #12210f;
  background:
    linear-gradient(
      180deg,
      #b1f17d,
      #61c63b 58%,
      #3b941f
    );
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.65),
    0 3px 7px rgba(0, 0, 0, 0.25);
}

.forum-secondary-button {
  border: 1px solid #617061;
  color: #d9e2d7;
  background:
    linear-gradient(
      180deg,
      #344034,
      #1b241b
    );
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    0 3px 7px rgba(0, 0, 0, 0.2);
}

.forum-primary-button:hover,
.forum-secondary-button:hover {
  filter: brightness(1.1);
}

.forum-primary-button:disabled,
.forum-secondary-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.forum-create-panel form,
.forum-reply-panel form {
  padding: 22px;
}

.forum-field {
  display: block;
  margin-bottom: 18px;
}

.forum-field > span {
  display: block;
  margin-bottom: 7px;
  color: #b8c2b8;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.8px;
}

.forum-field input,
.forum-field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #596559;
  border-radius: 11px;
  outline: none;
  color: #eaf0e8;
  background: #111711;
  font: inherit;
  line-height: 1.55;
}

.forum-field textarea {
  min-height: 190px;
  resize: vertical;
}

.forum-field input:focus,
.forum-field textarea:focus {
  border-color: #82d249;
  box-shadow:
    0 0 0 3px rgba(130, 210, 73, 0.17);
}

.forum-form-actions {
  display: flex;
  gap: 10px;
}

.forum-message {
  margin: 12px 0;
  min-height: 16px;
  color: #b5beb5;
  font-size: 11px;
}

.forum-message:empty {
  display: none;
}

.forum-message-success {
  padding: 11px 13px;
  border: 1px solid #508b39;
  border-radius: 10px;
  color: #b9ef98;
  background: rgba(82, 152, 50, 0.15);
}

.forum-message-error {
  padding: 11px 13px;
  border: 1px solid #8d4747;
  border-radius: 10px;
  color: #f1b0aa;
  background: rgba(144, 56, 56, 0.14);
}

.forum-post {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  border: 1px solid #4b574b;
  border-radius: 18px;
  overflow: hidden;
  color: #dce4da;
  background:
    linear-gradient(
      180deg,
      #252d25,
      #181e18
    );
  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.23);
}

.forum-main-post {
  margin-bottom: 24px;
}

.forum-reply {
  margin: 15px;
}

.forum-post-author-column {
  padding: 20px 16px;
  border-right: 1px solid #4c584c;
  background:
    linear-gradient(
      180deg,
      #202820,
      #151b15
    );
}

.forum-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #dfe7dd;
  text-align: center;
  text-decoration: none;
}

.forum-author img {
  width: 78px;
  height: 78px;
  margin-bottom: 12px;
  object-fit: cover;
  border: 2px solid #6fc63b;
  border-radius: 16px;
  background: #121712;
}

.forum-author strong {
  display: block;
  color: #a5e86f;
  font-size: 12px;
}

.forum-author em {
  display: block;
  margin-top: 6px;
  color: #7f8b7f;
  font-size: 8px;
  font-style: normal;
  font-weight: bold;
  letter-spacing: 0.8px;
}

.forum-post-content {
  min-width: 0;
  padding: 19px 21px;
}

.forum-post-header {
  min-height: 27px;
  margin-bottom: 16px;
  padding-bottom: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(120, 135, 120, 0.25);
  color: #879287;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.6px;
}

.forum-post-body {
  min-height: 90px;
  color: #d5ddd3;
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.forum-post-actions {
  margin-top: 24px;
  padding-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgba(120, 135, 120, 0.21);
}

.forum-post-actions button {
  padding: 7px 10px;
  border: 1px solid #596659;
  border-radius: 8px;
  color: #c7d0c5;
  background: #161c16;
  font-size: 8px;
  font-weight: bold;
  cursor: pointer;
}

.forum-post-actions button:hover {
  border-color: #83cf4c;
  color: #9ee368;
}

.forum-status-badge {
  display: inline-block;
  padding: 5px 7px;
  border: 1px solid #67ac3f;
  border-radius: 7px;
  color: #c3f6a1;
  background: rgba(102, 179, 59, 0.14);
  font-size: 7px;
  font-weight: bold;
  letter-spacing: 0.6px;
}

.forum-status-locked {
  border-color: #9f5b55;
  color: #f3b0a9;
  background: rgba(159, 67, 59, 0.15);
}

.forum-locked-message {
  margin-top: 18px;
  padding: 15px 18px;
  border: 1px solid #87524d;
  border-radius: 13px;
  color: #efb0aa;
  background: rgba(135, 60, 52, 0.15);
  text-align: center;
  font-size: 11px;
}

@media (max-width: 760px) {
  .forum-page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .forum-category-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .forum-category-card > span {
    text-align: left;
  }

  .forum-thread-row {
    grid-template-columns: 1fr;
  }

  .forum-thread-status {
    flex-direction: row;
  }

  .forum-open-thread {
    width: fit-content;
  }

  .forum-post {
    grid-template-columns: 1fr;
  }

  .forum-post-author-column {
    border-right: 0;
    border-bottom: 1px solid #4c584c;
  }

  .forum-author {
    flex-direction: row;
    gap: 12px;
    text-align: left;
  }

  .forum-author img {
    width: 54px;
    height: 54px;
    margin-bottom: 0;
  }
}

/* ==================================================
   FORUM SEARCH, HOME THREAD CREATION, AND AUTH FIXES
================================================== */

.forum-heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.forum-search-panel {
  margin-bottom: 24px;
  padding: 18px 20px;
  border: 1px solid #4d5a4d;
  border-radius: 17px;
  background: linear-gradient(180deg, #242c24, #171d17);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.forum-search-panel label {
  display: block;
  margin-bottom: 8px;
  color: #a6e778;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1px;
}

.forum-search-row {
  display: flex;
  gap: 9px;
}

.forum-search-row input {
  min-width: 0;
  flex: 1;
  padding: 11px 13px;
  border: 1px solid #596759;
  border-radius: 11px;
  outline: none;
  color: #edf2eb;
  background: #111711;
  font: inherit;
}

.forum-search-row input:focus {
  border-color: #82d249;
  box-shadow: 0 0 0 3px rgba(130, 210, 73, 0.16);
}

.forum-search-results {
  margin-top: 17px;
  overflow: hidden;
  border: 1px solid #465246;
  border-radius: 13px;
}

.forum-search-heading {
  padding: 10px 14px;
  color: #152311;
  background: #85d64d;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1px;
}

.forum-create-panel select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #596559;
  border-radius: 11px;
  outline: none;
  color: #eaf0e8;
  background: #111711;
  font: inherit;
}

.forgot-password-row {
  margin: 4px 0 20px;
  display: flex;
  justify-content: flex-end;
}

.forgot-password-row a {
  padding: 10px 14px;
  border: 1px solid #70c842;
  border-radius: 10px;
  color: #d5ffb8 !important;
  background: linear-gradient(180deg, #344533, #1c281b);
  box-shadow: inset 0 1px rgba(255,255,255,.1), 0 3px 8px rgba(0,0,0,.3);
  text-decoration: none;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .5px;
}

.forgot-password-row a:hover {
  color: #fff !important;
  border-color: #a1ed6a;
  background: linear-gradient(180deg, #4c6844, #263d22);
}

.auth-kicker {
  margin: 0 0 8px;
  color: #8fda55;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.4px;
}

/* ==================================================
   EDITABLE PROFILE TAGS
================================================== */

.edit-tags-panel {
  margin: 24px 0;
  padding: 18px;
  border: 1px solid #4d5b4d;
  border-radius: 16px;
  background: linear-gradient(180deg, #252d25, #171d17);
}

.edit-tags-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.edit-tags-heading h2 {
  margin: 0 0 5px;
  color: #9be561;
  font-size: 12px;
  letter-spacing: 1px;
}

.edit-tags-heading p,
.edit-tags-heading > span {
  margin: 0;
  color: #a6b0a6;
  font-size: 10px;
}

.edit-tag-list {
  min-height: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.edit-tags-empty {
  margin: 0;
  color: #7f8a7f;
  font-size: 10px;
}

.edit-tag-chip {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #5ea13d;
  border-radius: 11px;
  color: #dff5d1;
  background: #263622;
  font-size: 10px;
}

.edit-tag-chip > span {
  padding: 7px 9px;
}

.edit-tag-chip button {
  align-self: stretch;
  min-width: 28px;
  border: 0;
  border-left: 1px solid #5ea13d;
  color: #f1b3ad;
  background: #172117;
  cursor: pointer;
  font-size: 15px;
}

.edit-tag-chip button:hover {
  color: #fff;
  background: #743a36;
}

.edit-tag-add-row {
  display: flex;
  gap: 9px;
}

.edit-tag-add-row input {
  min-width: 0;
  flex: 1;
  padding: 11px 12px;
  border: 1px solid #586558;
  border-radius: 10px;
  color: #edf2eb;
  background: #111711;
}

.edit-tag-add-row button {
  padding: 10px 14px;
  border: 1px solid #397e24;
  border-radius: 10px;
  color: #12210f;
  background: linear-gradient(180deg, #aeea79, #55b831);
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 650px) {
  .forum-search-row,
  .edit-tag-add-row {
    flex-direction: column;
  }

  .forum-heading-actions {
    justify-content: flex-start;
  }
}


/* ==================================================
   FORUM CONTEXT ACTIONS
================================================== */

[hidden] {
  display: none !important;
}

#forum-thread-reply-button {
  min-width: 160px;
}

#forum-home-create-panel,
#forum-reply-panel {
  scroll-margin-top: 24px;
}

.forum-heading-actions .forum-primary-button,
.forum-heading-actions .forum-secondary-button {
  white-space: nowrap;
}
