  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  /* Self-hosted fonts */
  @font-face {
    font-family: 'Space Mono';
    src: local('Space Mono'), local('SpaceMono-Regular'),
      url('fonts/SpaceMono-Regular.woff2') format('woff2'),
      url('fonts/SpaceMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: 'Space Mono';
    src: local('Space Mono Bold'), local('SpaceMono-Bold'),
      url('fonts/SpaceMono-Bold.woff2') format('woff2'),
      url('fonts/SpaceMono-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: 'Space Mono';
    src: local('Space Mono Italic'), local('SpaceMono-Italic'),
      url('fonts/SpaceMono-Italic.woff2') format('woff2'),
      url('fonts/SpaceMono-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
  }

  @font-face {
    font-family: 'Permanent Marker';
    src: local('Permanent Marker'), local('PermanentMarker-Regular'),
      url('fonts/PermanentMarker-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }

  :root {
    --ink: #1a1a18;
    --paper: #f5f2eb;
    --paper2: #ede9df;
    --accent: #e84c2b;
    --accent2: #2b5ce8;
    --accent3: #e8c42b;
    --grid: rgba(26, 26, 24, 0.07);
    --mono: 'Space Mono', monospace;
    --marker: 'Permanent Marker', cursive;
  }

  body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--mono);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
  }

  body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('backg.jpg') repeat;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
  }

  .wrap {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
  }

  /* NAV */
  nav {
    border-bottom: 2px solid var(--ink);
    background: var(--paper);
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
  }

  .nav-logo {
    font-family: var(--marker);
    font-weight: 900;
    font-size: 15px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 3px;
  }

  .logo-sketchy {
    background: var(--accent);
    color: var(--paper);
    padding: 0 4px;
  }

  .logo-games {
    color: var(--accent);
  }

  .nav-links {
    display: flex;
    gap: 2rem;
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .nav-links a {
    color: var(--ink);
    text-decoration: none;
    text-transform: uppercase;
  }

  .nav-links a:hover {
    text-decoration: underline;
  }

  .nav-cta {
    background: var(--ink);
    color: var(--paper);
    padding: 6px 14px;
    font-size: 11px;
    font-family: var(--mono);
    letter-spacing: 0.06em;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
  }

  .nav-cta:hover {
    background: var(--accent);
  }

  /* HERO */
  .hero {
    padding: 5rem 0 3rem;
    position: relative;
  }

  .hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    opacity: 0.5;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .hero-eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: currentColor;
  }

  .hero-title {
    font-family: var(--marker);
    font-weight: 400;
    font-size: clamp(52px, 8vw, 88px);
    line-height: 0.92;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    position: relative;
  }

  .hero-title .line1 {
    display: block;
  }

  .hero-title .line2 {
    display: inline-block;
    background: var(--accent);
    color: var(--paper);
    padding: 0 10px;
    position: relative;
  }

  .hero-title .line3 {
    display: block;
    color: var(--accent);
  }

  .hero-sub {
    font-size: 13px;
    line-height: 1.8;
    max-width: 440px;
    color: var(--ink);
    opacity: 0.65;
    margin-bottom: 2.5rem;
  }

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

  .btn-primary {
    background: var(--ink);
    color: var(--paper);
    padding: 12px 28px;
    font-size: 12px;
    font-family: var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 2px solid var(--ink);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
  }

  .btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
  }

  .btn-secondary {
    background: transparent;
    color: var(--ink);
    padding: 12px 28px;
    font-size: 12px;
    font-family: var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 2px solid var(--ink);
    cursor: pointer;
  }

  .btn-secondary:hover {
    background: var(--paper2);
  }

  .hero-decoration {
    position: absolute;
    right: -1rem;
    top: 4rem;
    width: 220px;
    height: 306px;
    padding: 8px;
    border: 1px solid rgba(26, 26, 24, 0.2);
    background: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(26, 26, 24, 0.08);
    transform: rotate(5deg);
    user-select: none;
  }

  .hero-decoration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .hero-decoration::after {
    content: '';
    position: absolute;
    inset: -4px;
    pointer-events: none;
  }

  .cursor {
    display: inline-block;
    animation: blink 1.2s steps(2) infinite;
    position: relative;
    top: -16px;
    color: var(--accent);
  }

  @keyframes blink {

    0%,
    50% {
      opacity: 1;
    }

    51%,
    100% {
      opacity: 0;
    }
  }

  /* MARQUEE */
  .marquee-bar {
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .marquee-inner {
    display: inline-flex;
    gap: 0;
    animation: scroll 18s linear infinite;
  }

  .marquee-inner span {
    padding: 0 2rem;
  }

  .marquee-inner .dot {
    opacity: 0.4;
    padding: 0;
  }

  @keyframes scroll {
    from {
      transform: translateX(0)
    }

    to {
      transform: translateX(-50%)
    }
  }

  /* GAMES GRID */
  .section {
    padding: 4rem 0;
  }

  .section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 12px;
  }

  .section-title {
    font-family: var(--marker);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .section-meta {
    font-size: 11px;
    opacity: 0.4;
    letter-spacing: 0.08em;
  }

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

  .game-card {
    border: 2px solid var(--ink);
    background: var(--paper);
    cursor: pointer;
    transition: transform 0.1s;
    overflow: hidden;
    position: relative;
  }

  .game-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
  }

  .game-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 0 var(--ink);
  }

  .game-card.featured {
    grid-column: span 2;
  }

  .game-thumb {
    display: block;
    border-bottom: 2px solid var(--ink);
    position: relative;
    overflow: hidden;
  }

  .game-thumb img {
    width: 100%;
    display: block;
    height: auto;
  }

  .game-thumb canvas-art {
    position: absolute;
    inset: 0;
  }

  .card-bg-1 {
    background: #c8e6ff;
  }

  .card-bg-2 {
    background: #ffe0c8;
  }

  .card-bg-3 {
    background: #d4f5c8;
  }

  .card-bg-4 {
    background: #f5c8f0;
  }

  .game-thumb-grid {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(26, 26, 24, 0.08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(26, 26, 24, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
  }

  .game-thumb-icon {
    font-size: 52px;
    position: relative;
    z-index: 1;
  }

  .game-info {
    padding: 14px 16px;
  }

  .game-name {
    font-family: var(--marker);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
  }

  .game-desc {
    font-size: 11px;
    opacity: 0.55;
    line-height: 1.6;
    margin-bottom: 10px;
  }

  .game-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }

  .tag-pill {
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border: 1.5px solid var(--ink);
    background: transparent;
  }

  .tag-pill.live {
    background: var(--ink);
    color: var(--paper);
  }

  .tag-pill.soon {
    opacity: 0.4;
  }

  .game-card .corner-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: var(--paper);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 8px;
    z-index: 2;
  }

  /* ABOUT STRIP */
  .about-strip {
    border: 2px solid var(--ink);
    padding: 2.5rem 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--ink);
    color: var(--paper);
    position: relative;
    overflow: hidden;
  }

  .about-strip::before {
    content: 'TSG';
    position: absolute;
    right: -20px;
    bottom: -40px;
    font-family: var(--marker);
    font-weight: 900;
    font-size: 140px;
    opacity: 0.06;
    line-height: 1;
    pointer-events: none;
  }

  .about-left .about-title {
    font-family: var(--marker);
    font-weight: 900;
    font-size: 32px;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
  }

  .about-left .about-title em {
    font-style: normal;
    -webkit-text-stroke: 1.5px var(--paper);
    color: transparent;
  }

  .about-body {
    font-size: 12px;
    line-height: 1.9;
    opacity: 0.7;
  }

  .about-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
  }

  .stat-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    border-top: 1px solid rgba(245, 242, 235, 0.15);
    padding-top: 1rem;
  }

  .stat-num {
    font-family: var(--marker);
    font-weight: 900;
    font-size: 36px;
    letter-spacing: -0.03em;
    color: var(--accent3);
  }

  .stat-label {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.5;
  }

  /* FOOTER */
  footer {
    border-top: 2px solid var(--ink);
    padding: 1.5rem 0;
  }

  .footer-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    letter-spacing: 0.08em;
    opacity: 0.45;
  }

  /* Mobile layouts */
  @media (max-width: 768px) {
    .nav-cta {
      display: none;
    }

    .hero-decoration {
      display: none;
    }

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

    .game-card.featured {
      grid-column: span 1;
    }
  }