# #023 — Handheld Crank Console

> Sunny yellow molded hardware, razor-sharp 1-bit reflective LCD canvas, and playful rotary crank controls.

## Metadata

- **Index**: #023
- **Slug**: `handheld-crank-console`
- **Kind**: `style`
- **Family**: Hardware & Industrial
- **Theme**: `light`
- **Mobile Strength**: `native-first`
- **Tags**: `handheld-console`, `one-bit-lcd`, `playful-industrial`, `yellow-hardware`, `crank-control`
- **Best For**: Indie game studios, Creative hardware gadgets, Interactive storytelling apps, Playful developer SDK portals
- **Real-World Inspiration**: [Playdate](https://play.date/)
- **Detail Page**: https://templates.michaelpitts.net/t/handheld-crank-console
- **Live Demo**: https://templates.michaelpitts.net/demos/handheld-crank-console.html
- **JSON API**: https://templates.michaelpitts.net/api/templates/handheld-crank-console

## Why This Aesthetic Is Unique

Marries friendly molded-plastic toy optimism with ultra-crisp 1-bit monochrome pixel rendering and bold 3px ink outlines.

## Color Palette

| Role | Name | Hex |
|------|------|-----|
| `canvas` | Warm Cream | `#FFFDF5` |
| `surface` | Playdate Yellow | `#FFC500` |
| `ink` | Deep Molded Ink | `#1C1B18` |
| `accent` | Cartridge Violet | `#6D3DF2` |
| `muted` | Reflective Slate | `#5A564C` |

## Typography

- **Display**: `Fredoka`
- **Body**: `Fredoka`
- **Mono**: `IBM Plex Mono`
- **Scale Notes**: Friendly rounded geometric headlines (34–56px) balanced against crisp 10–12px monospace LCD technical readouts.
- **Google Fonts**: https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=IBM+Plex+Mono:wght@400;600&display=swap
  ```html
  <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=IBM+Plex+Mono:wght@400;600&display=swap">
  ```

## Layout Architecture

Split hero pairing bold cartridge selector pills with an interactive yellow handheld console frame and crank dock, followed by a 3-column weekly game card shelf.

## Interaction & Micro-Motion Rules

Live 1-bit Canvas 2D memory-LCD running three switchable crank-driven mini-scenes (Surf, Orbit Clock, Pixel Radar) controlled by a crank slider, tappable side crank handle, D-pad, and A/B invert buttons.

## Mobile & Responsive Rules

Console body scales smoothly inside 390px viewports with full-width crank slider, 46px circular A/B buttons, and single-column game cards.

## Agent Guardrails

### DO
- Use thick 2.5–3.5px ink outlines and solid offset drop shadows to evoke injection-molded hardware.
- Keep embedded screen canvases strictly 1-bit monochrome (#B7B5AA and #24231E) with crisp pixelated rendering.
- Pair sunny yellow hardware blocks with warm off-white page breathing room.

### DON'T
- Never muddy the 1-bit display aesthetic with anti-aliased multi-color gradients inside the LCD.
- Avoid corporate stock aesthetics or thin hairline borders that fight the chunky tactile shell.

## Complete Standalone Starter Code

File: `demos/handheld-crank-console.html`

```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>CRANK-1 // Handheld 1-Bit Yellow Console</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=IBM+Plex+Mono:wght@400;600&display=swap" rel="stylesheet">
<style>
  :root {
    --yellow: #FFC500;
    --yellow-deep: #E5AF00;
    --canvas: #FFFDF5;
    --surface: #FFF6CC;
    --ink: #1C1B18;
    --muted: #5A564C;
    --lcd-bg: #B7B5AA;
    --lcd-ink: #24231E;
    --purple: #6D3DF2;
    --font-display: 'Fredoka', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  }

  *, *::before, *::after { box-sizing: border-box; }

  html, body {
    margin: 0;
    padding: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--font-display);
    overflow-x: hidden;
  }

  /* Header */
  .pd-nav {
    background: var(--yellow);
    border-bottom: 3px solid var(--ink);
    padding: 0 20px;
  }

  .pd-nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .pd-brand {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
  }

  .pd-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    background: var(--ink);
    color: var(--yellow);
    padding: 3px 8px;
    border-radius: 999px;
  }

  .pd-links {
    display: flex;
    gap: 16px;
    align-items: center;
  }

  .pd-links a {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
  }

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

  /* Hero Stage */
  .wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 36px 20px 68px;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 36px;
    align-items: center;
  }

  .kicker {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-block;
    background: var(--yellow);
    border: 2px solid var(--ink);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 14px;
  }

  h1 {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.02;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
  }

  .lead {
    font-size: 17px;
    line-height: 1.5;
    color: var(--muted);
    margin: 0 0 24px;
    font-weight: 500;
  }

  .cartridge-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
  }

  .cart-btn {
    min-height: 44px;
    padding: 0 16px;
    border: 2.5px solid var(--ink);
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 0 var(--ink);
    transition: transform 0.1s;
  }

  .cart-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
  .cart-btn.active {
    background: var(--purple);
    color: #FFFFFF;
  }

  /* Handheld Console Hardware Shell */
  .console-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .handheld-unit {
    display: flex;
    align-items: center;
    max-width: 100%;
  }

  .console-body {
    width: 310px;
    max-width: calc(100vw - 74px);
    background: var(--yellow);
    border: 3.5px solid var(--ink);
    border-radius: 22px;
    padding: 18px 18px 22px;
    box-shadow: 8px 8px 0 var(--ink);
    position: relative;
  }

  .console-top-bolts {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    align-items: center;
  }

  .screw {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--ink);
    background: var(--yellow-deep);
  }

  .lcd-bezel {
    background: var(--ink);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 18px;
  }

  .lcd-canvas {
    width: 100%;
    height: auto;
    display: block;
    background: var(--lcd-bg);
    border-radius: 4px;
    image-rendering: pixelated;
  }

  .controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
  }

  .dpad {
    display: grid;
    grid-template-columns: repeat(3, 28px);
    grid-template-rows: repeat(3, 28px);
    gap: 2px;
  }

  .dpad-btn {
    border: 2px solid var(--ink);
    background: var(--yellow-deep);
    cursor: pointer;
    border-radius: 4px;
    font-weight: 700;
    color: var(--ink);
    padding: 0;
  }

  .dpad-btn:active { background: var(--ink); color: var(--yellow); }

  .ab-cluster {
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .ab-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2.5px solid var(--ink);
    background: #FFFFFF;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 0 var(--ink);
  }

  .ab-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

  /* Side Crank Handle */
  .crank-arm {
    width: 28px;
    height: 92px;
    background: #D8D6CE;
    border: 3px solid var(--ink);
    border-left: none;
    border-radius: 0 12px 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 8px;
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .crank-grip {
    width: 16px;
    height: 36px;
    background: var(--yellow);
    border: 2px solid var(--ink);
    border-radius: 6px;
  }

  /* Crank Scrubber Control */
  .crank-dock {
    width: 100%;
    max-width: 340px;
    background: var(--surface);
    border: 2.5px solid var(--ink);
    border-radius: 14px;
    padding: 12px 16px;
  }

  .crank-dock-head {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
  }

  .crank-slider {
    width: 100%;
    height: 36px;
    accent-color: var(--ink);
    cursor: ew-resize;
  }

  /* Season Games Grid */
  .season-section {
    margin-top: 56px;
    padding-top: 36px;
    border-top: 3px solid var(--ink);
  }

  .season-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
  }

  .season-head h2 {
    font-size: 28px;
    margin: 0;
  }

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

  .game-card {
    background: #FFFFFF;
    border: 2.5px solid var(--ink);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 5px 5px 0 var(--yellow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
  }

  .game-week {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--purple);
    text-transform: uppercase;
  }

  .game-card h3 { margin: 4px 0 6px; font-size: 20px; }
  .game-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }

  .spec-pill-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }

  .mini-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 3px 8px;
    background: var(--surface);
    border: 1.5px solid var(--ink);
    border-radius: 6px;
  }

  @media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .games-grid { grid-template-columns: 1fr; }
    .pd-links { display: none; }
  }
</style>
</head>
<body>

<header class="pd-nav">
  <div class="pd-nav-inner">
    <a href="#" class="pd-brand">
      <span>CRANK·01</span>
      <span class="pd-badge">1-BIT LCD</span>
    </a>
    <nav class="pd-links" aria-label="Primary">
      <a href="#console">Try Crank</a>
      <a href="#season">Season One</a>
      <a href="#season">SDK Docs</a>
    </nav>
  </div>
</header>

<main class="wrap">
  <section class="hero-grid" id="console">
    <div>
      <span class="kicker">POCKET HARDWARE + ROTARY CRANK</span>
      <h1>Tiny yellow box.<br>Sharp 1-bit magic.</h1>
      <p class="lead">
        A high-reflectivity 400×240 monochrome screen with zero backlight glare, two crisp buttons, and a precision Hall-effect flip-out crank that turns analog rotation directly into gameplay.
      </p>

      <div class="cartridge-pills" role="group" aria-label="Select 1-bit Cartridge">
        <button class="cart-btn active" data-mode="surf">01 · CRANK SURF</button>
        <button class="cart-btn" data-mode="orbit">02 · ORBIT CLOCK</button>
        <button class="cart-btn" data-mode="radar">03 · PIXEL RADAR</button>
      </div>
      <p style="font-family:var(--font-mono);font-size:12px;color:var(--muted);margin:0;">
        Drag the crank slider or press A/B on the console to scrub the 1-bit LCD.
      </p>
    </div>

    <div class="console-stage">
      <div class="handheld-unit">
        <div class="console-body">
          <div class="console-top-bolts">
            <span class="screw" aria-hidden="true"></span>
            <span>400×240 · 1-BIT MEMORY LCD</span>
            <span class="screw" aria-hidden="true"></span>
          </div>

          <div class="lcd-bezel">
            <canvas class="lcd-canvas" id="lcd" width="260" height="156"></canvas>
          </div>

          <div class="controls-row">
            <div class="dpad" aria-label="D-pad controls">
              <span></span>
              <button class="dpad-btn" id="btnUp" aria-label="Up">▲</button>
              <span></span>
              <button class="dpad-btn" id="btnLeft" aria-label="Left">◀</button>
              <button class="dpad-btn" id="btnCenter" aria-label="Reset">●</button>
              <button class="dpad-btn" id="btnRight" aria-label="Right">▶</button>
              <span></span>
              <button class="dpad-btn" id="btnDown" aria-label="Down">▼</button>
              <span></span>
            </div>

            <div class="ab-cluster">
              <button class="ab-btn" id="btnB">B</button>
              <button class="ab-btn" id="btnA">A</button>
            </div>
          </div>
        </div>

        <button class="crank-arm" id="crankTap" title="Tap to turn crank +30°" aria-label="Turn crank 30 degrees">
          <span class="crank-grip"></span>
        </button>
      </div>

      <div class="crank-dock">
        <div class="crank-dock-head">
          <span>ANALOG CRANK ANGLE</span>
          <span id="angleReadout">045°</span>
        </div>
        <input type="range" min="0" max="360" value="45" class="crank-slider" id="crankSlider" aria-label="Crank rotation angle">
      </div>
    </div>
  </section>

  <section class="season-section" id="season">
    <div class="season-head">
      <h2>24 Surprise Games, Delivered Weekly</h2>
      <span style="font-family:var(--font-mono);font-size:12px;color:var(--muted);">INCLUDED WITH EVERY CONSOLE · ZERO ADS</span>
    </div>

    <div class="games-grid">
      <article class="game-card">
        <div>
          <span class="game-week">WEEK 01 · ARCADE</span>
          <h3>Whitewater Wipeout</h3>
          <p>Carve razor-sharp 1-bit barrels by spinning the crank to match swell angle and launch aerial tricks.</p>
        </div>
        <div class="spec-pill-row">
          <span class="mini-tag">CRANK NATIVE</span>
          <span class="mini-tag">60 FPS</span>
        </div>
      </article>

      <article class="game-card">
        <div>
          <span class="game-week">WEEK 04 · PUZZLE</span>
          <h3>Crankin's Time Travel</h3>
          <p>Rewind and fast-forward time itself with your thumb to dodge flying hazards on the way to brunch.</p>
        </div>
        <div class="spec-pill-row">
          <span class="mini-tag">TIME SCRUB</span>
          <span class="mini-tag">LUA SDK</span>
        </div>
      </article>

      <article class="game-card">
        <div>
          <span class="game-week">WEEK 09 · SYNTH</span>
          <h3>Boogie Loops</h3>
          <p>Dithered 1-bit groovebox where crank velocity bends pitch and triggers crunchy chiptune fills.</p>
        </div>
        <div class="spec-pill-row">
          <span class="mini-tag">AUDIO TOY</span>
          <span class="mini-tag">MONO SPEAKER</span>
        </div>
      </article>
    </div>
  </section>
</main>

<script>
  const lcd = document.getElementById('lcd');
  const ctx = lcd.getContext('2d');
  const slider = document.getElementById('crankSlider');
  const angleReadout = document.getElementById('angleReadout');

  let angle = 45;
  let mode = 'surf';
  let invert = false;
  let offsetX = 0;

  function drawLCD() {
    const bg = invert ? '#24231E' : '#B7B5AA';
    const fg = invert ? '#B7B5AA' : '#24231E';
    ctx.fillStyle = bg;
    ctx.fillRect(0, 0, 260, 156);

    const rad = (angle * Math.PI) / 180;
    ctx.fillStyle = fg;
    ctx.strokeStyle = fg;
    ctx.lineWidth = 2;

    // 1-bit HUD Header
    ctx.fillRect(0, 0, 260, 18);
    ctx.fillStyle = bg;
    ctx.font = 'bold 10px monospace';
    ctx.fillText(`MODE:${mode.toUpperCase()}`, 8, 12);
    ctx.fillText(`CRANK:${String(Math.round(angle)).padStart(3,'0')}°`, 180, 12);
    ctx.fillStyle = fg;

    if (mode === 'surf') {
      // Dithered sky dots
      for (let x = 8; x < 252; x += 12) {
        for (let y = 26; y < 70; y += 12) {
          if ((x + y) % 24 === 0) ctx.fillRect(x, y, 2, 2);
        }
      }
      // Animated 1-bit ocean wave
      for (let x = 0; x < 260; x += 4) {
        const y = 104 + Math.sin(x * 0.04 + rad * 2) * 20;
        ctx.fillRect(x, Math.floor(y), 4, 156 - Math.floor(y));
      }
      // Surfer sprite riding wave
      const sx = Math.max(24, Math.min(230, 126 + offsetX));
      const sy = 96 + Math.sin(sx * 0.04 + rad * 2) * 20;
      ctx.fillRect(sx - 10, sy - 6, 22, 4); // board
      ctx.fillRect(sx - 2, sy - 18, 6, 12); // body
      ctx.fillRect(sx - 1, sy - 24, 5, 5);   // head
    } else if (mode === 'orbit') {
      const cx = 130 + offsetX * 0.4;
      const cy = 88;
      ctx.beginPath(); ctx.arc(cx, cy, 46, 0, Math.PI * 2); ctx.stroke();
      ctx.beginPath(); ctx.arc(cx, cy, 24, 0, Math.PI * 2); ctx.stroke();
      // Planet 1
      const px = cx + Math.cos(rad) * 46;
      const py = cy + Math.sin(rad) * 46;
      ctx.fillRect(px - 5, py - 5, 10, 10);
      // Planet 2
      const mx = cx + Math.cos(-rad * 2) * 24;
      const my = cy + Math.sin(-rad * 2) * 24;
      ctx.fillRect(mx - 3, my - 3, 6, 6);
      // Sun
      ctx.fillRect(cx - 7, cy - 7, 14, 14);
    } else {
      // Pixel Radar
      const cx = 130, cy = 88;
      for (let r = 18; r <= 54; r += 18) {
        ctx.beginPath(); ctx.arc(cx, cy, r, 0, Math.PI * 2); ctx.stroke();
      }
      ctx.beginPath();
      ctx.moveTo(cx, cy);
      ctx.lineTo(cx + Math.cos(rad) * 56, cy + Math.sin(rad) * 56);
      ctx.stroke();
      // Blips
      [[154, 66], [96, 106], [164, 112]].forEach(([bx, by]) => {
        ctx.fillRect(bx - 3, by - 3, 6, 6);
      });
    }
  }

  function setAngle(val) {
    angle = ((val % 360) + 360) % 360;
    slider.value = angle;
    angleReadout.textContent = `${String(Math.round(angle)).padStart(3, '0')}°`;
    drawLCD();
  }

  slider.addEventListener('input', e => setAngle(Number(e.target.value)));
  document.getElementById('crankTap').addEventListener('click', () => setAngle(angle + 30));
  document.getElementById('btnA').addEventListener('click', () => setAngle(angle + 22));
  document.getElementById('btnB').addEventListener('click', () => { invert = !invert; drawLCD(); });
  document.getElementById('btnLeft').addEventListener('click', () => { offsetX -= 16; drawLCD(); });
  document.getElementById('btnRight').addEventListener('click', () => { offsetX += 16; drawLCD(); });
  document.getElementById('btnUp').addEventListener('click', () => setAngle(angle + 15));
  document.getElementById('btnDown').addEventListener('click', () => setAngle(angle - 15));
  document.getElementById('btnCenter').addEventListener('click', () => { offsetX = 0; invert = false; setAngle(45); });

  document.querySelectorAll('.cart-btn').forEach(btn => {
    btn.addEventListener('click', () => {
      document.querySelectorAll('.cart-btn').forEach(b => b.classList.remove('active'));
      btn.classList.add('active');
      mode = btn.dataset.mode;
      drawLCD();
    });
  });

  drawLCD();
</script>
</body>
</html>
```
