Initial commit

This commit is contained in:
2026-02-13 19:29:30 +02:00
commit 8fb64f8ebc
3 changed files with 609 additions and 0 deletions

281
main.css Normal file
View File

@@ -0,0 +1,281 @@
:root {
--pink-1: #ffe0f0;
--pink-2: #ffb6d9;
--pink-3: #ff7fbe;
--pink-4: #ff4fa6;
--pink-5: #d81b7d;
--card-bg: rgba(255, 255, 255, 0.72);
--card-border: rgba(255, 255, 255, 0.65);
--shadow: 0 18px 60px rgba(216, 27, 125, 0.18);
--yes-width: 152px;
--no-width: 152px;
}
* {
box-sizing: border-box;
}
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial,
"Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
color: #4a1230;
overflow: hidden;
background: linear-gradient(180deg, var(--pink-1), #fff 55%, var(--pink-1));
}
/* Animated dotted background */
.bg {
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
background:
radial-gradient(circle at 20% 25%, rgba(255, 127, 190, 0.22) 0 2px, transparent 3px),
radial-gradient(circle at 70% 65%, rgba(255, 79, 166, 0.18) 0 2px, transparent 3px),
radial-gradient(circle at 40% 80%, rgba(216, 27, 125, 0.14) 0 2px, transparent 3px),
radial-gradient(circle at 85% 30%, rgba(255, 182, 217, 0.22) 0 2px, transparent 3px),
radial-gradient(circle at 10% 70%, rgba(255, 127, 190, 0.16) 0 2px, transparent 3px);
background-size: 120px 120px;
animation: drift 12s linear infinite;
filter: saturate(1.05);
}
@keyframes drift {
0% {
transform: translate3d(0, 0, 0);
}
50% {
transform: translate3d(-25px, -18px, 0);
}
100% {
transform: translate3d(0, 0, 0);
}
}
/* Layout */
.wrap {
position: relative;
z-index: 2;
min-height: 100dvh;
display: grid;
place-items: center;
padding: 24px;
}
.card {
width: min(680px, 92vw);
border-radius: 22px;
background: var(--card-bg);
border: 1px solid var(--card-border);
box-shadow: var(--shadow);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
padding: 26px 22px 22px;
text-align: center;
}
h1 {
margin: 4px 0 12px;
font-size: clamp(26px, 5vw, 44px);
letter-spacing: -0.02em;
line-height: 1.05;
color: #6a1440;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.subtitle {
margin: 8px 0 0;
font-size: clamp(14px, 2.6vw, 18px);
color: rgba(106, 20, 64, 0.9);
min-height: 1.6em;
}
.gif {
width: min(320px, 76vw);
height: auto;
border-radius: 18px;
margin: 14px auto 16px;
display: block;
box-shadow: 0 12px 28px rgba(216, 27, 125, 0.18);
border: 1px solid rgba(255, 255, 255, 0.55);
background: rgba(255, 255, 255, 0.4);
}
.btnRow {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
margin-top: 14px;
align-items: center;
}
button {
width: 100%;
max-width: 100%;
border: 0;
border-radius: 16px;
padding: 14px 16px;
font-size: 18px;
font-weight: 800;
cursor: pointer;
transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease,
opacity 140ms ease;
touch-action: manipulation;
user-select: none;
-webkit-tap-highlight-color: transparent;
}
button:active {
transform: translateY(1px) scale(0.99);
}
#yesBtn {
width: var(--yes-width);
justify-self: end;
background: linear-gradient(180deg, #ff7fbe, #ff4fa6);
color: #fff;
box-shadow: 0 14px 30px rgba(255, 79, 166, 0.28);
}
#yesBtn:hover {
filter: brightness(1.02);
box-shadow: 0 16px 38px rgba(255, 79, 166, 0.34);
}
#noBtn {
width: var(--no-width);
justify-self: start;
background: linear-gradient(180deg, #ffd3ea, #ffb6d9);
color: #6a1440;
box-shadow: 0 10px 22px rgba(216, 27, 125, 0.12);
position: relative;
}
#noBtn:hover {
filter: brightness(1.01);
}
/* Success screen */
.success {
display: none;
padding: 26px 22px 22px;
}
.success h2 {
margin: 0 0 10px;
font-size: clamp(26px, 5vw, 40px);
color: #6a1440;
}
.success p {
margin: 8px 0 0;
font-size: clamp(15px, 2.7vw, 18px);
color: rgba(106, 20, 64, 0.92);
}
.hearts {
margin-top: 14px;
display: flex;
justify-content: center;
gap: 10px;
flex-wrap: wrap;
}
.heart {
width: 12px;
height: 12px;
background: #ff4fa6;
transform: rotate(45deg);
border-radius: 3px;
position: relative;
animation: pop 1200ms ease-in-out infinite;
}
.heart::before,
.heart::after {
content: "";
position: absolute;
width: 12px;
height: 12px;
background: #ff4fa6;
border-radius: 50%;
}
.heart::before {
left: -6px;
top: 0;
}
.heart::after {
left: 0;
top: -6px;
}
.heart:nth-child(2) {
animation-delay: 120ms;
}
.heart:nth-child(3) {
animation-delay: 240ms;
}
.heart:nth-child(4) {
animation-delay: 360ms;
}
.heart:nth-child(5) {
animation-delay: 480ms;
}
@keyframes pop {
0%,
100% {
transform: rotate(45deg) scale(1);
opacity: 0.85;
}
50% {
transform: rotate(45deg) scale(1.35);
opacity: 1;
}
}
/* Sakura canvas overlay */
canvas#sakura {
position: fixed;
inset: 0;
z-index: 1;
pointer-events: none;
}
/* Mobile tweaks */
@media (max-width: 420px) {
.btnRow {
gap: 10px;
}
button {
font-size: 16px;
padding: 13px 14px;
}
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
.bg,
.heart {
animation: none !important;
}
}