Scan to open on your phone
Point a camera at the QR code - it opens this exact paste, no app needed.
https://codepastes.com/zzgs5yq8cnda1rbhKrillionHTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DECA KRILLION — Dive Into Performance Indicators</title>
<style>
:root {
--deca-blue: #005596;
--deca-dark: #002b4d;
--deca-gold: #fdb913;
--pool-top: #00b4d8;
--pool-deep: #03045e;
--glass: rgba(255, 255, 255, 0.12);
--text: #ffffff;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background: linear-gradient(135deg, var(--deca-dark), #001829);
color: var(--text);
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
overflow-x: hidden;
}
header {
width: 100%;
padding: 18px 30px;
background: rgba(0, 0, 0, 0.35);
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 2px solid var(--deca-gold);
}
.logo {
font-size: 1.6rem;
font-weight: 900;
letter-spacing: 1px;
display: flex;
align-items: center;
gap: 10px;
}
.logo span {
background: var(--deca-gold);
color: var(--deca-dark);
padding: 2px 8px;
border-radius: 6px;
font-size: 0.9rem;
}
.hud {
display: flex;
gap: 20px;
font-weight: 700;
font-size: 1.1rem;
}
.hud-pill {
background: var(--glass);
padding: 6px 14px;
border-radius: 20px;
border: 1px solid rgba(255,255,255,0.2);
}
.screen {
width: 100%;
max-width: 960px;
padding: 30px 20px;
display: none;
flex-direction: column;
align-items: center;
animation: fadeIn 0.35s ease;
}
.screen.active {
display: flex;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.hero-title {
font-size: 2.6rem;
text-align: center;
margin-bottom: 8px;
text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.hero-sub {
color: #90e0ef;
margin-bottom: 28px;
text-align: center;
font-size: 1.1rem;
}
.cluster-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 18px;
width: 100%;
}
.cluster-btn {
background: linear-gradient(145deg, #00477e, #003157);
border: 2px solid rgba(253, 185, 19, 0.4);
border-radius: 16px;
padding: 22px;
color: white;
cursor: pointer;
text-align: left;
transition: all 0.2s ease;
position: relative;
overflow: hidden;
box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.cluster-btn:hover {
transform: translateY(-5px);
border-color: var(--deca-gold);
box-shadow: 0 12px 26px rgba(253, 185, 19, 0.25);
}
.cluster-icon {
font-size: 2.4rem;
margin-bottom: 10px;
display: block;
}
.cluster-name {
font-size: 1.3rem;
font-weight: 800;
color: var(--deca-gold);
margin-bottom: 4px;
}
.cluster-desc {
font-size: 0.9rem;
color: #caf0f8;
}
.top-bar {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}
.back-btn {
background: rgba(255,255,255,0.15);
border: none;
color: white;
padding: 8px 14px;
border-radius: 8px;
cursor: pointer;
font-weight: 600;
}
.back-btn:hover { background: rgba(255,255,255,0.25); }
.timer-bar-wrap {
width: 100%;
height: 10px;
background: rgba(255,255,255,0.15);
border-radius: 10px;
overflow: hidden;
margin-bottom: 18px;
}
.timer-bar {
height: 100%;
width: 100%;
background: linear-gradient(90deg, #ef233c, #fdb913, #06d6a0);
transition: width 0.1s linear;
}
.stage {
width: 100%;
height: 220px;
background: linear-gradient(180deg, #8ecae6 0%, #219ebc 58%, #0077b6 59%, #03045e 100%);
border-radius: 18px;
position: relative;
overflow: hidden;
border: 3px solid rgba(255,255,255,0.25);
margin-bottom: 20px;
box-shadow: inset 0 0 30px rgba(0,0,0,0.3);
}
.board-base {
position: absolute;
left: 0;
top: 68px;
width: 24px;
height: 65px;
background: #4a4e69;
}
.diving-board {
position: absolute;
left: 18px;
top: 66px;
width: 110px;
height: 10px;
background: #f8f9fa;
border-radius: 0 6px 6px 0;
box-shadow: 0 4px 6px rgba(0,0,0,0.3);
transform-origin: left center;
}
.board-bounce {
animation: boardSpring 0.4s ease;
}
@keyframes boardSpring {
0% { transform: rotate(0deg); }
35% { transform: rotate(12deg); }
70% { transform: rotate(-6deg); }
100% { transform: rotate(0deg); }
}
.water-line {
position: absolute;
top: 128px;
left: 0;
width: 200%;
height: 14px;
background: repeating-radial-gradient(circle at 20px 10px, rgba(255,255,255,0.5) 0, rgba(255,255,255,0.5) 6px, transparent 7px, transparent 25px);
animation: waveMove 3s linear infinite;
}
@keyframes waveMove {
from { transform: translateX(0); }
to { transform: translateX(-50px); }
}
.diver {
position: absolute;
left: 95px;
top: 22px;
font-size: 2.4rem;
z-index: 5;
transition: none;
user-select: none;
}
.anim-icdc {
animation: diveICDC 1.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes diveICDC {
0% { left: 95px; top: 22px; transform: rotate(0deg) scale(1); }
25% { left: 170px; top: -15px; transform: rotate(180deg) scale(1.1); }
50% { left: 260px; top: 15px; transform: rotate(540deg) scale(1.1); }
75% { left: 340px; top: 105px; transform: rotate(740deg) scale(1); }
100% { left: 375px; top: 185px; transform: rotate(740deg) scale(0.85); opacity: 0.4; }
}
.anim-state {
animation: diveState 1.3s ease-in forwards;
}
@keyframes diveState {
0% { left: 95px; top: 22px; transform: rotate(0deg); }
35% { left: 190px; top: 0px; transform: rotate(160deg); }
75% { left: 290px; top: 110px; transform: rotate(380deg); }
100% { left: 320px; top: 180px; transform: rotate(380deg); opacity: 0.4; }
}
.anim-district {
animation: diveDistrict 1.2s ease-in forwards;
}
@keyframes diveDistrict {
0% { left: 95px; top: 22px; transform: rotate(0deg); }
40% { left: 175px; top: 18px; transform: rotate(75deg); }
100% { left: 250px; top: 175px; transform: rotate(130deg); opacity: 0.4; }
}
.anim-flop {
animation: bellyFlop 1.25s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}
@keyframes bellyFlop {
0% { left: 95px; top: 22px; transform: rotate(0deg); }
30% { left: 155px; top: 12px; transform: rotate(-35deg); }
70% { left: 230px; top: 108px; transform: rotate(90deg) scaleX(1.3) scaleY(0.7); }
85% { left: 235px; top: 104px; transform: rotate(90deg) scaleX(1.4) scaleY(0.6); }
100% { left: 240px; top: 165px; transform: rotate(95deg); opacity: 0.35; }
}
.splash {
position: absolute;
top: 98px;
font-size: 2.8rem;
opacity: 0;
pointer-events: none;
z-index: 6;
}
.splash-show {
animation: splashPop 0.8s ease-out forwards;
}
@keyframes splashPop {
0% { opacity: 0; transform: scale(0.3) translateY(20px); }
40% { opacity: 1; transform: scale(1.4) translateY(-10px); }
100% { opacity: 0; transform: scale(1.6) translateY(-25px); }
}
.tier-banner {
position: absolute;
right: 25px;
top: 25px;
background: rgba(0, 24, 41, 0.88);
border: 2px solid var(--deca-gold);
padding: 12px 20px;
border-radius: 14px;
text-align: right;
opacity: 0;
transform: scale(0.8);
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
z-index: 10;
}
.tier-banner.show {
opacity: 1;
transform: scale(1);
}
.tier-title {
font-size: 1.4rem;
font-weight: 900;
letter-spacing: 0.5px;
}
.tier-pts {
font-size: 1rem;
font-weight: 700;
color: #90e0ef;
}
.q-card {
width: 100%;
background: var(--glass);
backdrop-filter: blur(8px);
border: 1px solid rgba(255,255,255,0.2);
border-radius: 16px;
padding: 24px;
}
.pi-tag {
display: inline-block;
background: var(--deca-gold);
color: var(--deca-dark);
font-weight: 800;
font-size: 0.78rem;
padding: 4px 10px;
border-radius: 6px;
text-transform: uppercase;
margin-bottom: 10px;
}
.q-text {
font-size: 1.25rem;
line-height: 1.45;
margin-bottom: 20px;
font-weight: 600;
}
.options-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
@media (max-width: 650px) {
.options-grid { grid-template-columns: 1fr; }
}
.opt-btn {
background: rgba(0, 43, 77, 0.85);
border: 2px solid rgba(255,255,255,0.2);
color: white;
padding: 15px 18px;
border-radius: 12px;
font-size: 1rem;
text-align: left;
cursor: pointer;
transition: all 0.15s ease;
font-weight: 500;
}
.opt-btn:hover:not(:disabled) {
background: var(--deca-blue);
border-color: var(--deca-gold);
transform: translateX(4px);
}
.opt-btn.correct {
background: #06d6a0 !important;
color: #002b4d !important;
border-color: #ffffff !important;
font-weight: 800;
}
.opt-btn.wrong {
background: #ef233c !important;
border-color: #ffffff !important;
}
.next-row {
margin-top: 18px;
display: flex;
justify-content: space-between;
align-items: center;
}
.explanation {
font-size: 0.95rem;
color: #caf0f8;
max-width: 72%;
}
.next-btn {
background: var(--deca-gold);
color: var(--deca-dark);
border: none;
padding: 12px 24px;
border-radius: 10px;
font-weight: 900;
font-size: 1rem;
cursor: pointer;
display: none;
}
.next-btn:hover { filter: brightness(1.1); }
.results-box {
background: var(--glass);
Use code with caution.
border: 2px solid var(--deca-gold);
border-radius: 20px;
padding: 36px;
text-align: center;
max-width: 560px;
width: 100%;
}
.final-rank {
font-size: 2.2rem;
font-weight: 900;
color: var(--deca-gold);
margin: 12px 0;
}
.stats-row {
display: flex;
justify-content: space-around;
margin: 24px 0;
background: rgba(0,0,0,0.3);
padding: 16px;
border-radius: 12px;
}
.stat-val { font-size: 1.6rem; font-weight: 800; }
.stat-lbl { font-size: 0.85rem; color: #90e0ef; }
💎 DECA KRILLION STUDY DIVE
Score: 0
Streak: 0🔥
Choose Your DECA Cluster
Answer fast to nail an ICDC Glass dive. Miss the mark and suffer a Disqualified Belly Flop.
← Change Cluster
Question 1 / 5
🕴️
💦
💎 ICDC GLASS!
+1,250 PTS
Performance Indicator
Loading scenario...
Next Dive →
🏆
ICDC Glass Medalist
Flawless role-play execution. Judges are handing out the blue blazer!
0
TOTAL KRILLIONS
0%
ACCURACY
0
BEST STREAK
Back to Cluster Menu
const CLUSTERS = [
{
id: 'bma',
icon: '🏢',
name: 'Boardroom Blitz',
cluster: 'Business Management & Administration',
desc: 'Operations, HR, supply chain, and executive strategy.',
questions: [
{
pi: 'Operations • Supply Chain',
q: 'A manufacturer orders raw materials only as customer orders arrive to eliminate warehouse storage fees. Which inventory method is this?',
opts: ['Just-in-Time (JIT)', 'First-In, First-Out (FIFO)', 'Economic Order Quantity', 'Safety Stock Buffering'],
ans: 0,
exp: 'Just-in-Time (JIT) minimizes carrying costs by receiving goods only right before they are needed in production.'
},
{
pi: 'Human Resources • Management',
q: 'During a role-play, your manager delegates authority to a team lead to approve budgets, while keeping ultimate responsibility. What is this called?',
opts: ['Span of Control', 'Chain of Command', 'Empowerment & Delegation', 'Micromanagement'],
ans: 2,
exp: 'Delegation grants decision-making authority to subordinates while the manager retains overall accountability.'
},
{
pi: 'Business Law • Ethics',
q: 'Which business ownership structure shields owners from personal liability while avoiding corporate double taxation?',
opts: ['Sole Proprietorship', 'General Partnership', 'Limited Liability Company (LLC)', 'C-Corporation'],
ans: 2,
exp: 'An LLC protects personal assets like a corporation while passing profits directly to owners’ personal tax returns.'
},
{
pi: 'Project Management • Quality',
q: 'A project manager identifies the longest sequence of dependent tasks to determine the shortest possible project duration. What tool is used?',
opts: ['SWOT Matrix', 'Critical Path Method (CPM)', 'Balanced Scorecard', 'Break-Even Chart'],
ans: 1,
exp: 'The Critical Path Method (CPM) maps the longest chain of dependent activities that dictates minimum completion time.'
},
{
pi: 'Knowledge Management • Information',
q: 'Employees save best-practice templates in a shared internal portal so future teams do not repeat mistakes. This demonstrates:',
opts: ['Knowledge Management', 'Data Mining', 'Horizontal Integration', 'Whistleblowing'],
ans: 0,
exp: 'Knowledge management captures, organizes, and shares institutional expertise across an organization.'
}
]
},
{
id: 'ent',
icon: '🚀',
name: 'Startup Splash',
cluster: 'Entrepreneurship',
desc: 'Venture capital, lean canvas, intellectual property, and scaling.',
questions: [
{
pi: 'Venture Capital • Financing',
q: 'A wealthy individual invests $150,000 of their own money into an early-stage tech startup in exchange for 10% equity. Who is this investor?',
opts: ['Angel Investor', 'Commercial Banker', 'Franchisor', 'Underwriter'],
ans: 0,
exp: 'Angel investors use personal capital to fund early-stage startups in exchange for convertible debt or ownership equity.'
},
{
pi: 'Product Development • Lean Startup',
q: 'Before coding a full app, a founder builds a clickable prototype with just one core feature to test customer demand. This is a:',
opts: ['Minimum Viable Product (MVP)', 'Loss Leader', 'Patent Pending Filing', 'Feasibility Audit'],
ans: 0,
exp: 'An MVP delivers just enough core value to gather validated learning from early adopters with minimal expense.'
},
{
pi: 'Legal • Intellectual Property',
q: 'A founder invents a brand-new biodegradable coffee lid mechanism and wants 20 years of exclusive manufacturing rights. What must they apply for?',
opts: ['Utility Patent', 'Copyright', 'Trademark', 'Trade Secret'],
ans: 0,
exp: 'Utility patents protect new and useful processes, machines, or manufactures for up to 20 years.'
},
{
pi: 'Business Model • Scalability',
q: 'Which revenue model charges customers a recurring monthly fee for continuous access to cloud software?',
opts: ['SaaS Subscription Model', 'Freemium Licensing', 'Consignment Retail', 'Wholesale Markup'],
ans: 0,
exp: 'Software-as-a-Service (SaaS) generates predictable recurring revenue through monthly or annual subscriptions.'
},
{
pi: 'Exit Strategy • Valuation',
q: 'When a private startup sells shares to the general public on a stock exchange for the very first time, it conducts an:',
opts: ['Initial Public Offering (IPO)', 'Leveraged Buyout (LBO)', 'Angel Seed Round', 'Asset Liquidation'],
ans: 0,
exp: 'An IPO transitions a privately held venture into a publicly traded company.'
}
]
},
{
id: 'fin',
icon: '💰',
name: 'Money Dive',
cluster: 'Finance',
desc: 'Financial statements, ratios, capital markets, and risk.',
questions: [
{
pi: 'Financial Analysis • Balance Sheet',
q: 'Which fundamental accounting equation must always remain in balance on a company’s Balance Sheet?',
opts: ['Assets = Liabilities + Owner’s Equity', 'Revenue - Expenses = Net Cash Flow', 'Assets + Liabilities = Gross Margin', 'Equity = Assets + Retained Earnings'],
ans: 0,
exp: 'The fundamental accounting equation states that Assets equal Liabilities plus Owner’s (Shareholders’) Equity.'
},
{
pi: 'Liquidity Ratios • Analysis',
q: 'A company has $200,000 in Current Assets and $100,000 in Current Liabilities. What is its Current Ratio?',
opts: ['2.0', '0.5', '1.5', '100,000'],
ans: 0,
exp: 'Current Ratio = Current Assets ($200k) ÷ Current Liabilities ($100k) = 2.0, showing strong short-term liquidity.'
},
{
pi: 'Corporate Finance • Time Value of Money',
q: 'Why is $1,000 received today worth more than $1,000 received three years from now?',
opts: ['Potential earning capacity & inflation', 'Fixed tax brackets', 'Sunk cost fallacy', 'GAAP depreciation rules'],
ans: 0,
exp: 'The Time Value of Money holds that money today can be invested to earn interest and avoids purchasing-power erosion.'
},
{
pi: 'Income Statement • Profitability',
q: 'Gross Profit minus Operating Expenses (such as rent, salaries, and marketing) equals:',
opts: ['Operating Income (EBIT)', 'Cost of Goods Sold (COGS)', 'Accounts Receivable', 'Retained Earnings'],
ans: 0,
exp: 'Subtracting operating expenses from gross profit yields Operating Income (Earnings Before Interest and Taxes).'
},
{
pi: 'Risk Management • Hedging',
q: 'An airline locks in jet fuel prices six months in advance using futures contracts to protect against price spikes. This practice is:',
opts: ['Hedging', 'Arbitrage', 'Defaulting', 'Insider Trading'],
ans: 0,
exp: 'Hedging offsets potential losses in commodity or currency prices by taking an opposite position in a related contract.'
}
]
},
{
id: 'ht',
icon: '🏨',
name: 'Suite Plunge',
cluster: 'Hospitality & Tourism',
desc: 'RevPAR, guest experience, yield management, and event ops.',
questions: [
{
pi: 'Hotel Operations • Key Metrics',
q: 'A 200-room hotel sells 150 rooms tonight at an Average Daily Rate (ADR) of $200. What is its RevPAR?',
opts: ['$150.00', '$200.00', '$75.00', '$30,000'],
ans: 0,
exp: 'RevPAR = Occupancy Rate (75%) × ADR ($200) = $150.00 per available room.'
},
{
pi: 'Pricing Strategy • Revenue Management',
q: 'A resort raises room rates during a major music festival weekend and lowers them on Tuesday nights in February. This is:',
opts: ['Dynamic Yield Management', 'Penetration Pricing', 'Predatory Pricing', 'Cost-Plus Bundling'],
ans: 0,
exp: 'Yield management adjusts prices in real time based on fluctuating demand and perishable room inventory.'
},
{
pi: 'Service Recovery • Guest Relations',
q: 'According to the L.A.S.T. service recovery method, what should a front-desk agent do immediately after Listening to an upset guest?',
opts: ['Apologize sincerely', 'Ask for a manager', 'Audit the reservation log', 'Issue a chargeback'],
ans: 0,
exp: 'L.A.S.T. stands for Listen, Apologize, Solve, and Thank.'
},
{
pi: 'Tourism • Economic Impact',
q: 'When tourist dollars spent at a local restaurant are used by the owner to pay local farmers, economists call this the:',
opts: ['Multiplier Effect', 'Leakage Rate', 'Seasonality Index', 'Opportunity Cost'],
ans: 0,
exp: 'The tourism multiplier effect measures how initial visitor spending circulates repeatedly through a local economy.'
},
{
pi: 'Food & Beverage • Cost Control',
q: 'A banquet chef weighs raw salmon before trimming and again after portioning fillets to calculate usable product percentage. This measures:',
opts: ['Yield Percentage', 'Table Turnover Rate', 'Prime Cost Ratio', 'FIFO Rotation'],
ans: 0,
exp: 'Yield percentage compares edible portion weight to as-purchased weight to control food waste and menu pricing.'
}
]
},
{
id: 'mkt',
icon: '📣',
name: 'Ad Splash',
cluster: 'Marketing',
desc: '4 Ps, segmentation, branding, channel management, and promotion.',
questions: [
{
pi: 'Market Segmentation • Targeting',
q: 'A fitness brand targets consumers based on their active lifestyle, outdoor values, and wellness attitudes. Which segmentation base is this?',
opts: ['Psychographic', 'Demographic', 'Geographic', 'Firmographic'],
ans: 0,
exp: 'Psychographic segmentation divides markets by lifestyle, values, personality, and interests.'
},
{
pi: 'Product Life Cycle • Strategy',
q: 'During which stage of the Product Life Cycle do sales peak, competitors flood the market, and brands rely on differentiation to defend share?',
opts: ['Maturity', 'Introduction', 'Decline', 'Ideation'],
ans: 0,
exp: 'In the Maturity stage, market saturation slows growth and forces brands to compete via branding and promotions.'
},
{
pi: 'Pricing • Psychological Tactics',
q: 'A retailer prices a jacket at $99.99 instead of $100.00 so shoppers perceive it in the ninety-dollar range. This is called:',
opts: ['Odd-Even (Charm) Pricing', 'Prestige Pricing', 'Price Skimming', 'Captive Product Pricing'],
ans: 0,
exp: 'Odd-even pricing uses prices ending in .99 or .95 to create a psychological impression of a bargain.'
},
{
pi: 'Channel Management • Distribution',
q: 'A luxury watchmaker authorizes only one flagship boutique per major city to sell its timepieces. Which distribution intensity is this?',
opts: ['Exclusive Distribution', 'Intensive Distribution', 'Selective Distribution', 'Direct Drop-Shipping'],
ans: 0,
exp: 'Exclusive distribution limits outlets to a single dealer per territory to preserve brand prestige and price control.'
},
{
pi: 'Promotion • Digital Analytics',
q: 'An email campaign is sent to 10,000 subscribers, and 500 click the promo link. What is the Click-Through Rate (CTR)?',
opts: ['5.0%', '0.5%', '20.0%', '50.0%'],
ans: 0,
exp: 'CTR = (500 clicks ÷ 10,000 impressions/deliveries) × 100 = 5.0%.'
}
]
},
{
id: 'pfl',
icon: '💳',
name: 'Wallet Drop',
cluster: 'Personal Financial Literacy',
desc: 'Credit scores, compound interest, taxes, budgeting, and insurance.',
questions: [
{
pi: 'Credit & Debt • FICO Score',
q: 'Which factor carries the single largest weight (35%) when calculating a standard FICO credit score?',
opts: ['Payment History', 'Credit Utilization Ratio', 'Length of Credit History', 'New Credit Inquiries'],
ans: 0,
exp: 'Payment history accounts for 35% of a FICO score—making on-time payments the #1 credit habit.'
},
{
pi: 'Saving & Investing • Compounding',
q: 'Using the Rule of 72, approximately how many years will it take an investment earning 8% annual interest to double?',
opts: ['9 years', '6 years', '12 years', '7.2 years'],
ans: 0,
exp: 'Rule of 72: 72 ÷ 8% interest rate = 9 years to double your money.'
},
{
pi: 'Taxes • Paycheck Deductions',
q: 'Which federal payroll tax funds Social Security and Medicare programs?',
opts: ['FICA Tax', 'Capital Gains Tax', 'Excise Tax', 'Estate Tax'],
ans: 0,
exp: 'FICA (Federal Insurance Contributions Act) taxes are split between employees and employers to fund Social Security and Medicare.'
},
{
pi: 'Risk & Insurance • Policies',
q: 'You have an auto policy with a $500 deductible and suffer $3,200 in covered collision damage. How much does the insurer pay?',
opts: ['$2,700', '$3,200', '$500', '$3,700'],
ans: 0,
exp: 'You pay the $500 deductible first, and the insurance company covers the remaining $2,700.'
},
{
pi: 'Retirement • Tax-Advantaged Accounts',
q: 'With which retirement account do you contribute after-tax dollars today so that qualified withdrawals in retirement are 100% tax-free?',
opts: ['Roth IRA', 'Traditional 401(k)', 'Health Savings Account (HSA)', 'Certificate of Deposit'],
ans: 0,
exp: 'Roth IRA contributions are taxed upfront, allowing all investment growth and qualified retirement withdrawals to be tax-free.'
}
]
}
];
let activeQuestions = [];
let currentIdx = 0;
let score = 0;
let streak = 0;
let bestStreak = 0;
let correctCount = 0;
let timerInterval = null;
let timeLeft = 15.0;
const MAX_TIME = 15.0;
let answered = false;
const grid = document.getElementById('cluster-grid');
CLUSTERS.forEach(c => {
const btn = document.createElement('button');
btn.className = 'cluster-btn';
btn.innerHTML = <span class="cluster-icon">${c.icon}</span> <div class="cluster-name">${c.name}</div> <div style="font-weight:700; font-size:0.85rem; margin-bottom:6px; color:#fff;">${c.cluster}</div> <div class="cluster-desc">${c.desc}</div>;
btn.onclick = () => startCluster(c);
grid.appendChild(btn);
});
function showScreen(id) {
document.querySelectorAll('.screen').forEach(s => s.classList.remove('active'));
document.getElementById(id).classList.add('active');
}
function goHome() {
clearInterval(timerInterval);
showScreen('home-screen');
}
function startCluster(clusterObj) {
activeQuestions = [...clusterObj.questions].sort(() => Math.random() - 0.5);
currentIdx = 0;
score = 0;
streak = 0;
bestStreak = 0;
correctCount = 0;
updateHUD();
showScreen('game-screen');
loadQuestion();
}
function updateHUD() {
document.getElementById('hud-score').textContent = score.toLocaleString();
document.getElementById('hud-streak').textContent = streak;
}
function resetDiver() {
const diver = document.getElementById('diver');
const splash = document.getElementById('splash');
const banner = document.getElementById('tier-banner');
const board = document.getElementById('diving-board');
diver.className = 'diver';
diver.textContent = '🕴️';
splash.className = 'splash';
banner.classList.remove('show');
board.classList.remove('board-bounce');
}
function loadQuestion() {
answered = false;
resetDiver();
const qObj = activeQuestions[currentIdx];
document.getElementById('q-counter').textContent = Question ${currentIdx + 1} / ${activeQuestions.length};
document.getElementById('pi-tag').textContent = qObj.pi;
document.getElementById('q-text').textContent = qObj.q;
document.getElementById('explanation').textContent = '';
document.getElementById('next-btn').style.display = 'none';
const optGrid = document.getElementById('options-grid');
optGrid.innerHTML = '';
const mappedOpts = qObj.opts.map((text, idx) => ({ text, isCorrect: idx === qObj.ans }))
.sort(() => Math.random() - 0.5);
mappedOpts.forEach((opt) => {
const btn = document.createElement('button');
btn.className = 'opt-btn';
btn.textContent = opt.text;
btn.onclick = () => handleAnswer(btn, opt.isCorrect, mappedOpts);
optGrid.appendChild(btn);
});
startTimer();
}
function startTimer() {
clearInterval(timerInterval);
timeLeft = MAX_TIME;
const bar = document.getElementById('timer-bar');
bar.style.width = '100%';
timerInterval = setInterval(() => {
timeLeft -= 0.1;
const pct = Math.max(0, (timeLeft / MAX_TIME) * 100);
bar.style.width = pct + '%';
if (timeLeft <= 0) {
clearInterval(timerInterval);
if (!answered) handleTimeout();
}
}, 100);
}
function handleTimeout() {
answered = true;
streak = 0;
updateHUD();
const buttons = document.querySelectorAll('.opt-btn');
buttons.forEach(b => b.disabled = true);
triggerDive('timeout', 0);
document.getElementById('explanation').textContent = '⏰ Time ran out! ' + activeQuestions[currentIdx].exp;
document.getElementById('next-btn').style.display = 'inline-block';
}
function handleAnswer(clickedBtn, isCorrect, mappedOpts) {
if (answered) return;
answered = true;
clearInterval(timerInterval);
const allBtns = document.querySelectorAll('.opt-btn');
allBtns.forEach((btn, idx) => {
btn.disabled = true;
if (mappedOpts[idx].isCorrect) btn.classList.add('correct');
});
if (isCorrect) {
correctCount++;
streak++;
if (streak > bestStreak) bestStreak = streak;
const speedRatio = timeLeft / MAX_TIME;
let tier = 'district';
let pts = 600 + (streak * 100);
if (speedRatio >= 0.65) {
tier = 'icdc';
pts = 1200 + Math.round(timeLeft * 30) + (streak * 150);
} else if (speedRatio >= 0.35) {
tier = 'state';
pts = 900 + Math.round(timeLeft * 20) + (streak * 100);
}
score += pts;
updateHUD();
triggerDive(tier, pts);
} else {
clickedBtn.classList.add('wrong');
streak = 0;
updateHUD();
triggerDive('flop', 0);
}
document.getElementById('explanation').textContent = activeQuestions[currentIdx].exp;
document.getElementById('next-btn').style.display = 'inline-block';
}
function triggerDive(tier, pts) {
const diver = document.getElementById('diver');
const splash = document.getElementById('splash');
const banner = document.getElementById('tier-banner');
const titleEl = document.getElementById('tier-title');
const ptsEl = document.getElementById('tier-pts');
const board = document.getElementById('diving-board');
board.classList.add('board-bounce');
const TIER_CONFIG = {
icdc: {
anim: 'anim-icdc',
emoji: '🤸♂️',
splashLeft: '325px',
splashIcon: '✨💎✨',
label: '💎 ICDC GLASS!',
color: '#06d6a0',
ptsText: +${pts.toLocaleString()} KRILLIONS
},
state: {
anim: 'anim-state',
emoji: '🏊♂️',
splashLeft: '275px',
splashIcon: '💦',
label: '🏅 STATE FINALIST!',
color: '#fdb913',
ptsText: +${pts.toLocaleString()} KRILLIONS
},
district: {
anim: 'anim-district',
emoji: '🕴️',
splashLeft: '220px',
splashIcon: '💧',
label: '📋 DISTRICT QUALIFIER',
color: '#90e0ef',
ptsText: +${pts.toLocaleString()} KRILLIONS
},
flop: {
anim: 'anim-flop',
emoji: '🤦♂️',
splashLeft: '205px',
splashIcon: '💥🌊💥',
label: '🚨 DRESS CODE VIOLATION BELLY FLOP!',
color: '#ef233c',
ptsText: '0 PTS • STREAK LOST'
},
timeout: {
anim: 'anim-flop',
emoji: '🥶',
splashLeft: '205px',
splashIcon: '🌊',
label: '⏳ ROLE-PLAY TIME EXPIRED!',
color: '#ef233c',
ptsText: '0 PTS • TOO SLOW'
}
};
const cfg = TIER_CONFIG[tier];
diver.textContent = cfg.emoji;
diver.classList.add(cfg.anim);
splash.style.left = cfg.splashLeft;
splash.textContent = cfg.splashIcon;
setTimeout(() => {
splash.classList.add('splash-show');
}, 650);
titleEl.textContent = cfg.label;
titleEl.style.color = cfg.color;
ptsEl.textContent = cfg.ptsText;
banner.style.borderColor = cfg.color;
banner.classList.add('show');
}
function nextQuestion() {
currentIdx++;
if (currentIdx < activeQuestions.length) {
loadQuestion();
} else {
showResults();
}
}
function showResults() {
showScreen('results-screen');
const acc = Math.round((correctCount / activeQuestions.length) * 100);
document.getElementById('res-score').textContent = score.toLocaleString();
document.getElementById('res-acc').textContent = acc + '%';
document.getElementById('res-streak').textContent = bestStreak;
const rankEl = document.getElementById('final-rank');
const msgEl = document.getElementById('final-msg');
const emojiEl = document.getElementById('final-emoji');
if (acc === 100 && score >= 5500) {
emojiEl.textContent = '💎';
rankEl.textContent = 'ICDC GLASS CHAMPION';
msgEl.textContent = 'Executive-level speed and precision. Get ready to walk the stage in the blue blazer!';
} else if (acc >= 80) {
emojiEl.textContent = '🏆';
rankEl.textContent = 'STATE CDC TOP 10 FINALIST';
msgEl.textContent = 'Strong performance indicators! Shave a second off your dive speed to lock in ICDC Glass.';
} else if (acc >= 60) {
emojiEl.textContent = '🥉';
rankEl.textContent = 'DISTRICT MEDALIST';
msgEl.textContent = 'Solid foundation, though a few shaky landings cost bonus Krillions.';
} else {
emojiEl.textContent = '🩹';
rankEl.textContent = 'DISQUALIFIED BELLY FLOPPER';
msgEl.textContent = 'Oof—forgot your blazer and slipped off the board! Review the Performance Indicators and dive back in.';
}
}30,668 chars · codepastes.com