@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --felt-dark: #0c2c1f;
  --felt: #0f3a2a;
  --felt-light: #174e3a;
  --gold: #e9c26a;
  --brass: #c99a2e;
  --ink: #f2f0e9;
  --shadow: rgba(5, 12, 9, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, var(--felt-light) 0%, var(--felt) 55%, var(--felt-dark) 100%);
  min-height: 100vh;
}

.felt {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 14px 14px;
  mix-blend-mode: soft-light;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 8vw;
  background: rgba(10, 30, 22, 0.7);
  border-bottom: 1px solid rgba(233, 194, 106, 0.25);
  backdrop-filter: blur(10px);
}

.brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 60px 8vw 40px;
}

.tagline {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  margin: 0 0 12px;
}

.subhead {
  font-size: 1.1rem;
  max-width: 640px;
  color: rgba(242, 240, 233, 0.85);
}

.roll-zone {
  padding: 20px 8vw 60px;
}

.roll-header h2 {
  margin: 0 0 6px;
  font-size: 1.8rem;
}

.roll-stage {
  position: relative;
  margin-top: 24px;
  height: 400px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 2px solid rgba(233, 194, 106, 0.4);
  box-shadow: 0 30px 60px var(--shadow), inset 0 0 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.roll-hint {
  position: absolute;
  right: 24px;
  bottom: 20px;
  font-weight: 700;
  background: var(--gold);
  color: #1a1406;
  padding: 8px 14px;
  border-radius: 999px;
}

.dice {
  position: absolute;
  width: 150px;
  height: 150px;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
  z-index: 2;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s ease;
}

.cube.spinning {
  animation: spin 0.9s cubic-bezier(0.25, 0.7, 0.25, 1);
}

@keyframes spin {
  0% {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(540deg) rotateY(540deg) rotateZ(180deg);
  }
}

.face {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 22px;
  background: linear-gradient(145deg, #f8f1e0, #e1cfa5);
  border: 3px solid rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 10px 20px rgba(255, 255, 255, 0.7), inset 0 -8px 14px rgba(0, 0, 0, 0.2), 0 18px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.face.one { transform: rotateY(0deg) translateZ(75px); }
.face.two { transform: rotateY(90deg) translateZ(75px); }
.face.three { transform: rotateY(180deg) translateZ(75px); }
.face.four { transform: rotateY(-90deg) translateZ(75px); }
.face.five { transform: rotateX(90deg) translateZ(75px); }
.face.six { transform: rotateX(-90deg) translateZ(75px); }

.pip {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2a120a;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.35), 0 2px 6px rgba(0, 0, 0, 0.35);
}

.p1 { top: 26px; left: 26px; }
.p2 { top: 50%; left: 26px; transform: translateY(-50%); }
.p3 { top: 26px; right: 26px; }
.p4 { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.p5 { bottom: 26px; left: 26px; }
.p6 { top: 50%; right: 26px; transform: translateY(-50%); }
.p7 { bottom: 26px; right: 26px; }

.contact {
  padding: 40px 8vw 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: center;
}

.contact-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.contact-form input {
  flex: 1 1 220px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid rgba(233, 194, 106, 0.4);
  font-size: 1rem;
  background: rgba(15, 58, 42, 0.65);
  color: var(--ink);
}

.contact-form button {
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  background: var(--brass);
  color: #1a1406;
  font-weight: 700;
  cursor: pointer;
}

.form-status {
  font-size: 0.95rem;
  color: var(--gold);
  min-height: 20px;
}

@media (max-width: 700px) {
  .dice {
    width: 120px;
    height: 120px;
  }

  .face {
    width: 120px;
    height: 120px;
  }

  .face.one { transform: rotateY(0deg) translateZ(60px); }
  .face.two { transform: rotateY(90deg) translateZ(60px); }
  .face.three { transform: rotateY(180deg) translateZ(60px); }
  .face.four { transform: rotateY(-90deg) translateZ(60px); }
  .face.five { transform: rotateX(90deg) translateZ(60px); }
  .face.six { transform: rotateX(-90deg) translateZ(60px); }

  .pip {
    width: 14px;
    height: 14px;
  }

  .p1 { top: 22px; left: 22px; }
  .p2 { left: 22px; }
  .p3 { top: 22px; right: 22px; }
  .p5 { bottom: 22px; left: 22px; }
  .p6 { right: 22px; }
  .p7 { bottom: 22px; right: 22px; }
}
