:root {
  --dns-bronze: #cb9b4c;
  --dns-deep-shadow: #141313;
  --dns-warm-black: #1f1914;
  --dns-cyan: #5c8899;
  --dns-soft-sand: #f5e6c2;
  --dns-glow-gold: rgba(203, 155, 76, 0.35);
  --dns-glow-cyan: rgba(92, 136, 153, 0.35);
  --dns-shadow-black: rgba(0, 0, 0, 0.45);
  --dns-space-xl: 6rem;
  --dns-space-l: 4rem;
  --dns-space-m: 2.5rem;
  --dns-space-s: 1.5rem;
}

body.dice-screen-home {
  margin: 0;
  min-height: 100vh;
  color: var(--dns-soft-sand);
  background:
    radial-gradient(circle at 14% 18%, rgba(203, 155, 76, 0.2), transparent 34%),
    radial-gradient(circle at 84% 8%, rgba(92, 136, 153, 0.2), transparent 40%),
    radial-gradient(circle at 50% 76%, rgba(151, 97, 46, 0.2), transparent 48%),
    linear-gradient(180deg, var(--dns-deep-shadow) 0%, #1b1511 42%, #100d0b 100%);
}

body.dice-screen-home::before,
body.dice-screen-home::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body.dice-screen-home::before {
  opacity: 0.15;
  background-image: repeating-linear-gradient(
    125deg,
    rgba(255, 227, 173, 0.35) 0,
    rgba(255, 227, 173, 0.35) 1px,
    transparent 1px,
    transparent 14px
  );
}

body.dice-screen-home::after {
  inset: -4%;
  opacity: 0.3;
  background:
    radial-gradient(circle at 50% 16%, rgba(203, 155, 76, 0.12), transparent 40%),
    radial-gradient(circle at 50% 24%, rgba(203, 155, 76, 0.08), transparent 48%);
  animation: dns-ambient-parallax 16s ease-in-out infinite alternate;
}

.dice-screen-home-main {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 128px 20px var(--dns-space-l);
}

.dice-hero,
.dice-section {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(203, 155, 76, 0.32);
  background:
    linear-gradient(160deg, rgba(255, 239, 206, 0.11), rgba(255, 239, 206, 0.03) 48%),
    radial-gradient(circle at 50% -40%, rgba(203, 155, 76, 0.1), transparent 58%),
    rgba(27, 21, 16, 0.86);
  box-shadow:
    0 14px 34px var(--dns-shadow-black),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.dice-hero::after,
.dice-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 243, 215, 0.08), rgba(255, 243, 215, 0) 35%),
    radial-gradient(circle at 50% 140%, rgba(0, 0, 0, 0.2), transparent 58%);
}

.dice-hero {
  text-align: center;
  padding: 44px 30px 38px;
  animation: dns-reveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dice-hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dice-hero-particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(203, 155, 76, 0.22);
  filter: blur(0.5px);
  animation: dns-particle-float 8s ease-in-out infinite;
}

.dice-hero-particles span:nth-child(1) { top: 22%; left: 14%; animation-delay: 0s; }
.dice-hero-particles span:nth-child(2) { top: 30%; left: 77%; animation-delay: 0.8s; }
.dice-hero-particles span:nth-child(3) { top: 52%; left: 10%; animation-delay: 1.6s; }
.dice-hero-particles span:nth-child(4) { top: 66%; left: 84%; animation-delay: 2.1s; }
.dice-hero-particles span:nth-child(5) { top: 16%; left: 48%; animation-delay: 2.8s; }
.dice-hero-particles span:nth-child(6) { top: 76%; left: 44%; animation-delay: 3.4s; }

.dice-hero-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(180px, 26vw, 300px);
  margin: 0 auto 10px;
  filter:
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 16px rgba(203, 155, 76, 0.26));
  animation: dns-logo-breathe 4.6s ease-in-out infinite;
}

.dice-hero-title {
  position: relative;
  z-index: 1;
  margin: 10px 0 12px;
  font-family: 'Cinzel', serif;
  font-size: clamp(1.7rem, 4.1vw, 2.7rem);
  line-height: 1.1;
  color: #f9ebc8;
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.45);
  color: #f3dca7;
  text-shadow:
    0 0 20px var(--dns-glow-gold),
    0 0 9px rgba(203, 155, 76, 0.25);
}

.dice-hero-subline {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 62ch;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #e8d7b3;
}

.dice-hero-actions,
.dice-section-actions {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dice-section {
  margin-top: var(--dns-space-m);
  padding: 30px 26px;
  animation: dns-reveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dice-section:nth-of-type(2) { animation-delay: 0.1s; }
.dice-section:nth-of-type(3) { animation-delay: 0.2s; }
.dice-section:nth-of-type(4) { animation-delay: 0.3s; }
.dice-section:nth-of-type(5) { animation-delay: 0.4s; }
.dice-section:nth-of-type(6) { animation-delay: 0.5s; }
.dice-section:nth-of-type(7) { animation-delay: 0.6s; }

.dice-section h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  color: #f6e5bf;
}

.dice-section p {
  position: relative;
  z-index: 1;
  max-width: 62ch;
  margin: 0.9rem auto 0;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 1.03rem;
  line-height: 1.55;
  color: #e4d2ad;
}

.dice-section-subline {
  margin-top: 0.5rem;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: #f1ddb4;
}

.dice-copy-stack p + p {
  margin-top: 0.75rem;
}

.dice-punchline {
  margin-top: 1rem;
  font-family: 'Cinzel', serif;
  font-size: 1.12rem;
  color: #f2dda9;
}

.dice-core-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 1rem;
}

.dice-core-card {
  border-radius: 12px;
  border: 1px solid rgba(203, 155, 76, 0.28);
  background:
    linear-gradient(150deg, rgba(255, 239, 206, 0.09), rgba(255, 239, 206, 0.02)),
    rgba(30, 23, 18, 0.82);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  padding: 1.6rem;
  transition: transform 0.16s ease-out, border-color 0.16s ease-out;
}

.dice-core-card h3 {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: 1.36rem;
  color: #f5e3bc;
}

.dice-core-card p {
  margin-top: 0.62rem;
  text-align: left;
  font-size: 1rem;
}

.dice-core-card:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(203, 155, 76, 0.44);
}

.dice-btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.03em;
  transition:
    transform 0.16s ease-out,
    background-color 0.16s ease-out,
    opacity 0.16s ease-out,
    box-shadow 0.16s ease-out,
    color 0.16s ease-out;
}

.dice-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.dice-btn:focus-visible {
  outline: 2px solid rgba(245, 230, 194, 0.95);
  outline-offset: 3px;
}

.dice-btn-primary {
  border: 1px solid rgba(203, 155, 76, 0.7);
  color: #141313;
  background: linear-gradient(180deg, #ddb46e, #cb9b4c);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), 0 0 0 rgba(203, 155, 76, 0);
}

.dice-btn-primary:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), 0 0 16px var(--dns-glow-gold);
}

.dice-btn-secondary {
  border: 1.5px solid rgba(92, 136, 153, 0.8);
  color: #b8d5df;
  background: rgba(20, 20, 19, 0.2);
}

.dice-btn-secondary:hover {
  background: rgba(92, 136, 153, 0.12);
  box-shadow: 0 0 14px var(--dns-glow-cyan);
}

.dice-btn-tertiary {
  border: 0;
  padding: 6px 2px;
  border-radius: 0;
  color: var(--dns-soft-sand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  opacity: 0.92;
}

.dice-btn-tertiary:hover {
  color: #f4d79a;
  opacity: 1;
  transform: translateY(-1px);
}

.dice-screen-home-footer {
  position: relative;
  z-index: 1;
  margin-top: var(--dns-space-s);
  margin-bottom: 36px;
  padding: 0 16px;
  display: flex;
  justify-content: center;
}

.dice-screen-home-footer-board {
  min-width: min(520px, calc(100vw - 32px));
  max-width: 920px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  align-items: center;
  padding: 20px 24px;
  border-radius: 14px;
  border: 1px solid rgba(203, 155, 76, 0.34);
  background:
    linear-gradient(150deg, rgba(255, 239, 206, 0.08), rgba(255, 239, 206, 0.02)),
    rgba(25, 19, 15, 0.86);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dice-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dice-footer-logo {
  width: 68px;
  height: auto;
  object-fit: contain;
}

.dice-footer-brand p {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #e6d6b5;
}

.dice-footer-nav,
.dice-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: center;
}

.dice-screen-home-footer-board a {
  color: #f4e3bc;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
}

.dice-screen-home-footer-board a:hover {
  color: #fff2d5;
  text-decoration: underline;
}

@keyframes dns-ambient-parallax {
  from { transform: translateY(0); }
  to { transform: translateY(14px); }
}

@keyframes dns-logo-breathe {
  0%, 100% {
    transform: scale(1);
    filter:
      drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45))
      drop-shadow(0 0 16px rgba(203, 155, 76, 0.22));
  }
  50% {
    transform: scale(1.02);
    filter:
      drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45))
      drop-shadow(0 0 20px rgba(203, 155, 76, 0.3));
  }
}

@keyframes dns-particle-float {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.16;
  }
  50% {
    transform: translateY(-5px);
    opacity: 0.3;
  }
}

@keyframes dns-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .dice-core-grid {
    grid-template-columns: 1fr;
  }

  .dice-screen-home-footer-board {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .dice-footer-brand {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .dice-screen-home-main {
    padding: 108px 16px 52px;
  }

  .dice-hero,
  .dice-section {
    padding: 24px 16px;
  }

  .dice-section {
    margin-top: var(--dns-space-s);
  }

  .dice-hero-title {
    font-size: clamp(1.42rem, 6.1vw, 2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
