Files
Nazim KriandClaude Opus 5.5 ad214a24dd Landing redesign: animated hero, draw cards, how-it-works, footer
Keeps only countries with archived results (Québec, France, US, Spain,
Portugal). The landing gets motion and a real structure: staggered
fade-in hero with a floating Loki, twinkling stars, a shimmering gold CTA
and counters that tick up (draws archived, lotteries, countries); draw
cards in place of the table, with lottery balls dropping in and a
lift-on-hover; a three-step "Comment ça marche"; and a site-wide footer
with links, covered countries, responsible-play note and 18+ notice.
All motion is disabled under prefers-reduced-motion.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 11:58:21 -04:00

212 lines
6.7 KiB
CSS

@import "tailwindcss";
@import "tw-animate-css";
@import "shadcn/tailwind.css";
@custom-variant dark (&:is(.dark *));
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--font-sans: var(--font-sans);
--font-mono: var(--font-geist-mono);
--font-heading: var(--font-fraunces), Georgia, serif;
--font-display: var(--font-fraunces), Georgia, serif;
--color-gold: var(--gold);
--color-gold-light: var(--gold-light);
--color-mint: var(--mint);
--color-sidebar-ring: var(--sidebar-ring);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar: var(--sidebar);
--color-chart-5: var(--chart-5);
--color-chart-4: var(--chart-4);
--color-chart-3: var(--chart-3);
--color-chart-2: var(--chart-2);
--color-chart-1: var(--chart-1);
--color-ring: var(--ring);
--color-input: var(--input);
--color-border: var(--border);
--color-destructive: var(--destructive);
--color-accent-foreground: var(--accent-foreground);
--color-accent: var(--accent);
--color-accent-soft: var(--accent-soft);
--color-success: var(--success);
--color-success-foreground: var(--success-foreground);
--color-panel: var(--panel);
--color-panel-hover: var(--panel-hover);
--color-muted-foreground: var(--muted-foreground);
--color-muted: var(--muted);
--color-secondary-foreground: var(--secondary-foreground);
--color-secondary: var(--secondary);
--color-primary-foreground: var(--primary-foreground);
--color-primary: var(--primary);
--color-popover-foreground: var(--popover-foreground);
--color-popover: var(--popover);
--color-card-foreground: var(--card-foreground);
--color-card: var(--card);
--radius-sm: calc(var(--radius) * 0.6);
--radius-md: calc(var(--radius) * 0.8);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) * 1.4);
--radius-2xl: calc(var(--radius) * 1.8);
--radius-3xl: calc(var(--radius) * 2.2);
--radius-4xl: calc(var(--radius) * 2.6);
}
:root {
--background: oklch(1 0 0);
--foreground: oklch(0.145 0 0);
--card: oklch(1 0 0);
--card-foreground: oklch(0.145 0 0);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.145 0 0);
--primary: oklch(0.205 0 0);
--primary-foreground: oklch(0.985 0 0);
--secondary: oklch(0.97 0 0);
--secondary-foreground: oklch(0.205 0 0);
--muted: oklch(0.97 0 0);
--muted-foreground: oklch(0.556 0 0);
--accent: oklch(0.75 0.15 85);
--accent-soft: oklch(0.75 0.15 85 / 12%);
--accent-foreground: oklch(0.205 0 0);
--destructive: oklch(0.577 0.245 27.325);
--border: oklch(0.922 0 0);
--input: oklch(0.922 0 0);
--ring: oklch(0.708 0 0);
--chart-1: oklch(0.87 0 0);
--chart-2: oklch(0.556 0 0);
--chart-3: oklch(0.439 0 0);
--chart-4: oklch(0.371 0 0);
--chart-5: oklch(0.269 0 0);
--radius: 0.625rem;
--sidebar: oklch(0.985 0 0);
--sidebar-foreground: oklch(0.145 0 0);
--sidebar-primary: oklch(0.205 0 0);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.97 0 0);
--sidebar-accent-foreground: oklch(0.205 0 0);
--sidebar-border: oklch(0.922 0 0);
--sidebar-ring: oklch(0.708 0 0);
}
.dark {
/* LokiLab palette: midnight stone, brass gold, mint gem, ivory text. */
--gold: #f4c76b;
--gold-light: #ffe3a3;
--mint: #55e6b1;
--background: #101827;
--foreground: #f5f2e9;
--card: #17222f;
--card-foreground: #f5f2e9;
--popover: #17222f;
--popover-foreground: #f5f2e9;
/* --primary is the brand gold, never the country accent. */
--primary: #f4c76b;
--primary-foreground: #101827;
--secondary: #1f2d3d;
--secondary-foreground: #f5f2e9;
--muted: #1f2d3d;
--muted-foreground: #a8b8c8;
--accent-foreground: #f5f2e9;
/* --success is the one stable "won/matched" color across every country. */
--success: #55e6b1;
--success-foreground: #0b1a14;
--panel: #17222f;
--panel-hover: #1f2d3d;
--destructive: oklch(0.704 0.191 22.216);
--border: rgba(244, 199, 107, 0.16);
--input: rgba(244, 199, 107, 0.22);
--ring: #55e6b1;
--chart-1: oklch(0.87 0 0);
--chart-2: oklch(0.556 0 0);
--chart-3: oklch(0.439 0 0);
--chart-4: oklch(0.371 0 0);
--chart-5: oklch(0.269 0 0);
--sidebar: oklch(0.205 0 0);
--sidebar-foreground: oklch(0.985 0 0);
--sidebar-primary: oklch(0.488 0.243 264.376);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.269 0 0);
--sidebar-accent-foreground: oklch(0.985 0 0);
--sidebar-border: oklch(1 0 0 / 10%);
--sidebar-ring: oklch(0.556 0 0);
}
@layer base {
* {
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground;
}
html {
@apply font-sans;
}
}
/* ---- Motion ---------------------------------------------------------- */
@keyframes loki-fade-up {
from { opacity: 0; transform: translateY(14px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes loki-float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
@keyframes loki-ball-drop {
0% { opacity: 0; transform: translateY(-18px) scale(0.6); }
60% { opacity: 1; transform: translateY(3px) scale(1.06); }
100% { transform: translateY(0) scale(1); }
}
@keyframes loki-shimmer {
from { transform: translateX(-120%) skewX(-20deg); }
to { transform: translateX(220%) skewX(-20deg); }
}
@keyframes loki-glow {
0%, 100% { opacity: 0.35; transform: scale(1); }
50% { opacity: 0.6; transform: scale(1.08); }
}
@keyframes loki-twinkle {
0%, 100% { opacity: 0.15; }
50% { opacity: 0.9; }
}
@utility animate-fade-up {
animation: loki-fade-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@utility animate-float {
animation: loki-float 5s ease-in-out infinite;
}
@utility animate-ball-drop {
animation: loki-ball-drop 0.55s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}
@utility animate-glow {
animation: loki-glow 4s ease-in-out infinite;
}
@utility animate-twinkle {
animation: loki-twinkle 3s ease-in-out infinite;
}
/* Gold sweep across a button; the element needs relative + overflow-hidden. */
@utility shimmer {
&::after {
content: "";
position: absolute;
inset: 0;
width: 40%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
animation: loki-shimmer 2.8s ease-in-out infinite;
pointer-events: none;
}
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}