html,
body.arcade-body {
  min-height: 100%;
}

body.arcade-body {
  margin: 0;
  padding: 76px 18px 0 204px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 122, 37, 0.42) 0 90px, transparent 210px),
    radial-gradient(circle at 86% 18%, rgba(255, 67, 67, 0.35) 0 70px, transparent 190px),
    radial-gradient(circle at 54% 78%, rgba(72, 0, 0, 0.55) 0 150px, transparent 360px),
    radial-gradient(1px 1px at 9% 22%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 27% 67%, rgba(255,229,199,0.75), transparent),
    radial-gradient(1px 1px at 63% 28%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 82% 73%, rgba(255,219,180,0.65), transparent),
    linear-gradient(180deg, #b50000 0%, #f10a05 38%, #930000 100%);
  background-attachment: fixed;
  background-size: auto, auto, auto, 220px 220px, 280px 280px, 240px 240px, 320px 320px, auto;
  color: #fff8f1;
  font-family: "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
  transition: padding-left 0.2s ease;
}

body.arcade-body::before,
body.arcade-body::after {
  display: none;
}

.arcade-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 76px;
  display: grid;
  grid-template-columns: 44px 238px minmax(240px, 1fr) 282px;
  align-items: center;
  gap: 18px;
  padding: 10px 18px;
  background: rgba(18, 0, 0, 0.92);
  border-bottom: 1px solid rgba(255, 74, 42, 0.28);
  box-shadow: 0 10px 28px rgba(20, 0, 0, 0.42);
  backdrop-filter: blur(12px);
}

.arcade-menu-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 197, 142, 0.24);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
}

.arcade-menu-toggle span {
  width: 19px;
  height: 2px;
  display: block;
  border-radius: 2px;
  background: #ffd9bd;
}

.arcade-logo {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}

.arcade-logo img {
  display: block;
  width: 245px;
  height: auto;
  max-height: 56px;
  object-fit: contain;
}

.arcade-search {
  justify-self: center;
  width: min(270px, 100%);
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  color: #756d85;
  background: #f6f4f8;
  border: 1px solid #edeaf2;
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.arcade-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #2b2435;
  font-size: 16px;
}

.arcade-search input::placeholder {
  color: #8b8593;
}

.arcade-header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 197, 142, 0.18);
  border-radius: 24px;
}

.arcade-member-link {
  max-width: 110px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #ffd9bd;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arcade-member-link:hover {
  color: #ffffff;
}

.arcade-icon-button,
.arcade-tool-button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #6f657f;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.arcade-icon-button {
  color: #ffd9bd;
}

.arcade-icon-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #e446ce, #6a3ce8);
}

.arcade-icon-button.active {
  color: #1b0704;
  background: #ffd9bd;
}

.arcade-trophy-button {
  color: #ffcf4a;
  font-size: 18px;
}

.arcade-trophy-button:hover,
.arcade-trophy-button[aria-expanded="true"] {
  color: #1b0704;
  background: #ffcf4a;
}

.arcade-leaderboard-modal[hidden] {
  display: none;
}

.arcade-leaderboard-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 20px;
}

.arcade-leaderboard-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.arcade-leaderboard-panel {
  position: relative;
  width: min(460px, 100%);
  max-height: min(680px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  color: #fff8f1;
  background: #211421;
  border: 1px solid rgba(255, 207, 74, 0.28);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.arcade-leaderboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.arcade-leaderboard-kicker {
  display: block;
  color: #ffcf4a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.arcade-leaderboard-head h2 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.1;
}

.arcade-leaderboard-close {
  flex: 0 0 auto;
  color: #ffd9bd;
  font-size: 24px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
}

.arcade-leaderboard-list {
  min-height: 0;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.arcade-leaderboard-row {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.arcade-leaderboard-row.rank-1 {
  border-color: rgba(255, 207, 74, 0.48);
  background: linear-gradient(90deg, rgba(255, 207, 74, 0.18), rgba(255, 255, 255, 0.07));
}

.arcade-leaderboard-row.rank-2 {
  border-color: rgba(219, 228, 240, 0.36);
}

.arcade-leaderboard-row.rank-3 {
  border-color: rgba(255, 176, 106, 0.36);
}

.arcade-leaderboard-rank {
  color: #ffcf4a;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}

.arcade-leaderboard-row img,
.arcade-leaderboard-row .arcade-rank-avatar {
  width: 38px;
  height: 38px;
}

.arcade-leaderboard-row img {
  object-fit: cover;
  border-radius: 50%;
}

.arcade-leaderboard-user {
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 15px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arcade-leaderboard-row strong {
  color: #ffcf4a;
  font-size: 13px;
  white-space: nowrap;
}

body.arcade-leaderboard-open {
  overflow: hidden;
}

.arcade-sidebar {
  position: fixed;
  z-index: 900;
  top: 76px;
  left: 0;
  bottom: 0;
  width: 190px;
  padding: 26px 18px 18px 20px;
  overflow-y: auto;
  background: rgba(18, 0, 0, 0.9);
  border-right: 1px solid rgba(255, 74, 42, 0.26);
  box-shadow: 16px 0 34px rgba(20, 0, 0, 0.26);
  transition: transform 0.2s ease;
}

.arcade-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.arcade-nav-link {
  min-height: 46px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: #ffd9bd;
  font-size: 16px;
  line-height: 1.1;
  text-decoration: none;
  border-radius: 10px;
}

.arcade-nav-link:hover,
.arcade-nav-link.active {
  color: #ffffff;
  background: rgba(255, 115, 64, 0.12);
}

.arcade-nav-icon,
.arcade-category-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
  font-size: 24px;
}

.arcade-burst {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  border-radius: 50%;
}

.arcade-burst.hot {
  background: #ff5b18;
}

.arcade-burst.new {
  background: #ffc20b;
}

.arcade-nav-separator {
  height: 1px;
  margin: 12px 0;
  background: #d9d5df;
  opacity: 0.28;
}

.arcade-leaderboard {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.arcade-leaderboard h3 {
  margin: 0 0 2px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.arcade-rank-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 7px;
  color: #ffd9bd;
  text-decoration: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.arcade-rank-card:hover {
  color: #ffffff;
  background: rgba(255, 115, 64, 0.14);
}

.arcade-rank-medal {
  font-size: 11px;
  font-weight: 900;
}

.arcade-rank-card.rank-1 .arcade-rank-medal {
  color: #ffd04d;
}

.arcade-rank-card.rank-2 .arcade-rank-medal {
  color: #dbe4f0;
}

.arcade-rank-card.rank-3 .arcade-rank-medal {
  color: #ffb06a;
}

.arcade-rank-card img,
.arcade-rank-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.arcade-rank-card img {
  object-fit: cover;
}

.arcade-rank-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1b0704;
  background: #ffd9bd;
  font-size: 13px;
  font-weight: 900;
}

.arcade-rank-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.arcade-rank-card strong {
  color: #ffffff;
  font-size: 12px;
}

.arcade-rank-empty {
  margin: 0;
  color: #ffd9bd;
  font-size: 12px;
  opacity: 0.8;
}

body.arcade-menu-collapsed {
  padding-left: 64px;
}

body.arcade-menu-collapsed .arcade-sidebar {
  transform: translateX(-190px);
}

body.arcade-menu-collapsed .arcade-menu-toggle {
  position: relative;
}

body[data-theme="light"].arcade-body {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 165, 86, 0.44) 0 90px, transparent 210px),
    radial-gradient(circle at 86% 18%, rgba(255, 91, 91, 0.28) 0 70px, transparent 190px),
    linear-gradient(180deg, #ffd8c5 0%, #ef2d20 48%, #8e0000 100%);
  color: #210705;
}

body[data-theme="light"] .arcade-header,
body[data-theme="light"] .arcade-sidebar {
  background: rgba(30, 0, 0, 0.82);
}

body[data-theme="light"] .arcade-info .game-description-container {
  background: rgba(55, 0, 0, 0.9);
}

.arcade-main {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
}

.arcade-stage {
  display: grid;
  grid-template-columns: clamp(180px, 11vw, 210px) minmax(0, 1fr) clamp(330px, 22vw, 420px);
  gap: 8px;
  align-items: start;
}

.arcade-left-rail {
  display: grid;
  gap: 8px;
}

.arcade-right-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.arcade-player-column {
  min-width: 0;
}

.arcade-player {
  position: relative;
  width: 100%;
  height: clamp(500px, calc(100vh - 156px), 690px);
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, #5c3195 0%, #3d176f 52%, #2b0d50 100%);
}

.arcade-iframe-wrap,
.arcade-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.arcade-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, #5c3195 0%, #3d176f 52%, #2b0d50 100%);
}

.arcade-loader > img {
  position: absolute;
  inset: -30px;
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  object-fit: cover;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.05);
}

.arcade-loader-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(116, 80, 186, 0.72), rgba(53, 16, 100, 0.96) 64%),
    linear-gradient(180deg, rgba(61, 24, 112, 0.94), rgba(43, 13, 80, 0.98));
}

.arcade-play-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  color: #ffffff;
  text-align: center;
}

.arcade-play-thumb {
  width: 160px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.arcade-play-panel h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  font-weight: 800;
  color: #ffffff;
}

.arcade-play-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 22px 8px 8px;
  border: 0;
  border-radius: 32px;
  color: #ffffff;
  background: linear-gradient(135deg, #4b8ff4, #6a22e8);
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(65, 58, 205, 0.34);
}

.arcade-play-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4f68df;
  background: #ffffff;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
}

.arcade-game-bar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 16px 8px 20px;
  background: #f0eff2;
  color: #171221;
}

.arcade-game-bar h2 {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 800;
}

.arcade-reactions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.arcade-reaction-button,
.arcade-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
}

.arcade-reaction-button {
  gap: 5px;
  min-width: 54px;
  height: 34px;
  padding: 0 10px;
  color: #2a2134;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(43, 33, 52, 0.1);
  font-size: 15px;
  font-weight: 800;
}

.arcade-reaction-button.active {
  color: #ffffff;
  background: #5b62f0;
}

.arcade-reaction-button.heart.active {
  background: #e32972;
}

.arcade-rating {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 9px;
  color: #2a2134;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(43, 33, 52, 0.1);
}

.arcade-star {
  width: 22px;
  height: 30px;
  padding: 0;
  color: #b8aebe;
  background: transparent;
  font-size: 19px;
  line-height: 1;
}

.arcade-star.active,
.arcade-star:hover,
.arcade-star:hover ~ .arcade-star {
  color: #ffbe18;
}

.arcade-rating-score {
  margin-left: 5px;
  color: #6d6274;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

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

.arcade-tool-button {
  position: relative;
  color: #191521;
  font-size: 22px;
  border-radius: 8px;
}

.arcade-share {
  position: relative;
}

.arcade-share-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 5;
  min-width: 132px;
  display: none;
  padding: 6px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(20, 0, 0, 0.22);
}

.arcade-share.open .arcade-share-menu {
  display: block;
}

.arcade-share-menu a {
  display: block;
  padding: 9px 10px;
  color: #1f1828;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 6px;
}

.arcade-share-menu a:hover {
  color: #ffffff;
  background: #5b62f0;
}

.arcade-panel-button .arcade-control-icon {
  width: 23px;
  height: 23px;
  display: block;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arcade-panel-button[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 50%;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: 240px;
  padding: 7px 10px;
  color: #ffffff;
  background: rgba(42, 42, 42, 0.92);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateX(50%) translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.arcade-panel-button[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(50%) translateY(0);
}

.arcade-game-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 7px;
  color: #ffffff;
  background: #e8e6ee;
  text-decoration: none;
}

.arcade-game-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.arcade-game-card:hover img {
  transform: scale(1.04);
  filter: brightness(0.82);
}

.arcade-card-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 7px 7px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.arcade-game-card:hover .arcade-card-title {
  opacity: 1;
}

.arcade-card-badge {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  min-width: 58px;
  padding: 4px 8px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  border-radius: 0 0 10px 0;
}

.arcade-card-badge.hot {
  background: #ff8a1f;
}

.arcade-card-badge.new {
  background: #5663e8;
}

.arcade-grid-section {
  margin-top: 12px;
}

.arcade-game-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.arcade-game-grid .is-hidden-by-limit {
  display: none;
}

.arcade-grid-toggle-wrap {
  display: flex;
  justify-content: center;
  margin: 18px 0 4px;
}

.arcade-grid-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 181, 112, 0.38);
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  background: rgba(55, 0, 0, 0.64);
  box-shadow: 0 10px 24px rgba(35, 0, 0, 0.28);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.arcade-grid-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 181, 112, 0.78);
  background: rgba(85, 0, 0, 0.78);
}

.arcade-grid-toggle-icon {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.arcade-grid-toggle.is-expanded .arcade-grid-toggle-icon {
  transform: rotate(225deg) translateY(-2px);
}

.arcade-grid-toggle[hidden] {
  display: none;
}

.arcade-ad,
.arcade-info,
.arcade-message {
  max-width: 1080px;
  margin: 28px auto;
}

.arcade-ad-728x90 {
  width: min(728px, 100%);
  min-height: 90px;
  margin: 12px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(36, 0, 0, 0.46);
  border: 1px solid rgba(255, 181, 112, 0.18);
}

.arcade-info {
  color: #171717;
}

.arcade-info .breadcrumb {
  margin: 0 0 22px;
  padding: 0;
  color: #718096;
  background: transparent;
  box-shadow: none;
}

.arcade-info .breadcrumb,
.arcade-info .breadcrumb a,
.arcade-info .breadcrumb-item,
.arcade-info .breadcrumb-item.active {
  color: #718096;
}

.arcade-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.arcade-info .game-description-container {
  position: relative;
  padding: 28px 34px 34px;
  color: #171717;
  background: #ffffff;
  border: 4px solid #050505;
  border-radius: 16px;
  box-shadow:
    10px 12px 0 #050505,
    0 24px 50px rgba(45, 0, 0, 0.28);
}

.arcade-info .game-description {
  max-height: 96px;
  color: #333333;
  font-size: 16px;
  line-height: 1.55;
}

.arcade-info .game-description h1,
.arcade-info .game-description h2,
.arcade-info .game-description h3 {
  margin-top: 0;
  color: #171717;
}

.arcade-info .game-description p,
.arcade-info .game-description li {
  color: #333333;
}

.arcade-info .game-description a {
  color: #6f58d9;
  font-weight: 700;
}

.arcade-info .game-description::after {
  height: 58px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff);
}

.arcade-info .show-more-btn {
  min-width: 108px;
  margin: 18px auto 0;
  padding: 11px 18px;
  display: inline-flex;
  justify-content: center;
  color: #ffffff;
  background: #ff4054;
  border: 3px solid #050505;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 4px 5px 0 #050505;
  text-decoration: none;
}

.arcade-info .show-more-wrapper {
  display: flex;
  justify-content: center;
}

.arcade-info .game-description.expanded {
  max-height: none;
}

.arcade-comments {
  min-width: 0;
  padding: 24px;
  color: #171717;
  background: #ffffff;
  border: 4px solid #050505;
  border-radius: 16px;
  box-shadow:
    10px 12px 0 #050505,
    0 24px 50px rgba(45, 0, 0, 0.28);
}

.arcade-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.arcade-comments-head h2 {
  margin: 0;
  color: #171717;
  font-size: 24px;
  line-height: 1.1;
}

.arcade-comments-head span {
  min-width: 34px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #ff4054;
  border: 3px solid #050505;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 3px 4px 0 #050505;
}

.arcade-comment-form {
  margin: 0 0 18px;
  gap: 10px;
}

.arcade-comment-form textarea {
  width: 100%;
  min-height: 98px;
  padding: 12px;
  color: #171717;
  background: #f7f7fb;
  border: 2px solid #d7d4df;
  border-radius: 10px;
  font: inherit;
  resize: vertical;
}

.arcade-comment-form textarea:focus {
  outline: none;
  border-color: #ff4054;
  box-shadow: 0 0 0 3px rgba(255, 64, 84, 0.14);
}

.arcade-comment-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.arcade-comment-form-foot small {
  color: #6c6470;
  font-size: 12px;
  line-height: 1.35;
}

.arcade-comment-form button {
  flex: 0 0 auto;
  padding: 9px 16px;
  color: #ffffff;
  background: #ff4054;
  border: 3px solid #050505;
  border-radius: 10px;
  font-weight: 900;
  box-shadow: 3px 4px 0 #050505;
  cursor: pointer;
}

.arcade-comment-form button:disabled {
  opacity: 0.68;
  cursor: wait;
}

.arcade-comment-feedback {
  min-height: 18px;
  margin: 0;
  color: #087442;
  font-size: 13px;
  font-weight: 800;
}

.arcade-comment-feedback.error {
  color: #c51f32;
}

.arcade-comment-login,
.arcade-comment-empty {
  margin: 0 0 16px;
  color: #625b68;
  font-size: 14px;
}

.arcade-comment-login a {
  color: #ff4054;
  font-weight: 900;
}

.arcade-comment-list {
  max-height: 380px;
  display: grid;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
}

.arcade-comment-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  background: #f7f7fb;
  border: 1px solid #e3e0e8;
  border-radius: 10px;
}

.arcade-comment-item img,
.arcade-comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.arcade-comment-item img {
  object-fit: cover;
}

.arcade-comment-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1b0704;
  background: #ffd9bd;
  font-weight: 900;
}

.arcade-comment-item header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.arcade-comment-item strong {
  min-width: 0;
  overflow: hidden;
  color: #171717;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arcade-comment-item time {
  flex: 0 0 auto;
  color: #817987;
  font-size: 11px;
  font-weight: 700;
}

.arcade-comment-item p {
  margin: 0;
  color: #343039;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

body.arcade-body .footer-bg {
  width: calc(100vw - 190px);
  margin: 38px 0 0;
  margin-left: calc((100vw - 190px - 100%) / -2 - 14px);
  margin-right: calc((100vw - 190px - 100%) / -2);
}

body.arcade-menu-collapsed .footer-bg {
  width: 100vw;
  margin-left: calc((100vw - 100%) / -2);
  margin-right: calc((100vw - 100%) / -2);
}

body.arcade-body .footer-bg {
  padding: 44px 20px 24px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 73, 38, 0.32), transparent 360px),
    linear-gradient(180deg, rgba(58, 0, 0, 0.96), #050000 72%);
  border-top: 1px solid rgba(255, 120, 72, 0.3);
  box-shadow: 0 -24px 50px rgba(38, 0, 0, 0.24);
}

body.arcade-body .footer-bg .col-md-10 {
  max-width: 860px;
  padding: 0;
}

body.arcade-body .footer-bg img[alt="Footer image"] {
  width: min(340px, 80vw);
  filter: drop-shadow(0 16px 34px rgba(255, 86, 25, 0.34));
}

body.arcade-body .footer-bg p {
  margin: 12px 0;
  color: #fff0e6;
}

body.arcade-body .footer-bg a {
  color: #ffd35f !important;
  text-decoration: none;
  font-weight: 700;
}

body.arcade-body .footer-bg a:hover {
  color: #ffffff !important;
}

body.arcade-body .footer-bg .mb-2 {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 18px 0 14px !important;
}

body.arcade-body .footer-bg .mb-2 a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 195, 120, 0.22);
}

body.arcade-body .footer-bg .mb-2 img {
  margin: 0 !important;
}

body.arcade-body .footer-bg .mb-3 {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px !important;
}

body.arcade-body .footer-bg .text-success {
  color: #ff7a42 !important;
}

body.arcade-body .hr-dash {
  max-width: 720px;
  border-color: rgba(255, 221, 168, 0.22);
}

.category-arcade-page {
  padding-top: 12px;
}

.category-hero {
  min-height: 210px;
  display: flex;
  align-items: flex-end;
  padding: 34px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(38, 21, 83, 0.92), rgba(79, 32, 132, 0.7)),
    url("../../uploads/1777435867_f9a3a93e.png") center / cover;
}

.category-kicker {
  margin: 0 0 8px;
  color: #ffe25c;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.category-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  font-weight: 900;
}

.category-summary {
  max-width: 760px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.5;
}

.category-summary p {
  margin: 0;
}

.category-game-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.category-empty {
  max-width: 720px;
  margin: 42px auto;
  padding: 36px;
  text-align: center;
  color: #241a38;
  background: #f6f4f8;
  border: 1px solid #eceaf2;
  border-radius: 8px;
}

.category-empty h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.category-home-link {
  display: inline-flex;
  margin-top: 16px;
  padding: 10px 16px;
  color: #ffffff;
  background: #5a43d6;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.search-arcade-page,
.static-arcade-page {
  padding-top: 12px;
}

.search-hero,
.static-hero {
  margin-bottom: 18px;
}

.section-title-row {
  margin: 28px 0 12px;
}

.section-title-row h2 {
  margin: 0;
  color: #ffffff;
  font-size: 28px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.search-empty {
  margin-bottom: 10px;
}

.static-page-description {
  max-height: none;
}

.static-page-description::after {
  display: none;
}

@media (max-width: 1400px) {
  body.arcade-body {
    padding-left: 204px;
  }

  .arcade-stage {
    grid-template-columns: 150px minmax(0, 1fr) 304px;
  }

  .arcade-game-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .category-game-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  body.arcade-body {
    padding-left: 18px;
  }

  .arcade-header {
    grid-template-columns: 44px auto minmax(180px, 1fr) auto;
  }

  .arcade-sidebar {
    display: block;
    z-index: 1100;
    width: min(280px, calc(100vw - 42px));
    transform: translateX(-110%);
    box-shadow: 18px 0 36px rgba(20, 0, 0, 0.42);
  }

  body.arcade-menu-collapsed .arcade-sidebar {
    transform: translateX(-110%);
  }

  body.arcade-menu-open .arcade-sidebar {
    transform: translateX(0);
  }

  .arcade-stage {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .arcade-right-rail {
    grid-column: 1 / -1;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .category-game-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  body.arcade-body .footer-bg {
    width: 100vw;
    margin-left: calc((100vw - 100%) / -2);
    margin-right: calc((100vw - 100%) / -2);
  }

  body.arcade-menu-collapsed .footer-bg {
    width: 100vw;
    margin-left: calc((100vw - 100%) / -2);
    margin-right: calc((100vw - 100%) / -2);
  }
}

@media (max-width: 820px) {
  body.arcade-body {
    padding: 132px 10px 0;
  }

  .arcade-header {
    height: 122px;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
  }

  .arcade-sidebar {
    top: 122px;
  }

  .arcade-logo img {
    width: 210px;
  }

  .arcade-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .arcade-stage {
    display: block;
  }

  .arcade-left-rail,
  .arcade-right-rail {
    display: none;
  }

  .arcade-player {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .arcade-game-bar {
    flex-wrap: wrap;
    padding: 8px 10px;
  }

  .arcade-game-bar h2 {
    flex: 1 1 calc(100% - 150px);
    font-size: 15px;
  }

  .arcade-reactions {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    padding-top: 6px;
  }

  .arcade-reaction-button {
    min-width: 50px;
    height: 32px;
  }

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

  .arcade-info-grid {
    grid-template-columns: 1fr;
  }

  .arcade-comment-list {
    max-height: none;
  }

  .category-hero {
    min-height: 170px;
    padding: 24px;
  }

  .arcade-play-thumb {
    width: 112px;
  }

  .arcade-play-button {
    font-size: 19px;
  }

  body.arcade-body .footer-bg {
    width: 100vw;
    margin-left: calc((100vw - 100%) / -2);
    margin-right: calc((100vw - 100%) / -2);
  }
}

@media (max-width: 520px) {
  .arcade-logo img {
    width: 178px;
  }

  .arcade-header-actions {
    transform: scale(0.92);
    transform-origin: right center;
  }

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

  .arcade-info .game-description-container,
  .arcade-comments {
    padding: 22px 18px 24px;
    box-shadow:
      6px 8px 0 #050505,
      0 18px 36px rgba(45, 0, 0, 0.22);
  }

  .arcade-comment-form-foot,
  .arcade-comment-item header {
    align-items: flex-start;
    flex-direction: column;
  }

  .arcade-play-panel {
    gap: 14px;
  }

  .arcade-play-panel h1 {
    font-size: 21px;
  }
}
