// Real data from unrealbyte.com

const STUDIO = {
  name: "Unreal Byte",
  tagline: "Indie game dev. Unity tooling, HTML games, and one very chaotic desktop sim.",
  founded: 2017,
  bio: [
    "Unreal Byte was founded in 2017 to explore game development on the web, starting with HTML and frameworks like Phaser.",
    "The focus quickly shifted to Unity, and in parallel to building plugins that solve real production problems. The three integrations listed below were created alongside those early experiments.",
    "In 2021 the studio shipped its first full game: Battle Lands, a real-time strategy for iOS and Android. It was the first end-to-end release and a real proving ground.",
    "Now the studio is putting the finishing touches on Permaban, a game that lives on itch.io in its browser-native form, like in the early days, and is also heading to Steam. Wishlists are open."
  ],
};

const PERMABAN = {
  title: "Permaban",
  pitch: "A Papers Please-style forum moderation sim set in the Wild West of 2007 internet.",
  long: "It’s 2007. You’re a volunteer forum moderator with a dial-up connection, a copy of Winump, and a mountain of unmoderated posts. Review posts, ban trolls, warn gray areas, and cite the exact rule they violated — all before the thread spirals into a flame war.",
  tagline: "Enforce the rules. Cite the violation. Survive the forum.",
  specs: "Five waves. Eighteen rules. Eight moderation tools. One burnout meter. Zero pay.",
  status: "Coming soon",
  release: "Playable on itch.io · Wishlist on Steam",
  genre: "Casual · Indie · Simulation",
  platforms: ["Steam", "itch.io (browser)", "Windows"],
  steam: "https://store.steampowered.com/app/2068500/Permaban/",
  itch: "https://unrealbyte.itch.io/permaban",
  features: [
    { icon:"🔨", title:"Citation system", desc:"Every ban needs the right rule. Partial credit for close calls. Three wrong citations = probation." },
    { icon:"📖", title:"Escalating rulebook", desc:"Rules stack, contradict, and change each wave. Wave 4 introduces a 'warn first' policy and a 'ban raiders on sight' rule. Both are active." },
    { icon:"🔥", title:"Evolving threads", desc:"Ignore a thread and it heats up from passive-aggressive sarcasm to full meltdown. Intervene early or deal with chain events." },
    { icon:"👥", title:"User trust", desc:"Donors, Veterans, Known Trolls. Banning a Donor without the right citation is expensive. Letting a Known Troll slide is worse." },
    { icon:"🤖", title:"Trainable Spam AI", desc:"Starts at 50% accuracy. A '90% confidence' flag from a 50% accurate AI means nothing. Train it by catching real spam." },
    { icon:"💀", title:"Burnout meter", desc:"Click too fast and your accuracy tanks. Above 80% burnout, there's a 15% chance every action is a random misclick." },
    { icon:"🕵️", title:"Ban evaders & sockpuppets", desc:"Investigate suspicious accounts. Check IP subnets. Find the shill products. Get bonus points for doing it right." },
    { icon:"📉", title:"Hidden forum health", desc:"A shadow variable tracks your moderation quality. Overban and the forum goes quiet. Undermoderate and raids spike." },
    { icon:"🖥️", title:"Full desktop simulation", desc:"Draggable IE6 windows, Winump with an FFT visualizer, NSM Messenger popups, popup ads, CRT scanline filter, and a BSOD game over screen." },
  ],
  content: [
    "530+ handwritten forum posts across 8 types",
    "10 recurring character archetypes and a 5-phase villain arc",
    "4 forum skins (phpBB, vBulletin, InvisionFree, ProBoards)",
    "24 achievements",
    "6 synth music tracks + 26 synthesized sound effects",
    "15 popup ads, 15 phone calls, 110+ NSM messages across 18+ contacts",
    "Endless mode with escalating difficulty tiers",
  ],
};

const ASSETS = [
  {
    name: "Trello For Unity",
    tag: "Feedback integration",
    desc: "Drop-in feedback system that creates Trello cards straight from your game in under 5 minutes. Custom boards, fully customizable feedback form, screenshots and logs attached automatically.",
    bullets: [
      "Creates custom cards in your Trello boards",
      "Fully customizable in-game feedback form",
      "Screenshots + log files attached to every card",
    ],
    cover: "assets/tfu_cover.jpg",
    shots: ["assets/tfu_1.jpg","assets/tfu_2.jpg","assets/tfu_3.jpg"],
    url: "https://assetstore.unity.com/packages/tools/integration/trello-for-unity-108821",
    stack: ["Unity 2018+", "Trello API"],
    accent: "#e11d1d",
  },
  {
    name: "Easy Jira",
    tag: "Jira integration",
    desc: "Full Jira integration for Unity. Create issues from an in-game feedback form, attach screenshots and logs, and manage the backlog without leaving the editor.",
    bullets: [
      "Issues administration from the Unity editor",
      "Screenshot + log auto-attached to every issue",
      "Basic auth with role-aware issue-type filtering",
    ],
    cover: "assets/easyjira_cover.jpg",
    shots: ["assets/easyjira_1.jpg","assets/easyjira_2.jpg"],
    url: "https://assetstore.unity.com/packages/tools/integration/easy-jira-111744",
    stack: ["Unity 2018+", "Jira Cloud & Server"],
    accent: "#e11d1d",
    video: "https://www.youtube.com/embed/t1NIRS7TJSM",
  },
  {
    name: "Discordity",
    tag: "Discord Rich Presence",
    desc: "Discord Rich Presence for Unity, done right. Wraps the official discord-rpc plugin into a clean C# API so your game shows up on players' profiles with custom states, parties and join/spectate.",
    bullets: [
      "Shows what players are doing, right on their Discord profile",
      "Party invites and join / spectate hooks",
      "Wraps the official discord-rpc native plugin",
    ],
    cover: "assets/discordity_cover.jpg",
    shots: ["assets/discordity_1.jpg","assets/discordity_2.jpg"],
    url: "https://assetstore.unity.com/packages/tools/integration/discordity-110879",
    stack: ["Unity", "discord-rpc"],
    accent: "#e11d1d",
  },
];

const GAMES = [
  {
    title: "Permaban",
    year: "TBA",
    role: "Solo. Design, code, art",
    blurb: "Forum moderation sim. Current project.",
    status: "upcoming",
    links: [
      { label: "Steam", href: "https://store.steampowered.com/app/2068500/Permaban/" },
      { label: "itch.io", href: "https://unrealbyte.itch.io/permaban" },
    ],
  },
  {
    title: "Battle Lands",
    year: "2021",
    role: "Design · Code",
    blurb: "Mobile real-time strategy. First end-to-end release. No longer maintained, kept here as portfolio.",
    status: "portfolio",
    cover: "assets/battlelands_cover.png",
    shots: ["assets/battlelands_1.png","assets/battlelands_2.png","assets/battlelands_3.png","assets/battlelands_4.png","assets/battlelands_5.png"],
    links: [],
  },
];

const FAQ = [
  { q: "Do you take contract work?", a: "Occasionally, for small Unity tooling or integration work. Email me with a short brief. If it fits between projects, I’ll say yes." },
  { q: "Can I use Unreal Byte assets in commercial games?", a: "Yes. Every tool on the Asset Store is licensed for commercial use under Unity’s standard EULA. No separate seat fees." },
  { q: "Where do I report a bug in one of your assets?", a: "Email info@unrealbyte.com with the asset name and a reproduction. If you’re using Trello For Unity or Easy Jira, you can literally file the bug from inside the Unity editor." },
];

const SOCIALS = [
  { label: "Email", handle: "info@unrealbyte.com", href: "mailto:info@unrealbyte.com" },
  { label: "Twitter / X", handle: "@unrealbyte", href: "https://twitter.com/unrealbyte" },
  { label: "Instagram", handle: "@unrealbytegames", href: "https://instagram.com/unrealbytegames" },
  { label: "Asset Store", handle: "publisher profile", href: "https://assetstore.unity.com/publishers/29774" },
  { label: "itch.io", handle: "unrealbyte", href: "https://unrealbyte.itch.io" },
];

Object.assign(window, { STUDIO, PERMABAN, ASSETS, GAMES, FAQ, SOCIALS });
