:root {
  --bg: #0a0a0a;
  --panel: #141414;
  --panel2: #1c1c1c;
  --text: #e9e9e9;
  --muted: #b5b5b5;
  --border: rgba(233, 233, 233, 0.18);
  --accent: #e9e9e9;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 16px;
}

:root[data-theme="light"] {
  --bg: #e9e9e9;
  --panel: #f7f7f7;
  --panel2: #ffffff;
  --text: #111111;
  --muted: #4a4a4a;
  --border: rgba(0, 0, 0, 0.2);
  --accent: #111111;
  --question: #0a0a0a;
  --answer: #111111;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
}

body,
.topbar,
.card,
.project-btn,
.panel,
.btn,
.chip,
.icon-btn,
input,
textarea,
.nav a,
.footer-links a,
.section.alt,
section,
* {
  transition: background-color 0.75s ease, color 0.35s ease,
    border-color 0.35s ease, box-shadow 0.35s ease;
}

section {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 10px;
}
.skip:focus {
  left: 20px;
  z-index: 10;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 0;
}

.topbar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 1;
  position: relative;
}

.hero-main-image {
  width: 200px;
  height: auto;
  border-radius: 14px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.nav-home {
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 65%, transparent);
  margin-right: 24px;
}
.nav-home:hover {
  text-decoration: none;
  filter: brightness(1.05);
}
.nav a {
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 65%, transparent);
}
.nav a:hover {
  text-decoration: none;
  filter: brightness(1.05);
}
.pill {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  color: var(--text) !important;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 65%, transparent);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}
.icon-btn:hover {
  filter: brightness(1.06);
}
.hamburger-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: none;
}
.hamburger-container:hover {
  background: color-mix(in srgb, var(--panel) 65%, transparent);
}
.hamburger-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 100%;
  height: 100%;
}
.hamburger-line {
  width: 28px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger-btn.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-nav {
  display: none;
  position: fixed;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 4;
  flex-direction: column;
  gap: 0;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 95%, transparent);
  backdrop-filter: blur(10px);
  animation: slideUp 0.3s ease;
}
.mobile-nav.open {
  display: flex;
  animation: slideDown 0.3s ease;
}
.mobile-nav a {
  padding: 12px 16px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}
.mobile-nav a:hover {
  background: color-mix(in srgb, var(--text) 10%, transparent);
  text-decoration: none;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }
  .nav {
    display: none;
  }
}

.hero {
  padding: 52px 0 30px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
  text-align: center;
}
.hero-inner > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-image-center {
  display: flex;
  justify-content: center;
  width: 100%;
}
.hero-name {
  font-size: 1em;
  font-weight: 900;
  text-transform: uppercase;
  font-variant: small-caps;
  letter-spacing: 0.05em;
}
.hero-capital {
  font-size: 1.25em;
}
.hero-text-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.hero-text-block h2 {
  margin: 0;
}
.hero-text-block p {
  margin: 0;
  color: var(--muted);
}
.cursive {
  font-style: italic;
}
.hero-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.hero-link-btn {
  flex: 1;
  min-width: 120px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #ffffff;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  transition: filter 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.hero-link-btn:hover {
  text-decoration: none;
  filter: brightness(1.07);
}
.hero-itchio {
  background: #fa5c4d !important;
  color: #ffffff !important;
}
.hero-youtube {
  background: #ff0000 !important;
  color: #ffffff !important;
}

.social-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
.social-icon.youtube-logo {
  width: 20px;
  height: auto;
  aspect-ratio: 16/12;
  object-fit: contain;
  flex-shrink: 0;
  border: 1px solid #ffffff;
  border-radius: 4px;
  box-sizing: border-box;
}
.social-icon.itchio-logo {
  border: 1px solid #ffffff;
  border-radius: 50%;
  box-sizing: border-box;
}
.social-icon.discord-logo {
  border: 1px solid #ffffff;
  border-radius: 50%;
  box-sizing: border-box;
}
.social-icon.twitch-logo {
  padding: px;
  border: 1px solid #ffffff; 
  border-radius: 50%;
  box-sizing: border-box;
}
.social-icon.reddit-logo {
  border: 1px solid #ffffff;
  border-radius: 50%;
  box-sizing: border-box;
}
.social-icon.instagram-logo {
  border: 1px solid #ffffff;
  border-radius: 50%;
  box-sizing: border-box;
}
.social-icon.tiktok-logo {
  border: 1px solid #ffffff;
  border-radius: 50%;
  box-sizing: border-box;
}
.social-icon.patreon-logo {
  border: 1px solid #ffffff;
  border-radius: 25%;
  box-sizing: border-box;
}
.kicker {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.2px;
  margin: 0 0 10px;
}
h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 6vw, 54px);
  line-height: 1.05;
}
h2 {
  margin: 0;
  font-size: clamp(20px, 5vw, 28px);
}
.accent {
  color: var(--accent);
}
.lede {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 60ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 18px;
}
.btn {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover {
  filter: brightness(1.07);
  text-decoration: none;
}
.btn.primary {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}
.btn.ghost {
  background: transparent;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}
.meta-item {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 60%, transparent);
  border-radius: 14px;
  padding: 10px 12px;
  min-width: 160px;
}
.meta-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.meta-value {
  font-weight: 800;
  margin-top: 4px;
}

.card {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.section {
  padding: 52px 0;
}
.section.alt {
  background: color-mix(in srgb, var(--panel2) 40%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
h2 {
  margin: 0;
  font-size: 24px;
}
.sub {
  margin: 6px 0 0;
  color: var(--muted);
}

.filters {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;

  width: 100%;
}
.filter-input {
  display: flex;
  align-items: stretch;
  flex: 1;
}
.filter-input input {
  min-width: 200px;
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
}
.chip {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 65%, transparent);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}
.chip.active {
  border-color: var(--text);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 18%, transparent);
}

.filter-dropdown-wrapper {
  position: relative;
  display: inline-block;
}
.filter-dropdown-btn {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 65%, transparent);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.filter-dropdown-btn:hover {
  filter: brightness(1.05);
}
.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}
.filter-dropdown-btn.open .dropdown-arrow {
  transform: rotate(180deg);
}
.filter-dropdown-menu {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  margin-top: 48px;
  background: color-mix(in srgb, var(--panel2) 95%, transparent);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 220px;
  z-index: 10;
  flex-direction: column;
  padding: 8px 0;
}
.filter-dropdown-menu.open {
  display: flex;
}
.filter-category {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.filter-category:last-child {
  border-bottom: none;
}
.filter-category-title {
  margin: 0 0 8px 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.checkbox-label {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background-color 0.15s ease;
  font-size: 15px;
  font-weight: 500;
  color: white;
}
.checkbox-label:hover {
  background: color-mix(in srgb, var(--text) 8%, transparent);
}
.checkbox-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: var(--text);
  flex-shrink: 0;
}
.checkbox-label input[type="checkbox"]:checked + span {
  font-weight: 600;
}
.checkbox-label span {
  display: inline;
  text-align: left;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
}
.project {
  width: calc(50% - 7px);
  perspective: 1000px;
}
.project-btn {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  box-shadow: var(--shadow);
  color: inherit;
  height: 100%;
}
.project-btn:hover {
  filter: brightness(1.06);
}

/* Flip card animation */
.project-card-flip {
  position: relative;
  width: 100%;
  height: 160px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.project-card-flip.flipped {
  transform: rotateY(180deg);
}
.project-card-front,
.project-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
}
.project-card-front {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotateY(0deg);
}
.project-card-back {
  transform: rotateY(180deg);
  padding: 16px;
  overflow-y: auto;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.project-card-back h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
}
.project-card-back p {
  margin: 0 0 8px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.project-card-back ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.project-card-back-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.project-card-back-links a {
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel2) 70%, transparent);
  color: var(--text);
  transition: filter 0.2s;
}
.project-card-back-links a:hover {
  text-decoration: none;
  filter: brightness(1.07);
}

.project-top {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 80%;
}
.project-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  height: 20%;
}
.projects-links {
  text-align: center;
  margin-top: 24px;
  padding: 0 16px;
}
.projects-links p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 12px 0;
}
.projects-links-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.projects-links-buttons .social-btn {
  flex: 0 1 auto;
  min-width: 140px;
}
.thumb {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--panel2) 75%, transparent),
    color-mix(in srgb, var(--panel) 75%, transparent)
  );
  display: grid;
  place-items: center;
}
.thumb-inner {
  font-weight: 900;
}
.project-meta h3 {
  margin: 0;
  font-size: 16px;
}
.project-meta p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}
.project-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.pricetag {
  font-size: 12px;
  font-weight: 900;
  border: 1px solid var(--border);
  padding: 6px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel2) 70%, transparent);
}
.release-date {
  align-items: flex-end;
  justify-content: flex-end;
}
.development-status {
  font-size: 12px;
  font-weight: 900;
  border: 1px solid var(--border);
  padding: 6px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel2) 70%, transparent);
  position: relative;
}
.development-status[data-release-date]::before {
  content: attr(data-release-date);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 4px;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  pointer-events: none;
}
.in-development{
  color: #f0ad4e;
  background: color-mix(in srgb, #f0ad4e 20%, transparent);
}
.released{
  color: #5cb85c;
  background: color-mix(in srgb, #5cb85c 20%, transparent);
}
.closed-alpha{
  color: #9b59b6;
  background: color-mix(in srgb, #9b59b6 20%, transparent);
}
.open-beta{
  color: #3498db;
  background: color-mix(in srgb, #3498db 20%, transparent);
}
.demo-available{
  color: #5bc0de;
  background: color-mix(in srgb, #5bc0de 20%, transparent);
}
.cancelled{
  color: #d9534f;
  background: color-mix(in srgb, #d9534f 20%, transparent);
}
.arrow {
  color: var(--muted);
  font-weight: 900;
}

.no-projects-found {
  width: 100%;
  text-align: center;
  padding: 48px 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
}
.no-projects-found.show {
  display: block;
}
.no-projects-found h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
}
.no-projects-found p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.panel {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  border-radius: var(--radius);
  padding: 16px;
}
.panel h3 {
  margin: 0 0 10px;
}
.bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.about {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 14px;
}
.question {
  font-size: 120%;
  font-weight: 800;
  margin: 0;  
  color: var(--question);
  line-height: 1.6;
}
.answer {
  margin-top: 0;
  line-height: 1.6;
  margin-bottom: 40px;
  color: var(--answer);
}
.about-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.stat {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--panel2) 65%, transparent);
  min-width: 160px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.stat-bottom-align {
  justify-content: flex-end;
  min-height: 100px;
}
.stat-with-image {
  padding-top: 50px;
}
.stat-image {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}
.stat-with-languages {
  padding-top: 50px;
}
.stat-languages {
  position: absolute;
  top: 10px;
  left: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-direction: row;
}
.language-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}
.stat-num {
  font-weight: 950;
  font-size: 18px;
}
.stat-label {
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  margin-top: 4px;
}

.linklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.linklist a {
  font-weight: 900;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--panel2) 60%, transparent);
}
.linklist a:hover {
  text-decoration: none;
  filter: brightness(1.06);
}
.socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.socials-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.socials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}
.social-btn {
  flex: 1;
  min-width: 140px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  transition: filter 0.2s ease;
}
.social-btn:hover {
  text-decoration: none;
  filter: brightness(1.07);
}
.social-btn-large {
  width: 100%;
  min-width: unset;
}
.social-btn-medium {
  flex: none;
  min-width: unset;
  width: 100%;
}

/* Social button brand colors */
.social-patreon {
  background: #ff6b35 !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}
.social-github {
  background: #24292f !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}
.social-discord {
  background: #5865f2 !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}
.social-instagram {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  ) !important;
  border-color: #bc1888 !important;
  color: #ffffff !important;
}
.social-tiktok {
  background: #000000 !important;
  border: 2px solid transparent !important;
  border-radius: 14px !important;
  background-image: linear-gradient(#000000, #000000), linear-gradient(135deg, #00f7ef 0%, #ff0050 100%) !important;
  background-origin: padding-box, border-box !important;
  background-clip: padding-box, border-box !important;
  color: #ffffff !important;
}
.social-youtube {
  background: #ff0000 !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}
.social-twitch {
  background: #9146ff !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}
.social-reddit {
  background: #ff4500 !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}
.social-itchio {
  background: #fa5c4d !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}
/*
.faq-question {
  font-size: 120%;
  font-weight: 800;
  margin: 0;  
  color: #dddddd;
  line-height: 1.6;
}
.faq-answer {
  margin-top: 0;
  line-height: 1.6;
  margin-bottom: 40px;
}
*/
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.contact-line {
  margin: 0 0 8px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.copy-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 14px;
}
.copy-btn:hover {
  background: color-mix(in srgb, var(--panel2) 60%, transparent);
  color: var(--text);
  border-color: var(--accent);
  transform: scale(1.1);
}
.copy-btn.copied {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent);
  border-color: var(--accent);
}
.copy-btn.copied::after {
  content: "✓";
  font-weight: 800;
}
.copy-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
}
.video-container iframe {
  border-radius: 12px;
}
/* Devlog Grid */
.devlog-card {
  position: relative;
  overflow: visible;
  transition: height 0.4s ease;
}
.devlog-card:has(.devlog-expanded[aria-hidden="false"]) {
  height: 100%;
  overflow: hidden;
}
.devlog-controls {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
}
.devlog-card:has(.devlog-expanded[aria-hidden="false"]) .devlog-controls {
  display: none;
}
.devlog-search {
  flex: 1;
}
.devlog-search input {
  width: 100%;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel2) 70%, transparent);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  outline: none;
  font-family: inherit;
  font-size: 14px;
}
.devlog-filters {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.filter-btn {
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.3s ease;
}
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}
.filter-btn.active {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  border-color: var(--accent);
  color: var(--accent);
}
.devlog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
  transition: filter 0.3s ease;
}
.devlog-card:has(.devlog-expanded[aria-hidden="false"]) .devlog-grid {
  display: none;
}
.devlog-item {
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 60%, transparent);
  transition: all 0.3s ease;
}
.devlog-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.devlog-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.devlog-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play-button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 40px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.devlog-item:hover .play-button {
  opacity: 1;
}
.devlog-item h4 {
  margin: 10px 12px 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.devlog-meta {
  margin: 0 12px 12px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.devlog-item.hidden {
  display: none;
}
/* Expanded Video View */
.devlog-expanded {
  position: absolute;
  inset: 0;
  background: var(--panel);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 6px;
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition: all 0.4s ease;
  z-index: 10;
  overflow: hidden;
}
.devlog-expanded[aria-hidden="false"] {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  position: relative;
  inset: auto;
}
.devlog-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  padding-top: 20px;
}
.devlog-player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.devlog-back-btn {
  position: relative;
  background: #3498db;
  border: none;
  color: #ffffff;
  padding: 12px 60px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
}
.devlog-back-btn:hover {
  background: #2980b9;
  transform: scale(1.08);
}
.devlog-player {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.devlog-player iframe {
  width: 100%;
  height: 100%;
}
#devlogTitle {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  text-align: left;
}
/* Responsive */
@media (max-width: 1024px) {
  .devlog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet and below */
@media (max-width: 768px) {
  .container {
    width: min(100%, calc(100% - 24px));
  }
  
  .hero {
    padding: 36px 0 20px;
  }
  
  .hero-inner {
    grid-template-columns: 1fr;
  }
  
  .hero-main-image {
    width: 150px;
    height: auto;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-link-btn {
    width: 100%;
    min-width: unset;
  }
  
  .cols {
    grid-template-columns: 1fr;
  }
  
  .about {
    grid-template-columns: 1fr;
  }
  
  .contact {
    grid-template-columns: 1fr;
  }
  
  .project {
    flex: 1 1 100%;
    width: 100%;
  }
  
  .grid {
    gap: 12px;
  }
  
  .socials-row {
    flex-direction: column;
  }
  
  .socials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .social-btn {
    flex: 1 1 100%;
  }
  
  .devlog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .nav {
    display: none;
  }
  
  .section {
    padding: 36px 0;
  }
  
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  
  h2 {
    font-size: clamp(18px, 4vw, 28px);
  }
  
  .lede {
    font-size: 15px;
  }
  
  .meta-item {
    min-width: 140px;
  }
  
  .modal-panel {
    width: min(95%, calc(100% - 20px));
    padding: 12px;
  }
}

/* Mobile (Portrait and Landscape) */
@media (max-width: 480px) {
  .container {
    width: min(100%, calc(100% - 16px));
  }
  
  .topbar-inner {
    padding: 12px 0;
    gap: 8px;
  }
  
  .nav-home {
    margin-right: 8px;
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .hero {
    padding: 24px 0 16px;
  }
  
  .hero-main-image {
    width: 120px;
  }
  
  .hero-text-block {
    gap: 6px;
  }
  
  h1 {
    font-size: clamp(24px, 5vw, 42px);
    margin: 0 0 6px;
  }
  
  h2 {
    font-size: clamp(16px, 4vw, 22px);
  }
  
  h3 {
    font-size: 16px;
  }
  
  p {
    font-size: 14px;
  }
  
  .lede {
    font-size: 14px;
    margin: 0 0 12px;
  }
  
  .hero-text-block h2 span {
    display: block;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
  }
  
  .hero-link-btn {
    width: 100%;
    font-size: 13px;
    padding: 10px 12px;
    gap: 6px;
  }
  
  .social-icon {
    width: 16px;
    height: 16px;
  }
  
  .section {
    padding: 28px 0;
  }
  
  .section-head {
    margin-bottom: 12px;
  }
  
  .grid {
    gap: 10px;
  }
  
  .project {
    width: 100%;
  }
  
  .project-btn {
    padding: 12px;
  }
  
  .project-top {
    gap: 10px;
  }
  
  .thumb {
    width: 40px;
    height: 40px;
  }
  
  .thumb-inner {
    font-size: 14px;
  }
  
  .project-meta h3 {
    font-size: 14px;
  }
  
  .project-meta p {
    font-size: 11px;
  }
  
  .project-desc {
    font-size: 13px;
  }
  
  .pricetag,
  .development-status {
    font-size: 11px;
    padding: 4px 8px;
  }
  
  .card {
    padding: 12px;
  }
  
  .cols {
    grid-template-columns: 1fr;
  }
  
  .panel {
    padding: 12px;
  }
  
  .panel h3 {
    margin: 0 0 8px;
    font-size: 15px;
  }
  
  .stat {
    min-width: 140px;
    padding: 10px;
  }
  
  .stat-num {
    font-size: 16px;
  }
  
  .stat-label {
    font-size: 11px;
  }
  
  .stat-image {
    width: 32px;
    height: 32px;
    top: 8px;
    left: 10px;
  }
  
  .language-logo {
    width: 28px;
    height: 28px;
  }
  
  .about-row {
    gap: 10px;
    margin-top: 10px;
  }
  
  .socials-grid {
    grid-template-columns: 1fr;
  }
  
  .social-btn {
    width: 100%;
    font-size: 13px;
    padding: 10px 12px;
  }
  
  .socials-row {
    gap: 10px;
  }
  
  .linklist {
    gap: 8px;
    margin-top: 6px;
  }
  
  .linklist a {
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 10px;
  }
  
  .contact-line {
    font-size: 13px;
    gap: 6px;
    margin: 0 0 6px;
  }
  
  .copy-btn {
    padding: 3px 6px;
    font-size: 12px;
  }
  
  .copy-icon {
    width: 14px;
    height: 14px;
  }
  
  .video-container {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
  }
  
  .devlog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .devlog-item h4 {
    margin: 8px 10px 3px;
    font-size: 12px;
  }
  
  .devlog-meta {
    margin: 0 10px 10px;
    font-size: 11px;
  }
  
  .devlog-controls {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
  }
  
  .devlog-search {
    width: 100%;
  }
  
  .devlog-search input {
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 12px;
    width: 100%;
  }
  
  .devlog-filters {
    width: 100%;
    flex-wrap: wrap;
  }
  
  .filter-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .filter-dropdown-btn {
    font-size: 11px;
  }
  
  .devlog-back-btn {
    padding: 10px 40px;
    font-size: 13px;
    border-radius: 8px;
  }
  
  #devlogTitle {
    font-size: 18px;
  }
  
  .devlog-content {
    gap: 16px;
    padding-top: 16px;
  }
  
  form {
    gap: 8px;
  }
  
  input,
  textarea {
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 14px;
  }
  
  input {
    height: 36px;
  }
  
  textarea {
    min-height: 100px;
  }
  
  label span {
    font-size: 11px;
    margin-top: 3px;
  }
  
  .char-counter {
    font-size: 11px;
    bottom: 6px;
    right: 10px;
  }
  
  .form-hint {
    font-size: 12px;
    padding: 8px 10px;
    margin-top: 6px;
  }
  
  .footer-inner {
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
  }
  
  .footer-links {
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .footer-links a {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 12px;
  }
  
  .modal-panel {
    width: calc(100% - 16px);
    border-radius: 14px;
  }
  
  .modal-head {
    margin-bottom: 8px;
    gap: 8px;
  }
  
  .filters {
    gap: 6px;
  }
  
  .filter-input input {
    min-width: 100%;
  }
  
  .chip {
    padding: 6px 8px;
    font-size: 11px;
  }
  
  .filter-dropdown-btn {
    font-size: 11px;
  }
  
  .filter-dropdown-menu {
    min-width: 180px;
  }
  
  .filter-category {
    padding: 6px 10px;
  }
  
  .checkbox-label {
    font-size: 13px;
    padding: 4px 6px;
    gap: 6px;
  }
  
  .checkbox-label input[type="checkbox"] {
    width: 12px;
    height: 12px;
  }
  
  .project-card-flip {
    height: 140px;
  }
  
  .project-card-back h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
  }
  
  .project-card-back p {
    margin: 0 0 6px 0;
    font-size: 12px;
  }
  
  .project-card-back ul {
    font-size: 12px;
  }
  
  .project-card-back-links a {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 8px;
  }
}

/* Extra small devices (< 360px) */
@media (max-width: 360px) {
  .container {
    width: calc(100% - 12px);
  }
  
  h1 {
    font-size: clamp(20px, 5vw, 32px);
  }
  
  .hero-main-image {
    width: 100px;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-link-btn {
    font-size: 12px;
    padding: 8px 10px;
  }
  
  .socials-grid {
    grid-template-columns: 1fr;
  }
  
  .devlog-grid {
    grid-template-columns: 1fr;
  }
  
  .stat {
    min-width: 120px;
  }
}

/* Landscape orientation adjustments for mobile devices */
@media (max-height: 600px) and (orientation: landscape) {
  .topbar-inner {
    padding: 8px 0;
  }
  
  .hero {
    padding: 16px 0 12px;
  }
  
  .hero-inner {
    gap: 16px;
  }
  
  .hero-main-image {
    width: 80px;
  }
  
  .hero-text-block {
    gap: 4px;
  }
  
  h1 {
    font-size: clamp(20px, 4vw, 32px);
    margin: 0 0 4px;
  }
  
  h2 {
    font-size: clamp(14px, 3vw, 20px);
  }
  
  .hero-buttons {
    flex-direction: row;
    gap: 8px;
    margin-top: 4px;
  }
  
  .hero-link-btn {
    flex: 1;
    min-width: 100px;
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .hero-text-block p {
    font-size: 12px;
  }
  
  .section {
    padding: 20px 0;
  }
  
  .socials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .social-btn {
    padding: 8px 10px;
    font-size: 12px;
  }
  
  .devlog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  
  .devlog-item h4 {
    font-size: 11px;
    margin: 6px 8px 2px;
  }
  
  .devlog-meta {
    font-size: 10px;
    margin: 0 8px 8px;
  }
  
  .modal-panel {
    width: min(95%, calc(100% - 20px));
    padding: 10px;
  }
  
  form {
    gap: 6px;
  }
  
  input,
  textarea {
    height: 32px;
    min-height: 32px;
    padding: 6px 8px;
    font-size: 13px;
  }
  
  textarea {
    min-height: 80px;
  }
}

/* Landscape orientation for small screens */
@media (max-width: 768px) and (orientation: landscape) {
  .topbar-inner {
    padding: 8px 0;
  }
  
  .hero {
    padding: 16px 0;
  }
  
  .hero-inner {
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
  }
  
  .hero-main-image {
    width: 100px;
  }
  
  .hero-text-block {
    text-align: left;
    align-items: flex-start;
  }
  
  h1 {
    font-size: clamp(20px, 4vw, 28px);
  }
  
  .hero-buttons {
    flex-direction: row;
    width: auto;
  }
  
  .section {
    padding: 24px 0;
  }
  
  .devlog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
}

form {
  display: grid;
  gap: 10px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
label span {
  display: block;
  font-weight: 900;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  margin-left: 2px;
}
input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel2) 70%, transparent);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  outline: none;
  font-family: inherit;
}
input {
  height: 40px;
}
textarea {
  resize: none;
  min-height: 120px;
  font-size: 14px;
  line-height: 1.5;
}
.message-label {
  position: relative;
}
.textarea-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;

}
.char-counter {
  position: absolute;
  display: flex;
  align-items: center;
  bottom: 8px;
  right: 12px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  pointer-events: none;
}
.form-hint {
  font-size: 13px;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid var(--accent);
  min-height: 1em;
  display: none;
  margin-top: 8px;
}
.form-hint.show {
  display: block;
}
.footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
}
.footer-links {
  display: flex;
  gap: 12px;
}
.footer-links a {
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
}
.footer-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 20;
}
.modal[aria-hidden="false"] {
  display: grid;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.modal-panel {
  position: relative;
  width: min(720px, calc(100% - 40px));
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
