Inspiration
How to Build a Fictional 1970s Fortune-Telling Arcade Machine in the Browser Using Claude 3.5 Sonnet and SVG
Want to build a beautifully tactile digital toy? Here is how to prompt Claude 3.5 Sonnet to construct a fictional 1970s arcade fortune teller using raw SVG, CSS, and the Web Audio API.
Updated 11/12/2026
There is a distinct magic to 1970s amusement arcades. Before high-definition pixel art and complex microprocessors took over, cabinets relied on mechanical theatre, glowing filament bulbs, vacuum-formed plastic, and heavy tactile buttons. They were tactile, noisy, and wonderfully physical.
If you are tired of building yet another sterile dashboard or a basic Todo app, it is time to build something entirely useless and thoroughly delightful. We are going to build a fictional 1970s fortune-telling arcade machine—think "Zoltar’s cheaper, more psychedelic British cousin"—directly in the browser.
Using Claude 3.5 Sonnet, we can generate a self-contained HTML file featuring an interactive SVG cabinet, complete with flickering neon lights, physical push buttons, mechanical dial spins, and a simulated thermal ticket printer. Here is how to make this retro digital toy, step by step.
Why Claude and SVG are the Perfect Match
When it comes to building interactive web UI, Claude 3.5 Sonnet is arguably the most capable creative engine on the market. It excels at writing clean, inline SVG code that scales beautifully to any screen size without relying on external image hosts.
Using SVG instead of standard CSS layouts allows us to design precise vector shapes—like retro wood-grain side panels, curved CRT-style glass screens, and complex mechanical dials—without cluttering our DOM with endless div tags. Combined with CSS animations, we can breathe life into these static shapes, adding flickering neon glows, mechanical vibrations, and realistic physical button presses.
Which AI should I use for this?
Tickd is independent and not affiliated with any AI company.
Designing the 1970s Aesthetic
To make our digital fortune teller feel authentic, we need to lean heavily into the design language of the late 1970s. This means ignoring modern flat UI or neon cyberpunk tropes. Instead, we want: The Colour Palette:* Burnt orange, mustard yellow, chocolate brown, and deep olive green. The Lighting:* Warm, incandescent bulb glows with slight flickering, rather than sharp, cold LED lights. The Typography:* Heavy, rounded, slightly quirky fonts that mimic classic dry-transfer lettering. The Interaction:* A coin slot that accepts a virtual coin, a physical lever or chunky push-button to activate the system, and a physical "paper" ticket that slides out of a slot at the bottom.
To make the experience immersive, we want to hear the mechanical whirring. We can instruct Claude to use the Web Audio API to synthesise retro synth hums and the click-clack of the printing press when the fortune is revealed.
Crafting the Prompt
Getting Claude to build a complex, multi-layered interactive toy in a single go requires a highly specific prompt. If you ask for a "1970s arcade machine," you will likely get a generic arcade cabinet with a Pac-Man clone. We must detail the exact visual layers, interaction loop, and audio elements.
Copy and paste this structured prompt into Claude to see the magic happen:
`text
Create a single, self-contained HTML file containing an interactive 1970s-style fortune-telling arcade machine. The page must be fully functional in the browser without any external assets, libraries, or image dependencies.
Use inline SVGs for the entire arcade cabinet illustration and interface.
Aesthetic details: - Color palette: Burnt orange, mustard yellow, dark wood-grain side panels, and cream highlights. - Title: "THE MYSTIC ORA-KLE" in a bold, retro-futuristic rounded font. - A glowing, curved glass dome containing a mechanical, spinning pointer wheel or dial with vintage fortune symbols. - A chunky, glowing plastic button labeled "SEEK DESTINY". - A physical coin slot that glows red. - A ticket output slot at the bottom.
Interaction flow: 1. Idle State: The machine hums softly using synthesized Web Audio API (low frequency oscillator). Lights flicker gently. 2. Coin Insert: The user clicks the coin slot. A satisfying metallic "clink" sound plays, and the "SEEK DESTINY" button starts flashing. 3. The Activation: Clicking the button triggers a dramatic mechanical spin animation of the internal pointer dial, accompanied by rising synth pitch sweeps. 4. The Reveal: The pointer slows down and lands on a fortune. A retro paper ticket slowly slides out of the bottom slot using CSS transitions. 5. The Ticket: Clicking the ticket opens it up in a stylized overlay, showing a cheeky, slightly cryptic 1970s-style fortune (e.g., "A tall stranger will soon offer you a dubious business opportunity involving orange polyester").
Technical Requirements:
- Use pure SVG for all visual components.
- Write clean, vanilla JavaScript for the state machine, Web Audio synthesis, and dynamic fortune generation.
- Ensure the layout is responsive and centered beautifully on a dark, moody background.
`
Deconstructing the Code: What Makes It Tick
Once Claude spits out the code, open it up in your browser. If you want to dive under the hood and discover what makes this digital cabinet tick, look closely at how Claude handles the mechanical dial and the ticket printout.
The spinning dial is typically constructed using an SVG <g> group acting as the wheel, centered precisely. When the user initiates a fortune, JavaScript dynamically updates a CSS custom property (e.g., --spin-angle) with a random rotation value between 1000 and 2000 degrees to ensure multiple full spins before settling on a random segment.
For the audio, Claude uses the browser’s built-in Web Audio API to bypass the need for external .mp3 files. It creates an OscillatorNode with a triangle waveform to mimic a low, physical mechanical hum, alongside a noise buffer to simulate the tactile click-clack of the printing mechanism.
Customising and Fine-Tuning Your Machine
If you want to take your creation further, there are several ways to expand on Claude’s initial code: Add a Custom Prompt Generator:* Use our prompts generator to craft specific backstories for different fortune-telling characters. Improve the Audio:* Add a low-pass filter to the white noise generator to make the printing press sound more muffled and authentic, like it is buried deep within a wooden cabinet. Expand the Fortune Pool:* Replace the hardcoded array of fortunes with a generative system that stitches together retro-themed adjectives and nouns.
If the code fails to run or the Web Audio API throws an error due to user-interaction restrictions, check out our troubleshooting tips in our Claude Hub. Often, simply wrapping the audio context initialization inside a user-click handler (like the "insert coin" event) solves the issue immediately.
The Joy of Digital Toys
In a web landscape dominated by standard landing pages and SaaS templates, building useless interactive art is an incredibly rewarding way to stretch your development muscles. It forces you to think about layout, state management, vector illustration, and sound design all at once.
Give the prompt a spin, adjust the variables, and see what kind of cryptic wisdom your personal 1970s machine delivers.
Keep going
Build something with the prompt generator, decode the jargon in the glossary, or compare the tools on our platform deep-dives.