predikt/oracle/web/styles/globals.css
caelum0x 2b68bde5d5 Predikt: full Polymarket-style prediction market — web + mobile + on-chain + bots
Working tree is now the canonical repo. Off-chain play-money + trustless on-chain
(FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution,
mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-06 23:29:50 +03:00

592 lines
14 KiB
CSS

@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
html {
-webkit-tap-highlight-color: transparent;
}
:where(
a,
button,
input,
select,
textarea,
summary,
[role='button'],
[role='combobox'],
[role='link'],
[role='radio'],
[role='slider'],
[role='tab'],
[tabindex]:not([tabindex='-1'])
):focus-visible {
outline: 2px solid rgb(var(--color-primary-500));
outline-offset: 2px;
}
:where(
a,
button,
input,
select,
textarea,
summary,
[role='button'],
[role='combobox'],
[role='link'],
[role='radio'],
[role='slider'],
[role='tab'],
[tabindex]:not([tabindex='-1'])
):focus:not(:focus-visible) {
outline: none;
}
:root {
--color-ink-0: 255 255 255;
--color-ink-50: 248 248 252;
--color-ink-100: 236 237 248;
--color-ink-200: 221 222 238;
--color-ink-300: 194 195 219;
--color-ink-400: 158 159 189;
--color-ink-500: 118 118 147;
--color-ink-600: 86 86 118;
--color-ink-700: 61 61 92;
--color-ink-800: 39 39 73;
--color-ink-900: 22 21 55;
--color-ink-950: 10 8 43;
--color-ink-1000: 0 0 0;
--color-canvas-0: 253 254 255;
--color-canvas-50: 244 243 251;
--color-canvas-100: 210 212 224;
/* Predikt accent — clean market blue */
--color-primary-50: 239 246 255;
--color-primary-100: 219 234 254;
--color-primary-200: 191 219 254;
--color-primary-300: 147 197 253;
--color-primary-400: 96 165 250;
--color-primary-500: 47 128 237;
--color-primary-600: 37 99 235;
--color-primary-700: 29 78 216;
--color-primary-800: 30 64 175;
--color-primary-900: 30 58 138;
--color-primary-950: 23 37 84;
/* NO — red */
--color-no-50: 254 242 242;
--color-no-100: 254 226 226;
--color-no-200: 254 202 202;
--color-no-300: 252 165 165;
--color-no-400: 248 113 113;
--color-no-500: 239 68 68;
--color-no-600: 220 38 38;
--color-no-700: 185 28 28;
--color-no-800: 153 27 27;
--color-no-900: 127 29 29;
--color-no-950: 69 10 10;
/* YES — green */
--color-yes-50: 240 253 244;
--color-yes-100: 220 252 231;
--color-yes-200: 187 247 208;
--color-yes-300: 134 239 172;
--color-yes-400: 74 222 128;
--color-yes-500: 34 197 94;
--color-yes-600: 22 163 74;
--color-yes-700: 21 128 61;
--color-yes-800: 22 101 52;
--color-yes-900: 20 83 45;
--color-yes-950: 5 46 22;
}
.dark {
color-scheme: dark;
--color-ink-1000: 255 255 255;
--color-ink-950: 248 248 252;
--color-ink-900: 236 237 248;
--color-ink-800: 221 222 238;
--color-ink-700: 194 195 219;
--color-ink-600: 158 159 189;
--color-ink-500: 118 118 147;
--color-ink-400: 86 86 118;
--color-ink-300: 61 61 92;
--color-ink-200: 39 39 73;
--color-ink-100: 22 21 55;
--color-ink-50: 10 8 43;
--color-ink-0: 0 0 0;
/* Deep, clean Polymarket-style dark surfaces */
--color-canvas-0: 11 18 32;
--color-canvas-50: 17 26 43;
--color-canvas-100: 28 42 68;
/* Predikt accent — clean market blue (reversed ramp for dark) */
--color-primary-950: 239 246 255;
--color-primary-900: 219 234 254;
--color-primary-800: 191 219 254;
--color-primary-700: 147 197 253;
--color-primary-600: 96 165 250;
--color-primary-500: 47 128 237;
--color-primary-400: 37 99 235;
--color-primary-300: 29 78 216;
--color-primary-200: 30 64 175;
--color-primary-100: 30 58 138;
--color-primary-50: 23 37 84;
/* NO — red (reversed ramp for dark) */
--color-no-950: 254 242 242;
--color-no-900: 254 226 226;
--color-no-800: 254 202 202;
--color-no-700: 252 165 165;
--color-no-600: 248 113 113;
--color-no-500: 239 68 68;
--color-no-400: 220 38 38;
--color-no-300: 185 28 28;
--color-no-200: 153 27 27;
--color-no-100: 127 29 29;
--color-no-50: 69 10 10;
/* YES — green (reversed ramp for dark) */
--color-yes-950: 240 253 244;
--color-yes-900: 220 252 231;
--color-yes-800: 187 247 208;
--color-yes-700: 134 239 172;
--color-yes-600: 74 222 128;
--color-yes-500: 34 197 94;
--color-yes-400: 22 163 74;
--color-yes-300: 21 128 61;
--color-yes-200: 22 101 52;
--color-yes-100: 20 83 45;
--color-yes-50: 5 46 22;
}
}
@font-face {
font-family: 'emoji';
src: local('AppleColorEmoji'), local('Segoe UI Emoji'),
local('Noto Color Emoji');
/* from official unicode range for emoji: https://util.unicode.org/UnicodeJsps/list-unicodeset.jsp?a=%5B%3AEmoji%3DYes%3A%5D%0D%0A&abb=on&esc=on&g=&i= */
/* but include zero width joiner and variant block selector, like 🏳️‍🌈 */
unicode-range: U+200D, U+FE0?, U+203C, U+2049, U+2122, U+2139, U+2194-2199,
U+21A9, U+21AA, U+231A, U+231B, U+2328, U+23CF, U+23E9-23F3, U+23F8-23FA,
U+24C2, U+25AA, U+25AB, U+25B6, U+25C0, U+25FB-25FE, U+2600-2604, U+260E,
U+2611, U+2614, U+2615, U+2618, U+261D, U+2620, U+2622, U+2623, U+2626,
U+262A, U+262E, U+262F, U+2638-263A, U+2640, U+2642, U+2648-2653, U+265F,
U+2660, U+2663, U+2665, U+2666, U+2668, U+267B, U+267E, U+267F, U+2692-2697,
U+2699, U+269B, U+269C, U+26A0, U+26A1, U+26A7, U+26AA, U+26AB, U+26B0,
U+26B1, U+26BD, U+26BE, U+26C4, U+26C5, U+26C8, U+26CE, U+26CF, U+26D1,
U+26D3, U+26D4, U+26E9, U+26EA, U+26F0-26F5, U+26F7-26FA, U+26FD, U+2702,
U+2705, U+2708-270D, U+270F, U+2712, U+2714, U+2716, U+271D, U+2721, U+2728,
U+2733, U+2734, U+2744, U+2747, U+274C, U+274E, U+2753-2755, U+2757, U+2763,
U+2764, U+2795-2797, U+27A1, U+27B0, U+27BF, U+2934, U+2935, U+2B05-2B07,
U+2B1B, U+2B1C, U+2B50, U+2B55, U+3030, U+303D, U+3297, U+3299, U+1F004,
U+1F0CF, U+1F170, U+1F171, U+1F17E, U+1F17F, U+1F18E, U+1F191-1F19A,
U+1F1E6-1F1FF, U+1F201, U+1F202, U+1F21A, U+1F22F, U+1F232-1F23A, U+1F250,
U+1F251, U+1F300-1F321, U+1F324-1F393, U+1F396, U+1F397, U+1F399-1F39B,
U+1F39E-1F3F0, U+1F3F3-1F3F5, U+1F3F7-1F4FD, U+1F4FF-1F53D, U+1F549-1F54E,
U+1F550-1F567, U+1F56F, U+1F570, U+1F573-1F57A, U+1F587, U+1F58A-1F58D,
U+1F590, U+1F595, U+1F596, U+1F5A4, U+1F5A5, U+1F5A8, U+1F5B1, U+1F5B2,
U+1F5BC, U+1F5C2-1F5C4, U+1F5D1-1F5D3, U+1F5DC-1F5DE, U+1F5E1, U+1F5E3,
U+1F5E8, U+1F5EF, U+1F5F3, U+1F5FA-1F64F, U+1F680-1F6C5, U+1F6CB-1F6D2,
U+1F6D5-1F6D7, U+1F6DC-1F6E5, U+1F6E9, U+1F6EB, U+1F6EC, U+1F6F0,
U+1F6F3-1F6FC, U+1F7E0-1F7EB, U+1F7F0, U+1F90C-1F93A, U+1F93C-1F945,
U+1F947-1F9FF, U+1FA70-1FA7C, U+1FA80-1FA88, U+1FA90-1FABD, U+1FABF-1FAC5,
U+1FACE-1FADB, U+1FAE0-1FAE8, U+1FAF0-1FAF8;
}
@font-face {
font-family: 'icomoon';
src: url('../public/fonts/icomoon.eot?v49ui9#iefix')
format('embedded-opentype'),
url('../public/fonts/icomoon.ttf?v49ui9') format('truetype'),
url('../public/fonts/icomoon.woff?v49ui9') format('woff'),
url('../public/fonts/icomoon.svg?v49ui9#icomoon') format('svg');
font-weight: normal;
font-style: normal;
font-display: block;
unicode-range: U+1E40;
}
[class^='icon-'],
[class*=' icon-'] {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'icomoon' !important;
speak: never;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-mana_3:before {
content: '\1e40';
}
/* For Webkit-inkd browsers (Chrome, Safari and Opera) */
.scrollbar-hide::-webkit-scrollbar {
display: none;
}
/* For IE, Edge and Firefox */
.scrollbar-hide {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
text {
font-family: icomoon, var(--font-main), emoji, sans-serif;
}
.coin-offset {
--coin-offset: calc(1.1em);
--coin-top-offset: calc(0.25em);
}
.text-xs .coin-offset {
--coin-top-offset: calc(0.2em);
}
.text-sm .coin-offset {
--coin-top-offset: calc(0.17em);
}
.text-lg .coin-offset {
--coin-top-offset: calc(0.3em);
}
.text-xl .coin-offset {
--coin-top-offset: calc(0.2em);
}
.text-2xl .coin-offset {
--coin-top-offset: calc(0.15em);
}
.text-3xl .coin-offset {
--coin-top-offset: calc(0.1em);
}
.text-4xl .coin-offset {
--coin-top-offset: calc(0.05em);
}
.text-5xl .coin-offset {
--coin-top-offset: calc(0em);
}
.text-6xl .coin-offset {
--coin-top-offset: calc(0em);
}
/* Touch animation: shrink then grow back */
@keyframes bounce-press {
0% {
transform: scale(1);
}
50% {
transform: scale(0.92);
}
100% {
transform: scale(1);
}
}
.touch-bounce {
animation: bounce-press 0.2s ease-in-out;
}
/* Alternative with active state for continuous press */
.touch-scale-down {
transform: scale(0.95);
transition: transform 0.1s ease-in-out;
}
/* Combined effect: bounce then hold */
@keyframes touch-press-bounce {
0% {
transform: scale(1);
}
25% {
transform: scale(0.92);
}
50% {
transform: scale(0.97);
}
100% {
transform: scale(0.95);
}
}
.touch-press-effect {
animation: touch-press-bounce 0.15s ease-out forwards;
}
.touch-release {
transform: scale(1);
transition: transform 0.1s ease-out;
}
/* Page container needs to be scrollable when body is fixed */
@media (max-width: 1024px) {
.page-scroll-container {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 58px; /* Height of bottom nav bar */
overflow-y: auto;
-webkit-overflow-scrolling: touch;
min-height: auto !important; /* Override min-height when fixed */
overflow-x: hidden;
}
/* Ensure bottom nav stays on top */
nav.fixed.bottom-0 {
z-index: 50;
}
}
/* Animated glow effects for supporter tier selector.
Derived from the theme primary token so the glow follows the brand hue. */
@keyframes glow-primary {
0%,
100% {
box-shadow: 0 0 12px rgb(var(--color-primary-500) / 0.6),
0 0 24px rgb(var(--color-primary-500) / 0.4);
}
50% {
box-shadow: 0 0 20px rgb(var(--color-primary-500) / 0.8),
0 0 40px rgb(var(--color-primary-500) / 0.5);
}
}
@keyframes glow-amber {
0%,
100% {
box-shadow: 0 0 16px rgba(245, 158, 11, 0.6),
0 0 32px rgba(245, 158, 11, 0.4);
}
50% {
box-shadow: 0 0 24px rgba(245, 158, 11, 0.8),
0 0 48px rgba(245, 158, 11, 0.5);
}
}
.animate-glow-primary {
animation: glow-primary 2s ease-in-out infinite;
}
.animate-glow-amber {
animation: glow-amber 2s ease-in-out infinite;
}
/* Subtle glow variants for owned tier default state (less intense) */
@keyframes glow-primary-subtle {
0%,
100% {
box-shadow: 0 0 16px rgb(var(--color-primary-500) / 0.5);
}
50% {
box-shadow: 0 0 20px rgb(var(--color-primary-500) / 0.6);
}
}
@keyframes glow-amber-subtle {
0%,
100% {
box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}
50% {
box-shadow: 0 0 24px rgba(245, 158, 11, 0.6);
}
}
.animate-glow-primary-subtle {
animation: glow-primary-subtle 3s ease-in-out infinite;
}
.animate-glow-amber-subtle {
animation: glow-amber-subtle 3s ease-in-out infinite;
}
/* Slower, less-aggressive opacity pulse for "new offer" badge */
@keyframes pulse-subtle {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.8;
}
}
.animate-pulse-subtle {
animation: pulse-subtle 3s ease-in-out infinite;
}
/* Diagonal gloss sweep — for an attention-grabbing "shiny tag" effect on
sale/offer badges. Uses a pseudo-element so the base background is
untouched. Parent must have overflow-clip (e.g. rounded-full). */
@keyframes shimmer-sweep {
0% {
transform: translateX(-110%);
}
100% {
transform: translateX(210%);
}
}
.shimmer-badge {
position: relative;
overflow: hidden;
}
.shimmer-badge::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(
105deg,
transparent 35%,
rgba(255, 255, 255, 0.45) 50%,
transparent 65%
);
transform: translateX(-110%);
animation: shimmer-sweep 2.5s ease-in-out infinite;
pointer-events: none;
}
/* Soft fade-in for async-loaded promotional cards so they don't jarringly
pop into existence at the top of the page after a fetch resolves. */
@keyframes offer-card-fade-in {
from {
opacity: 0;
transform: translateY(-6px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.animate-offer-card-in {
animation: offer-card-fade-in 0.4s ease-out;
}
/* Spinning border effect for hovercard */
@keyframes spin-border {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
.hovercard-spinning-border {
position: relative;
z-index: 0;
}
.hovercard-spinning-border::before {
content: '';
position: absolute;
z-index: -1;
inset: -3px;
border-radius: 10px;
background: linear-gradient(
90deg,
#ff6b6b,
#feca57,
#48dbfb,
#ff9ff3,
#54a0ff,
#5f27cd,
#ff6b6b
);
background-size: 300% 300%;
animation: spin-border 3s linear infinite;
}
.hovercard-spinning-border::after {
content: '';
position: absolute;
z-index: -1;
inset: 0;
border-radius: 6px;
background: inherit;
}
/* Royal velvet curtain border - red velvet with gold trim */
.hovercard-royal-border {
position: relative;
z-index: 0;
}
.hovercard-royal-border::before {
content: '';
position: absolute;
z-index: -1;
inset: -3px;
border-radius: 8px;
/* Layered: outer gold trim + inner red velvet curtain */
background:
/* Gold trim on all edges */ linear-gradient(
to right,
#fbbf24 0px,
#d97706 1px,
transparent 2px
)
left/2px 100% no-repeat,
linear-gradient(
to right,
transparent calc(100% - 2px),
#d97706 calc(100% - 1px),
#fbbf24 100%
)
right/2px 100% no-repeat,
linear-gradient(to bottom, #fbbf24 0px, #d97706 1px, transparent 2px)
top/100% 2px no-repeat,
linear-gradient(
to bottom,
transparent calc(100% - 2px),
#d97706 calc(100% - 1px),
#fbbf24 100%
)
bottom/100% 2px no-repeat,
/* Red velvet curtain folds */
repeating-linear-gradient(
90deg,
#7f1d1d 0px,
#991b1b 4px,
#b91c1c 8px,
#dc2626 12px,
#b91c1c 16px,
#991b1b 20px,
#7f1d1d 24px
);
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5), 0 0 4px rgba(251, 191, 36, 0.6),
0 0 8px rgba(220, 38, 38, 0.3);
}
.hovercard-royal-border::after {
content: '';
position: absolute;
z-index: -1;
inset: 0;
border-radius: 6px;
background: inherit;
}