body {
transition: color 0.3s ease-out;
margin: 0;
padding: 40px;
min-height: 100vh;
box-sizing: border-box;
background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
background-size: 400% 400%;
animation: gradient-shift 15s ease infinite;
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
}
@media (max-width: 768px) {
body {
padding: 20px;
}
}
@media (max-width: 480px) {
body {
padding: 10px;
align-items: flex-start;
padding-top: max(10px, env(safe-area-inset-top));
}
}
@media (max-width: 480px) and (orientation: landscape) {
body {
padding: 8px;
align-items: center;
}
}
body::before,
body::after {
content: '';
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: 0;
pointer-events: none;
mask-image: radial-gradient(ellipse 100% 100% at center, black 40%, transparent 100%);
-webkit-mask-image: radial-gradient(ellipse 100% 100% at center, black 40%, transparent 100%);
}
@media (max-width: 480px) {
body::before,
body::after {
opacity: 0.6;
}
}
body::before {
background:
radial-gradient(ellipse 1400px 200px at 20% 30%, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.27) 40%, transparent 70%),
radial-gradient(ellipse 1200px 180px at 80% 20%, rgba(255, 255, 255, 0.53) 0%, rgba(255, 255, 255, 0.22) 40%, transparent 70%),
radial-gradient(ellipse 1600px 220px at 40% 70%, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.32) 40%, transparent 70%);
animation: clouds-drift-1 30s ease-in-out infinite;
filter: blur(30px);
}
body::after {
background:
radial-gradient(ellipse 1500px 190px at 60% 40%, rgba(255, 255, 255, 0.56) 0%, rgba(255, 255, 255, 0.25) 40%, transparent 70%),
radial-gradient(ellipse 1300px 210px at 30% 80%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.3) 40%, transparent 70%),
radial-gradient(ellipse 1800px 240px at 90% 70%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.21) 40%, transparent 70%);
animation: clouds-drift-2 40s ease-in-out infinite reverse;
filter: blur(35px);
}
@keyframes clouds-drift-1 {
0%, 100% {
transform: translate(0, 0) rotate(0deg);
}
33% {
transform: translate(-2%, 1%) rotate(0.5deg);
}
66% {
transform: translate(1%, -2%) rotate(-0.3deg);
}
}
@keyframes clouds-drift-2 {
0%, 100% {
transform: translate(0, 0) rotate(0deg);
}
50% {
transform: translate(1.5%, 1.5%) rotate(-0.8deg);
}
}
@keyframes gradient-shift {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
#background {
max-width: 1200px;
width: 90%;
padding: 40px;
background: rgba(255, 255, 255, 0.12);
backdrop-filter: blur(30px) saturate(180%);
-webkit-backdrop-filter: blur(30px) saturate(180%);
border-radius: 24px;
border: 1px solid rgba(255, 255, 255, 0.25);
box-shadow:
0 8px 32px 0 rgba(31, 38, 135, 0.37),
inset 0 0 20px rgba(255, 255, 255, 0.1),
inset 0 0 60px rgba(144, 238, 144, 0.25);
position: relative;
z-index: 1;
overflow: hidden;
}
#background::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image:
repeating-linear-gradient(
45deg,
transparent,
transparent 2px,
rgba(255, 255, 255, 0.03) 2px,
rgba(255, 255, 255, 0.03) 4px
),
repeating-linear-gradient(
-45deg,
transparent,
transparent 2px,
rgba(255, 255, 255, 0.02) 2px,
rgba(255, 255, 255, 0.02) 4px
);
opacity: 0.5;
pointer-events: none;
z-index: 1;
}
#background > * {
position: relative;
z-index: 2;
}
@media (max-width: 768px) {
#background {
width: 95%;
padding: 20px;
max-width: 100%;
}
}
@media (max-width: 480px) {
#background {
width: 98%;
padding: 16px;
}
}
.mainTitle {
width: 100%;
text-align: left;
font-size: clamp(1rem, 2vw, 2rem);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-weight: 500;
letter-spacing: -0.02em;
}
.mainTitle h3 {
font-weight: 600;
margin: 0;
padding: 0;
}
@media (max-width: 480px) and (orientation: portrait) {
.mainTitle {
font-size: clamp(1.25rem, 5vw, 1.75rem);
text-align: center;
}
}
.roundsDisplay {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
font-size: clamp(1rem, 4vw, 2rem);
}
@media (max-width: 480px) and (orientation: portrait) {
.roundsDisplay {
font-size: clamp(1.25rem, 6vw, 1.75rem);
justify-content: center;
}
}
.timerDisplay {
width: 100%;
font-size: clamp(2rem, 25vw, 12rem);
text-align: center;
font-variant-numeric: tabular-nums;
white-space: nowrap;
overflow: visible;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: nowrap;
}
@media (max-width: 480px) and (orientation: portrait) {
.timerDisplay {
font-size: clamp(2.5rem, 16vw, 5rem);
letter-spacing: -0.03em;
}
}
@media (max-width: 896px) and (orientation: landscape) {
.timerDisplay {
font-size: clamp(2rem, 12vw, 7rem);
}
}
.digit {
display: inline-block;
will-change: transform;
}
.separator {
display: inline-block;
opacity: 0.8;
}
.digit-tenths {
animation: tenths-pulse 0.25s ease-in-out infinite;
}
@keyframes tenths-pulse {
0%, 100% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1.02);
opacity: 0.95;
}
}
body {
transition: color 0.3s ease-out;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
margin: 0;
padding: 20px;
min-height: 100vh;
box-sizing: border-box;
}
.timerDisplay {
text-shadow: 0 0 20px rgba(255, 255, 255, 0.3),
0 0 40px rgba(255, 255, 255, 0.2);
filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}
@keyframes timer-breathe {
0%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.01);
}
}
.timerDisplay.timer-idle {
animation: timer-breathe 4s ease-in-out infinite;
}
#buttonDisplay {
width: 100%;
display: flex;
flex-wrap: wrap;
justify-content: center;
}
#buttonDisplay button {
flex: 0 0 auto;
margin: 0.5%;
min-width: auto;
max-width: none;
font-size: clamp(0.875rem, 1.5vw, 1.5rem);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-weight: 400;
letter-spacing: -0.01em;
background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 12px;
padding: 10px 16px;
box-shadow:
0 8px 24px 0 rgba(31, 38, 135, 0.15),
inset 0 1px 0 rgba(255, 255, 255, 0.3),
inset 0 -1px 0 rgba(0, 0, 0, 0.05);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
cursor: pointer;
position: relative;
overflow: hidden;
}
#buttonDisplay button::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image:
radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
repeating-linear-gradient(
60deg,
transparent,
transparent 3px,
rgba(255, 255, 255, 0.02) 3px,
rgba(255, 255, 255, 0.02) 6px
);
opacity: 0.6;
pointer-events: none;
}
@media (max-width: 480px) {
#buttonDisplay button {
flex: 1 1 45%;
min-width: 70px;
max-width: 140px;
font-size: clamp(0.75rem, 3.5vw, 1rem);
padding: 8px 12px;
margin: 2px;
}
}
#buttonDisplay button:hover {
background: rgba(255, 255, 255, 0.25);
transform: translateY(-2px);
box-shadow:
0 12px 32px 0 rgba(31, 38, 135, 0.2),
inset 0 1px 0 rgba(255, 255, 255, 0.4),
inset 0 -1px 0 rgba(0, 0, 0, 0.1),
inset 0 0 30px rgba(144, 238, 144, 0.2);
border-color: rgba(255, 255, 255, 0.5);
}
#buttonDisplay button:active {
transform: translateY(0);
background: rgba(255, 255, 255, 0.1);
box-shadow:
0 4px 12px 0 rgba(31, 38, 135, 0.15),
inset 0 2px 4px rgba(0, 0, 0, 0.1);
}