Game-specific UI system

Pantry Pendulum

Cook it. Change the swing. Gameplay, screen, and UI implementation guide

This implementation reference is hash-bound to the current product direction, Art Bible, UI system, UX inventory, and authoritative gameplay master.

MaterialsWoven cloth tickets and enamel controls sit over a warm butcher-block work surface.
Shape languageClipped recipe tickets, stitched inner edges, looped cords, and rounded chunky actions.
LightingGolden morning task light, warm bounce, and short physical contact shadows.
UI framingCompact cloth rails and tickets preserve the central mobile; aubergine is ink and binding, not the full page field.
Pantry Pendulum authoritative gameplay master
Authoritative gameplay masterA handmade kinetic test kitchen of countertop rails, recipe clips, utensils, cords, and cooking stations.Source: PRD-ART-1 · VIS-PILLAR-1 · ART-GAMEPLAY-1 · ART-UI-1 · UI-FOUNDATION-1
3button variants2non-button families3control families9generated screens
Foundations

Tokens and usability rules

colorCulinary rolesoat #F2E2BE; tomato #D94B35; herb #4F7B4A; aubergine #3A2436; butter #F6C85F; flour #FFF8E8World ground, primary/danger, confirmation, ink/edge, focus, and high-value text with non-color redundancy.Source: VIS-COLOR-1 · UI-FOUNDATION-1
typographyRecipe type paircondensed slab display plus humanist sans body; 15px minimumDisplay for recipe identity; sans for actions, body, settings, and scalable text.Source: ART-TYPE-1 · UI-FOUNDATION-2
spacingFour-pixel grid4px base; 8px control gap; 16px screen gutterKeep dense ticket layouts orderly and thumb targets separated.Source: UI-FOUNDATION-3 · UX-SAFE-1
shapeEnamel and cloth14px enamel radius; clipped ticket corners; stitched inner edgeSeparate controls from physical stations while preserving the handmade kitchen identity.Source: UI-FOUNDATION-4 · PRD-ART-2
depthPhysical lip3px edge; 4px lower lip; shallow ticket/contact shadowExplain press and overlay ownership without glass, glow, or ornamental depth.Source: UI-FOUNDATION-4 · UX-CONTROL-ACTION
motionHandmade settle120ms press; 180ms ticket; 600ms transform; fixed-step swingCord leads, ceramic lags, and transformations remain causal; reduced motion uses instant swaps.Source: VIS-MOTION-1 · UX-ACCESS-4
focusButter halo3px #F6C85F outer ring plus 1px liftPersistent keyboard focus independent of hover, value, and color role.Source: UI-FOUNDATION-5 · UX-ACCESS-6
target-sizeThumb minimum44x44px actions; 64x64px handle acquisitionAll screen controls and direct gameplay acquisition at every supported portrait size.Source: UX-TOUCH-1 · UX-TOUCH-2
Action controls

Button variants × interaction states

BUTTON

Enamel Action

Source: UX-CONTROL-ACTION · UI-ACTION-1

Activate primary, secondary, and utility actions with one physical press language.

Enamel Action Art Bible visual source
asset-ui-component-reference
Normal Enabled and idle
Highlighted Hovered or keyboard focused
Pressed Active contact held inside
Disabled Visible but unavailable
Normal Enabled and idle
Highlighted Hovered or keyboard focused
Pressed Active contact held inside
Disabled Visible but unavailable
Normal Enabled and idle
Highlighted Hovered or keyboard focused
Pressed Active contact held inside
Disabled Visible but unavailable
Input: Touch/mouse release-inside or keyboard Enter/Space; controller excluded.Feedback: Lip collapse and action-owned audio; no navigation haptic; butter focus remains visible.
Separate semantics

Non-button controls

TOGGLE

Cloth Switch

Source: UX-CONTROL-SWITCH · UI-SWITCH-1

Expose persistent binary settings with native semantics and redundant value cues.

Cloth Switch Art Bible visual source
asset-ui-component-reference
Current value: OFF Initial state: Off Authored specimen: Persistent value false
Current value: ON Initial state: On Authored specimen: Persistent value true
Current value: ON Initial state: Focused Authored specimen: Keyboard focus without value change
Current value: OFF Initial state: Disabled Authored specimen: Value visible but unavailable
Current value: OFF Initial state: Off Authored specimen: Persistent value false
Current value: ON Initial state: On Authored specimen: Persistent value true
Current value: ON Initial state: Focused Authored specimen: Keyboard focus without value change
Current value: OFF Initial state: Disabled Authored specimen: Value visible but unavailable
Input: Touch/mouse click or keyboard Space toggles; focus never changes value.Feedback: Knob position, value word, stitch, track color, and confirmed cloth tick; no haptic.
GESTURE

Tug Handle

Source: UX-CONTROL-HANDLE · UI-HANDLE-1

Aim and commit the only gameplay impulse while exposing bounds and resolution lock.

Tug Handle Art Bible visual source
asset-ui-component-reference
Ready New tug available
Acquired Pointer owns handle before valid pull
Aiming Valid tug preview
Resolving Fixed-step result running
Disabled Level cannot accept input
Ready New tug available
Acquired Pointer owns handle before valid pull
Aiming Valid tug preview
Resolving Fixed-step result running
Disabled Level cannot accept input
Input: Touch or mouse acquires a 64px region, drags inside 92px bound, and releases; keyboard does not simulate physics.Feedback: Cord, ring, arc, contact ring, traveling stitch, and gameplay-only haptic explain ownership and consequence.
Construction

Component anatomy and ownership

Enamel Action

  • hit target: Never below 44x44 and never shrinks with state.
  • face: Variant owns fill; state may tone but not change semantic role.
  • edge and lip: Edge preserves contrast; lip alone expresses physical press depth.
  • label or icon: Instance data uses humanist sans or solid aubergine silhouette.
  • focus halo: Keyboard focus remains outside the edge and is independent of hover.
Base
Owns target, face, edge, lip, label slot, icon slot, and focus slot.
Variants
Owns action hierarchy, face/border/text colors, and example role.
States
Owns halo, offset, tone, opacity, seam, depth, and interactivity.
Instance data
Owns action label, icon, semantic name, and enabled reason.

Cloth Switch

  • native input: Checkbox with switch role owns semantics and focus.
  • track: Shows value color but never acts as the sole cue.
  • knob: Left/right position and stitch show value.
  • value word: On or Off remains readable in every state.
  • label: External setting label expands the same 44-pixel row target.
Base
Owns native input, target row, track, knob, word, and focus slot.
Variants
Owns standard or safety emphasis without owning the value.
States
Owns current value, focus treatment, disabled texture, and interactivity.
Instance data
Owns setting label, description, saved value, and availability reason.

Tug Handle

  • acquisition region: Invisible 64x64 target remains constant.
  • grip: Visible enamel and cloth center follows bounded input.
  • cord: Thickness and stretch communicate ownership and force direction.
  • bound ring: Shows maximum drag and cancel return zone.
  • prediction: Short arc and first-contact ring appear only while aiming.
Base
Owns acquisition region, grip, cord, ring, and prediction slots.
Variants
Owns ordinary versus final-tug urgency without changing physics.
States
Owns acquisition, displacement, arc visibility, lock, stitch, and interactivity.
Instance data
Owns current force bound, remaining-tug context, and predicted contact target.
Input

Targeting, activation, and feedback contract

MethodSupportTargets withActivates withFeedbackRationale
touchprimaryDirect finger contact on 44-pixel controls or 64-pixel handle hit region.Release inside buttons and switches; drag beyond 12 pixels then release for a tug.Pressed/Acquired visual, component motion, confirmed audio, and gameplay-only haptic.One-thumb portrait touch is the selected mobile interaction.
mouseprototypePointer hover and visible cursor.Primary release inside actions or drag-release on the handle.Highlighted on hover, Pressed while down, and the same visual/audio resolution as touch without haptic.Required for later browser mechanics review and interactive UI reference testing.
keyboardsupportedTab and Shift+Tab, with arrows inside grouped controls and persistent butter focus ring.Enter or Space; Escape mirrors Back/Pause.Highlighted focus, Pressed activation, confirmed audio, and no navigation haptic.Provides accessible navigation and desktop review of all non-gesture flows; handle gameplay remains touch/mouse in the prototype.
controllernot-supportedNo runtime target or focus binding.No production submit or tug action.No hidden feedback or unsupported promise.The selected product is one-thumb mobile and controller support adds mapping and QA cost without serving the core audience.
Feedback

Visual, motion, sound, and haptics

Coverage

Current generated screens

screen-gameplay screen reference
screen-gameplayExpose the full linked mobile, all stations, next recipe step, tug/scorch budgets, prediction feedback, and one-thumb handle.States: fresh · aiming · resolving · correct transformation · wrong contact · final tugInput: Acquire, drag, and release the tug handle.Layout: Order rail stays in the top safe band, the complete level fills the central 58%, and the 92-pixel tug ring stays above the bottom gesture inset.Source: GDD-LOOP-1 · GDD-UX-1 · PRD-CAMERA-1 · UX-SCREEN-GAMEPLAY
screen-onboarding screen reference
screen-onboardingTeach pull, pictured station contact, and the changed-weight consequence across three concise cards with Skip always available.States: first card · third consequence card · skip focusedInput: Tap Continue or Skip; no swipe dependency.Layout: One tactile diagram fills the upper two-thirds; copy and two 44-pixel actions stay in the lower thumb band inside portrait safe areas.Source: GDD-FTUE-1 · UX-SCREEN-ONBOARD · UX-SAFE-1
screen-cookbook screen reference
screen-cookbookResume the next recipe, inspect five trays and level progress, and reach settings or legal without a second catalog screen.States: fresh install · progressed · next level highlightedInput: Tap Continue or a tray/level card.Layout: Compact open cookbook and tray tabs occupy the center; Continue remains low and prominent; no oversized empty hero zone.Source: GDD-META-1 · UX-SCREEN-HOME · UX-TOUCH-2
screen-pause screen reference
screen-pauseFreeze deterministic resolution and offer Resume, Retry, Settings, and Recipe Map while retaining board context.States: opened from settled board · opened during resolution · resume focusedInput: Tap Resume; Android Back also resumes.Layout: A compact clipped ticket sits over a dimmed but readable frozen board; actions form a lower vertical stack with 44-pixel targets.Source: GDD-RECOVERY-1 · UX-SCREEN-PAUSE · UX-STATE-PAUSED
screen-success screen reference
screen-successShow the plated recipe, recipe stamp, copper spoons, tug result, Replay, Recipe Map, and Next.States: one spoon · three spoons · final tray completionInput: Tap Next; Replay and Recipe Map are secondary.Layout: The plated transformation remains the visual anchor; result ticket occupies the lower half without hiding the meal or safe-area actions.Source: GDD-RULE-7 · GDD-META-1 · UX-SCREEN-SUCCESS
screen-failure screen reference
screen-failureExplain the decisive wrong contact or unfinished final step and return the player to input immediately.States: third scorch · tugs exhausted · brittle garnish crackedInput: Tap Retry; Recipe Map is secondary.Layout: Keep the frozen causal board visible behind a soot-edged lower ticket and ring the decisive object without covering it.Source: GDD-FAIL-1 · GDD-RECOVERY-1 · UX-SCREEN-FAILURE
screen-settings screen reference
screen-settingsControl music, SFX, haptics, accessibility entry, privacy, support, and optional restore-purchases behavior.States: default values · muted · restore unavailableInput: Tap switches or drag sliders; Back returns to the exact parent.Layout: Single scroll-safe cloth ticket uses left labels and right native controls; Back stays pinned inside the top safe inset.Source: GDD-ACCESS-1 · GDD-ECONOMY-2 · UX-SCREEN-SETTINGS
screen-accessibility screen reference
screen-accessibilityConfigure text scale, high contrast, reduced motion, captions, haptics, and inspect the symbol legend with immediate previews.States: defaults · high contrast · 130 percent text · reduced motionInput: Tap switches and segmented text-scale choices.Layout: Grouped settings use 44-pixel rows and a sticky preview strip; content scrolls beneath safe top and bottom actions without horizontal clipping.Source: GDD-ACCESS-1 · UX-SCREEN-ACCESS · UX-ACCESS-1
screen-legal screen reference
screen-legalPresent privacy, terms, credits, support, build identity, and transparent purchase/restore information plus local-content error recovery.States: normal · long localized copy · content errorInput: Scroll document, activate links, or tap Back/Retry Load.Layout: Readable 15-pixel minimum body copy scrolls inside a cloth page; persistent Back remains outside the scroll region and all links meet target size.Source: GDD-ECONOMY-2 · UX-SCREEN-LEGAL · UX-STATE-ERROR
Readiness

Review gates before implementation

  • ✓
    Source fidelity

    Every token, component, frame, and board traces to current GDD, market, product, or UX sources.

    Manifest source bindings, prompt refs, inventory refs, and embedded hashes are current.Source: ART-QA-1 · UI-READY-1
  • ✓
    State coverage

    Every required screen and important fresh/active/paused/success/failure/error state has one standalone portrait frame.

    Nine unique screen assets and six one-per-asset important-state mappings.Source: GDD-ACCEPT-2 · UX-STATE-FRESH
  • ✓
    Input coverage

    Touch, mouse, keyboard, and controller policy is explicit for targeting, activation, and feedback.

    Phase 06 matrix and HTML input map include all four methods.Source: UX-INPUT-1 · UI-INPUT-1
  • ✓
    Feedback ownership

    Visual, motion, audio, and haptic cues each have one owner, trigger, rule, and suppression condition.

    Phase 06 feedback map and HTML feedback cards reproduce all four channels.Source: UX-FEEDBACK-1 · UI-FEEDBACK-1
  • ✓
    Accessibility

    Non-color cues, type scale, high contrast, reduced motion, captions, focus, error recovery, and targets are reviewable.

    Accessibility frame, screen contract, tokens, native focus, switches, and reduced-motion CSS.Source: ART-ACCESS-1 · UX-ACCESS-1
  • ✓
    Screen consistency

    Every Phase 06 screen appears with purpose, review states, primary input, layout rule, and matching culinary component system.

    Screen grid and interactive reference are generated from the current screen inventory and board spec.Source: ART-QA-1 · UI-READY-1