Initial PlayBull release with Trilogy Hub integration.
Includes homelab deploy tooling, image position/zoom manifest persistence, and full trading/casino stack. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
496
public/css/styles.css
Normal file
496
public/css/styles.css
Normal file
@@ -0,0 +1,496 @@
|
||||
/* ============================================================
|
||||
PlayBull — Trilogy Hub Edition
|
||||
Luxury gold-on-ink theme · mobile-first · animated arcade
|
||||
============================================================ */
|
||||
:root {
|
||||
/* TrilogyHub palette */
|
||||
--bg: #0a0a0a;
|
||||
--bg-2: #111111;
|
||||
--bg-3: #161616;
|
||||
--surface: #161616;
|
||||
--surface-2: #1e1e1e;
|
||||
--surface-3: #242424;
|
||||
--line: rgba(201, 168, 76, 0.18);
|
||||
--line-soft: rgba(255, 255, 255, 0.07);
|
||||
--text: #f4f1e9;
|
||||
--muted: #a8a39a;
|
||||
--faint: #6e6a62;
|
||||
|
||||
--gold: #c9a84c;
|
||||
--gold-soft: #d8bd6e;
|
||||
--gold-deep: #9a7c26;
|
||||
--green: #46c98b;
|
||||
--green-soft: rgba(70, 201, 139, 0.14);
|
||||
--red: #e0625e;
|
||||
--red-soft: rgba(224, 98, 94, 0.14);
|
||||
|
||||
/* legacy aliases kept so existing inline styles stay on-brand */
|
||||
--accent: #c9a84c;
|
||||
--accent-2: #d8bd6e;
|
||||
--purple: #c9a84c;
|
||||
|
||||
--radius: 16px;
|
||||
--ease: cubic-bezier(0.16, 1, 0.3, 1);
|
||||
--safe-b: env(safe-area-inset-bottom, 0px);
|
||||
--font-display: 'Cabinet Grotesk', ui-sans-serif, system-ui, sans-serif;
|
||||
--font-body: 'Satoshi', ui-sans-serif, system-ui, sans-serif;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
|
||||
html, body { margin: 0; padding: 0; }
|
||||
html { -webkit-text-size-adjust: 100%; }
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
background:
|
||||
radial-gradient(1100px 560px at 50% -260px, rgba(201, 168, 76, 0.10), transparent 60%),
|
||||
radial-gradient(800px 500px at 100% 110%, rgba(201, 168, 76, 0.05), transparent 60%),
|
||||
var(--bg);
|
||||
color: var(--text);
|
||||
min-height: 100dvh;
|
||||
padding-bottom: calc(76px + var(--safe-b));
|
||||
overscroll-behavior-y: none;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
line-height: 1.5;
|
||||
}
|
||||
/* fine grain texture overlay for depth */
|
||||
body::before {
|
||||
content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
|
||||
opacity: 0.025; mix-blend-mode: overlay;
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
|
||||
}
|
||||
#app, .topbar, .ticker, .bottom-nav, .modal-backdrop, .toast-wrap { position: relative; z-index: 1; }
|
||||
|
||||
h1 { font-size: clamp(1.45rem, 5vw, 1.75rem); margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; }
|
||||
h2 { font-size: 1rem; margin: 18px 0 8px; color: var(--muted); font-weight: 700; letter-spacing: 0.01em; }
|
||||
h2 small { color: var(--faint); font-weight: 500; }
|
||||
small { font-weight: 400; }
|
||||
button { font-family: inherit; cursor: pointer; border: none; }
|
||||
.accent { color: var(--gold); }
|
||||
|
||||
body.pb-embed { padding-bottom: calc(76px + var(--safe-b)); }
|
||||
body.pb-embed main { padding-top: 10px; }
|
||||
|
||||
/* ---------- Topbar ---------- */
|
||||
.topbar {
|
||||
position: sticky; top: 0; z-index: 40;
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 12px clamp(14px, 4vw, 22px);
|
||||
padding-top: max(12px, env(safe-area-inset-top));
|
||||
background: linear-gradient(180deg, rgba(10, 10, 10, 0.92), rgba(10, 10, 10, 0.7));
|
||||
backdrop-filter: blur(16px) saturate(1.2);
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; }
|
||||
.brand-logo {
|
||||
font-size: 1.4rem; display: grid; place-items: center; width: 36px; height: 36px;
|
||||
border-radius: 10px; background: radial-gradient(circle at 30% 25%, rgba(201,168,76,.3), rgba(201,168,76,.06));
|
||||
border: 1px solid var(--line);
|
||||
filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.4));
|
||||
}
|
||||
.brand .accent, .brand-name .accent { color: var(--gold); }
|
||||
.topbar-right { display: flex; align-items: center; gap: 10px; }
|
||||
.balance-chip {
|
||||
display: flex; align-items: center; gap: 6px;
|
||||
background: linear-gradient(135deg, rgba(201,168,76,.16), rgba(201,168,76,.04));
|
||||
border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px;
|
||||
font-weight: 800; font-variant-numeric: tabular-nums; color: var(--gold-soft);
|
||||
}
|
||||
.balance-chip .coin { filter: drop-shadow(0 0 6px var(--gold)); }
|
||||
.btn-auth {
|
||||
background: var(--gold); color: #0a0a0a;
|
||||
padding: 9px 18px; border-radius: 999px; font-weight: 800; font-size: .9rem;
|
||||
box-shadow: 0 8px 24px -8px rgba(201, 168, 76, 0.6);
|
||||
transition: transform .3s var(--ease), box-shadow .3s var(--ease);
|
||||
}
|
||||
.btn-auth:active { transform: scale(.96); }
|
||||
|
||||
/* ---------- Ticker ---------- */
|
||||
.ticker { overflow: hidden; border-bottom: 1px solid var(--line-soft); background: rgba(17,17,17,.6); height: 32px; }
|
||||
.ticker-track { display: flex; gap: 30px; white-space: nowrap; align-items: center; height: 32px; padding-left: 100%; animation: scroll 40s linear infinite; }
|
||||
.ticker-track:hover { animation-play-state: paused; }
|
||||
.ticker-item { font-size: .76rem; color: var(--muted); letter-spacing: .01em; }
|
||||
.ticker-item b { color: var(--gold-soft); }
|
||||
@keyframes scroll { to { transform: translateX(-100%); } }
|
||||
|
||||
/* ---------- Views ---------- */
|
||||
main { padding: clamp(14px, 4vw, 22px); max-width: 760px; margin: 0 auto; }
|
||||
.view { display: none; }
|
||||
.view.active { display: block; animation: viewIn .4s var(--ease); }
|
||||
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
|
||||
.view-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
|
||||
.view-head h1 { display: flex; align-items: center; gap: 4px; }
|
||||
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin: 0 4px 0 8px; box-shadow: 0 0 0 0 var(--green); animation: pulse 1.6s infinite; }
|
||||
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(70,201,139,.6);} 70%{ box-shadow: 0 0 0 9px rgba(70,201,139,0);} 100%{ box-shadow:0 0 0 0 rgba(70,201,139,0);} }
|
||||
|
||||
/* ---------- Segmented control ---------- */
|
||||
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 999px; padding: 3px; }
|
||||
.seg-btn { background: transparent; color: var(--muted); padding: 7px 15px; border-radius: 999px; font-weight: 700; font-size: .82rem; transition: color .25s, background .25s; }
|
||||
.seg-btn.active { background: var(--gold); color: #0a0a0a; box-shadow: 0 4px 12px -4px rgba(201,168,76,.6); }
|
||||
|
||||
/* ---------- Asset list ---------- */
|
||||
.asset-list { display: flex; flex-direction: column; gap: 9px; }
|
||||
.asset-row {
|
||||
display: grid; grid-template-columns: 44px 1fr auto; gap: 13px; align-items: center;
|
||||
background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; padding: 13px 15px;
|
||||
transition: transform .12s var(--ease), border-color .25s, box-shadow .25s; cursor: pointer;
|
||||
}
|
||||
.asset-row:hover { border-color: var(--line); box-shadow: 0 10px 30px -18px rgba(0,0,0,.8); }
|
||||
.asset-row:active { transform: scale(.985); }
|
||||
.asset-emoji { font-size: 1.45rem; width: 44px; height: 44px; display: grid; place-items: center; background: var(--surface-2); border-radius: 12px; border: 1px solid var(--line-soft); }
|
||||
.asset-info { min-width: 0; }
|
||||
.asset-info .sym { font-weight: 800; font-family: var(--font-display); letter-spacing: .01em; }
|
||||
.asset-info .name { color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.asset-price { text-align: right; }
|
||||
.asset-price .px { font-weight: 800; font-variant-numeric: tabular-nums; }
|
||||
.asset-price .chg { font-size: .76rem; font-weight: 700; font-variant-numeric: tabular-nums; }
|
||||
.up { color: var(--green); } .down { color: var(--red); }
|
||||
.flash-up { animation: fu .7s var(--ease); } .flash-down { animation: fd .7s var(--ease); }
|
||||
@keyframes fu { 0% { background: var(--green-soft); border-color: var(--green);} 100%{ background: var(--surface); border-color: var(--line-soft);} }
|
||||
@keyframes fd { 0% { background: var(--red-soft); border-color: var(--red);} 100%{ background: var(--surface); border-color: var(--line-soft);} }
|
||||
.badge-halt { font-size: .6rem; background: var(--red-soft); color: var(--red); padding: 2px 6px; border-radius: 6px; margin-left: 6px; vertical-align: middle; font-weight: 700; }
|
||||
|
||||
/* ---------- Games grid ---------- */
|
||||
.games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
|
||||
.game-card {
|
||||
position: relative; border-radius: 18px; padding: 16px; min-height: 150px;
|
||||
display: flex; flex-direction: column; justify-content: space-between;
|
||||
background: linear-gradient(165deg, var(--surface-2), var(--surface));
|
||||
border: 1px solid var(--line-soft); overflow: hidden; cursor: pointer;
|
||||
transition: transform .25s var(--ease), border-color .3s, box-shadow .3s;
|
||||
}
|
||||
.game-card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: 0 22px 50px -26px rgba(0,0,0,.9); }
|
||||
.game-card:active { transform: scale(.97); }
|
||||
.game-card .g-emoji { font-size: 2.5rem; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); transition: transform .4s var(--ease); }
|
||||
.game-card:hover .g-emoji { transform: translateY(-3px) rotate(-6deg) scale(1.08); }
|
||||
.game-card .g-name { font-weight: 800; font-size: 1.06rem; margin-top: 10px; font-family: var(--font-display); }
|
||||
.game-card .g-desc { color: var(--muted); font-size: .73rem; margin-top: 2px; line-height: 1.35; }
|
||||
.game-card .g-tag { position: absolute; top: 12px; right: 12px; font-size: .58rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; background: rgba(201,168,76,.08); }
|
||||
.game-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(150px 100px at 100% 0%, var(--glow, rgba(201,168,76,.22)), transparent 70%); pointer-events: none; }
|
||||
.game-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.05) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
|
||||
.game-card:hover::before { transform: translateX(120%); }
|
||||
|
||||
/* ---------- Buttons ---------- */
|
||||
.btn { padding: 14px 16px; border-radius: 13px; font-weight: 800; font-size: .95rem; width: 100%; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-soft); transition: transform .12s var(--ease), box-shadow .3s, filter .2s; }
|
||||
.btn:active { transform: scale(.97); }
|
||||
.btn-green { background: linear-gradient(135deg, #4fd99a, #2fa873); color: #052012; box-shadow: 0 8px 22px -8px rgba(70,201,139,.5); }
|
||||
.btn-red { background: linear-gradient(135deg, #ec716d, #c44743); color: #fff; box-shadow: 0 8px 22px -8px rgba(224,98,94,.5); }
|
||||
.btn-accent { background: var(--gold); color: #0a0a0a; box-shadow: 0 8px 22px -8px rgba(201,168,76,.6); }
|
||||
.btn-gold { background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep)); color: #1a1305; box-shadow: 0 8px 22px -8px rgba(201,168,76,.6); }
|
||||
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
|
||||
.btn-ghost:active { filter: brightness(1.15); }
|
||||
.btn:disabled { opacity: .4; pointer-events: none; }
|
||||
.btn-row { display: flex; gap: 10px; }
|
||||
.link { background: none; color: var(--gold); text-decoration: underline; text-underline-offset: 2px; padding: 0; font-weight: 700; }
|
||||
|
||||
/* ---------- Inputs ---------- */
|
||||
.field { margin-bottom: 13px; }
|
||||
.field label { display: block; font-size: .76rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; letter-spacing: .01em; }
|
||||
input, select {
|
||||
width: 100%; padding: 13px 14px; border-radius: 12px; background: var(--bg-2);
|
||||
border: 1px solid var(--line-soft); color: var(--text); font-size: 1rem; font-family: inherit;
|
||||
font-variant-numeric: tabular-nums; transition: border-color .25s, box-shadow .25s;
|
||||
}
|
||||
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.15); }
|
||||
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
|
||||
.chip { background: var(--surface-2); border: 1px solid var(--line-soft); color: var(--text); padding: 8px 13px; border-radius: 999px; font-weight: 700; font-size: .82rem; transition: all .2s var(--ease); }
|
||||
.chip:active { transform: scale(.94); }
|
||||
.chip.active { border-color: var(--gold); background: rgba(201,168,76,.18); color: var(--gold-soft); }
|
||||
|
||||
/* ---------- Cards ---------- */
|
||||
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
|
||||
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-soft); gap: 10px; }
|
||||
.stat-row:last-child { border: none; }
|
||||
.stat-row .k { color: var(--muted); }
|
||||
.stat-row .v { font-weight: 800; font-variant-numeric: tabular-nums; }
|
||||
.big-num { font-size: clamp(1.9rem, 8vw, 2.3rem); font-weight: 900; font-family: var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
|
||||
|
||||
/* ---------- Chart ---------- */
|
||||
.chart-wrap { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 14px; padding: 8px; margin-bottom: 14px; }
|
||||
canvas { display: block; width: 100%; }
|
||||
|
||||
/* ---------- Modal ---------- */
|
||||
.modal-backdrop:not([hidden]) {
|
||||
position: fixed; inset: 0; background: rgba(5,5,5,.78); backdrop-filter: blur(8px); z-index: 100;
|
||||
display: flex; align-items: flex-end; justify-content: center;
|
||||
animation: backIn .25s ease;
|
||||
}
|
||||
@keyframes backIn { from { opacity: 0; } to { opacity: 1; } }
|
||||
.modal-backdrop[hidden] { display: none !important; }
|
||||
.modal {
|
||||
background: linear-gradient(180deg, var(--surface), var(--bg-2));
|
||||
border: 1px solid var(--line); border-top-color: var(--line);
|
||||
border-radius: 24px 24px 0 0; width: 100%; max-width: 580px; max-height: 93dvh; overflow-y: auto;
|
||||
padding: 20px; padding-bottom: calc(22px + var(--safe-b));
|
||||
box-shadow: 0 -20px 60px -20px rgba(0,0,0,.8);
|
||||
animation: slideUp .34s var(--ease);
|
||||
}
|
||||
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
|
||||
@media (min-width: 600px) { .modal-backdrop { align-items: center; } .modal { border-radius: 22px; } }
|
||||
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 10px; }
|
||||
.modal-head h2 { margin: 0; color: var(--text); font-size: 1.3rem; font-family: var(--font-display); font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
||||
.modal-close { background: var(--surface-2); width: 34px; height: 34px; border-radius: 50%; color: var(--muted); font-size: 1.05rem; flex-shrink: 0; transition: background .2s, color .2s; }
|
||||
.modal-close:hover { background: var(--red-soft); color: var(--red); }
|
||||
.handle { width: 42px; height: 4px; background: var(--line); border-radius: 99px; margin: -8px auto 16px; }
|
||||
|
||||
/* ---------- Bottom nav ---------- */
|
||||
.bottom-nav {
|
||||
position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
|
||||
display: grid; grid-template-columns: repeat(5, 1fr);
|
||||
background: linear-gradient(180deg, rgba(13,13,13,.86), rgba(10,10,10,.97));
|
||||
backdrop-filter: blur(18px); border-top: 1px solid var(--line);
|
||||
padding-bottom: var(--safe-b);
|
||||
}
|
||||
.nav-btn { background: none; color: var(--faint); font-size: .64rem; font-weight: 700; padding: 10px 0 9px; display: flex; flex-direction: column; align-items: center; gap: 4px; letter-spacing: .02em; transition: color .2s; position: relative; }
|
||||
.nav-btn span { font-size: 1.3rem; filter: grayscale(.6) opacity(.7); transition: transform .25s var(--ease), filter .25s; }
|
||||
.nav-btn.active { color: var(--gold-soft); }
|
||||
.nav-btn.active span { filter: none; transform: translateY(-3px) scale(1.12); }
|
||||
.nav-btn.active::after { content: ""; position: absolute; top: 4px; width: 26px; height: 3px; border-radius: 99px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
|
||||
|
||||
/* ---------- Toast ---------- */
|
||||
.toast-wrap { position: fixed; top: 70px; left: 0; right: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
|
||||
.toast { background: var(--surface-2); border: 1px solid var(--line); padding: 12px 18px; border-radius: 13px; font-weight: 700; font-size: .9rem; box-shadow: 0 14px 40px rgba(0,0,0,.6); animation: toastIn .35s var(--ease); max-width: 92%; text-align: center; }
|
||||
.toast.win { border-color: var(--green); background: linear-gradient(135deg, #123322, var(--surface-2)); color: #d6f7e6; }
|
||||
.toast.lose { border-color: var(--red); background: linear-gradient(135deg, #331616, var(--surface-2)); color: #f7d6d6; }
|
||||
@keyframes toastIn { from { transform: translateY(-18px) scale(.95); opacity: 0; } to { transform: none; opacity: 1; } }
|
||||
|
||||
/* ---------- Feed ---------- */
|
||||
.feed-list { display: flex; flex-direction: column; gap: 6px; }
|
||||
.feed-item { display: flex; gap: 9px; align-items: center; font-size: .85rem; padding: 10px 13px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 11px; }
|
||||
.feed-item .ago { color: var(--faint); margin-left: auto; font-size: .7rem; white-space: nowrap; }
|
||||
|
||||
/* ---------- Leaderboard ---------- */
|
||||
.lb-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 11px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 13px; margin-bottom: 7px; }
|
||||
.lb-rank { font-weight: 900; color: var(--faint); font-family: var(--font-display); font-size: 1.05rem; text-align: center; }
|
||||
.lb-row.me { border-color: var(--gold); background: linear-gradient(135deg, rgba(201,168,76,.08), var(--surface)); }
|
||||
.lb-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
|
||||
.lb-user b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
|
||||
/* ============================================================
|
||||
GAME: CHICKEN ROAD — animated scene
|
||||
============================================================ */
|
||||
.chicken-stage {
|
||||
position: relative; border-radius: 18px; overflow: hidden;
|
||||
border: 1px solid var(--line); margin-bottom: 14px;
|
||||
background: linear-gradient(180deg, #0d1b12 0%, #0a0a0a 60%);
|
||||
box-shadow: inset 0 0 60px rgba(0,0,0,.6);
|
||||
}
|
||||
.chicken-track {
|
||||
display: flex; gap: 0; overflow-x: auto; padding: 0; scroll-behavior: smooth;
|
||||
scrollbar-width: none; -webkit-overflow-scrolling: touch;
|
||||
}
|
||||
.chicken-track::-webkit-scrollbar { display: none; }
|
||||
.lane {
|
||||
min-width: 78px; height: 200px; position: relative; flex: 0 0 auto;
|
||||
display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
|
||||
background:
|
||||
repeating-linear-gradient(0deg, #1c1c1c 0 22px, #181818 22px 44px);
|
||||
border-right: 2px dashed rgba(201,168,76,.22);
|
||||
}
|
||||
.lane:first-child { border-left: 2px solid rgba(201,168,76,.3); }
|
||||
.lane.curb { background: repeating-linear-gradient(0deg, #15301f 0 14px, #112818 14px 28px); min-width: 60px; }
|
||||
.lane.curb .mult-flag { color: var(--green); border-color: var(--green); background: var(--green-soft); }
|
||||
.lane .mult-flag {
|
||||
position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
|
||||
font-size: .72rem; font-weight: 800; color: var(--gold-soft); font-family: var(--font-display);
|
||||
background: rgba(10,10,10,.7); border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px;
|
||||
white-space: nowrap; transition: all .3s var(--ease); z-index: 3;
|
||||
}
|
||||
.lane.passed { background: repeating-linear-gradient(0deg, #16291d 0 22px, #122318 22px 44px); }
|
||||
.lane.passed .mult-flag { background: var(--green-soft); border-color: var(--green); color: #8df0bd; }
|
||||
.lane.current { background: repeating-linear-gradient(0deg, #2a2410 0 22px, #221d0c 22px 44px); }
|
||||
.lane.current::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px var(--gold); border-radius: 2px; animation: laneGlow 1.2s ease-in-out infinite; }
|
||||
@keyframes laneGlow { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
|
||||
.lane.dead { background: repeating-linear-gradient(0deg, #2a1212 0 22px, #221010 22px 44px); }
|
||||
.lane .car {
|
||||
position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
|
||||
font-size: 2rem; filter: drop-shadow(0 6px 8px rgba(0,0,0,.6));
|
||||
}
|
||||
.lane.dead .car { animation: carSlam .5s var(--ease) forwards; }
|
||||
@keyframes carSlam { 0% { top: -60px; } 60% { top: 78px; } 75% { top: 64px; } 100% { top: 72px; } }
|
||||
/* the chicken hero rides on top of the stage */
|
||||
.chicken-hero {
|
||||
position: absolute; bottom: 16px; left: 22px; font-size: 2.2rem; z-index: 5;
|
||||
pointer-events: none;
|
||||
filter: drop-shadow(0 8px 10px rgba(0,0,0,.6));
|
||||
will-change: transform, left;
|
||||
}
|
||||
.chicken-hero.hop { animation: hop .35s var(--ease); }
|
||||
@keyframes hop { 0% { transform: translateY(0) scaleY(1); } 30% { transform: translateY(-46px) scaleY(1.15) scaleX(.9); } 70% { transform: translateY(-46px) scaleY(1.1); } 100% { transform: translateY(0) scaleY(1); } }
|
||||
.chicken-hero.idle { animation: bob 1.4s ease-in-out infinite; }
|
||||
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
|
||||
.chicken-hud { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0; }
|
||||
.chicken-hud .mult-big { font-family: var(--font-display); font-weight: 900; color: var(--gold); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
|
||||
.stage-shake { animation: shake .5s var(--ease); }
|
||||
@keyframes shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(4px); } }
|
||||
.boom-flash { position: absolute; inset: 0; background: radial-gradient(circle, rgba(224,98,94,.5), transparent 70%); opacity: 0; pointer-events: none; z-index: 6; }
|
||||
.boom-flash.go { animation: boomFlash .5s ease; }
|
||||
@keyframes boomFlash { 0% { opacity: 1; } 100% { opacity: 0; } }
|
||||
|
||||
/* ============================================================
|
||||
GAME: MINES 10x10 — 3D card flips
|
||||
============================================================ */
|
||||
.mines-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 12px 0; perspective: 700px; }
|
||||
.tile {
|
||||
aspect-ratio: 1; border-radius: 8px; position: relative; transform-style: preserve-3d;
|
||||
transition: transform .4s var(--ease); cursor: pointer;
|
||||
}
|
||||
.tile:active { transform: scale(.9); }
|
||||
.tile .face { position: absolute; inset: 0; border-radius: 8px; display: grid; place-items: center; font-size: clamp(.7rem, 2.6vw, 1rem); backface-visibility: hidden; }
|
||||
.tile .face.back {
|
||||
background: linear-gradient(160deg, var(--surface-3), var(--surface-2));
|
||||
border: 1px solid var(--line-soft); color: var(--faint);
|
||||
}
|
||||
.tile .face.back::before { content: ""; position: absolute; inset: 4px; border-radius: 5px; border: 1px solid rgba(201,168,76,.12); }
|
||||
.tile .face.front { transform: rotateY(180deg); }
|
||||
.tile.flipped { transform: rotateY(180deg); }
|
||||
.tile.safe .face.front { background: radial-gradient(circle at 50% 35%, rgba(70,201,139,.35), var(--green-soft)); border: 1px solid var(--green); animation: gemPop .45s var(--ease); }
|
||||
@keyframes gemPop { 0% { transform: rotateY(180deg) scale(.4); } 70% { transform: rotateY(180deg) scale(1.18); } 100% { transform: rotateY(180deg) scale(1); } }
|
||||
.tile.bomb .face.front { background: radial-gradient(circle at 50% 35%, rgba(224,98,94,.45), var(--red-soft)); border: 1px solid var(--red); }
|
||||
.tile.bomb.hit { animation: bombHit .5s var(--ease); z-index: 2; }
|
||||
@keyframes bombHit { 0% { transform: rotateY(180deg) scale(1); } 40% { transform: rotateY(180deg) scale(1.4); } 100% { transform: rotateY(180deg) scale(1); } }
|
||||
.tile.dim { opacity: .3; }
|
||||
|
||||
/* ============================================================
|
||||
GAME: CRASH — canvas rocket
|
||||
============================================================ */
|
||||
.crash-stage { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 14px; background: linear-gradient(180deg, #0c1020, #0a0a0a); }
|
||||
.crash-stage canvas { width: 100%; height: 240px; display: block; }
|
||||
.crash-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
|
||||
.crash-mult { font-size: clamp(2.6rem, 14vw, 3.6rem); font-weight: 900; font-family: var(--font-display); font-variant-numeric: tabular-nums; color: var(--text); text-shadow: 0 4px 30px rgba(0,0,0,.6); transition: color .2s, transform .15s; }
|
||||
.crash-mult.boom { color: var(--red); animation: crashShake .5s var(--ease); }
|
||||
@keyframes crashShake { 0%,100% { transform: translateX(0); } 25% { transform: translate(-6px,3px) rotate(-2deg); } 50% { transform: translate(6px,-2px) rotate(2deg); } 75% { transform: translate(-4px,2px); } }
|
||||
.crash-sub { color: var(--muted); font-weight: 700; font-size: .85rem; margin-top: 6px; }
|
||||
|
||||
/* legacy crash display fallback */
|
||||
.crash-display { text-align: center; padding: 28px 0; background: var(--bg-2); border-radius: 16px; border: 1px solid var(--line-soft); margin-bottom: 14px; }
|
||||
|
||||
/* ============================================================
|
||||
GAME: DICE — animated roll bar
|
||||
============================================================ */
|
||||
.dice-bar-wrap { position: relative; margin: 18px 0 30px; padding: 0 6px; }
|
||||
.dice-bar { position: relative; height: 14px; border-radius: 99px; overflow: hidden; background: var(--red); }
|
||||
.dice-bar .win-zone { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, #4fd99a, #2fa873); transition: all .25s var(--ease); }
|
||||
.dice-marker {
|
||||
position: absolute; top: 50%; width: 34px; height: 34px; border-radius: 12px;
|
||||
background: var(--gold); color: #0a0a0a; display: grid; place-items: center;
|
||||
font-weight: 900; font-size: .72rem; font-family: var(--font-display);
|
||||
transform: translate(-50%, -50%); box-shadow: 0 6px 16px rgba(0,0,0,.5); z-index: 3;
|
||||
transition: left .08s linear;
|
||||
}
|
||||
.dice-marker.settle { transition: left .5s cubic-bezier(.34,1.56,.64,1); }
|
||||
.dice-scale { display: flex; justify-content: space-between; margin-top: 8px; color: var(--faint); font-size: .68rem; font-weight: 700; }
|
||||
.dice-result { font-family: var(--font-display); font-weight: 900; font-size: 2.4rem; text-align: center; font-variant-numeric: tabular-nums; margin: 6px 0; transition: color .3s; }
|
||||
|
||||
/* ============================================================
|
||||
GAME: COINFLIP — true 3D coin
|
||||
============================================================ */
|
||||
.coin-stage { display: grid; place-items: center; height: 200px; perspective: 900px; margin: 10px 0; }
|
||||
.coin { position: relative; width: 120px; height: 120px; transform-style: preserve-3d; transition: transform .1s; }
|
||||
.coin .side {
|
||||
position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center;
|
||||
font-size: 3rem; backface-visibility: hidden;
|
||||
background: radial-gradient(circle at 35% 30%, var(--gold-soft), var(--gold-deep));
|
||||
border: 4px solid #8a6e1f; box-shadow: inset 0 0 18px rgba(0,0,0,.4), 0 14px 30px -10px rgba(0,0,0,.7);
|
||||
color: #2a1d00;
|
||||
}
|
||||
.coin .heads { transform: translateZ(2px); }
|
||||
.coin .tails { transform: rotateY(180deg) translateZ(2px); }
|
||||
.coin.spin-heads { animation: spinHeads 2.4s cubic-bezier(.3,.1,.2,1) forwards; }
|
||||
.coin.spin-tails { animation: spinTails 2.4s cubic-bezier(.3,.1,.2,1) forwards; }
|
||||
@keyframes spinHeads { 0% { transform: rotateY(0) translateY(0); } 50% { transform: rotateY(1440deg) translateY(-50px); } 100% { transform: rotateY(2520deg) translateY(0); } }
|
||||
@keyframes spinTails { 0% { transform: rotateY(0) translateY(0); } 50% { transform: rotateY(1440deg) translateY(-50px); } 100% { transform: rotateY(2700deg) translateY(0); } }
|
||||
|
||||
/* ---------- misc ---------- */
|
||||
.login-hint { text-align: center; color: var(--muted); margin-top: 24px; padding: 22px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; }
|
||||
.muted { color: var(--muted); }
|
||||
.center { text-align: center; }
|
||||
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
|
||||
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .7rem; font-weight: 800; }
|
||||
.pill.long { background: var(--green-soft); color: var(--green); }
|
||||
.pill.short { background: var(--red-soft); color: var(--red); }
|
||||
.spacer { height: 10px; }
|
||||
.result-emoji { font-size: 3rem; text-align: center; margin: 8px 0; }
|
||||
.stat-tile { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; padding: 12px; text-align: center; }
|
||||
.stat-tile .lbl { color: var(--muted); font-size: .72rem; font-weight: 600; }
|
||||
.stat-tile .val { font-weight: 900; font-family: var(--font-display); font-size: 1.15rem; margin-top: 2px; font-variant-numeric: tabular-nums; }
|
||||
|
||||
/* ---------- Framed images (Avatar etc.) ---------- */
|
||||
.framed-image { overflow: hidden; position: relative; background: var(--surface-2); flex-shrink: 0; }
|
||||
.framed-image--avatar { aspect-ratio: 1; border-radius: 50%; }
|
||||
.framed-image img { position: absolute; pointer-events: none; user-select: none; max-width: none; }
|
||||
.framed-image--avatar-sm { width: 36px; height: 36px; }
|
||||
.framed-image--avatar-md { width: 48px; height: 48px; }
|
||||
.framed-image--avatar-lg { width: 120px; height: 120px; }
|
||||
.framed-image--avatar-xl { width: min(72vw, 260px); height: min(72vw, 260px); }
|
||||
|
||||
.framed-image--gallery { aspect-ratio: 1; border-radius: 14px; }
|
||||
.framed-image--gallery-sm { width: 80px; height: 80px; }
|
||||
.framed-image--gallery-md { width: 100%; max-width: 140px; height: auto; aspect-ratio: 1; }
|
||||
.framed-image--gallery-lg { width: 140px; height: 140px; }
|
||||
.framed-image--gallery-xl { width: min(72vw, 280px); height: min(72vw, 280px); }
|
||||
|
||||
.framed-image--banner { aspect-ratio: 3 / 1; border-radius: 14px; }
|
||||
.framed-image--banner-sm { width: 120px; height: 40px; }
|
||||
.framed-image--banner-md { width: 100%; max-width: 200px; height: auto; aspect-ratio: 3; }
|
||||
.framed-image--banner-lg { width: 240px; height: 80px; }
|
||||
.framed-image--banner-xl { width: min(92vw, 360px); height: auto; aspect-ratio: 3; }
|
||||
|
||||
.framed-image--card { aspect-ratio: 2 / 3; border-radius: 12px; }
|
||||
.framed-image--card-sm { width: 48px; height: 72px; }
|
||||
.framed-image--card-md { width: 80px; height: 120px; }
|
||||
.framed-image--card-lg { width: 100px; height: 150px; }
|
||||
.framed-image--card-xl { width: min(50vw, 200px); height: auto; aspect-ratio: 2/3; }
|
||||
|
||||
.avatar-emoji { display: inline-grid; place-items: center; line-height: 1; }
|
||||
.avatar-emoji--sm { font-size: 1.35rem; width: 36px; height: 36px; }
|
||||
.avatar-emoji--md { font-size: 1.6rem; width: 48px; height: 48px; }
|
||||
.avatar-emoji--lg { font-size: 3.5rem; width: 120px; height: 120px; }
|
||||
|
||||
.profile-avatar-row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
|
||||
.profile-avatar-actions { display: flex; flex-direction: column; gap: 8px; flex: 1; }
|
||||
.profile-avatar-actions .btn { width: auto; font-size: .85rem; padding: 10px 14px; }
|
||||
|
||||
.btn-auth--avatar { padding: 0; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font-size: 1.2rem; box-shadow: none; }
|
||||
.btn-auth--avatar .framed-image--avatar-sm,
|
||||
.btn-auth--avatar .avatar-emoji--sm { width: 38px; height: 38px; }
|
||||
|
||||
.account-head { display: flex; align-items: center; gap: 12px; }
|
||||
.account-head h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
||||
|
||||
/* ---------- Image position editor ---------- */
|
||||
.image-editor-backdrop { z-index: 110; }
|
||||
.image-editor-modal { max-height: 94dvh; }
|
||||
.image-editor-hint { font-size: .82rem; margin: 0 0 14px; }
|
||||
.image-editor-preview-wrap { display: flex; justify-content: center; margin-bottom: 16px; }
|
||||
.image-editor-preview { touch-action: none; cursor: grab; border: 2px solid var(--line); box-shadow: 0 12px 40px rgba(0,0,0,.35); }
|
||||
.image-editor-preview:active { cursor: grabbing; }
|
||||
.image-editor-zoom-field input[type="range"] { padding: 0; height: 6px; -webkit-appearance: none; appearance: none; background: var(--line); border: none; border-radius: 99px; }
|
||||
.image-editor-zoom-field input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); box-shadow: 0 2px 8px rgba(201,168,76,.5); }
|
||||
.image-editor-zoom-field label { display: flex; justify-content: space-between; align-items: center; }
|
||||
|
||||
/* ---------- Uploads Galerie ---------- */
|
||||
.uploads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 14px; }
|
||||
.upload-item { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
|
||||
.upload-item .framed-image--gallery-md,
|
||||
.upload-item .framed-image--banner-md,
|
||||
.upload-item .framed-image--card-md { width: 100%; max-width: none; }
|
||||
.upload-item-actions { display: flex; gap: 6px; flex-wrap: wrap; }
|
||||
.upload-item-actions .chip { font-size: .72rem; padding: 5px 8px; }
|
||||
.uploads-toolbar { display: flex; flex-direction: column; gap: 10px; }
|
||||
.image-upload-wrap { display: contents; }
|
||||
|
||||
/* range input global (dice etc.) */
|
||||
input[type="range"] { -webkit-appearance: none; appearance: none; height: 6px; padding: 0; background: var(--surface-3); border: none; border-radius: 99px; }
|
||||
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); box-shadow: 0 2px 10px rgba(201,168,76,.5); cursor: pointer; }
|
||||
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border: none; border-radius: 50%; background: var(--gold); box-shadow: 0 2px 10px rgba(201,168,76,.5); cursor: pointer; }
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
|
||||
}
|
||||
|
||||
/* very small phones */
|
||||
@media (max-width: 360px) {
|
||||
.games-grid { gap: 10px; }
|
||||
.game-card { min-height: 138px; padding: 13px; }
|
||||
.lane { min-width: 70px; }
|
||||
}
|
||||
Reference in New Issue
Block a user