<!-- Copyright (c) 2026 Dhara Hirpara. Released under the MIT License. -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#1034a6">
<meta name="description" content="Wildcat Wallet is a free, educational savings and investing practice tool made specifically for college students.">
<title>Wildcat Wallet | Big Blue Nation, build your foundation</title>
<style>
:root{--blue:#1034a6;--blue2:#2454c2;--ice:#e5effc;--ice2:#d3e5fb;--ink:#101828;--muted:#53627d;--line:#b8cce8;--white:#fff}
*{box-sizing:border-box}body{margin:0;background:#f4f7fc;color:var(--ink);font:15px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}
button,input,select{font:inherit}button{cursor:pointer}
.app{max-width:1080px;margin:auto;padding:24px 18px 48px}
.hero{background:linear-gradient(130deg,var(--blue),var(--blue2));color:#fff;border-radius:20px;padding:26px;box-shadow:0 12px 30px #1034a622}
.brand{display:flex;align-items:center;gap:14px}.cat{width:68px;height:68px;flex:none;filter:drop-shadow(0 3px 6px #0b173a55)}.cat svg{width:100%;height:100%}.brand h1{font-size:clamp(25px,4vw,36px);line-height:1.1;margin:0;font-weight:900;letter-spacing:-1px}.tagline{color:#dbeafe;margin-top:5px}
.hero-note{font-size:clamp(15px,2.2vw,18px);font-weight:800;line-height:1.25;text-align:right;max-width:270px}.hero-bottom{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-top:24px}.eyebrow{font-size:12px;color:#dbeafe}.hero-total{font-size:clamp(28px,5vw,40px);font-weight:900;letter-spacing:-1px}
.disclaimer{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 15px;margin:16px 0;font-size:13px}
.tabs{display:flex;gap:8px;margin:16px 0;flex-wrap:nowrap;width:100%}.tab{flex:1 1 0;min-width:0;text-align:center;border:0;border-radius:99px;padding:12px 10px;background:var(--ice);color:#17346f;font-weight:750}.tab.active{background:var(--blue);color:#fff}
button{transition:background-color .18s ease,box-shadow .18s ease,transform .18s ease,color .18s ease}
.tab:hover{background:var(--ice2);transform:translateY(-2px);box-shadow:0 6px 14px #1034a62e}.tab.active:hover{background:var(--blue2);color:#fff}
button.primary:hover{background:var(--blue2);transform:translateY(-2px);box-shadow:0 6px 14px #1034a640}
button.secondary:hover{background:#c3d9f7;transform:translateY(-2px);box-shadow:0 5px 12px #1034a626}
button.danger:hover{background:#ffdede;transform:translateY(-2px);box-shadow:0 5px 12px #9b222222}
.close-drawer:hover{background:#c3d9f7}
button:active{transform:translateY(0)}button:focus-visible{outline:3px solid #7aa2ee;outline-offset:2px}
@media(prefers-reduced-motion:reduce){button{transition:none}button:hover{transform:none!important}}
.panel{background:var(--ice);border:1px solid #c4d8f2;border-radius:16px;padding:18px;margin:14px 0}.panel h2{font-size:20px;margin:0 0 5px}.sub{color:var(--muted);font-size:13px;margin:0 0 12px}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.bucket{background:#fff;border:1px solid #c4d8f2;border-radius:12px;padding:14px;min-width:0}.bucket h3{font-size:15px;margin:0}.amount{font-size:25px;font-weight:900;margin:7px 0}
label{display:block;font-size:12px;font-weight:750;color:#42516d;margin:10px 0 5px}
input:not([type=range]):not([type=checkbox]):not([type=radio]),select{width:100%;border:1px solid #9bb7df;border-radius:8px;background:#fff;padding:9px;color:var(--ink)}
input[type=range]{width:100%;accent-color:var(--blue)}input[type=checkbox],input[type=radio]{accent-color:var(--blue)}
button.primary{background:var(--blue);color:#fff;border:0;border-radius:9px;padding:10px 14px;font-weight:750}
button.secondary{background:var(--ice2);color:#17346f;border:1px solid #a8c5ee;border-radius:9px;padding:9px 12px;font-weight:700}
button.danger{background:#fff0f0;color:#9b2222;border:1px solid #efb6b6;border-radius:9px;padding:9px 12px}
.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.progress{height:9px;background:#c0d4f1;border-radius:99px;overflow:hidden;margin-top:10px}.progress>div{height:100%;background:var(--blue);border-radius:99px}
.stat{background:var(--ice2);border-radius:11px;padding:12px;min-width:0}.stat small{display:block;color:var(--muted)}.stat strong{font-size:20px;display:block;overflow-wrap:anywhere}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.story{border-left:4px solid var(--blue);background:#f8fbff;padding:14px;border-radius:8px;margin:12px 0}.pill{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.5px;background:var(--ice2);color:#17346f;border-radius:99px;padding:3px 8px}
.notice{background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px;font-size:13px;margin-top:12px}
.checkrow{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #c4d5ed}.checkrow label{margin:0;flex:1;color:#172b50;font-size:14px}.checkrow input[type=number]{max-width:110px}
table{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;padding:9px 6px;border-bottom:1px solid var(--line)}svg{width:100%;height:auto;display:block}
.muted{color:var(--muted)}.hidden{display:none!important}details{background:#fff;border:1px solid #c4d8f2;border-radius:9px;padding:10px}summary{cursor:pointer;font-weight:750}
footer{text-align:center;color:var(--muted);font-size:12px;margin-top:25px}
.notes-tab{position:fixed;right:0;top:42%;z-index:30;writing-mode:vertical-rl;transform:rotate(180deg);border:0;border-radius:0 12px 12px 0;background:var(--blue);color:#fff;padding:15px 11px;font-weight:800;letter-spacing:.2px;box-shadow:0 5px 18px #102b6940;display:flex;align-items:center;gap:9px}
.notes-tab:hover{background:var(--blue2)}
.notes-backdrop{position:fixed;inset:0;background:#0b173866;z-index:39}
.notes-drawer{position:fixed;z-index:40;right:0;top:0;height:100dvh;width:min(390px,92vw);background:#f7faff;border-left:1px solid var(--line);box-shadow:-12px 0 35px #102b6925;padding:22px;overflow-y:auto;transform:translateX(105%);transition:transform .25s ease;display:flex;flex-direction:column}
.notes-drawer.open{transform:translateX(0)}
.drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px}
.drawer-head h2{font-size:22px;font-weight:850;margin:2px 0}
.drawer-kicker{font-size:10px;letter-spacing:1px;font-weight:850;color:var(--blue)}
.close-drawer{border:0;background:var(--ice2);color:var(--blue);font-size:26px;line-height:1;border-radius:9px;width:38px;height:38px}
.drawer-add{grid-template-columns:1fr auto}
.drawer-footer{margin-top:auto;padding-top:22px}
body.drawer-open{overflow:hidden}
@media(max-width:650px){.notes-tab{top:auto;bottom:22%;padding:13px 9px;font-size:12px}.notes-drawer{padding:18px}.app{padding:14px 12px 35px}.hero{padding:20px}.grid,.grid.three{grid-template-columns:1fr}.field-row{grid-template-columns:1fr 1fr}.tab{flex:1;padding:10px 8px;font-size:13px}.panel{padding:14px}.hero-bottom{align-items:start;flex-direction:column}.hero-note{text-align:left;max-width:none}}
.term{border-bottom:2px dotted var(--blue);cursor:help;border-radius:2px;transition:background-color .15s ease}
.term:hover{background:#d3e5fb}.term:focus-visible{outline:none;background:#d3e5fb;box-shadow:0 0 0 2px #7aa2ee}
#term-tip{position:fixed;z-index:80;max-width:min(300px,calc(100vw - 16px));background:#0b173a;color:#fff;border-radius:10px;padding:10px 12px;font-size:13px;line-height:1.4;box-shadow:0 8px 24px #0b173a55;pointer-events:none}
#term-tip b{display:block;margin-bottom:3px;color:#9fc0ff}
.tour{position:fixed;inset:0;z-index:90;background:#0b173a88;display:flex;align-items:flex-end;justify-content:center;padding:18px}
.tour-card{background:#fff;border-radius:16px;padding:20px;max-width:460px;width:100%;box-shadow:0 18px 50px #0b173a66}.tour-card p{margin:0 0 6px}
#daily select{width:auto;display:inline-block}#daily label{display:inline;margin:0 6px 0 0}
</style>
</head>
<body>
<main class="app" id="app">
<header class="hero">
<div class="brand"><div class="cat" role="img" aria-label="Wildcat holding money"><svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><defs><clipPath id="cat-clip"><circle cx="50" cy="50" r="46"/></clipPath></defs><circle cx="50" cy="50" r="48" fill="#fff"/><g clip-path="url(#cat-clip)"><rect width="100" height="100" fill="#e5effc"/><path d="M14 102Q14 66 50 61Q86 66 86 102Z" fill="#1034a6"/><path d="M24 33L25 9L43 21Z" fill="#1034a6"/><path d="M76 33L75 9L57 21Z" fill="#1034a6"/><path d="M29 26L29 16L37 22Z" fill="#d3e5fb"/><path d="M71 26L71 16L63 22Z" fill="#d3e5fb"/><path d="M23 38L16 44L25 46L20 53L31 54Q50 67 69 54L80 53L75 46L84 44L77 38Q75 15 50 15Q25 15 23 38Z" fill="#1034a6"/><path d="M50 17V25M43 18L45 25M57 18L55 25" stroke="#d3e5fb" stroke-width="2" stroke-linecap="round"/><ellipse cx="29.5" cy="47" rx="4.2" ry="2.8" fill="#9fc0ff" opacity=".8"/><ellipse cx="70.5" cy="47" rx="4.2" ry="2.8" fill="#9fc0ff" opacity=".8"/><ellipse cx="50" cy="49" rx="13" ry="11" fill="#fff"/><circle cx="39" cy="34" r="5.4" fill="#fff"/><circle cx="61" cy="34" r="5.4" fill="#fff"/><circle cx="39.6" cy="34.6" r="3.3" fill="#0b173a"/><circle cx="60.4" cy="34.6" r="3.3" fill="#0b173a"/><circle cx="40.8" cy="33.2" r="1.2" fill="#fff"/><circle cx="61.6" cy="33.2" r="1.2" fill="#fff"/><path d="M33.5 27Q39 24.3 44.5 27M55.5 27Q61 24.3 66.5 27" stroke="#0b173a" stroke-width="1.6" fill="none" stroke-linecap="round"/><path d="M46 44Q50 42.6 54 44Q53 48.5 50 50Q47 48.5 46 44Z" fill="#0b173a"/><path d="M50 52.5Q46.5 57.5 42 53.5M50 52.5Q53.5 57.5 58 53.5" stroke="#0b173a" stroke-width="1.6" fill="none" stroke-linecap="round"/><path d="M50 50V53" stroke="#0b173a" stroke-width="1.3" stroke-linecap="round"/><rect x="27" y="68" width="46" height="23" rx="3" fill="#4caf6a" stroke="#2e7d4a" stroke-width="1.5"/><circle cx="50" cy="79.5" r="7" fill="#d9f2df" stroke="#2e7d4a" stroke-width="1"/><text x="50" y="84" font-family="Georgia,serif" font-size="12" font-weight="900" fill="#1f6b3a" text-anchor="middle">$</text><ellipse cx="28" cy="80" rx="8.5" ry="8" fill="#1034a6" stroke="#fff" stroke-width="1.4"/><ellipse cx="72" cy="80" rx="8.5" ry="8" fill="#1034a6" stroke="#fff" stroke-width="1.4"/><path d="M24.5 77V83M28 76V84M31.5 77V83M68.5 77V83M72 76V84M75.5 77V83" stroke="#fff" stroke-width="1" stroke-linecap="round"/></g><circle cx="50" cy="50" r="46" fill="none" stroke="#1034a6" stroke-width="3.5"/></svg></div><div><h1>Wildcat Wallet</h1><div class="tagline">Big Blue Nation, build your foundation.</div><div class="tagline" style="font-weight:700">Made specifically for college students.</div></div></div>
<div class="hero-bottom"><div><div class="eyebrow">YOUR COMBINED BALANCE <span class="pill hidden" id="unsaved-pill" style="background:#fff;color:#9b2222;margin-left:6px">NOT SAVED TO A FILE</span></div><div class="hero-total" id="total">$0</div><div class="eyebrow" id="streak" style="margin-top:6px"></div></div><div class="hero-note">Don’t just save your money—put it to work.</div></div>
</header>
<div class="disclaimer"><b>Educational use only.</b> This tool is not financial, tax, or legal advice. Returns and examples are hypothetical; investments can lose money. No bank connection or live market data is included.</div>
<div class="disclaimer"><b>What this page does.</b> Wildcat Wallet is a free learning tool made specifically for college students who are learning to save and invest. Track four “buckets” of money, see how regular contributions could add up, run a Shock Test on surprise expenses, and practice with pretend money. It all runs inside this one file: no account, bank login or API key is needed, and nothing you type is sent anywhere. Use “Save my data” to keep a copy as a file and “Open saved data” to load it again. <b>Tip:</b> hover over (or tap) any word with a dotted underline to see what it means.<div class="actions"><button class="secondary" id="tour-open">Take the 3-step tour</button></div></div>
<nav class="tabs" aria-label="Main sections">
<button class="tab active" data-tab="balance">Balance</button><button class="tab" data-tab="news">News</button><button class="tab" data-tab="practice">Practice</button><button class="tab" data-tab="shock">Shock Test</button>
</nav>
<section id="balance">
<div class="panel"><h2>Starter plan: three quick questions</h2><p class="sub">Create an example plan you can adjust anytime.</p><label for="goal">What's your main goal?</label><select id="goal"><option value="emergency">Build an emergency fund</option><option value="short">Save for something in the next few years</option><option value="long">Grow money for the long run</option></select><label for="risk">How do you feel about investment risk?</label><select id="risk"><option value="nervous">Nervous about losing money</option><option value="okay" selected>Okay with some ups and downs</option><option value="bold">Comfortable with big swings</option></select><div class="actions"><button class="primary" id="build">Build my starter plan</button><button class="secondary" id="example">Try with example numbers</button></div><div class="notice hidden" id="plan"></div></div>
<div class="panel" id="daily"><h2 style="font-size:17px">Today’s note</h2><p id="note-text" style="margin:4px 0 10px;font-size:15px"></p><label for="note-freq">Show a new note</label><select id="note-freq"><option value="daily">every day</option><option value="weekly">every week</option><option value="off">never (turn off)</option></select><p class="sub" style="margin:8px 0 0">The streak above counts days you open this page. Missing a day just starts a fresh count, with no penalty.</p></div>
<div class="panel"><h2>Your money dashboard</h2><p class="sub">Track your savings and investments separately. Update balances and goals anytime.</p><div class="grid" id="buckets"></div></div>
<div class="panel"><h2>Your monthly plan</h2><p class="sub">Explore how regular contributions and hypothetical rates could add up.</p>
<div class="field-row"><div><label for="monthly">Monthly contribution ($)</label><input id="monthly" type="number" min="0" value="100"></div><div><label for="years">Years to project</label><input id="years" type="number" min="1" max="50" value="10"></div></div>
<label for="split">Savings allocation: <span id="split-label">60% savings · 40% investing</span></label><input id="split" type="range" min="0" max="100" step="5" value="60">
<details><summary>Change projection assumptions</summary><div class="field-row"><div><label for="srate">Savings rate (% yearly)</label><input id="srate" type="number" step=".1" value="4"></div><div><label for="irate">Investment return (% yearly)</label><input id="irate" type="number" step=".1" value="7"></div></div><p class="sub">Illustrative fixed rates, not predictions or guaranteed returns.</p></details>
<div class="grid three" id="projection-stats" style="margin-top:13px"></div><h3 style="font-size:15px;margin:18px 0 5px">Potential growth over time</h3><svg id="chart" viewBox="0 0 400 190" role="img" aria-label="Illustrative projected balance chart"></svg><p class="sub">━ Possible total ┄ Contributions only</p>
</div>
<div class="panel"><h2>Cost of waiting</h2><p class="sub">Same monthly amount, different start ages. Uses your monthly contribution and investment return above and compares totals at age 65.</p><div class="field-row"><div><label for="wait-a">Start at age</label><input id="wait-a" type="number" min="10" max="64" value="19"></div><div><label for="wait-b">Versus starting at age</label><input id="wait-b" type="number" min="10" max="64" value="25"></div></div><div id="wait-out" style="margin-top:12px"></div></div>
<div class="panel"><h2>Wallet data</h2><p class="sub">Your entries autosave in this browser on this device. Export a JSON backup to keep a copy or move your data.</p><div class="notice" id="save-status" aria-live="polite" style="margin:0 0 12px"></div>
<div class="actions"><button class="secondary" data-act="export">Save my data (JSON)</button><button class="secondary" data-act="import-button">Open saved data</button><input data-act="import" type="file" accept=".json,application/json" hidden><button class="danger" data-act="reset">Reset app</button></div></div>
</section>
<button id="notes-toggle" class="notes-tab" aria-controls="notes-drawer" aria-expanded="false" aria-label="Open reminders and notes">☰ <span>Reminders & Notes</span></button>
<div id="notes-backdrop" class="notes-backdrop hidden"></div>
<aside id="notes-drawer" class="notes-drawer" aria-label="Reminders and notes" aria-hidden="true">
<div class="drawer-head"><div><div class="drawer-kicker">YOUR WALLET TOOLKIT</div><h2>Reminders & Notes</h2></div><button id="notes-close" class="close-drawer" aria-label="Close reminders and notes">×</button></div>
<p class="sub">Keep small money goals and helpful reminders close at hand.</p>
<div id="reminders"></div>
<div class="field-row drawer-add"><input id="new-reminder" placeholder="Add a reminder..." aria-label="New reminder"><button class="primary" id="add-reminder">Add</button></div>
<div class="notice">🌱 Small and steady beats big and rare. Check in with your goals regularly.</div>
<div class="drawer-footer"><p class="sub">Your data autosaves in this browser on this device.</p><div class="actions"><button class="secondary" data-act="export">Save my data (JSON)</button><button class="secondary" data-act="import-button">Open saved data</button><input data-act="import" type="file" accept=".json,application/json" hidden><button class="danger" data-act="reset">Reset app</button></div></div>
</aside>
<section id="news" class="hidden">
<div class="panel"><h2>Reading the news with your money in mind</h2><p class="sub">Educational example stories, not live news. Think about how each situation might affect saving and investing.</p>
<article class="story"><span class="pill">EXAMPLE STORY</span><h3>Prices keep rising</h3><p>Inflation means everyday costs increase, so the same dollar buys less.</p><p><b>Savings:</b> Compare the account's APY with inflation to understand changes in purchasing power.</p><p><b>Investments:</b> Long-term investments may grow faster than prices, but there are no guarantees.</p></article>
<article class="story"><span class="pill">EXAMPLE STORY</span><h3>Interest rates change</h3><p>Banks can adjust what they pay savers when interest rates move.</p><p><b>Savings:</b> Check whether your account remains competitive and compare fees.</p><p><b>Investments:</b> Interest-rate changes can also affect investment prices.</p></article>
<article class="story"><span class="pill">EXAMPLE STORY</span><h3>Stocks slide for a few months</h3><p>Investment prices can fall. Short-term drops are a normal part of market risk.</p><p><b>Savings:</b> An emergency cushion may help you avoid selling investments during a downturn.</p><p><b>Investments:</b> Dollar-cost averaging means investing a regular amount on a schedule, regardless of market prices.</p></article>
<article class="story"><span class="pill">EXAMPLE STORY</span><h3>A few giant companies drive the gains</h3><p>Sometimes a small number of companies dominate market headlines.</p><p><b>Investments:</b> A broad ETF can hold many companies. Diversification spreads exposure rather than relying on a single company.</p></article></div>
<div class="panel"><h2>Tips and tricks</h2><p class="sub">Small habits that make saving and investing easier. Tap a tip to open it.</p><div class="grid" id="tips"></div></div>
</section>
<section id="practice" class="hidden">
<div class="panel"><h2>Practice with pretend money</h2><p class="sub">Start with $1,000 and make one choice each year for eight years. Returns are randomly generated illustrations, not forecasts.</p><div class="stat"><small>YOUR PRACTICE BALANCE</small><strong id="game-balance">$1,000</strong><small id="game-year">Year 0 of 8</small></div>
<h3 style="font-size:15px;margin-top:18px">Where does your money go this year?</h3>
<label class="checkrow"><input type="radio" name="pick" value="stock"><span>One company's stock — potentially big swings</span></label><label class="checkrow"><input type="radio" name="pick" value="fund" checked><span>Broad ETF — many companies at once</span></label><label class="checkrow"><input type="radio" name="pick" value="sav"><span>Savings account — steady and small</span></label><label class="checkrow"><input type="radio" name="pick" value="mix"><span>60% ETF and 40% savings</span></label>
<div class="actions"><button class="primary" id="trade">Make this year's trade</button><button class="secondary" id="game-reset">Start over</button></div><div class="notice" id="lesson" aria-live="polite">Choose a strategy and make your first pretend trade.</div></div>
<div class="panel"><h2>Practice scoreboard</h2><table><thead><tr><th>Strategy</th><th>Balance</th><th>Change</th></tr></thead><tbody id="score"></tbody></table><p class="sub" style="margin-top:10px">The diversified mix is a comparison benchmark. Different random results occur each game.</p></div>
</section>
<section id="shock" class="hidden">
<div class="panel"><h2>Shock Test</h2><p class="sub">Could your savings handle unexpected expenses? Select surprises and test how a market dip might affect the outcome.</p><div id="shocks"></div><div style="margin-top:18px;display:flex;justify-content:space-between;gap:10px"><label for="dip">Investment market dip</label><b id="dip-label">20%</b></div><input id="dip" type="range" min="0" max="50" step="5" value="20" style="width:100%"><div id="shock-result"></div></div>
<div class="panel"><h2>Semester money calendar</h2><p class="sub">Common student costs by time of year. Dates and amounts vary by school and by person.</p><table><thead><tr><th>When</th><th>Common costs</th><th>Idea</th></tr></thead><tbody><tr><td>Aug / Jan</td><td>Textbooks, fees, supplies</td><td>Compare used, rental and library copies first.</td></tr><tr><td>Sept</td><td>First rent, deposits, parking permit</td><td>Add due dates to Reminders.</td></tr><tr><td>Oct–Nov</td><td>Fall break and Thanksgiving travel</td><td>Set aside a little each week.</td></tr><tr><td>Dec</td><td>Finals, holiday travel, gifts</td><td>Pick a gift budget before December.</td></tr><tr><td>Mar</td><td>Spring break trip</td><td>Choose a budget, then save toward it.</td></tr><tr><td>Apr–May</td><td>Summer housing, moving costs</td><td>Ask early when deposits are due.</td></tr></tbody></table></div>
<div class="panel"><h2>Why an emergency cushion matters</h2><p class="sub">Cash savings may help cover unexpected costs without forcing you to sell investments after a price decline. This test is simplified and doesn't model taxes, fees, insurance, or borrowing.</p></div>
</section>
<div id="tour" class="tour hidden" role="dialog" aria-modal="true" aria-labelledby="tour-step"><div class="tour-card"><div class="drawer-kicker" id="tour-step"></div><h2 style="margin:4px 0 8px;font-size:20px">Welcome to Wildcat Wallet</h2><p id="tour-text"></p><div class="actions"><button class="secondary" id="tour-back">Back</button><button class="primary" id="tour-next">Next</button><button class="secondary" id="tour-example" hidden>Try with example numbers</button><button class="secondary" id="tour-skip">Skip tour</button></div></div></div>
<footer>Wildcat Wallet · Big Blue Nation, build your foundation. · Educational use only.<br>Original HTML, CSS and JavaScript and original wildcat artwork. No third-party code or libraries are used.</footer>
</main>
<script>
(()=>{
'use strict';
const $=id=>document.getElementById(id),on=(a,ev,fn)=>document.querySelectorAll('[data-act="'+a+'"]').forEach(el=>el.addEventListener(ev,fn)),money=x=>(x<0?'−':'')+'$'+Math.round(Math.abs(x)).toLocaleString('en-US');
const defaults=()=>({buckets:{ss:{bal:0,goal:1000},sl:{bal:0,goal:5000},is:{bal:0,goal:1000},il:{bal:0,goal:10000}},monthly:100,years:10,split:60,srate:4,irate:7,reminders:['Add to your savings this week','Read one News card','Play a practice round'],shocks:[true,true,false,false,false,false,false,false,false,false],shockCosts:[600,400,700,350,300,500,450,350,600,150],dip:20,noteFreq:'daily',streak:{count:0,last:''},game:{year:0,you:1000,mix:1000}});
const names={ss:'Short-term savings',sl:'Long-term savings',is:'Short-term investing',il:'Long-term investing'};
const shockNames=['Car repair','Dental or medical bill','Replace a laptop or phone','Flight home for a family emergency','Surprise fee or textbook bill','Two weeks of lost shifts','Textbooks for the semester','Surprise lease or housing fee','Spring break trip','Meal plan top-up'];
const tips=[['Pay yourself first','Move a small amount into savings the day money arrives, before you start spending. What is left is yours to spend.'],['Automate it','Set up a recurring transfer so saving does not depend on remembering or willpower. Even a small automatic amount adds up.'],['Start tiny, then step up','$10 a week builds the habit. Raise the amount when you get a raise, a new job, or a refund.'],['Build a starter cushion first','Many people set a small first target for emergencies before taking investment risk, so a surprise bill does not force a sale.'],['Try the 50/30/20 idea','A common rule of thumb: about 50% of income for needs, 30% for wants, and 20% for saving and debt payoff. Adjust it to fit your life.'],['Watch the fees','Small yearly fees compound over time just like returns do. Compare fees before choosing an account or fund.'],['Do not check daily','Long-term investments move around in the short run. Checking less often can make it easier to stay calm during dips.'],['Learn the lingo','APY is the yearly rate a savings account pays. An ETF is a basket of investments bought in one transaction. Diversification means spreading money across many assets.']];
let state=defaults();
const esc=s=>String(s).replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));
const num=(v,min=0,max=1e9)=>Math.max(min,Math.min(max,Number(v)||0));
let dirty=false;
const sigOf=o=>{let {streak,...r}=o;return JSON.stringify(r,(k,v)=>v&&typeof v==='object'&&!Array.isArray(v)?Object.keys(v).sort().reduce((a,x)=>(a[x]=v[x],a),{}):v)};const defaultSig=sigOf(defaults());let savedSig=defaultSig;
function updateStatus(){let el=$('save-status');if(el)el.textContent=dirty?'● This data is not saved to a file yet. Use “Save my data (JSON)” to keep a copy, or you will be warned before closing.':'✓ Nothing to save: no data has changed since your last file save.';let pl=$('unsaved-pill');if(pl)pl.classList.toggle('hidden',!dirty)}
function save(){let cur=sigOf(state);dirty=cur!==savedSig&&cur!==defaultSig;updateStatus();try{localStorage.setItem('wildcatWalletData',JSON.stringify(state))}catch(e){}}
function sanitize(d){
const bad=m=>{throw Error(m)},isObj=v=>v&&typeof v==='object'&&!Array.isArray(v);
const n=(v,min,max,name,def)=>{if(v===undefined&&def!==undefined)return def;if(typeof v!=='number'||!Number.isFinite(v)||v<min||v>max)bad(name+' is missing or not a valid number');return v};
if(!isObj(d)||d.app!=='wildcat-wallet'||!isObj(d.state))bad('This is not a Wildcat Wallet save file');
const st=d.state,def=defaults(),out={buckets:{}};
if(!isObj(st.buckets))bad('Balances are missing');
for(const k of Object.keys(def.buckets)){const b=st.buckets[k];if(!isObj(b))bad('The '+names[k]+' bucket is missing');out.buckets[k]={bal:n(b.bal,0,1e12,names[k]+' balance'),goal:n(b.goal,0,1e12,names[k]+' goal')}}
out.monthly=n(st.monthly,0,1e7,'Monthly contribution',def.monthly);
out.years=Math.round(n(st.years,1,50,'Years',def.years));
out.split=n(st.split,0,100,'Savings split',def.split);
out.srate=n(st.srate,-50,100,'Savings rate',def.srate);
out.irate=n(st.irate,-50,100,'Investment return',def.irate);
out.dip=n(st.dip,0,50,'Market dip',def.dip);
if(st.reminders===undefined)out.reminders=def.reminders;else{if(!Array.isArray(st.reminders)||st.reminders.length>200||st.reminders.some(r=>typeof r!=='string'||r.length>500))bad('Reminders are not valid');out.reminders=st.reminders.slice()}
if(st.shocks===undefined)out.shocks=def.shocks;else{if(!Array.isArray(st.shocks)||st.shocks.length<6||st.shocks.length>shockNames.length||st.shocks.some(x=>typeof x!=='boolean'))bad('Shock Test choices are not valid');out.shocks=st.shocks.concat(def.shocks.slice(st.shocks.length))}
if(st.shockCosts===undefined)out.shockCosts=def.shockCosts;else{if(!Array.isArray(st.shockCosts)||st.shockCosts.length<6||st.shockCosts.length>shockNames.length||st.shockCosts.some(x=>typeof x!=='number'||!Number.isFinite(x)||x<0||x>1e9))bad('Shock Test costs are not valid');out.shockCosts=st.shockCosts.concat(def.shockCosts.slice(st.shockCosts.length))}
if(st.game===undefined)out.game=def.game;else{if(!isObj(st.game))bad('Practice game data is not valid');out.game={year:Math.round(n(st.game.year,0,8,'Practice year')),you:n(st.game.you,0,1e15,'Practice balance'),mix:n(st.game.mix,0,1e15,'Practice benchmark')}}
if(st.noteFreq===undefined)out.noteFreq=def.noteFreq;else{if(!['daily','weekly','off'].includes(st.noteFreq))bad('The daily note setting is not valid');out.noteFreq=st.noteFreq}
if(st.streak===undefined)out.streak=def.streak;else{if(!isObj(st.streak)||typeof st.streak.last!=='string'||!/^(\d{4}-\d{2}-\d{2})?$/.test(st.streak.last))bad('Streak data is not valid');out.streak={count:Math.round(n(st.streak.count,0,100000,'Streak')),last:st.streak.last}}
return out}
function load(){try{let raw=localStorage.getItem('wildcatWalletData');if(raw)state=sanitize({app:'wildcat-wallet',state:JSON.parse(raw)})}catch(e){state=defaults()}touchStreak()}
function total(){return Object.values(state.buckets).reduce((a,b)=>a+b.bal,0)}
function fv(m,r,y){let n=y*12,rate=r/1200;return rate?m*(Math.pow(1+rate,n)-1)/rate:m*n}
function project(y){let b=state.buckets,sv=b.ss.bal+b.sl.bal,iv=b.is.bal+b.il.bal,sm=state.monthly*state.split/100,im=state.monthly-sm;return sv*Math.pow(1+state.srate/100,y)+fv(sm,state.srate,y)+iv*Math.pow(1+state.irate/100,y)+fv(im,state.irate,y)}
function renderBuckets(){$('buckets').innerHTML=Object.keys(names).map(k=>{let b=state.buckets[k],p=b.goal?Math.min(100,b.bal/b.goal*100):0;return `<div class="bucket"><h3>${names[k]}</h3><div class="amount">${money(b.bal)}</div><div class="progress"><div style="width:${p}%"></div></div><small class="muted">${Math.round(p)}% of ${money(b.goal)} goal</small><label>Current balance ($)</label><input type="number" min="0" data-bal="${k}" value="${b.bal}"><label>Goal ($)</label><input type="number" min="0" data-goal="${k}" value="${b.goal}"><div class="actions"><button class="secondary" data-add="${k}">+ Deposit</button><button class="secondary" data-take="${k}">− Withdraw</button></div></div>`}).join('')}
function renderChart(){let y=state.years,pts=[],con=[],max=1,start=total();for(let i=0;i<=y;i++){pts.push(project(i));con.push(start+state.monthly*12*i);max=Math.max(max,pts[i],con[i])}let xy=a=>a.map((v,i)=>(32+i/y*350).toFixed(1)+','+(165-v/max*145).toFixed(1)).join(' ');$('chart').innerHTML=`<line x1="32" y1="165" x2="385" y2="165" stroke="#64748b"/><line x1="32" y1="15" x2="32" y2="165" stroke="#64748b"/><polyline fill="none" stroke="#7990b6" stroke-width="2.5" stroke-dasharray="5 4" points="${xy(con)}"/><polyline fill="none" stroke="#1034a6" stroke-width="3.5" points="${xy(pts)}"/><text x="35" y="12" font-size="10" fill="#334155">${money(max)}</text><text x="32" y="181" font-size="10" fill="#334155">Now</text><text x="383" y="181" text-anchor="end" font-size="10" fill="#334155">Year ${y}</text>`;let future=pts[y],contrib=con[y];$('projection-stats').innerHTML=`<div class="stat"><small>Possible total</small><strong>${money(future)}</strong></div><div class="stat"><small>Amount contributed</small><strong>${money(contrib)}</strong></div><div class="stat"><small>Illustrative growth</small><strong>${money(future-contrib)}</strong></div>`;$('split-label').textContent=`${state.split}% savings · ${100-state.split}% investing`}
function renderReminders(){$('reminders').innerHTML=state.reminders.length?state.reminders.map((r,i)=>`<div class="checkrow"><input type="checkbox" data-done="${i}" aria-label="Complete reminder"><label>${esc(r)}</label><button class="secondary" data-remove="${i}" aria-label="Remove reminder">×</button></div>`).join(''):'<p class="sub">All clear. Nice work!</p>'}
function renderShock(full=true){ $('dip-label').textContent=state.dip+'%';if(full)$('shocks').innerHTML=shockNames.map((n,i)=>`<div class="checkrow"><input type="checkbox" data-shock="${i}" ${state.shocks[i]?'checked':''}><label>${n}</label><input type="number" min="0" data-cost="${i}" aria-label="${n} cost" value="${state.shockCosts[i]}"></div>`).join('');let cost=state.shocks.reduce((a,on,i)=>a+(on?state.shockCosts[i]:0),0),b=state.buckets,remaining=cost,used=[],sold=0;['ss','sl','is','il'].forEach(k=>{let amt=Math.min(remaining,b[k].bal);remaining-=amt;if(k[0]==='i')sold+=amt;used.push([names[k],amt])});let cover=cost?Math.round(Math.min(1,b.ss.bal/cost)*100):0,loss=sold*state.dip/100;$('shock-result').innerHTML=cost?`<div class="grid" style="margin-top:14px"><div class="stat"><small>Selected surprises</small><strong>${money(cost)}</strong></div><div class="stat"><small>Covered by short-term savings</small><strong>${cover}%</strong></div></div><div class="progress"><div style="width:${cover}%"></div></div><table style="margin-top:12px"><tr><th>Money source</th><th>Used</th></tr>${used.map(x=>`<tr><td>${x[0]}</td><td>${money(x[1])}</td></tr>`).join('')}<tr><td>Uncovered</td><td>${money(remaining)}</td></tr></table><div class="notice">${sold?`⚠ This illustration uses ${money(sold)} of investments. At a ${state.dip}% decline, the value reduction on that amount is about ${money(loss)}.`:remaining?`⚠ Your selected balances leave ${money(remaining)} uncovered.`:'✓ Your current balances cover the selected surprises without using investments.'}</div><p class="sub">Short-term savings currently hold ${money(b.ss.bal)}. A cushion covering all selected surprises would be ${money(cost)}.</p>`:'<p class="sub">Select at least one surprise to run the test.</p>'}
function renderGame(){let g=state.game;$('game-balance').textContent=money(g.you);$('game-year').textContent=`Year ${g.year} of 8`;$('trade').disabled=g.year>=8;$('score').innerHTML=[['Your strategy',g.you],['Diversified 60/40 mix',g.mix],['Cash under mattress',1000]].map(([n,v])=>`<tr><td>${n}</td><td>${money(v)}</td><td>${money(v-1000)}</td></tr>`).join('')}
function render(){ $('total').textContent=money(total());renderBuckets();renderChart();renderReminders();renderShock();$('monthly').value=state.monthly;$('years').value=state.years;$('split').value=state.split;$('srate').value=state.srate;$('irate').value=state.irate;$('dip').value=state.dip;renderGame();renderDaily();renderWait();save()}
function showTab(tab){document.querySelectorAll('.tab').forEach(b=>b.classList.toggle('active',b.dataset.tab===tab));['balance','news','practice','shock'].forEach(t=>$(t).classList.toggle('hidden',t!==tab))}
document.querySelectorAll('.tab').forEach(b=>b.addEventListener('click',()=>showTab(b.dataset.tab)));
const drawer=$('notes-drawer'),toggle=$('notes-toggle'),backdrop=$('notes-backdrop');
function openNotes(){drawer.classList.add('open');backdrop.classList.remove('hidden');toggle.setAttribute('aria-expanded','true');drawer.setAttribute('aria-hidden','false');document.body.classList.add('drawer-open');$('notes-close').focus()}
function closeNotes(){drawer.classList.remove('open');backdrop.classList.add('hidden');toggle.setAttribute('aria-expanded','false');drawer.setAttribute('aria-hidden','true');document.body.classList.remove('drawer-open');toggle.focus()}
toggle.addEventListener('click',openNotes);$('notes-close').addEventListener('click',closeNotes);backdrop.addEventListener('click',closeNotes);
document.addEventListener('keydown',e=>{if(e.key==='Escape'&&drawer.classList.contains('open'))closeNotes()});
$('buckets').addEventListener('change',e=>{let k=e.target.dataset.bal||e.target.dataset.goal;if(!k)return;if(e.target.dataset.bal)state.buckets[k].bal=num(e.target.value);else state.buckets[k].goal=num(e.target.value);render()});
$('buckets').addEventListener('click',e=>{let k=e.target.dataset.add||e.target.dataset.take;if(!k)return;let val=prompt(e.target.dataset.add?'Deposit amount ($):':'Withdrawal amount ($):');if(val===null)return;let amt=Number(val);if(!Number.isFinite(amt)||amt<=0){alert('Enter an amount greater than zero.');return}let b=state.buckets[k];b.bal=e.target.dataset.add?b.bal+amt:Math.max(0,b.bal-amt);render()});
['monthly','years','srate','irate'].forEach(id=>$(id).addEventListener('change',e=>{let limits={monthly:[0,1e7],years:[1,50],srate:[-50,100],irate:[-50,100]};state[id]=num(e.target.value,...limits[id]);if(id==='years')state.years=Math.round(state.years);render()}));
$('split').addEventListener('input',e=>{state.split=Number(e.target.value);renderChart();save()});
$('build').addEventListener('click',()=>{let goal=$('goal').value,risk=$('risk').value;let split={nervous:80,okay:60,bold:40}[risk]+(goal==='long'?-15:15);state.split=Math.max(10,Math.min(95,Math.round(split/5)*5));let desc={emergency:'Build a starter emergency cushion. Consider setting a small first target, then working toward several months of essential expenses.',short:'Write down your target cost and deadline. Divide the amount by the months remaining to estimate a monthly savings goal.',long:'Learn about long-term retirement accounts, diversified investments, fees, and the importance of keeping an emergency cushion.'};$('plan').classList.remove('hidden');$('plan').innerHTML=`<b>Example learning plan</b><p>${desc[goal]}</p><p>As an illustration, people with answers like these often explore a ${state.split}% savings and ${100-state.split}% investing mix. The projection above now shows that example. It is general education, not advice or a recommendation for you.</p>`;render()});
$('add-reminder').addEventListener('click',()=>{let v=$('new-reminder').value.trim();if(!v)return;state.reminders.push(v);$('new-reminder').value='';renderReminders();save()});$('new-reminder').addEventListener('keydown',e=>{if(e.key==='Enter')$('add-reminder').click()});
$('reminders').addEventListener('click',e=>{if(e.target.dataset.remove!==undefined){state.reminders.splice(+e.target.dataset.remove,1);renderReminders();save()}});$('reminders').addEventListener('change',e=>{if(e.target.dataset.done!==undefined){state.reminders.splice(+e.target.dataset.done,1);renderReminders();save()}});
$('shocks').addEventListener('change',e=>{if(e.target.dataset.shock!==undefined){state.shocks[+e.target.dataset.shock]=e.target.checked;renderShock(false);save()}});$('shocks').addEventListener('input',e=>{if(e.target.dataset.cost!==undefined){state.shockCosts[+e.target.dataset.cost]=num(e.target.value);renderShock(false);save()}});
$('dip').addEventListener('input',e=>{state.dip=+e.target.value;renderShock(false);save()});
function randNormal(){let u=Math.random()||.00001,v=Math.random();return Math.sqrt(-2*Math.log(u))*Math.cos(2*Math.PI*v)}
$('trade').addEventListener('click',()=>{let g=state.game;if(g.year>=8)return;let pick=document.querySelector('input[name="pick"]:checked').value,fund=Math.max(-.45,Math.min(.6,.08+.16*randNormal())),stock=Math.max(-.7,Math.min(1.2,.10+.35*randNormal())),rates={stock,fund,sav:.03,mix:.6*fund+.4*.03},ret=rates[pick];g.you*=1+ret;g.mix*=1+rates.mix;g.year++;let msg=pick==='stock'?(stock<rates.mix?'A single stock made the ride bumpier than the diversified mix.':'This time the stock beat the mix, but that could change next year.'):pick==='fund'?'A broad ETF spreads exposure across many companies, although it can still lose value.':pick==='sav'?'Savings stayed steady, but its growth may lag inflation over long periods.':'You chose a combination of investing and savings.';$('lesson').innerHTML=`<b>Year ${g.year} lesson.</b> Your choice moved ${(ret*100).toFixed(1)}%. The diversified mix moved ${(rates.mix*100).toFixed(1)}%. ${msg} ${g.year===8?'<b>Game finished!</b>':''}`;renderGame();save()});
$('game-reset').addEventListener('click',()=>{state.game={year:0,you:1000,mix:1000};$('lesson').textContent='Choose a strategy and make your first pretend trade.';renderGame();save()});
on('export','click',()=>{let blob=new Blob([JSON.stringify({app:'wildcat-wallet',version:1,state},null,2)],{type:'application/json'}),url=URL.createObjectURL(blob),a=document.createElement('a');a.href=url;a.download='wildcat-wallet-save.json';a.click();URL.revokeObjectURL(url);savedSig=sigOf(state);dirty=false;updateStatus()});
on('import-button','click',e=>e.currentTarget.nextElementSibling.click());on('import','change',async e=>{let f=e.target.files[0];e.target.value='';if(!f)return;
try{if(f.size>1e6)throw Error('The file is too large to be a Wildcat Wallet save');
let d;try{d=JSON.parse(await f.text())}catch(x){throw Error('The file is not readable JSON')}
let fresh=sanitize(d);
if(dirty&&!confirm('Opening this file replaces what is on screen, and you have changes not saved to a file. Open it anyway?'))return;
state=fresh;touchStreak();$('plan').classList.add('hidden');$('lesson').textContent='Choose a strategy and make your first pretend trade.';render();savedSig=sigOf(state);dirty=false;updateStatus()}
catch(err){alert('Could not open that file: '+err.message+'.\nYour current work was not changed.')}});
on('reset','click',()=>{if(!confirm('Reset all balances, goals, reminders and practice progress?'))return;state=defaults();touchStreak();$('plan').classList.add('hidden');$('lesson').textContent='Choose a strategy and make your first pretend trade.';$('goal').value='emergency';$('risk').value='okay';$('wait-a').value=19;$('wait-b').value=25;document.querySelector('input[name="pick"][value="fund"]').checked=true;$('new-reminder').value='';render()});
$('tips').innerHTML=tips.map(([w,d])=>`<details><summary>${w}</summary><p class="sub" style="margin:8px 0 0">${d}</p></details>`).join('');
/* Daily note + gentle streak */
const notes=['Small and steady beats big and rare.','Every dollar you save is a vote for future you.','Progress, not perfection: one small deposit counts.','Checking in on your goals is a skill, and you are practicing it.','Ask one question today: where did my money go this week?','A small cushion today makes surprises less stressful.','Investing is a long game. Patience is the strategy.','You do not have to understand everything to start learning.','Celebrate a goal you hit, even a tiny one.','Compare before you commit: fees, rates and terms matter.','Big Blue Nation builds on a strong foundation, and so do you.','Learning one new money word today is a win.','Skipped a day? No problem. Pick up where you left off.','Future you will thank you for the habit, not the amount.'];
function dayNum(){let d=new Date();return Math.floor(Date.UTC(d.getFullYear(),d.getMonth(),d.getDate())/864e5)}
function touchStreak(){let n=dayNum(),s=state.streak,last=s.last?Math.floor(Date.parse(s.last)/864e5):null;if(last===n)return;s.count=last===n-1?s.count+1:1;s.last=new Date(n*864e5).toISOString().slice(0,10)}
function renderDaily(){let f=state.noteFreq,c=state.streak.count;$('note-freq').value=f;$('note-text').textContent=f==='off'?'Daily notes are off. Choose “every day” or “every week” to turn them back on.':notes[Math.floor(dayNum()/(f==='weekly'?7:1))%notes.length];$('streak').textContent=c>1?'🔥 '+c+'-day check-in streak':'🔥 Day 1: welcome! Come back tomorrow to start a streak.'}
$('note-freq').addEventListener('change',e=>{state.noteFreq=e.target.value;renderDaily();save()});
/* Cost of waiting */
function renderWait(){let ages=[num($('wait-a').value,10,64),num($('wait-b').value,10,64)].sort((a,b)=>a-b),m=state.monthly,r=state.irate,res=ages.map(a=>({a,c:m*12*(65-a),t:fv(m,r,65-a)})),mx=Math.max(1,res[0].t,res[1].t);
$('wait-out').innerHTML=m>0?res.map(x=>`<div class="stat" style="margin-bottom:10px"><small>Start at ${x.a}</small><strong>${money(x.t)}</strong><small>${money(x.c)} contributed over ${65-x.a} years</small><div class="progress"><div style="width:${x.t/mx*100}%"></div></div></div>`).join('')+(res[0].a<res[1].a?`<div class="notice">Starting at ${res[0].a} instead of ${res[1].a} could mean about <b>${money(res[0].t-res[1].t)}</b> more at age 65 in this example, for ${money(res[0].c-res[1].c)} more contributed. That gap is compound growth at work. Same monthly amount, same ${r}% illustrative return. This is simple math, not a prediction.</div>`:''):'<p class="sub">Enter a monthly contribution above to compare.</p>'}
['wait-a','wait-b'].forEach(id=>$(id).addEventListener('input',renderWait));
/* Example numbers */
function loadExample(){if(dirty&&!confirm('Fill the page with example numbers? This replaces what is on screen.'))return;
let keep={noteFreq:state.noteFreq,streak:state.streak};state=Object.assign(defaults(),keep);Object.assign(state,{monthly:150,years:10,shocks:state.shocks.map((_,i)=>[0,1,6].includes(i)),game:{year:3,you:1182,mix:1141}});
[['ss',650],['sl',1800],['is',300],['il',2400]].forEach(([k,v])=>state.buckets[k].bal=v);
$('goal').value='short';$('risk').value='okay';$('build').click();$('lesson').innerHTML='<b>Example data, year 3.</b> Your strategy is at $1,182 and the diversified mix is at $1,141. Keep playing to see how choices behave. Different random results occur each game.';showTab('balance');scrollTo(0,0)}
$('example').addEventListener('click',loadExample);
/* Welcome tour */
const tour=[['1 OF 3 · SAVE','Start on Balance. Add what you have in the four buckets, set goals, and explore the monthly plan and Cost of waiting. Everything saves in your browser.','balance'],['2 OF 3 · PRACTICE','Use pretend money to see how different choices behave over eight years, with a short lesson after every move.','practice'],['3 OF 3 · TEST','Run a Shock Test to see how surprise costs like textbooks or a laptop could hit your savings, and check the semester money calendar.','shock']];
let ti=0;
function showTour(i){ti=i;let t=tour[i];showTab(t[2]);$('tour-step').textContent=t[0];$('tour-text').textContent=t[1];$('tour-back').hidden=i===0;$('tour-next').textContent=i===2?'Done':'Next';$('tour-example').hidden=i!==2;$('tour').classList.remove('hidden');$('tour-next').focus()}
function endTour(){$('tour').classList.add('hidden');try{localStorage.setItem('wildcatWalletTour','1')}catch(e){}showTab('balance');scrollTo(0,0)}
$('tour-next').addEventListener('click',()=>ti<2?showTour(ti+1):endTour());$('tour-back').addEventListener('click',()=>showTour(Math.max(0,ti-1)));$('tour-skip').addEventListener('click',endTour);
$('tour-example').addEventListener('click',()=>{endTour();loadExample()});$('tour-open').addEventListener('click',()=>showTour(0));
document.addEventListener('keydown',e=>{if(e.key==='Escape'&&!$('tour').classList.contains('hidden'))endTour()});
/* Glossary: hover, focus or tap a dotted-underlined word to see a plain-language definition. */
const glossary=[
{re:'ETFs?',term:'ETF (exchange-traded fund)',def:'A basket of many investments that you can buy in one purchase. It is like owning a tiny slice of lots of companies at once.'},
{re:'APY',term:'APY (annual percentage yield)',def:'The yearly rate a savings account pays, counting interest that earns more interest. A higher APY means your savings grow faster.'},
{re:'inflation',term:'Inflation',def:'The general rise in prices over time. When prices go up, the same dollar buys a little less than it used to.'},
{re:'purchasing power',term:'Purchasing power',def:'How much you can buy with your money. Inflation slowly lowers it.'},
{re:'interest[ -]rates?',term:'Interest rate',def:'The percentage a bank pays you for saving, or charges you for borrowing. When rates change, savings accounts and investment prices can change too.'},
{re:'diversif(?:ication|ied)',term:'Diversification',def:'Spreading your money across many different investments so one bad one does not sink everything. It is the "don\u2019t put all your eggs in one basket" idea.'},
{re:'dollar-cost averaging',term:'Dollar-cost averaging',def:'Investing the same amount on a regular schedule, like $25 every month, no matter what prices are doing.'},
{re:'compound growth',term:'Compound growth',def:'Growth where your earnings also earn returns, so your money can snowball the longer it stays invested.'},
{re:'emergency (?:fund|cushion)',term:'Emergency fund',def:'Money set aside, usually in savings, for surprise costs like a car repair or a medical bill, so you do not have to sell investments.'},
{re:'stocks?',term:'Stock',def:'A small piece of ownership in one company. Its price can swing up and down a lot.'},
{re:'(?:(?:market|investment) )?risk',term:'Risk',def:'The chance that an investment loses value or swings up and down. Higher potential growth usually comes with more risk.'},
{re:'retirement accounts?',term:'Retirement account',def:'A special account for long-term saving, such as a 401(k) or an IRA, often with tax benefits.'},
{re:'downturns?|market dips?',term:'Market dip / downturn',def:'A period when investment prices fall. Dips are normal and have happened many times, but they can be stressful.'}
];
glossary.forEach(g=>g.rx=new RegExp('^(?:'+g.re+')$','i'));
const glossRe=new RegExp('\\b(?:'+glossary.map(g=>'(?:'+g.re+')').join('|')+')\\b','gi');
function glossify(){
const root=$('app'),skip='script,style,button,select,option,textarea,input,summary,svg,noscript,.term';
const w=document.createTreeWalker(root,NodeFilter.SHOW_TEXT,{acceptNode:n=>{if(!n.nodeValue.trim())return NodeFilter.FILTER_REJECT;let p=n.parentElement;if(!p||p.closest(skip))return NodeFilter.FILTER_REJECT;glossRe.lastIndex=0;return glossRe.test(n.nodeValue)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});
const nodes=[];while(w.nextNode())nodes.push(w.currentNode);
nodes.forEach(n=>{let t=n.nodeValue,frag=document.createDocumentFragment(),last=0,m;glossRe.lastIndex=0;
while((m=glossRe.exec(t))){let g=glossary.find(x=>x.rx.test(m[0]));if(!g)continue;
if(m.index>last)frag.append(t.slice(last,m.index));
let sp=document.createElement('span');sp.className='term';sp.tabIndex=0;sp.dataset.term=g.term;sp.dataset.def=g.def;sp.textContent=m[0];frag.append(sp);last=m.index+m[0].length}
if(last<t.length)frag.append(t.slice(last));
n.parentNode.replaceChild(frag,n)})}
const tipEl=document.createElement('div');tipEl.id='term-tip';tipEl.setAttribute('role','tooltip');tipEl.classList.add('hidden');document.body.appendChild(tipEl);
let tipFor=null;
function placeTip(){if(!tipFor)return;let r=tipFor.getBoundingClientRect();if(r.bottom<0||r.top>innerHeight){hideTip();return}
let w=tipEl.offsetWidth,h=tipEl.offsetHeight,top=r.bottom+8;if(top+h>innerHeight-8&&r.top-h-8>8)top=r.top-h-8;
let left=Math.max(8,Math.min(r.left+r.width/2-w/2,innerWidth-w-8));tipEl.style.left=left+'px';tipEl.style.top=top+'px'}
function showTip(t){hideTip();tipFor=t;tipEl.innerHTML='<b></b><span></span>';tipEl.firstChild.textContent=t.dataset.term;tipEl.lastChild.textContent=t.dataset.def;tipEl.classList.remove('hidden');t.setAttribute('aria-describedby','term-tip');placeTip()}
function hideTip(){if(tipFor)tipFor.removeAttribute('aria-describedby');tipFor=null;tipEl.classList.add('hidden')}
document.addEventListener('mouseover',e=>{let t=e.target.closest&&e.target.closest('.term');if(t&&t!==tipFor)showTip(t)});
document.addEventListener('mouseout',e=>{let t=e.target.closest&&e.target.closest('.term');if(t&&!(e.relatedTarget&&t.contains(e.relatedTarget)))hideTip()});
document.addEventListener('focusin',e=>{let t=e.target.closest&&e.target.closest('.term');if(t)showTip(t)});
document.addEventListener('focusout',e=>{if(e.target.closest&&e.target.closest('.term'))hideTip()});
document.addEventListener('click',e=>{let t=e.target.closest&&e.target.closest('.term');if(t){e.preventDefault();if(t!==tipFor)showTip(t)}else hideTip()});
document.addEventListener('keydown',e=>{if(e.key==='Escape')hideTip()});
window.addEventListener('scroll',placeTip,true);window.addEventListener('resize',placeTip);
function startGlossary(){glossify();let q=false;const opts={childList:true,subtree:true,characterData:true},obs=new MutationObserver(()=>{if(q)return;q=true;requestAnimationFrame(()=>{obs.disconnect();glossify();obs.observe($('app'),opts);q=false})});obs.observe($('app'),opts)}
window.addEventListener('beforeunload',e=>{if(dirty){e.preventDefault();e.returnValue=''}});
load();$('dip').value=state.dip;render();updateStatus();startGlossary();try{if(!localStorage.getItem('wildcatWalletTour'))showTour(0)}catch(e){}
})();
</script>
</body>
</html>
Websites this page contacts when it runs — fonts, chart libraries, data. Found by reading its source.
Published on Globefin under the MIT License. You may copy, change, and reuse this page, including commercially — just keep the notice below with it.
Copyright © 2026 Dhara Hirpara. Licensed under the MIT License. Published on Globefin.
Provided as is, without warranty. Any external libraries it loads keep their own licences. Terms →
Scripts run, but the demo has its own throwaway origin. It can't read your session or cookies, can't reach the page around it, and can't navigate your tab. Don't enter real passwords or personal data into any demo.