:root {
  --black: #111;
  --ink: #0b0b0b;
  --red: #e5262b;
  --red-dark: #b8161b;
  --yellow: #ffc61a;
  --cream: #f6efe2;
  --white: #fff;
  --font-head: 'Bangers', 'Impact', sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Background FX: red bursts & halftone ---------- */
.bg-fx { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.burst {
  position: absolute; background: var(--red);
  clip-path: polygon(0 40%, 100% 0, 70% 45%, 100% 100%, 20% 60%, 0 100%);
}
.b1 { width: 60vw; height: 260px; top: 520px; left: -12vw; transform: rotate(-12deg); }
.b2 { width: 45vw; height: 220px; top: 380px; right: -10vw; transform: rotate(10deg) scaleX(-1); }
.b3 { width: 55vw; height: 260px; top: 1450px; left: -10vw; transform: rotate(-6deg); opacity: .95; }
.dots {
  position: absolute; width: 340px; height: 340px;
  background-image: radial-gradient(var(--red) 30%, transparent 32%);
  background-size: 14px 14px;
  mask-image: radial-gradient(circle, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%);
}
.d1 { top: -60px; left: -80px; }
.d2 { top: 200px; right: -100px; }
.d3 { top: 1100px; left: -120px; }

section, main, header, footer { position: relative; z-index: 1; }
.topbar { z-index: 5; }

/* ---------- Topbar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 18px clamp(16px, 4vw, 48px);
  gap: 16px;
}
.topbar-logo { margin-right: auto; display: none; }
.topbar-logo img { height: 52px; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; font-weight: 800; font-size: 17px;
  padding: 8px 16px; color: var(--white);
  transition: transform .15s;
}
.nav a:hover { transform: translateY(-2px) rotate(-2deg); color: var(--yellow); }
.nav a.active {
  background: var(--red); clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
  padding: 8px 24px; color: var(--white);
}
.nav-toggle, .nav-burger { display: none; }

/* page with no hero shows the small logo */
body:not(:has(.hero)) .topbar-logo { display: block; }

/* ---------- Ribbons / tags / buttons ---------- */
.ribbon {
  font-family: var(--font-head); font-weight: 400; letter-spacing: 1.5px;
  font-size: clamp(36px, 5vw, 56px); line-height: 1;
  display: inline-block; padding: 10px 34px 6px;
  margin: 0; transform: rotate(-3deg);
  clip-path: polygon(3% 8%, 100% 0, 97% 92%, 0 100%);
}
.ribbon-red { background: var(--red); color: var(--white); }
.ribbon-cream { background: var(--cream); color: var(--black); }
.ribbon-yellow { background: var(--yellow); color: var(--black); }
.center { text-align: center; }
h2.center, h1.center { display: table; margin-left: auto; margin-right: auto; }

.tag {
  font-family: var(--font-head); font-size: clamp(26px, 3.4vw, 42px); letter-spacing: 1px;
  display: inline-block; padding: 6px 22px 2px; color: var(--black);
  border: 4px solid var(--black); box-shadow: 4px 4px 0 var(--black);
}
.tag-cream { background: var(--cream); transform: rotate(-6deg); }
.tag-yellow { background: var(--yellow); transform: rotate(-6deg) translateX(30px); margin-top: -4px; }

.btn-red {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-head); font-size: 30px; letter-spacing: 1.5px;
  background: var(--red); color: var(--white); text-decoration: none;
  padding: 10px 34px 6px; border: 4px solid var(--black); border-radius: 12px;
  box-shadow: 0 0 0 3px var(--cream), 6px 8px 0 3px var(--black);
  transform: rotate(-3deg); transition: transform .15s, box-shadow .15s;
}
.btn-red:hover { transform: rotate(-3deg) translateY(-3px) scale(1.03); }
.btn-red:active { transform: rotate(-3deg) translateY(2px); box-shadow: 0 0 0 3px var(--cream), 2px 3px 0 3px var(--black); }
.btn-outline {
  display: inline-block; margin-top: 28px; font-weight: 900; text-decoration: none;
  border: 3px solid var(--cream); padding: 10px 22px; border-radius: 10px;
}
.btn-outline:hover { background: var(--cream); color: var(--black); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) 40px;
  margin-top: 0;
}
.hero-left { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero-logo { width: min(440px, 90%); animation: wobble 4s ease-in-out infinite; }
.hero-tags { display: flex; flex-direction: column; align-items: flex-start; margin-left: 30px; margin-top: -20px; }
.hero-left .btn-red { margin-left: 100px; margin-top: 8px; }
.hero-right { position: relative; aspect-ratio: 1.2; display: grid; place-items: center; }
.hero-burst {
  position: absolute; inset: 0; background: var(--red);
  clip-path: polygon(50% 0, 60% 22%, 85% 5%, 75% 32%, 100% 30%, 82% 50%, 100% 70%, 74% 68%, 82% 95%, 58% 78%, 45% 100%, 40% 76%, 12% 92%, 24% 64%, 0 55%, 22% 42%, 6% 14%, 34% 26%);
  animation: pulse 3s ease-in-out infinite;
}
.hero-pad { position: relative; width: 78%; transform: rotate(12deg); filter: drop-shadow(0 0 0 #fff) drop-shadow(8px 10px 0 rgba(0,0,0,.55)); animation: float 3.5s ease-in-out infinite; }
.hero-sparks i { position: absolute; width: 12px; height: 46px; background: var(--yellow); border: 3px solid var(--black); border-radius: 4px; }
.hero-sparks i:nth-child(1) { top: 2%; left: 34%; transform: rotate(-20deg); }
.hero-sparks i:nth-child(2) { top: -2%; left: 44%; transform: rotate(10deg); }
.hero-sparks i:nth-child(3) { top: 14%; left: 20%; transform: rotate(-60deg); }
.cloud { position: absolute; width: 220px; }
.c-r { right: -40px; bottom: 6%; }
.c-l { left: 4%; bottom: -10px; width: 260px; z-index: -1; }

@keyframes float { 0%,100% { transform: rotate(12deg) translateY(0); } 50% { transform: rotate(9deg) translateY(-14px); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04) rotate(2deg); } }
@keyframes wobble { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

/* ---------- About ---------- */
.about { max-width: 1060px; margin: 40px auto 0; padding: 0 16px; }
.about .ribbon { position: relative; z-index: 2; margin-left: 20px; margin-bottom: -18px; }
.about-panel {
  background: var(--cream); color: var(--black);
  display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center;
  padding: 40px 70px 40px 60px;
  clip-path: polygon(4% 0, 96% 4%, 100% 50%, 96% 100%, 3% 96%, 0 45%);
}
.about-icon { border-right: 3px solid var(--black); padding-right: 24px; }
.about-icon svg { width: 160px; margin: auto; }
.about-panel p { font-size: clamp(16px, 1.8vw, 21px); font-weight: 600; margin: 0; line-height: 1.45; }

/* ---------- Games ---------- */
.games { max-width: 1160px; margin: 70px auto 0; padding: 0 16px; }
.games-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px; margin-top: 36px;
}
.game-card { transform: rotate(var(--tilt)); transition: transform .2s; }
.game-card:hover { transform: rotate(0) translateY(-6px); }
.game-thumb {
  position: relative; display: block; aspect-ratio: 16/10; overflow: hidden;
  border: 5px solid var(--black); border-radius: 18px; text-decoration: none;
  box-shadow: 0 0 0 4px var(--cream), 8px 10px 0 4px var(--black);
  background: #333;
}
.game-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.game-card:hover .game-thumb img { transform: scale(1.06); }
.game-noimg { width: 100%; height: 100%; background: repeating-linear-gradient(45deg, #2a2a2a 0 16px, #333 16px 32px); }
.game-title {
  position: absolute; left: 6%; right: 4%; bottom: 14px;
  display: flex; align-items: stretch; transform: skewX(-8deg);
}
.game-title span {
  flex: 1; background: var(--cream); color: var(--black);
  font-family: var(--font-head); font-size: clamp(20px, 2.1vw, 28px); letter-spacing: 1px;
  padding: 6px 14px 2px; border: 3px solid var(--black); border-right: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.game-title i {
  font-style: normal; background: var(--yellow); color: var(--black);
  display: grid; place-items: center; width: 52px; border: 3px solid var(--black); font-size: 22px;
}
.game-status {
  position: absolute; top: 12px; right: 12px; background: var(--red); color: #fff;
  font-family: var(--font-head); font-size: 18px; letter-spacing: 1px;
  padding: 4px 12px 1px; border: 3px solid var(--black); transform: rotate(4deg);
}
.game-body { padding: 18px 6px 0; }
.game-tagline { font-weight: 900; color: var(--yellow); margin: 0 0 4px; }
.game-desc { margin: 0 0 12px; opacity: .85; line-height: 1.45; font-size: 15px; }
.plats { display: flex; flex-wrap: wrap; gap: 8px; }
.plat {
  text-decoration: none; font-weight: 800; font-size: 13px;
  background: var(--pc); color: #fff; padding: 6px 12px; border-radius: 8px;
  border: 2px solid var(--cream); transition: transform .15s;
}
.plat[style*="#ffc61a"] { color: var(--black); }
.plat:hover { transform: translateY(-2px) rotate(-2deg); }
.empty { text-align: center; grid-column: 1/-1; opacity: .7; font-weight: 700; }

/* ---------- News ---------- */
.news { max-width: 1160px; margin: 80px auto 0; padding: 0 16px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; margin-top: 36px; }
.news-card {
  background: var(--cream); color: var(--black); text-decoration: none;
  border: 4px solid var(--black); border-radius: 14px; overflow: hidden;
  box-shadow: 6px 8px 0 var(--red); transition: transform .15s, box-shadow .15s;
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translate(-3px, -3px); box-shadow: 10px 12px 0 var(--red); }
.news-cover { aspect-ratio: 16/9; background: var(--yellow); border-bottom: 4px solid var(--black); }
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-nocover { height: 100%; display: grid; place-items: center; font-family: var(--font-head); font-size: 90px; color: var(--black);
  background-image: radial-gradient(rgba(0,0,0,.18) 30%, transparent 32%); background-size: 12px 12px; }
.news-body { padding: 16px 20px 20px; }
.news-cat {
  display: inline-block; background: var(--red); color: #fff; font-weight: 900; font-size: 12px;
  text-transform: uppercase; letter-spacing: 1px; padding: 3px 10px; border-radius: 6px;
}
.news-body h3 { font-family: var(--font-head); font-weight: 400; font-size: 28px; letter-spacing: .8px; margin: 10px 0 6px; line-height: 1.05; }
.news-body p { margin: 0 0 10px; line-height: 1.45; }
.news-body time { font-size: 13px; font-weight: 700; opacity: .6; }
.page-top { margin-top: 30px; }

/* ---------- Philosophy ---------- */
.philosophy { max-width: 1100px; margin: 90px auto 0; padding: 0 16px 20px; }
.philosophy .ribbon { position: relative; z-index: 2; margin-bottom: -16px; }
.phil-panel {
  background: var(--cream); color: var(--black);
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 50px 50px 40px;
  clip-path: polygon(2% 6%, 98% 0, 100% 55%, 97% 100%, 0 95%, 3% 50%);
}
.phil-item { display: flex; gap: 14px; align-items: flex-start; padding: 0 20px; }
.phil-item + .phil-item { border-left: 3px solid var(--black); }
.phil-icon { flex: 0 0 72px; }
.phil-item h3 { font-family: var(--font-head); font-weight: 400; font-size: 28px; letter-spacing: 1px; line-height: 1; margin: 0 0 8px; }
.phil-item p { margin: 0; font-weight: 600; line-height: 1.4; }

/* ---------- Article (Pages) ---------- */
.article { max-width: 820px; margin-left: auto; margin-right: auto; padding: 0 16px 40px; }
.back { display: inline-block; margin-bottom: 18px; font-weight: 800; text-decoration: none; color: var(--yellow); }
.article-title { font-family: var(--font-head); font-weight: 400; letter-spacing: 1px; font-size: clamp(40px, 6vw, 64px); line-height: 1; margin: 12px 0 8px; color: var(--white); }
.article-date { display: block; font-weight: 700; opacity: .6; margin-bottom: 22px; }
.article-cover { width: 100%; border: 5px solid var(--black); border-radius: 16px; box-shadow: 0 0 0 4px var(--cream); margin-bottom: 30px; }
.article-body.ql-editor {
  background: var(--cream); color: var(--black); border-radius: 16px; padding: 34px clamp(18px, 4vw, 44px);
  font-family: var(--font-body); font-size: 18px; line-height: 1.7; height: auto; overflow: visible;
  border: 4px solid var(--black); box-shadow: 8px 10px 0 var(--red);
}
.article-body h1, .article-body h2, .article-body h3 { font-family: var(--font-head); font-weight: 400; letter-spacing: 1px; line-height: 1.1; }
.article-body h1 { font-size: 44px; } .article-body h2 { font-size: 36px; } .article-body h3 { font-size: 28px; }
.article-body img { border-radius: 10px; margin: 12px 0; max-width: 100%; display: inline-block; }
.article-body a { color: var(--red-dark); font-weight: 800; }
.article-body blockquote { border-left: 6px solid var(--red); background: rgba(229,38,43,.07); margin: 16px 0; padding: 10px 18px; font-weight: 700; font-style: italic; }
.article-body pre.ql-syntax, .article-body .ql-code-block-container { background: #1e1e1e; color: #f6efe2; border-radius: 8px; padding: 14px; overflow-x: auto; }
.article-body iframe.ql-video { width: 100%; aspect-ratio: 16/9; height: auto; border-radius: 10px; }
.draft-banner { background: var(--yellow); color: var(--black); font-weight: 900; text-align: center; padding: 10px; border-radius: 8px; margin-bottom: 18px; }
.lost { font-size: 20px; font-weight: 700; margin: 30px 0; }

/* ---------- Footer ---------- */
.footer { margin-top: 90px; padding: 36px clamp(16px, 4vw, 48px) 20px;
  background: linear-gradient(transparent, rgba(0,0,0,.6)), radial-gradient(rgba(255,255,255,.08) 30%, transparent 32%) 0 0/10px 10px;
}
.footer-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 26px; }
.footer-brand img { width: 160px; }
.footer-tag { font-family: var(--font-head); font-size: 26px; letter-spacing: 1px; line-height: 1.15; padding-left: 26px; border-left: 3px solid var(--cream); transform: rotate(-2deg); }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.socials { display: flex; gap: 14px; }
.socials a {
  width: 56px; height: 56px; display: grid; place-items: center; color: var(--white);
  border: 3px solid var(--white); border-radius: 12px; transition: all .15s;
}
.socials a:hover { background: var(--red); transform: rotate(-6deg) scale(1.06); }
.socials svg { width: 28px; height: 28px; }
.footer-copy { text-align: center; margin-top: 28px; font-size: 13px; opacity: .5; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .topbar-logo { display: block; }
  .nav-burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; z-index: 5; }
  .nav-burger span { width: 28px; height: 4px; background: var(--white); border-radius: 2px; }
  .nav {
    display: none; position: absolute; top: 80px; left: 16px; right: 16px; z-index: 10;
    flex-direction: column; align-items: stretch; background: var(--black);
    border: 3px solid var(--cream); border-radius: 14px; padding: 12px;
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .hero { grid-template-columns: 1fr; margin-top: 0; text-align: center; }
  .hero-left { align-items: center; }
  .hero-logo { display: none; }
  .hero-tags { margin-left: 0; align-items: center; margin-top: 10px; }
  .tag-yellow { transform: rotate(-6deg); }
  .hero-left .btn-red { margin-left: 0; }
  .hero-right { order: -1; max-width: 460px; width: 100%; margin: 0 auto; }
  .c-l { display: none; }
  .about-panel { grid-template-columns: 1fr; padding: 40px 28px; text-align: center; clip-path: polygon(2% 0, 98% 2%, 100% 98%, 0 100%); }
  .about-icon { border-right: 0; border-bottom: 3px solid var(--black); padding: 0 0 18px; }
  .phil-panel { grid-template-columns: 1fr; gap: 24px; padding: 50px 24px 34px; clip-path: polygon(2% 2%, 98% 0, 100% 98%, 0 100%); }
  .phil-item + .phil-item { border-left: 0; border-top: 3px solid var(--black); padding-top: 22px; }
  .footer-inner, .footer-right { justify-content: center; align-items: center; }
  .footer-brand { flex-direction: column; text-align: center; }
  .footer-tag { border-left: 0; padding-left: 0; }
}
@media (max-width: 480px) {
  .games-grid, .news-grid { grid-template-columns: 1fr; }
  .btn-red { font-size: 24px; padding: 8px 22px 4px; }
  .socials a { width: 48px; height: 48px; }
}
