.dice-intro {
  grid-template-columns: 0.88fr 1.12fr;
  gap: 48px;
}
.dice-experience {
  min-width: 0;
  min-height: 600px;
}
.dice-experience #demo-dice {
  width: 100%;
}
.dice-table {
  --die-edge: #eddb98;
  --die-face: #23594a;
  --die-deep: #103c32;
  --die-ink: #ffe7a2;
  position: relative;
  width: 100%;
  height: 342px;
  isolation: isolate;
  border: 1px solid #bfae73;
  border-radius: 28px;
  background: radial-gradient(
    ellipse at 48% 40%,
    #34594a,
    #17382f 65%,
    #102b24
  );
  box-shadow:
    inset 0 0 0 5px #f3e2ba0b,
    inset 0 0 0 7px #bd9b6245,
    inset 0 0 48px #0004,
    0 25px 40px -28px #122c2570;
  overflow: visible;
}
.felt-texture {
  position: absolute;
  inset: 9px;
  border: 1px solid #bba3743b;
  border-radius: 20px;
  background-image:
    repeating-linear-gradient(
      30deg,
      #fff2 0px,
      transparent 0.5px,
      transparent 3px
    ),
    repeating-linear-gradient(
      140deg,
      #0002 0px,
      transparent 1px,
      transparent 4px
    );
  background-size:
    5px 5px,
    7px 7px;
  opacity: 0.18;
  pointer-events: none;
}
.table-orbit {
  position: absolute;
  width: 210px;
  height: 210px;
  border: 1px solid #c3ac7e22;
  left: calc(50% - 105px);
  top: 55px;
  border-radius: 50%;
  transform: rotateX(55deg);
}
.table-orbit:before,
.table-orbit:after {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px solid #c3ac7e22;
  border-radius: 50%;
}
.table-orbit:after {
  inset: -18px;
}
.table-wordmark {
  position: absolute;
  left: 28px;
  top: 23px;
  color: #e1cc9766;
  letter-spacing: 3px;
  font:
    12px Georgia,
    serif;
}
.table-wordmark span {
  display: block;
  letter-spacing: 1.5px;
  font-size: 6px;
  margin-top: 5px;
}
.table-inscription {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  font:
    11px Batang,
    serif;
  letter-spacing: 4px;
  color: #c3b0805c;
}
.table-edge {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  box-shadow:
    0 6px 0 #122f2690,
    0 8px 0 #bda97850;
  pointer-events: none;
}
.dice-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  perspective: 1100px;
  perspective-origin: 50% 35%;
  transform-style: preserve-3d;
}
.die-slot {
  position: absolute;
  left: 18%;
  top: 48%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  --inspect-x: 0deg;
  --inspect-y: 0deg;
  --mx: 50%;
  --my: 35%;
  --throw-drift: -26px;
  --throw-forward: 0px;
  --throw-height: 105px;
  --throw-x: 1080deg;
  --throw-y: 720deg;
  --throw-z: -1080deg;
}
.die-1 {
  left: 50%;
  --throw-drift: 19px;
}
.die-2 {
  left: 82%;
  --throw-drift: -15px;
}
.die-0 {
  --die-edge: #e6c785;
  --die-face: #ad8252;
  --die-deep: #65482e;
  --die-ink: #fcecc0;
}
.die-2 {
  --die-edge: #d8dfd4;
  --die-face: #496e70;
  --die-deep: #193b43;
  --die-ink: #deebcf;
}
.die-flight,
.die-tumble,
.die-orient {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}
.die-flight {
  transform: translateY(0);
  z-index: 2;
}
.die-inspect {
  position: absolute;
  pointer-events: auto;
  left: -80px;
  top: -90px;
  width: 160px;
  height: 170px;
  transform-style: preserve-3d;
  transform: rotateX(var(--inspect-x)) rotateY(var(--inspect-y));
  transition: transform 0.7s cubic-bezier(0.18, 0.8, 0.22, 1.12);
  cursor: grab;
  touch-action: none;
  outline-offset: 10px;
  user-select: none;
  -webkit-user-select: none;
  border-radius: 30px;
}
.die-inspect:focus-visible {
  outline: 1px solid #ebdb9d;
}
.die-inspect.held {
  cursor: grabbing;
  transition: transform 0.055s linear;
}
.die-tumble {
  left: 80px;
  top: 90px;
}
.die-orient {
  transition: transform 0.3s;
}
.die-face {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: linear-gradient(
    130deg,
    #fff4bc,
    var(--die-edge) 25%,
    #726544 50%,
    var(--die-edge) 73%,
    #eee5b7
  );
  filter: brightness(var(--face-light));
  box-shadow: inset 0 0 3px #fff8;
}
.die-face.triangle {
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.die-face.square {
  border-radius: 5px;
}
.die-enamel {
  position: absolute;
  inset: 2px;
  background:
    radial-gradient(ellipse at 30% 20%, #ffffff24, transparent 60%),
    linear-gradient(145deg, var(--die-face), var(--die-deep));
  border-radius: 3px;
}
.triangle .die-enamel {
  clip-path: polygon(50% 2%, 97.5% 98.5%, 2.5% 98.5%);
  inset: 0;
}
.die-enamel:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      #e5ddb610 0,
      transparent 0.8px,
      transparent 2.5px
    ),
    radial-gradient(ellipse at 10% 70%, #b2e9c520, transparent 60%);
  opacity: 0.6;
}
.die-face-content {
  position: absolute;
  inset: 0;
  color: var(--die-ink);
  text-shadow:
    0 1px 0 #ffffcd44,
    0 -1px 1px #001c1a,
    0 2px 3px #0006;
  z-index: 2;
}
.die-trigram {
  position: absolute;
  top: 47%;
  left: 50%;
  transform: translateX(-50%);
  font:
    38px "Segoe UI Symbol",
    "Malgun Gothic",
    sans-serif;
  line-height: 1;
  filter: drop-shadow(0 0 4px #e1d49333);
}
.die-trigram-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10%;
  text-align: center;
  font:
    12px Batang,
    serif;
  letter-spacing: 1px;
}
.die-face-number {
  position: absolute;
  right: 7px;
  bottom: 5px;
  font:
    8px Georgia,
    serif;
  opacity: 0.6;
}
.pips {
  position: absolute;
  inset: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 7px;
}
.pip {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 65%, #ffeead, #d4b36b);
  box-shadow:
    inset 1px 2px 2px #50391f,
    inset -1px -1px 1px #fff1b9,
    0 1px 1px #d7b976;
}
.die-foil,
.die-specular {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.die-foil {
  background: repeating-linear-gradient(
    118deg,
    #8bebc8a8 0%,
    #b4bbffb3 12%,
    #f1bbe4c3 23%,
    #ffe8a9a8 35%,
    #a7ecbda8 48%
  );
  background-size: 350% 350%;
  background-position: var(--mx) var(--my);
  mix-blend-mode: screen;
  opacity: calc(var(--shine) * 0.27);
  mask-image: linear-gradient(
    130deg,
    transparent 15%,
    #0007 35%,
    #000 50%,
    transparent 80%
  );
  transition: background-position 0.09s;
}
.die-specular {
  background:
    linear-gradient(
      130deg,
      transparent 15%,
      #fffbe766 23%,
      #fffff315 29%,
      transparent 36%
    ),
    radial-gradient(ellipse at var(--mx) var(--my), #efffe868, transparent 67%);
  background-size:
    280% 280%,
    100% 100%;
  background-position:
    var(--mx) var(--my),
    center;
  mix-blend-mode: screen;
  opacity: calc(var(--shine) * 0.7);
  transition: background-position 0.09s;
}
.die-shadow {
  position: absolute;
  width: 120px;
  height: 40px;
  left: -60px;
  top: 69px;
  background: radial-gradient(
    ellipse,
    #020f0ccb 0%,
    #0007 30%,
    transparent 68%
  );
  transform: rotate(-8deg);
  filter: blur(4px);
  pointer-events: none;
}
.dice-labels {
  position: absolute;
  inset: auto 2% 51px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  pointer-events: none;
}
.dice-labels .die-caption {
  position: static;
  width: auto;
  text-align: center;
  line-height: 1.5;
  color: #eee0bc;
}
.dice-labels .die-caption > span,
.dice-labels .die-caption b {
  font:
    14px/1.5 "Malgun Gothic",
    sans-serif;
  color: #d8dfcb;
  letter-spacing: 0;
}
.dice-labels .die-caption b {
  margin-left: 4px;
}
.dice-labels .die-caption strong {
  display: block;
  font:
    16px/1.5 Batang,
    serif;
  letter-spacing: 0;
  margin-top: 5px;
  color: #ffedc2;
}
.rolling-caption strong {
  opacity: 0.85;
}
.landed-caption {
  animation: landed-caption 750ms ease-out both;
}
@keyframes landed-caption {
  from {
    text-shadow: 0 0 14px #ffe6a5;
    transform: translateY(3px);
  }
  to {
    transform: none;
  }
}
.just-landed.landed-0 .die-0 .result-face .die-specular,
.just-landed.landed-1 .die-1 .result-face .die-specular,
.just-landed.landed-2 .die-2 .result-face .die-specular {
  animation: landing-light 650ms ease-out both;
}
@keyframes landing-light {
  from {
    opacity: 0.8;
  }
  to {
    opacity: calc(var(--shine) * 0.35);
  }
}
.is-rolling .die-inspect {
  pointer-events: none;
}
.throwing .die-flight {
  animation: die-flight var(--roll-ms, 2100ms) linear both;
  will-change: transform;
}
.throwing .die-tumble {
  animation: die-tumble var(--roll-ms, 2100ms) linear both;
  will-change: transform;
}
.throwing .die-shadow {
  animation: die-shadow var(--roll-ms, 2100ms) linear both;
}
.throwing .die-foil,
.throwing .die-specular {
  animation: die-shine var(--roll-ms, 2100ms) linear both;
}
.throwing .die-inspect {
  transform: rotateX(0deg) rotateY(0deg);
}
/* Contact points match CONTACTS in dice.mjs: sound, bounce and shadow share one timeline. */
.die-slot[data-flick] {
  --launch-x: calc(var(--throw-drift) * 0.5);
  --launch-y: calc(var(--throw-forward) * 0.5 - var(--throw-height) * 0.5);
  --launch-z: 65px;
  --launch-easing: cubic-bezier(0.1, 0.75, 0.2, 1);
  --kick-x: calc(var(--throw-x) * 0.25);
  --kick-y: calc(var(--throw-y) * 0.25);
  --kick-z: calc(var(--throw-z) * 0.25);
}
@keyframes die-flight {
  0% {
    transform: translate3d(0, 0, 0);
    animation-timing-function: var(--launch-easing, linear);
  }
  12% {
    transform: translate3d(var(--launch-x, -5px), var(--launch-y, 4px), var(--launch-z, -4px));
    animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1);
  }
  30% {
    transform: translate3d(
      var(--throw-drift),
      calc(var(--throw-forward) - var(--throw-height)),
      90px
    );
    animation-timing-function: cubic-bezier(0.5, 0, 0.8, 0.5);
  }
  58% {
    transform: translate3d(calc(var(--throw-drift) * 0.32), calc(var(--throw-forward) * 0.32), 0);
    animation-timing-function: ease-out;
  }
  67% {
    transform: translate3d(calc(var(--throw-drift) * 0.18), calc(var(--throw-forward) * 0.18 - 29px), 10px);
    animation-timing-function: ease-in;
  }
  78% {
    transform: translate3d(calc(var(--throw-drift) * 0.08), calc(var(--throw-forward) * 0.08), 0);
    animation-timing-function: ease-out;
  }
  84% {
    transform: translate3d(calc(var(--throw-drift) * 0.03), calc(var(--throw-forward) * 0.03 - 9px), 3px);
    animation-timing-function: ease-in;
  }
  92% {
    transform: translate3d(1px, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}
@keyframes die-tumble {
  0% {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
  12% {
    transform: rotateX(var(--kick-x, -25deg)) rotateY(var(--kick-y, 18deg)) rotateZ(var(--kick-z, -7deg));
  }
  58% {
    transform: rotateX(calc(var(--throw-x) - 110deg))
      rotateY(calc(var(--throw-y) - 60deg))
      rotateZ(calc(var(--throw-z) - 42deg));
  }
  78% {
    transform: rotateX(calc(var(--throw-x) - 18deg))
      rotateY(calc(var(--throw-y) - 11deg)) rotateZ(calc(var(--throw-z) - 9deg));
  }
  92% {
    transform: rotateX(calc(var(--throw-x) + 3deg))
      rotateY(calc(var(--throw-y) + 2deg)) rotateZ(calc(var(--throw-z) + 2deg));
  }
  100% {
    transform: rotateX(var(--throw-x)) rotateY(var(--throw-y))
      rotateZ(var(--throw-z));
  }
}
@keyframes die-shadow {
  0%,
  92%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  30% {
    transform: translate3d(var(--throw-drift), var(--throw-forward), 0) scale(1.6);
    opacity: 0.16;
  }
  58% {
    transform: translate3d(calc(var(--throw-drift) * 0.32), calc(var(--throw-forward) * 0.32), 0) scale(1);
    opacity: 0.85;
  }
  67% {
    transform: translate3d(calc(var(--throw-drift) * 0.18), calc(var(--throw-forward) * 0.18), 0) scale(1.2);
    opacity: 0.45;
  }
  78% {
    transform: translate3d(calc(var(--throw-drift) * 0.08), calc(var(--throw-forward) * 0.08), 0) scale(1);
    opacity: 0.85;
  }
  84% {
    transform: translate3d(calc(var(--throw-drift) * 0.03), calc(var(--throw-forward) * 0.03), 0) scale(1.08);
    opacity: 0.68;
  }
}
@keyframes die-shine {
  0% {
    background-position: 15% 20%;
    opacity: calc(var(--shine) * 0.25);
  }
  35% {
    background-position: 90% 80%;
    opacity: calc(var(--shine) * 0.6);
  }
  65% {
    background-position: 10% 50%;
  }
  100% {
    background-position: 50% 35%;
  }
}
.dice-order {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 29px;
  font-size: 0.75rem;
  color: #6c7f60;
}
.dice-order i {
  font-style: normal;
  color: #b0b99d;
}
.demo-throw {
  margin-top: 19px;
  min-width: 280px;
  font-size: 0.875rem;
  padding: 12px 20px;
  min-height: 48px;
}
.demo-result {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: #718266;
  text-align: center;
  min-height: 26px;
}
.dice-experience .experience-controls {
  margin-top: 7px;
}
.dice-experience .sample-note {
  font-size: 0.6875rem;
}
.dice-ritual {
  max-width: 840px;
  margin: 8px auto 40px;
}
.dice-ritual .dice-table {
  height: 390px;
}
.dice-ritual .dice-stage {
  perspective: 1200px;
}
.dice-ritual .die-slot {
  transform: scale(1.14);
}
.dice-steps {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 0 29px;
  gap: 36px;
}
.dice-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: #939d88;
}
.dice-steps b {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  font-weight: normal;
  font-size: 0.75rem;
  border: 1px solid #cbd3bf;
  border-radius: 50%;
}
.dice-steps .done {
  color: #718264;
}
.dice-steps .done b {
  background: #e9efdf;
  color: #536f45;
}
.dice-steps .current {
  color: #2e5d40;
}
.dice-steps .current b {
  background: #2b573e;
  color: #fff;
  border-color: #2b573e;
}
.cast-action {
  text-align: center;
  padding-top: 23px;
}
.cast-action .ritual-button {
  min-width: 335px;
}
.cast-action .muted {
  font-size: 0.875rem;
  margin-top: 0;
}
.dice-ritual .experience-controls {
  margin-top: 0;
}
.result-dice {
  max-width: 700px;
  margin: 10px auto 40px;
}
.result-dice .experience-controls {
  margin-top: 23px;
}
.hex-composition {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 70px;
  max-width: 850px;
  margin: 0 auto 38px;
  padding: 27px 0 20px;
  border-top: 1px solid var(--line);
}
.hex-composition > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hex-composition .eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.hex-composition .hex-lines {
  width: 80px;
  gap: 7px;
}
.hex-composition .hex-line i {
  background: #647953;
}
.hex-composition .moving i {
  background: #a98045;
}
.hex-composition .moving:after {
  color: #a98045;
}
.hex-composition h2 {
  font-size: 1.4rem;
  margin: 16px 0 4px;
}
.hex-composition p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
}
.composition-change > span {
  font-size: 1.7rem;
  color: #8e9b7d;
}
.composition-change small {
  font-size: 0.75rem;
  color: #899476;
  margin-top: 8px;
}
.dice-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
}
.dice-guide > div {
  position: sticky;
  top: 50px;
  align-self: start;
}
.dice-guide .dice-table {
  margin-top: 40px;
}
.dice-hex-detail > h2 {
  text-align: center;
}
.dice-hex-detail > .eyebrow {
  text-align: center;
}
.dice-hex-detail .dice-table {
  max-width: 650px;
  margin: 28px auto 34px;
}
.dice-hex-detail > h3 {
  font:
    1.25rem Batang,
    serif;
}
.dice-hex-detail > p {
  max-width: 680px;
  margin-inline: auto;
}
.ask-aside {
  width: 100%;
}
.ask-aside .dice-table {
  height: 300px;
}
.ask-aside .die-slot {
  transform: scale(0.68);
}
.ask-aside .table-wordmark {
  left: 22px;
  font-size: 10px;
}
.ask-aside .table-inscription {
  font-size: 9px;
  letter-spacing: 2px;
  bottom: 24px;
}
.ask-aside .small-guide {
  margin-top: 34px;
}
.ask-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 65px;
}
[data-theme="moon"] .dice-table {
  --die-face: #4b5579;
  --die-deep: #202e49;
  --die-edge: #c7d7df;
  --die-ink: #e5e9d6;
}
[data-theme="moon"] .die-0 {
  --die-face: #8b8d94;
  --die-deep: #55596d;
  --die-edge: #e1e1df;
  --die-ink: #fff6d9;
}
[data-theme="amber"] .dice-table {
  --die-face: #886642;
  --die-deep: #49372d;
  --die-edge: #eace8c;
  --die-ink: #ffe2a4;
}
[data-theme="amber"] .die-2 {
  --die-face: #556553;
  --die-deep: #2e4436;
  --die-edge: #d6cb9f;
  --die-ink: #eee4bb;
}
[data-motion="reduced"] .die-flight,
[data-motion="reduced"] .die-tumble,
[data-motion="reduced"] .die-shadow,
[data-motion="reduced"] .die-foil,
[data-motion="reduced"] .die-specular {
  animation: none !important;
}
[data-motion="reduced"] .die-inspect {
  transform: none !important;
  transition: none;
}
[data-motion="reduced"] .die-orient {
  transition: none;
}
@media (max-width: 1100px) {
  .dice-intro {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 35px;
  }
  .dice-table {
    height: 325px;
  }
  .die-slot {
    transform: scale(0.85);
  }
  .dice-guide {
    gap: 30px;
  }
  .ask-layout {
    gap: 35px;
    grid-template-columns: 1fr 290px;
  }
  .ask-aside .die-slot {
    transform: scale(0.59);
  }
  .dice-steps {
    gap: 20px;
  }
  .dice-steps li {
    font-size: 0.75rem;
  }
}
@media (max-width: 780px) {
  .dice-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .dice-experience {
    min-height: 0;
    width: 100%;
  }
  .dice-table {
    height: 293px;
    border-radius: 22px;
  }
  .table-edge {
    border-radius: 22px;
  }
  .table-wordmark {
    font-size: 10px;
    top: 20px;
    left: 22px;
  }
  .table-wordmark span {
    font-size: 5px;
  }
  .table-inscription {
    font-size: 9px;
    letter-spacing: 2px;
    bottom: 20px;
  }
  .die-slot {
    transform: scale(0.66);
    top: 47%;
  }
  .die-0 {
    left: 18%;
  }
  .die-2 {
    left: 82%;
  }
  .dice-order {
    font-size: 0.6875rem;
    gap: 6px;
    margin-top: 24px;
  }
  .demo-throw {
    font-size: 0.8125rem;
    min-width: 260px;
    margin-top: 17px;
  }
  .demo-result {
    font-size: 0.75rem;
    line-height: 1.8;
    margin-top: 13px;
    min-height: 28px;
  }
  .dice-experience .sample-note {
    font-size: 0.625rem;
  }
  .dice-experience .experience-label {
    font-size: 0.5625rem;
  }
  .dice-steps {
    gap: 12px;
    margin: 0 0 22px;
  }
  .dice-steps li {
    flex-direction: column;
    gap: 6px;
    font-size: 0.625rem;
    flex: 1;
  }
  .dice-steps b {
    width: 25px;
    height: 25px;
  }
  .dice-ritual {
    margin-top: 0;
  }
  .dice-ritual .dice-table {
    height: 325px;
  }
  .dice-ritual .die-slot {
    transform: scale(0.7);
    top: 46%;
  }
  .cast-action {
    padding-top: 18px;
  }
  .cast-action .ritual-button {
    min-width: 0;
    width: 100%;
    font-size: 0.8125rem;
    gap: 10px;
  }
  .cast-action .muted {
    font-size: 0.75rem;
    line-height: 1.8;
  }
  .result-dice {
    margin-top: 0;
    margin-bottom: 28px;
  }
  .hex-composition {
    gap: 27px;
    margin-bottom: 24px;
    padding-top: 22px;
  }
  .hex-composition .eyebrow {
    font-size: 0.625rem;
  }
  .hex-composition .hex-lines {
    width: 64px;
    gap: 6px;
  }
  .hex-composition .hex-line {
    height: 4px;
  }
  .hex-composition h2 {
    font-size: 1.2rem;
  }
  .hex-composition p {
    font-size: 0.6875rem;
  }
  .composition-change > span {
    font-size: 1.2rem;
  }
  .composition-change small {
    font-size: 0.625rem;
    white-space: nowrap;
  }
  .dice-guide {
    display: block;
  }
  .dice-guide > div {
    position: static;
    margin-bottom: 40px;
  }
  .dice-hex-detail .dice-table {
    margin: 20px -5px 30px;
    width: calc(100% + 10px);
    height: 273px;
  }
  .dice-hex-detail .die-slot {
    transform: scale(0.57);
  }
  .dice-hex-detail .table-inscription {
    bottom: 18px;
  }
  .dice-hex-detail h2 {
    font-size: 1.6rem;
  }
  .ask-layout {
    display: block;
  }
}

/* Text and controls stay at readable sizes independently of the CSS 3D scale. */
.dice-labels .die-caption {
  position: static;
  width: auto;
  text-align: center;
  line-height: 1.5;
  color: #eee0bc;
}
.dice-labels .die-caption > span,
.dice-labels .die-caption b {
  font-size: 14px;
}
.dice-labels .die-caption strong {
  font-size: 16px;
}
.dice-steps li {
  font-size: 14px;
  color: #596650;
}
.dice-order,
.demo-result,
.dice-experience .sample-note {
  font-size: 14px;
  color: #53634e;
}
.step-explanation {
  text-align: center;
  margin: -8px 0 24px;
  color: #53634e;
}
.assembly {
  display: grid;
  grid-template-columns: 1fr 150px;
  align-items: center;
  gap: 24px;
  max-width: 510px;
  margin: 32px auto 18px;
  padding: 24px;
  background: #eeeee3;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.assembly-key {
  display: grid;
  gap: 36px;
  font-size: 14px;
}
.assembly-key span:last-child {
  color: #725728;
}
.assembly-lines {
  display: grid;
  gap: 8px;
  padding-right: 36px;
}
.assembly-line {
  position: relative;
  display: flex;
  gap: 8px;
  height: 9px;
  animation: assemble 500ms var(--line-delay) both;
}
.assembly-line i {
  background: var(--green);
  flex: 1;
}
.assembly-line.yang {
  gap: 0;
}
.assembly-line.lower i {
  background: #92713a;
}
.assembly-line.changing {
  outline: 1px solid #755020;
  outline-offset: 3px;
}
.assembly-line b {
  position: absolute;
  left: calc(100% + 9px);
  top: -7px;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}
.assembly figcaption {
  grid-column: 1/-1;
  display: grid;
  gap: 6px;
  text-align: center;
}
.assembly figcaption span {
  font-size: 14px;
}
@keyframes assemble {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
[data-motion="reduced"] .assembly-line,
[data-motion="reduced"] .landed-caption,
[data-motion="reduced"] .result-face .die-specular {
  animation: none !important;
}
@media (max-width: 500px) {
  .dice-labels {
    bottom: 43px;
  }
  .dice-labels .die-caption strong {
    font-size: 14px;
  }
  .assembly {
    grid-template-columns: 1fr 128px;
    gap: 12px;
    padding: 20px 14px;
  }
  .dice-steps {
    gap: 8px;
  }
  .dice-steps li span {
    text-align: center;
  }
  .demo-throw {
    min-width: 0;
    max-width: 100%;
  }
}
