PuzzleCat

Creator guide

Standards and tips; sign in to submit, review required before publish

Puzzle content format

Puzzle content supports HTML. You can use rich media to build engaging puzzles. Below are supported formats and how they render:

Basic text tags

For layout and organizing copy

<h1>Heading level 1</h1><h2>Heading level 2</h2><h3>Heading level 3</h3>

Heading level 1

Heading level 2

Heading level 3

<p>This is a paragraph</p><strong>Bold text</strong><em>Italic text</em><u>Underlined text</u><s>Strikethrough text</s>

This is a paragraph

Bold text · Italic text · Underlined text · Strikethrough text

<blockquote>Quoted text</blockquote>
Quoted text, often used for emphasis or citation
<ul><li>Unordered item 1</li> <li>Unordered item 2</li></ul><ol><li>Ordered item 1</li> <li>Ordered item 2</li></ol>
  • Unordered item 1
  • Unordered item 2
  1. Ordered item 1
  2. Ordered item 2

Images

Embed images with the img tag. GIF, PNG, JPG, SVG, and WebP are supported.

<img src="IMAGE_URL" alt="description" /><!-- Recommended: set max width --><img src="..." style="max-width: 100%;" />
Sample image

Example: random 400×200 image

Tips:
  • Use max-width: 100% so images scale on mobile
  • Keep single images under about 2 MB; use an image host if needed
  • Always set alt text for accessibility

Video

Direct video URLs or platform embeds

Option 1: Direct video URL

<video src="VIDEO_URL" controls width="100%"> Your browser does not support video playback</video>

Option 2: Bilibili embed

<iframe src="//player.bilibili.com/player.html?bvid=BV_ID" width="100%" height="500" allowfullscreen></iframe>
Getting embed code:

On Bilibili: Share → Embed → copy the iframe

Tables

Use table for structured data such as cipher sheets or lookup tables

<table> <thead><tr><th>Col 1</th><th>Col 2</th></tr></thead> <tbody> <tr><td>Data 1</td><td>Data 2</td></tr> </tbody></table>
SymbolMeaningChapter
ΔChangeChapter 3
ΩEndFinale
ΣSumAppendix

Links

Add clickable links to external resources

<a href="https://example.com">Normal link</a><a href="..." target="_blank">Open in new tab</a><a href="#section">In-page anchor</a>

Code blocks

Show code snippets; useful for programming puzzles

<pre><code>Multi-line block</code></pre><code>Inline code</code>
function decode(secret) {
  return secret.split('').reverse().join('');
}

Inline code example: console.log('Hello');

Inline styles

Use the style attribute to adjust appearance

<span style="color: #00ffff;">Colored text</span><span style="background: #1a1a2e; padding: 10px;">Background block</span><span style="border: 1px solid #0ff; padding: 5px;">Border</span><span style="font-size: 24px;">Large text</span>

Colored text · Background block · Border · Large

Linking theme colors

When puzzle body HTML is shown, the platform injects the active theme palette on the outer container. Use CSS variables instead of hard-coded hex values so Hunt reskins and site theme changes update your HTML automatically.

When to use

  • Hunt puzzles: prefer --hunt-* variables (from Hunt visual theme settings)
  • Standalone puzzles: use site theme variables such as --primary-color and --text-primary

How to write it

In HTML mode, add a <style> block and reference variables via classes. Inline style attributes currently accept fixed colors only (e.g. #00ffff), not var(...).

<style> .puzzle-accent { color: var(--hunt-primary, var(--primary-color)); } .puzzle-card { background: var(--hunt-surface, var(--bg-card)); border: 1px solid var(--hunt-border, var(--border-color)); padding: 12px; border-radius: 8px; }</style><p class="puzzle-accent">Accent text</p><div class="puzzle-card">Card block</div>

Accent text

Card block

Common variables

CSS variableStandalone fallbackUse for
--hunt-primary--primary-colorPrimary, emphasis, links
--hunt-accent--secondary-colorAccent, gradient highlights
--hunt-text--text-primaryBody text
--hunt-muted--text-secondarySecondary / caption text
--hunt-surface--bg-cardCard / block background
--hunt-border--border-colorBorders / dividers
Tips:
  • Use fallbacks such as var(--hunt-primary, var(--primary-color)) so the same HTML works in Hunt and on standalone puzzle pages
  • Editor preview and player view share the same variables—change Hunt theme colors and preview immediately
  • Fixed colors are fine for deliberate hiding (e.g. same as background); use CSS variables when colors should follow the theme

Interactive puzzles (advanced mode)

Besides HTML body text, advanced mode lets you use an interactive iframe carrier. Upload packs to the creator asset library first, then reference them in the editor.

  1. Open Creator center → Asset library and click Upload files for ZIP or single-page HTML (packs up to 15MB; images up to 10MB).
  2. In the puzzle editor, switch to advanced mode and set the body carrier to Interactive (iframe).
  3. Click Pick interactive pack from library; the body stores asset:ID. You can also paste an HTTPS URL.
  4. Use editor Preview or click a file card in the library to play the pack in the sandbox iframe.
Notes:
  • Story puzzles cannot use the interactive carrier.
  • Do not embed answers or unpurchased hint text in packs; use /hunt-sandbox-sdk.js to talk to the parent page.
  • ZIP archives should include index.html at the root for correct loading.
  • Players see different widths: immersive (body nearly full width), side-by-side (on a wide screen the puzzle sits beside the answer panel—about half width), and phones. The same pack must work in all of them. Use fluid layout (max-width: 100%); do not hard-code an 800px/1024px canvas. Preview immersive, side-by-side, and a ~375px phone before publishing.

Security limits

  • Not allowed: <script> tags (XSS protection)
  • Not allowed: event attributes such as onclick, onload, etc.
  • Not allowed: <iframe> in HTML bodies (interactive puzzles use the asset sandbox, not pasted iframes); video embeds only from allowlisted hosts
  • Prefer HTTPS URLs for images and video

Answer guidelines

1

Final answer

Every puzzle must have exactly one correct final answer — the goal players must reach.

42 or Li Bai's Quiet Night Thoughts
2

Intermediate answers

You may add intermediate answers to validate progress and guide exploration.

Stage 1: password is 123 → Hint: Correct! Keep going...
Final answer → Hint: Puzzle cleared!
3

Answer format

  • Length limit: 500 characters max
  • Grading: case-insensitive; leading and trailing spaces are trimmed
  • Prefer answers that are short and unambiguous to avoid ambiguity
4

Hints on wrong submit

Each answer can have a hint shown when the player submits incorrectly.

Look more closely at the bottom-right of the image...Good hint — guides without spoiling
Wrong answerToo vague; no guidance

How answers are matched

The main answer always uses exact match after normalization. Intermediates can use another mode; regex is advanced mode only. Changes apply online after save and publish. Hunt and standalone puzzles share the same rules.

Five modes: exact, prefix, suffix, contains, regex. Regex is Python re.search (max 200 chars) against the player's raw submission (only trimmed). Examples: ^\d+$, ^[A-Z]{3}$, ^.$

Hunt intermediate regex works the same as standalone puzzles. Editor try-answer should match production. See also the Hunt guide section on puzzles and answers.

The five intermediate match modes, regex tokens, and examples are in the puzzle editor: Advanced mode guide → Answers JSON & matching.

Answer design tips
  • Avoid trivial answers such as "yes", "no", or "I don't know"
  • State the expected format in the puzzle (e.g. digits only, exactly four characters)
  • Test answers thoroughly before publishing

Best practices

Clear theme

Strong puzzles state what players are looking for.

"Find the hidden number in this painting — that is the answer."
"The answer is somewhere."

Flavor text

Flavor text sets mood and story. In the puzzle editor it sits between the author line and the main body (about three lines, auto-growing). In Hunt grids you can still edit it inline quickly.

"Deep in the old library, a yellowed tome rests on the shelf..."

Common pitfalls

  • Ambiguity: the answer should be uniquely determined
  • External dependency: the puzzle should be solvable without a specific time or place
  • Technical barrier: unless stated, do not require programming skills
  • Stale assets: links and images should remain valid long term

Standalone puzzles · answer normalization

Under Puzzle settings you can configure five comparison rules (case, spaces, punctuation, Han variants, full/half width), aligned with Puzzlehunt answer policy. Standalone puzzles do not support Answer Gate or unlock rules. Grading messages and wrong-answer cooldown (none or fixed minutes) are in the same panel; there is no Hunt-style escalating cooldown.

Pre-publish checklist

Creator guide - PuzzleCat