﻿body {
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
  background: linear-gradient(to bottom, #b31217, #e52d27);
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.container {
  background: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
  border: 3px solid #fff;
  position: relative;
  z-index: 10;
}

h1 {
  color: #b31217;
  font-size: 2.2em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px #fff;
}

#dice {
  width: 150px;
  cursor: pointer;
  transition: transform 0.3s;
  filter: drop-shadow(0 0 10px #fff);
}

#dice:hover {
  transform: scale(1.1);
}

/* ❄️ Snefnug lag */
.snow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

@keyframes roll {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(720deg); }
}

.roll {
  animation: roll 0.8s ease;
}

#result {
  margin-top: 20px;
  font-size: 1.5em;
  color: #333;
}
