 body {
   background: linear-gradient(135deg, #6a11cb, #2575fc);
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
   margin: 0;
   min-height: 100vh;
   display: flex;
   align-items: center;
   justify-content: center;
   color: white;
   font-family: 'Fredoka', sans-serif;
 }

 .game-container {
   background: rgba(255, 255, 255, 0.1);
   border-radius: 20px;
   padding: 2.5rem 3rem;
   box-shadow:
     0 8px 32px 0 rgba(31, 38, 135, 0.37),
     inset 0 0 0 1px rgba(255, 255, 255, 0.2);
   max-width: 460px;
   width: 90vw;
   text-align: center;
   user-select: none;
 }

 h1 {
   font-size: 3rem;
   margin-bottom: 1rem;
   text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);

 }

 .dice-row {
   display: flex;
   justify-content: space-around;
   margin: 2rem 0 2.5rem;
   gap: 1.5rem;
   font-family: 'Luckiest Guy', cursive;
 }

 .dice-row>div {
   flex: 1;
   background: rgba(255, 255, 255, 0.15);
   border-radius: 15px;
   padding: 1.5rem 0;
   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
   transition: background 0.3s ease;
   cursor: default;
   font-family: 'Luckiest Guy', cursive;
 }

 .dice-row>div:hover {
   background: rgba(255, 255, 255, 0.3);
 }

 h2 {
   margin-bottom: 1rem;
   font-weight: 600;
   letter-spacing: 0.04em;
   text-transform: uppercase;
   font-family: 'Luckiest Guy', cursive;
 }

 .dice {
   font-size: 6rem;
   background: linear-gradient(145deg, #ffffff, #d1d9ff);
   color: #3a3a3a;
   border-radius: 20px;
   width: 110px;
   height: 110px;
   line-height: 110px;
   margin: 0 auto;
   box-shadow:
     6px 6px 15px #bec7f5,
     -6px -6px 15px #ffffff;
   user-select: none;
   transition: transform 0.2s ease;
 }



 button {
   background: #ff6a00;
   background: linear-gradient(45deg, #ff6a00, #ee0979);
   border: none;
   padding: 1rem 3rem;
   border-radius: 40px;
   color: white;
   font-size: 1.25rem;
   font-weight: 700;
   cursor: pointer;
   box-shadow: 0 6px 15px rgba(238, 9, 121, 0.6);
   transition: all 0.3s ease;
   user-select: none;
   font-family: 'Luckiest Guy', cursive;
 }

 button:hover {
   box-shadow: 0 10px 20px rgba(238, 9, 121, 0.9);
   transform: scale(1.05);
 }

 button:active {
   transform: scale(0.95);
 }

 #result {
   margin-top: 2rem;
   font-size: 1.8rem;
   font-weight: 600;
   color: #fff;
   text-shadow: 1px 1px 6px #00000080;
   min-height: 2.5rem;
 }

 @media (max-width: 480px) {
   .dice {
     font-size: 4.5rem;
     width: 90px;
     height: 90px;
     line-height: 90px;

   }

   button {
     padding: 0.8rem 2.5rem;
     font-size: 1.1rem;
   }

   body {
     text-align: center;
     margin: 20px;
   }


 }


.dice {
  animation: shake 4s ease-in-out infinite;
}

@keyframes shake {
  0%, 100% { transform: rotate(60deg); }
  25% { transform: rotate(5deg); }
  50% { transform: rotate(-5deg); }
  75% { transform: rotate(3deg); }
}