Round length is now bounded: the multiplier follows a hyperbolic curve diverging at 60s, replacing an exponential one where a 275x crash point produced a two-and-a-half minute round. Fixes seed reveal, which silently failed every round because pgx cannot encode a fixed-size byte array as bytea. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
256 lines
8.7 KiB
CSS
256 lines
8.7 KiB
CSS
/* Quantum Arcade — obsidian and indigo, dense ornament, and vivid colour
|
|
reserved strictly for the things that matter: the multiplier, the balance,
|
|
and the button that takes your money out of danger. */
|
|
|
|
:root {
|
|
--void: #05060d;
|
|
--obsidian: #0a0c18;
|
|
--indigo: #131a3a;
|
|
--indigo-hi: #1d2757;
|
|
--ink: #c8cbe6;
|
|
--muted: #6a719c;
|
|
--cyan: #38f2e4;
|
|
--magenta: #ff3ec8;
|
|
--gold: #ffc857;
|
|
--danger: #ff4d6d;
|
|
--ornament: #1a2350;
|
|
}
|
|
|
|
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
|
|
|
|
html, body {
|
|
margin: 0;
|
|
min-height: 100%;
|
|
background: radial-gradient(ellipse at 50% -10%, var(--indigo) 0%, var(--obsidian) 45%, var(--void) 100%);
|
|
color: var(--ink);
|
|
font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
overscroll-behavior: none;
|
|
}
|
|
|
|
/* The ornament sits behind everything, busy but very low contrast. */
|
|
.filigree {
|
|
position: fixed; inset: 0;
|
|
width: 100%; height: 100%;
|
|
color: var(--ornament);
|
|
opacity: 0.55;
|
|
pointer-events: none;
|
|
z-index: 0;
|
|
}
|
|
|
|
body > * { position: relative; z-index: 1; }
|
|
|
|
/* ---------- chrome ---------- */
|
|
|
|
.topbar {
|
|
display: flex; align-items: center; gap: 12px;
|
|
padding: 14px 16px calc(14px);
|
|
border-bottom: 1px solid #ffffff10;
|
|
backdrop-filter: blur(6px);
|
|
}
|
|
|
|
.brand {
|
|
font-weight: 700; letter-spacing: 0.22em; font-size: 13px;
|
|
color: var(--ink);
|
|
}
|
|
.brand span { color: var(--cyan); margin-left: 6px; }
|
|
|
|
.balance { margin-left: auto; text-align: right; line-height: 1.1; }
|
|
.balance .label {
|
|
display: block; font-size: 9px; letter-spacing: 0.2em;
|
|
text-transform: uppercase; color: var(--muted);
|
|
}
|
|
.balance .value {
|
|
font-variant-numeric: tabular-nums;
|
|
font-size: 18px; font-weight: 700; color: var(--cyan);
|
|
text-shadow: 0 0 18px #38f2e455;
|
|
}
|
|
|
|
.sound {
|
|
background: none; border: 1px solid #ffffff20; color: var(--muted);
|
|
width: 34px; height: 34px; border-radius: 50%; font-size: 15px;
|
|
}
|
|
.sound.on { color: var(--cyan); border-color: var(--cyan); }
|
|
|
|
/* ---------- panels ---------- */
|
|
|
|
.panel {
|
|
max-width: 460px; margin: 0 auto; padding: 40px 22px;
|
|
}
|
|
.center { text-align: center; }
|
|
|
|
h1 { font-size: 26px; margin: 0 0 10px; letter-spacing: 0.02em; }
|
|
h2 { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
|
|
color: var(--muted); margin: 0 0 10px; }
|
|
|
|
.muted { color: var(--muted); }
|
|
.small { font-size: 12.5px; }
|
|
.fineprint { font-size: 11px; color: var(--muted); margin-top: 18px; word-break: break-all; }
|
|
|
|
input {
|
|
width: 100%; padding: 13px 14px; margin: 8px 0;
|
|
background: #ffffff08; border: 1px solid #ffffff18; border-radius: 10px;
|
|
color: var(--ink); font-size: 16px; /* 16px stops iOS zooming on focus */
|
|
}
|
|
input:focus { outline: none; border-color: var(--cyan); }
|
|
|
|
button {
|
|
font: inherit; cursor: pointer; border-radius: 10px;
|
|
border: 1px solid #ffffff20; background: #ffffff0c; color: var(--ink);
|
|
padding: 11px 16px;
|
|
}
|
|
button:active { transform: translateY(1px); }
|
|
|
|
.primary {
|
|
background: linear-gradient(135deg, var(--cyan), #21b6ff);
|
|
color: #04121a; border: none; font-weight: 700; letter-spacing: 0.04em;
|
|
box-shadow: 0 0 26px #38f2e444;
|
|
width: 100%; padding: 15px;
|
|
}
|
|
.primary.big { font-size: 17px; padding: 18px; }
|
|
.primary.cashout {
|
|
background: linear-gradient(135deg, var(--magenta), var(--gold));
|
|
color: #1a0512; box-shadow: 0 0 34px #ff3ec866;
|
|
animation: urge 900ms ease-in-out infinite;
|
|
}
|
|
.primary:disabled { opacity: 0.4; box-shadow: none; animation: none; }
|
|
|
|
@keyframes urge {
|
|
0%, 100% { box-shadow: 0 0 26px #ff3ec855; }
|
|
50% { box-shadow: 0 0 40px #ff3ec8aa; }
|
|
}
|
|
|
|
/* ---------- tabs ---------- */
|
|
|
|
.tabs {
|
|
display: flex; gap: 6px; padding: 12px 12px 0;
|
|
max-width: 620px; margin: 0 auto;
|
|
}
|
|
.tab {
|
|
flex: 1; padding: 10px 4px; font-size: 12px; letter-spacing: 0.08em;
|
|
text-transform: uppercase; background: none; border: none; color: var(--muted);
|
|
border-bottom: 2px solid transparent; border-radius: 0;
|
|
}
|
|
.tab.active { color: var(--cyan); border-bottom-color: var(--cyan); }
|
|
|
|
.view { max-width: 620px; margin: 0 auto; padding: 14px 14px 60px; }
|
|
|
|
/* ---------- crash stage ---------- */
|
|
|
|
.gamepick { display: flex; gap: 6px; margin-bottom: 12px; }
|
|
.gamepick button {
|
|
flex: 1; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
|
|
padding: 9px 4px; color: var(--muted);
|
|
}
|
|
.gamepick button.on { color: var(--cyan); border-color: var(--cyan); background: #38f2e412; }
|
|
|
|
.stage {
|
|
position: relative; border-radius: 16px; overflow: hidden;
|
|
border: 1px solid #ffffff14;
|
|
background: linear-gradient(180deg, #070a16 0%, #05060d 100%);
|
|
aspect-ratio: 4 / 3;
|
|
}
|
|
#canvas { width: 100%; height: 100%; display: block; }
|
|
|
|
.readout {
|
|
position: absolute; inset: 0; display: flex; flex-direction: column;
|
|
align-items: center; justify-content: center; pointer-events: none;
|
|
}
|
|
.multiplier {
|
|
font-size: clamp(46px, 17vw, 88px); font-weight: 800;
|
|
font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
|
|
color: var(--cyan); text-shadow: 0 0 40px #38f2e466;
|
|
}
|
|
.multiplier.crashed { color: var(--danger); text-shadow: 0 0 40px #ff4d6d66; }
|
|
.multiplier.won { color: var(--gold); text-shadow: 0 0 46px #ffc85777; }
|
|
.state {
|
|
font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
|
|
color: var(--muted); margin-top: 6px;
|
|
}
|
|
|
|
.controls { margin-top: 14px; }
|
|
.stakerow { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
|
|
.chip { flex: 1; font-variant-numeric: tabular-nums; padding: 12px 4px; }
|
|
.chip.on { border-color: var(--cyan); color: var(--cyan); background: #38f2e414; }
|
|
.unit { font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
|
|
|
|
.hint { min-height: 18px; margin-top: 8px; font-size: 12px; color: var(--muted); text-align: center; }
|
|
.hint.bad { color: var(--danger); }
|
|
.hint.good { color: var(--gold); }
|
|
|
|
.players { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; }
|
|
.player {
|
|
display: flex; align-items: center; gap: 8px; padding: 8px 12px;
|
|
background: #ffffff06; border: 1px solid #ffffff10; border-radius: 9px;
|
|
font-size: 13px;
|
|
}
|
|
.player .who { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.player .amt { font-variant-numeric: tabular-nums; color: var(--muted); }
|
|
.player.out .amt { color: var(--gold); }
|
|
|
|
.proof { margin-top: 18px; }
|
|
.proof summary {
|
|
cursor: pointer; font-size: 11px; letter-spacing: 0.16em;
|
|
text-transform: uppercase; color: var(--muted); padding: 8px 0;
|
|
}
|
|
.kv { display: flex; gap: 10px; font-size: 11px; padding: 4px 0; }
|
|
.kv span { color: var(--muted); min-width: 96px; }
|
|
.kv code { word-break: break-all; color: var(--ink); opacity: 0.8; }
|
|
|
|
/* ---------- scratch ---------- */
|
|
|
|
.card {
|
|
background: #ffffff07; border: 1px solid #ffffff14;
|
|
border-radius: 14px; padding: 16px; margin-bottom: 14px;
|
|
}
|
|
.card h3 { margin: 0 0 4px; font-size: 18px; }
|
|
|
|
.grid {
|
|
display: grid; gap: 8px; margin: 14px 0;
|
|
}
|
|
.grid.c9 { grid-template-columns: repeat(3, 1fr); }
|
|
.grid.c6 { grid-template-columns: repeat(3, 1fr); }
|
|
|
|
.cell {
|
|
aspect-ratio: 1; display: grid; place-items: center;
|
|
font-size: 26px; border-radius: 10px;
|
|
background: linear-gradient(140deg, var(--indigo-hi), var(--indigo));
|
|
border: 1px solid #ffffff14;
|
|
transition: transform 160ms ease, background 260ms ease;
|
|
}
|
|
.cell.revealed { background: #05060d; border-color: #ffffff22; }
|
|
.cell.hit { border-color: var(--gold); box-shadow: 0 0 18px #ffc85755; }
|
|
|
|
.odds { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 8px; }
|
|
.odds th, .odds td { text-align: left; padding: 6px 4px; border-bottom: 1px solid #ffffff10; }
|
|
.odds th { color: var(--muted); font-weight: 500; font-size: 10px;
|
|
letter-spacing: 0.12em; text-transform: uppercase; }
|
|
.odds td:last-child, .odds th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
|
|
.rtp { color: var(--gold); font-weight: 700; }
|
|
|
|
.result { text-align: center; padding: 10px 0; font-size: 16px; }
|
|
.result.win { color: var(--gold); font-weight: 700; }
|
|
|
|
/* ---------- wallet ---------- */
|
|
|
|
.pubkey {
|
|
display: block; word-break: break-all; font-size: 11px;
|
|
background: #00000055; padding: 10px; border-radius: 8px; margin: 8px 0;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.history { display: flex; flex-direction: column; gap: 3px; }
|
|
.entry {
|
|
display: flex; gap: 10px; font-size: 12px; padding: 8px 10px;
|
|
background: #ffffff05; border-radius: 8px;
|
|
}
|
|
.entry .kind { flex: 1; color: var(--muted); }
|
|
.entry .delta { font-variant-numeric: tabular-nums; }
|
|
.entry .delta.pos { color: var(--cyan); }
|
|
.entry .delta.neg { color: var(--muted); }
|
|
.entry .after { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 74px; text-align: right; }
|
|
|
|
.verify-out { margin-top: 12px; font-size: 12px; }
|
|
.verify-out .ok { color: var(--cyan); font-weight: 700; }
|
|
.verify-out .bad { color: var(--danger); font-weight: 700; }
|
|
.verify-out .kv code { font-size: 10px; }
|