/* Sense & Flow homepage-only four-dice navigation.
   All original pages, forms, payments and footer styling remain untouched. */
.sf-dice-home {
  background: #100b0a;
  color: #f7eddf;
  min-height: 100vh;
}
.sf-dice-home header {
  position: relative;
  z-index: 5;
  background: linear-gradient(180deg, #140c0a 0%, #140c0ab8 92%, #140c0a 100%);
  border-bottom: 1px solid rgba(194,145,69,.34);
}
.sf-dice-home .banner {
  padding: 14px 0 0;
}
.sf-dice-home .banner-logo {
  height: clamp(115px, 11vw, 163px);
  filter: drop-shadow(0 8px 20px rgba(129,67,18,.24));
}
.sf-dice-home .nav-wrap {
  padding-bottom: 13px;
}
.sf-dice-home .dice-home-main {
  overflow: hidden;
  position: relative;
  background: radial-gradient(ellipse at 50% 33%, rgba(102,49,23,.34), transparent 51%),
    radial-gradient(ellipse at 50% 100%, rgba(91,42,20,.22), transparent 50%), #100b0a;
}
.sf-dice-home .dice-home-main::before {
  content:"";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(227,154,73,.13) .45px,transparent .65px);
  background-size: 12px 12px;
  mask-image: linear-gradient(to bottom,transparent,#000 30%,#000 70%,transparent);
  opacity: .27;
}
.sf-dice-home .dice-home-stage {
  width: min(100%, 1040px);
  margin: 0 auto;
  position: relative;
  padding: clamp(16px, 3vw, 32px) clamp(16px,3vw,30px) clamp(42px,6vw,76px);
}
.sf-dice-home .dice-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  column-gap: clamp(28px, 5.3vw, 75px);
  row-gap: clamp(12px,2vw,28px);
  place-items: center;
}
.sf-dice-home .die-card {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 440px);
  display: grid;
  place-items: center;
  isolation: isolate;
  transition: transform .25s ease;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.25)) drop-shadow(0 0 13px rgba(216,136,53,.11));
}
@media (hover:hover) and (prefers-reduced-motion: no-preference) {
  .sf-dice-home .die-card:hover { transform: translateY(-4px); }
}
.sf-dice-home .die-shell,
.sf-dice-home .die-visual,
.sf-dice-home .die-facets {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.sf-dice-home .die-shell {
  z-index: -3;
  background: linear-gradient(125deg,#f9d17d 0%,#b37b26 24%,#f8d28b 52%,#765021 76%,#e8b969 100%);
}
.sf-dice-home .die-visual {
  z-index: -2;
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  background-size: cover;
  background-position: center;
}
.sf-dice-home .die-visual::after {
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(ellipse at center,rgba(14,9,8,.71) 1%,rgba(14,9,8,.52) 40%,rgba(11,8,7,.09) 90%),
    linear-gradient(to top,rgba(13,9,8,.33),transparent 37%);
}
.sf-dice-home .die-facets {
  z-index: -1;
  fill:none;
  stroke: #e2b66c;
  stroke-opacity: .43;
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}
.sf-dice-home .die-card--d20 .die-shell,
.sf-dice-home .die-card--d20 .die-visual {
  -webkit-clip-path:polygon(50% 2%, 93% 25%,93% 73%,50% 98%,7% 73%,7% 25%);
  clip-path:polygon(50% 2%, 93% 25%,93% 73%,50% 98%,7% 73%,7% 25%);
}
.sf-dice-home .die-card--d8 .die-shell,
.sf-dice-home .die-card--d8 .die-visual {
  -webkit-clip-path:polygon(50% 2%,98% 50%,50% 98%,2% 50%);
  clip-path:polygon(50% 2%,98% 50%,50% 98%,2% 50%);
}
.sf-dice-home .die-card--d6 .die-shell,
.sf-dice-home .die-card--d6 .die-visual {
  -webkit-clip-path:polygon(4% 4%,96% 4%,96% 96%,4% 96%);
  clip-path:polygon(4% 4%,96% 4%,96% 96%,4% 96%);
}
.sf-dice-home .die-card--d4 .die-shell,
.sf-dice-home .die-card--d4 .die-visual {
  -webkit-clip-path:polygon(50% 2%,98% 96%,2% 96%);
  clip-path:polygon(50% 2%,98% 96%,2% 96%);
}
.sf-dice-home .die-visual--d20 {background-image:url("sf-home-castle.webp");}
.sf-dice-home .die-visual--d8 {background-image:url("sf-home-tavern.webp");}
.sf-dice-home .die-visual--d6 {background-image:url("sf-home-letter.webp");}
.sf-dice-home .die-visual--d4 {background-image:url("sf-home-forest.webp");}
.sf-dice-home .die-content {
  position: absolute;
  z-index: 2;
  text-align:center;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap: clamp(13px,2vw,24px);
  width: 78%;
}
.sf-dice-home .die-content h2 {
  color: #fff3df;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(26px, 3vw, 43px);
  line-height: 1.04;
  letter-spacing: -.03em;
  text-shadow: 0 3px 10px #160e0b,0 0 15px #160e0b;
  margin:0;
  font-weight:700;
}
.sf-dice-home .die-heading-link {color:inherit;text-decoration:none;}
.sf-dice-home .die-heading-link:hover,
.sf-dice-home .die-heading-link:focus-visible {color:#ffe2ab;}
.sf-dice-home .die-actions {
  display:flex;
  width:100%;
  align-items:center;
  flex-direction:column;
  gap: 10px;
}
.sf-dice-home .die-button {
  position:relative;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-height:43px;
  min-width: 155px;
  width: min(100%, 255px);
  padding: 9px 16px;
  text-align:center;
  color:#f6e9d1;
  border: 1.5px solid #d6a64d;
  border-radius: 5px;
  background:rgba(19,12,9,.82);
  box-shadow: 0 2px 12px rgba(0,0,0,.31);
  text-decoration:none;
  text-transform:uppercase;
  letter-spacing:.045em;
  line-height:1.2;
  font-weight:700;
  font-size: clamp(11px,1.1vw,14px);
  transition: background .18s ease, color .18s ease,transform .18s ease;
}
.sf-dice-home .die-button--primary {
  color: #20130a;
  border: 1px solid #f3c66b;
  background: linear-gradient(180deg,#f2cd78,#cf923c);
  text-shadow: 0 1px 0 rgba(255,241,191,.35);
}
.sf-dice-home .die-button:hover,
.sf-dice-home .die-button:focus-visible {
  color:#1f140b;
  background: #ffe2a0;
  text-shadow:none;
  transform:translateY(-2px);
}
.sf-dice-home .die-button:focus-visible,
.sf-dice-home .die-heading-link:focus-visible,
.sf-dice-home a:focus-visible {
  outline:3px solid #fff4bd;
  outline-offset:3px;
}
.sf-dice-home .die-content--d20 {top: 32%; bottom: 21%;gap:20px;}
.sf-dice-home .die-content--d20 .die-actions {gap:10px;}
.sf-dice-home .die-content--d8 {top: 29%; bottom: 27%;gap:25px;width: 72%;}
.sf-dice-home .die-content--d8 .die-button {max-width:170px;}
.sf-dice-home .die-content--d6 {top: 18%;bottom: 17%;gap:27px;}
.sf-dice-home .die-content--d6 h2 {font-size:clamp(27px,3.1vw,45px);}
.sf-dice-home .die-content--d6 .die-button {max-width:190px;}
.sf-dice-home .die-content--d4 {width:63%;top:34%;bottom: 11%;gap:11px;justify-content:flex-start;}
.sf-dice-home .die-content--d4 h2 {font-size:clamp(27px,2.95vw,41px);}
.sf-dice-home .die-actions--socials {gap:6px;width:82%;max-width:165px;}
.sf-dice-home .die-button--social {
  min-height: 33px;
  min-width: 0;
  width: 100%;
  padding: 4px 10px 4px 8px;
  background:rgba(20,14,11,.91);
  justify-content:flex-start;
  font-size:clamp(10px,1vw,13px);
  letter-spacing:.065em;
  border-radius: 5px;
  gap:8px;
}
.sf-dice-home .social-glyph {
  display:inline-flex;
  width:20px;
  height:20px;
  flex-shrink:0;
  align-items:center;
  justify-content:center;
  font-size:22px;
  line-height:1;
  color:#fce4ba;
}
.sf-dice-home .social-glyph--fb {font-family: Arial, sans-serif;font-size:24px;font-weight:bold;transform:translateY(1px);}
.sf-dice-home .skip-to-content {position:absolute;top:-100px;left:12px;z-index:50;background:#edcb84;color:#1d130a;padding:10px 18px;}
.sf-dice-home .skip-to-content:focus {top:8px;}
.sf-dice-home .visually-hidden {position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.sf-dice-home footer {border-top:1px solid rgba(198,148,72,.62);}
@media (max-width: 780px) {
  .sf-dice-home .banner {padding-top:7px;}
  .sf-dice-home .banner-logo {height: 116px;}
  .sf-dice-home .nav-wrap {padding-bottom:10px;}
  .sf-dice-home .dice-home-stage {padding:20px 16px 40px;}
  .sf-dice-home .dice-grid {grid-template-columns:1fr;row-gap:12px;}
  .sf-dice-home .die-card {width:min(100%,410px);}
  .sf-dice-home .die-content h2 {font-size:clamp(29px,8vw,43px);}
  .sf-dice-home .die-button {font-size:clamp(11px,3vw,14px);}
  .sf-dice-home .die-content--d4 h2 {font-size:clamp(31px,8vw,41px);}
  .sf-dice-home .die-button--social {font-size:12px;}
}
@media (max-width: 380px) {
  .sf-dice-home .dice-home-stage {padding-inline:6px;}
  .sf-dice-home .die-card{width:min(100%,350px);min-height:345px;}
  .sf-dice-home .die-content--d4 {top:32%; bottom:9%;}
  .sf-dice-home .die-actions--socials {gap:4px;}
  .sf-dice-home .die-button--social {min-height:31px;}
}
@media (prefers-reduced-motion:reduce) {
 .sf-dice-home .die-card,.sf-dice-home .die-button {transition:none;}
}
