@font-face {
  font-family: Owners;
  src: url("../assets/fonts/owners-bold.otf");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Owners;
  src: url("../assets/fonts/owners-black.otf");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Space;
  src: url("../assets/fonts/SpaceMono-Regular.ttf");
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 25px;
}

body {
  margin: 0;
  background: #111;
  color: #fefefe;
  font-family: Space, monospace;
  font-size: 14px;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid #7437d1;
  outline-offset: 6px;
}

.wrap {
  width: min(1200px, 100% - 100px);
  margin: auto;
}

.hero {
  position: relative;
  color: #111;
  background: #d9dad2 url("../assets/images/background.jpg") center/cover;
  min-height: 850px;
  overflow: hidden;
}

.nav {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  width: 145px;
  height: auto;
}

.nav > div {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 12px;
}

.nav-cta {
  border: 1px solid #111;
  border-radius: 6px;
  padding: 10px 17px;
}

.nav-cta span {
  margin-left: 24px;
}

.hero-title {
  text-align: center;
  padding-top: 36px;
}

.hero h1 {
  font: 900 clamp(55px, 7.6vw, 108px)/0.95 Owners, sans-serif;
  letter-spacing: normal;
  margin: 0 0 24px;
}

.hero-title p {
  font-size: 16px;
  line-height: 1.6;
}

.dice-play {
  text-align: center;
  position: relative;
}

.dice-table {
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: center;
  height: 310px;
  perspective: 800px;
}

.die, .mini-die {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 12%;
  padding: 18%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #fff, #e4e4df);
  border-radius: 20%;
  box-shadow: inset -6px -8px 0 #bfc0b7, inset 3px 3px 0 #fff, 12px 25px 25px rgba(17, 17, 17, 0.2);
  transform: rotate(-14deg);
}

.die {
  width: 150px;
  padding: 26px;
}

.die:nth-child(2) {
  transform: rotate(16deg) translateY(17px);
}

.pip {
  background: #111;
  border-radius: 50%;
  box-shadow: inset 1px 2px 2px rgba(0, 0, 0, 0.4);
}

.empty {
  visibility: hidden;
}

.roll-button {
  cursor: pointer;
  background: #111;
  color: #ddf619;
  border: 0;
  border-radius: 7px;
  font: 700 20px/normal Owners, sans-serif;
  padding: 17px 29px;
  min-width: 190px;
  transition: transform 0.2s;
}

.roll-button:hover {
  transform: translateY(-3px);
}

.roll-button span {
  margin-left: 30px;
}

.roll-button:disabled {
  cursor: wait;
}

.roll-caption {
  font-size: 11px;
  min-height: 20px;
  margin-top: 15px;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 50px;
  padding-bottom: 48px;
  font-size: 11px;
}

.hero-bottom a span {
  margin-left: 18px;
}

.section {
  padding: 120px 0;
}

h2 {
  font: 900 clamp(36px, 4.9vw, 60px)/1.02 Owners, sans-serif;
  letter-spacing: normal;
  margin: 0 0 32px;
}

h2 em {
  font-style: normal;
  color: #ddf619;
}

h3 {
  font: 700 25px/1.2 Owners, sans-serif;
  margin: 0 0 15px;
}

p {
  margin: 0 0 24px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}

.intro {
  position: relative;
}

.reverse:before, .reverse:after {
  content: "";
  position: absolute;
  top: -40px;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle at 100% 0, transparent 40px, #111 41px);
}

.reverse:before {
  left: 0;
}

.reverse:after {
  right: 0;
  transform: scaleX(-1);
}

.intro-detail {
  padding-top: 5px;
  color: #b8b8b4;
}

.lead {
  font: 700 28px/1.25 Owners, sans-serif;
  color: #fefefe;
}

.score-example {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1882352941);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1882352941);
  padding: 25px 0;
  margin: 32px 0 12px;
  gap: 10px;
}

.score-example small {
  display: block;
  font-size: 9px;
  color: #adada7;
}

.score-example strong {
  font-family: Space, monospace;
  font-weight: 400;
  font-size: 34px;
  color: #fff;
}

.score-example .score-total strong {
  color: #ddf619;
}

.fine {
  font-size: 10px;
}

.upgrades {
  background: #1b1b1a;
  border-top: 1px solid rgba(255, 255, 255, 0.062745098);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 70px;
  margin-bottom: 52px;
}

.section-heading h2 {
  flex: 1;
  margin: 0;
}

.section-heading > p {
  flex: 1;
  max-width: 410px;
  color: #b8b8b4;
  margin: 0;
}

.upgrade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.upgrade-card {
  padding: 22px 28px 30px;
  border: 1px solid rgba(255, 255, 255, 0.2078431373);
  border-radius: 15px;
  background: #111;
}

.upgrade-card p {
  color: #b8b8b4;
  font-size: 12px;
  margin: 0;
}

.upgrade-card h3 {
  font-size: 23px;
}

.upgrade-art {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mini-die {
  width: 85px;
  padding: 15px;
  background: #a2a8ac;
  box-shadow: inset -4px -5px 0 #747b80, 10px 15px 25px rgba(0, 0, 0, 0.4);
  gap: 12%;
}

.art-note {
  font: 700 58px/normal Owners, sans-serif;
  position: absolute;
  right: 17%;
  bottom: 28px;
  color: #a2a8ac;
  transform: rotate(9deg);
}

.multiplier {
  font: 700 98px/normal Owners, sans-serif;
  color: #ddf619;
}

.multiplier span {
  font-size: 45px;
  margin-left: 10px;
}

.wild {
  font: normal 150px/1 Owners, sans-serif;
  color: #a179ec;
}

.deck-row {
  border-top: 1px solid rgba(255, 255, 255, 0.1450980392);
  margin-top: 55px;
  padding-top: 55px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  align-items: center;
  gap: 65px;
}

.deck-row p {
  color: #b8b8b4;
  max-width: 630px;
  margin: 0;
}

.deck-visual {
  display: flex;
  justify-content: center;
  padding: 25px 0;
}

.deck-card {
  width: 110px;
  height: 145px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddf619;
  border-radius: 10px;
  font-size: 65px;
  line-height: 1;
  background: #292c16;
  box-shadow: 5px 5px 0 #111, 6px 6px 0 #ddf619;
  transform: rotate(-12deg);
}

.deck-card span {
  font-size: 10px;
  margin-top: 15px;
}

.deck-card + .deck-card {
  color: #bd9aef;
  border-color: #bd9aef;
  background: #2b203d;
  box-shadow: 5px 5px 0 #111, 6px 6px 0 #bd9aef;
  transform: rotate(12deg);
  margin-left: -10px;
}

.journey p {
  color: #b8b8b4;
  max-width: 490px;
}

.challenge-board {
  align-self: center;
  background: #20201e;
  border: 1px solid rgba(255, 255, 255, 0.1450980392);
  padding: 25px;
  border-radius: 20px;
  transform: rotate(2deg);
}

.board-top {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-bottom: 22px;
  color: #ddf619;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.board-grid > div {
  border: 1px solid #fefefe;
  border-radius: 9px;
  text-align: center;
  font: 700 42px/normal Owners, sans-serif;
  padding: 14px 0;
  color: #ddf619;
}

.board-grid small {
  display: block;
  font: normal 9px/normal Space, monospace;
  color: #fefefe;
  margin-top: 8px;
}

.board-grid .locked {
  border-color: #7437d1;
}

.board-grid .disabled {
  color: #777;
  border-style: dashed;
  border-color: #555;
  background: repeating-linear-gradient(135deg, transparent, transparent 6px, rgba(255, 255, 255, 0.0117647059) 6px, rgba(255, 255, 255, 0.0117647059) 7px);
}

.board-grid .disabled small {
  color: #777;
}

.difficulty {
  display: flex;
  gap: 5px;
  align-items: center;
  margin: 27px 0 17px;
  font-size: 8px;
}

.difficulty span:first-child {
  margin-right: auto;
}

.difficulty span:last-child {
  margin-left: auto;
}

.difficulty i {
  width: 15px;
  height: 5px;
  background: #ddf619;
  border-radius: 2px;
}

.difficulty i:nth-last-of-type(1) {
  background: rgba(255, 255, 255, 0.1882352941);
}

.challenge-board p {
  font-size: 10px;
  margin: 0;
}

.download {
  text-align: center;
  background: #ddf619;
  color: #111;
  border-radius: 32px 32px 0 0;
}

.download img {
  max-width: 60%;
  height: auto;
}

.download h2 {
  margin: 32px 0 22px;
  font-size: clamp(60px, 7.5vw, 108px);
}

.download p {
  font-size: 14px;
}

.download .fine {
  margin: 13px 0 0;
  font-size: 11px;
}

.app-store {
  display: inline-block;
  line-height: 0;
}

.app-store img {
  width: 180px;
  max-width: 100%;
  height: 60px;
}

.app-store[aria-disabled=true] {
  cursor: default;
}

.asrequired-credit {
  display: block;
  background: #111;
  color: #fefefe;
  padding: 26px 0;
}

.asrequired-credit-inner {
  width: min(1200px, 100% - 100px);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  left: 10px;
  top: -100px;
  background: #ddf619;
  color: #111;
  z-index: 10;
  padding: 12px;
}

.skip:focus {
  top: 10px;
}

.rolling {
  animation: tumble 0.6s ease-in-out;
}

@keyframes tumble {
  0% {
    transform: rotate(-14deg);
  }
  30% {
    transform: translateY(-35px) rotate(90deg);
  }
  70% {
    transform: translateY(-10px) rotate(210deg);
  }
  100% {
    transform: rotate(346deg);
  }
}
@media (min-width: 1600px) {
  .hero {
    min-height: 920px;
  }
  .hero-title {
    padding-top: 60px;
  }
  .dice-table {
    height: 350px;
  }
}
@media (max-width: 800px) {
  .wrap, .asrequired-credit-inner {
    width: calc(100% - 44px);
  }
  .nav {
    height: 80px;
  }
  .nav > div {
    gap: 16px;
  }
  .nav > div > a:not(.nav-cta) {
    display: none;
  }
  .nav-logo {
    width: 125px;
  }
  .hero {
    min-height: 760px;
  }
  .hero-title {
    padding-top: 46px;
  }
  .hero h1 {
    font-size: clamp(55px, 11vw, 84px);
    max-width: 600px;
    margin: 0 auto 24px;
  }
  .hero-title p {
    font-size: 13px;
  }
  .dice-table {
    height: 280px;
    gap: 36px;
  }
  .die {
    width: 120px;
    padding: 22px;
  }
  .hero-bottom {
    font-size: 9px;
    margin-top: 40px;
    gap: 15px;
  }
  .section {
    padding: 80px 0;
  }
  .two-col {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  h2 {
    font-size: 48px;
  }
  .section-heading {
    display: block;
  }
  .section-heading > p {
    margin-top: 25px;
    max-width: 100%;
  }
  .upgrade-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .upgrade-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    column-gap: 20px;
    padding: 22px;
  }
  .upgrade-art {
    height: 120px;
    grid-row: 1/3;
  }
  .upgrade-card h3 {
    align-self: end;
  }
  .upgrade-card p {
    align-self: start;
  }
  .art-note {
    font-size: 38px;
    right: 0;
    bottom: 5px;
  }
  .mini-die {
    width: 65px;
    padding: 12px;
  }
  .multiplier {
    font-size: 62px;
  }
  .multiplier span {
    font-size: 27px;
  }
  .wild {
    font-size: 110px;
  }
  .deck-row {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .deck-row > div:last-child {
    text-align: center;
  }
  .challenge-board {
    max-width: 500px;
    width: 100%;
    margin-top: 20px;
    transform: rotate(1deg);
  }
  .download h2 {
    font-size: 64px;
  }
  .asrequired-credit-inner {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *:before, *:after {
    animation: none !important;
    transition: none !important;
  }
}
/* Six fixed faces rotate together, so the visible result belongs to the cube. */
.dice-table {
  gap: 58px;
  overflow: visible;
}

.dice-pair {
  display: flex;
  gap: 70px;
  align-items: center;
  perspective: 1000px;
}

.dice-table .die {
  --die-size:112px;
  display: block;
  width: var(--die-size);
  height: var(--die-size);
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  aspect-ratio: 1;
  transform: rotateX(18deg) rotateY(-14deg) rotateZ(8deg);
  transform-style: preserve-3d;
  position: relative;
  isolation: auto;
}

.dice-table .die:nth-child(2) {
  transform: rotateX(15deg) rotateY(13deg) rotateZ(8deg);
}

.dice-cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}

.dice-face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template: repeat(3, 1fr)/repeat(3, 1fr);
  gap: 16%;
  padding: 18%;
  background: linear-gradient(145deg, #fff 8%, #fafbf9 55%, #e9ebe8);
  border: 0;
  border-radius: 6%;
  backface-visibility: hidden;
  box-shadow: inset 0 0 2px 1px #fff, inset -3px -3px 7px rgba(162, 168, 172, 0.2509803922);
}

.dice-face .pip {
  background: radial-gradient(ellipse at 65% 75%, #343638 0%, #191b1d 45%, #08090a 80%);
  box-shadow: inset 1px 2px 3px rgba(0, 0, 0, 0.7333333333), 0 1px 1px #fff;
  position: relative;
}

.dice-face .pip:not(.empty)::after {
  content: "";
  position: absolute;
  top: 12%;
  right: 14%;
  width: 25%;
  height: 15%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3960784314);
  filter: blur(0.6px);
}

/* Shadows live on their own plane;
a filter on the die flattens its 3D faces. */
.dice-table .die::before {
  content: "";
  position: absolute;
  inset: 5%;
  background: rgba(17, 17, 17, 0.2);
  border-radius: 20%;
  transform: translate3d(8px, 28px, calc(var(--die-size) * -0.8));
  filter: blur(12px);
  pointer-events: none;
}

.face-1 {
  transform: translateZ(calc(var(--die-size) / 2));
}

.face-2 {
  transform: rotateY(90deg) translateZ(calc(var(--die-size) / 2));
  background: #e1e2de;
}

.face-3 {
  transform: rotateX(90deg) translateZ(calc(var(--die-size) / 2));
  background: #fff;
}

.face-4 {
  transform: rotateX(-90deg) translateZ(calc(var(--die-size) / 2));
  background: #dadbd6;
}

.face-5 {
  transform: rotateY(-90deg) translateZ(calc(var(--die-size) / 2));
  background: #e6e7e2;
}

.face-6 {
  transform: rotateY(180deg) translateZ(calc(var(--die-size) / 2));
  background: #eeeeea;
}

.target-space {
  width: 100px;
  aspect-ratio: 0.94;
  background: rgba(254, 254, 254, 0.8588235294);
  backdrop-filter: blur(12px);
  border: 3px solid transparent;
  border-radius: 18px;
  color: #111;
  position: relative;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.target-number {
  font: 700 44px/normal Owners, sans-serif;
}

.target-space small {
  position: absolute;
  bottom: 9px;
  left: 0;
  right: 0;
  font: normal 8px/normal Space, monospace;
  letter-spacing: 0.05em;
}

.target-space:hover {
  border-color: rgba(17, 17, 17, 0.3333333333);
}

.target-space.matched {
  background: #ddf619;
  border-color: #111;
  box-shadow: 0 0 32px rgba(221, 246, 25, 0.6);
}

.target-space:disabled {
  cursor: wait;
}

.shuffle-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
}

.shuffle-button {
  background: #ddf619;
  border: 0;
  border-radius: 7px;
  padding: 14px 22px;
  color: #111;
  font: 700 19px/normal Owners, sans-serif;
  cursor: pointer;
}

.shuffle-button span {
  margin-left: 24px;
}

.shuffle-controls p {
  font-size: 11px;
  color: #b8b8b4;
  margin: 0;
}

.shuffled-art {
  font: 700 74px/normal Owners, sans-serif;
  color: #ddf619;
}

.silver .shuffled-art {
  color: #a2a8ac;
}

.gold .shuffled-art {
  color: #f2b81f;
}

.red .shuffled-art {
  color: #ed4545;
}

.purple .shuffled-art {
  color: #a179ec;
}

.blue .shuffled-art {
  color: #60a3ff;
}

.upgrade-grid {
  align-items: stretch;
}

.upgrade-card p {
  min-height: 85px;
}

.shuffled-art {
  height: 200px;
}

dialog {
  color: #111;
  background: #e4e5dc;
  border: 0;
  border-radius: 24px;
  padding: 38px;
  width: min(480px, 100% - 32px);
  box-shadow: 0 25px 100px rgba(0, 0, 0, 0.5333333333);
}

dialog::backdrop {
  background: rgba(17, 17, 17, 0.6);
  backdrop-filter: blur(6px);
}

dialog h2 {
  font-weight: 700;
  font-size: 34px;
  margin: 14px 0 15px;
}

dialog p {
  font-size: 12px;
}

.modal-close {
  position: absolute;
  right: 15px;
  top: 9px;
  border: 0;
  background: none;
  font-size: 30px;
  cursor: pointer;
}

.number-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.number-options button {
  aspect-ratio: 1;
  background: #fefefe;
  border: 2px solid transparent;
  border-radius: 12px;
  font: 700 28px/normal Owners, sans-serif;
  color: #111;
  cursor: pointer;
}

.number-options button:hover, .number-options button[aria-pressed=true] {
  background: #ddf619;
  border-color: #111;
}

@media (max-width: 800px) {
  .dice-table {
    gap: 28px;
  }
  .dice-pair {
    gap: 40px;
  }
  .dice-table .die {
    --die-size:85px ;
  }
  .target-space {
    width: 75px;
  }
  .target-number {
    font-size: 34px;
  }
  .upgrade-card p {
    min-height: 0;
  }
  .shuffled-art {
    height: 120px;
    font-size: 46px;
  }
  .shuffle-controls {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 520px) {
  .dice-table {
    gap: 18px;
    height: 270px;
  }
  .dice-pair {
    gap: 27px;
  }
  .dice-table .die {
    --die-size:62px ;
  }
  .target-space {
    width: 62px;
    border-radius: 14px;
  }
  .target-number {
    font-size: 30px;
  }
  .target-space small {
    font-size: 7px;
    bottom: 6px;
  }
  .hero .roll-caption {
    font-size: 10px;
    padding: 0 15px;
  }
}
/* The scoring example pairs the real app screen with its roll breakdown. */
.scoring-layout {
  align-items: center;
  gap: 75px;
}

.game-copy > p:not(.lead) {
  color: #b8b8b4;
}

.game-copy > p:last-child {
  margin-bottom: 0;
}

.scoring-demo {
  min-width: 0;
}

.game-phone {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 871/1800;
  margin: 0 auto 34px;
  isolation: isolate;
  filter: drop-shadow(0 22px 25px rgba(0, 0, 0, 0.3333333333));
}

.game-phone-screen {
  position: absolute;
  inset: 1.7% 4%;
  overflow: hidden;
  border-radius: 14%/6.8%;
  background: #111;
}

.game-phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.game-phone-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.scoring-demo .score-example {
  margin-top: 0;
}

.score-cash {
  border-left: 1px solid rgba(255, 255, 255, 0.1882352941);
  padding-left: 16px;
}

.score-example .score-cash strong {
  color: #f2b81f;
  font-size: 28px;
}

@media (max-width: 1050px) and (min-width: 801px) {
  .scoring-layout {
    gap: 35px;
  }
  .scoring-demo .score-example strong {
    font-size: 27px;
  }
  .scoring-demo .score-example small {
    font-size: 8px;
  }
  .score-cash {
    padding-left: 10px;
  }
}
@media (max-width: 800px) {
  .scoring-layout {
    gap: 45px;
  }
  .game-phone {
    width: min(75%, 280px);
  }
  .scoring-demo {
    width: 100%;
    max-width: 520px;
    margin: auto;
  }
  .scoring-demo .score-example strong {
    font-size: 28px;
  }
  .scoring-demo .score-example small {
    font-size: 8px;
  }
  .score-cash {
    padding-left: 10px;
  }
  .score-example .score-cash strong {
    font-size: 24px;
  }
}
/* The same semibold SF Symbols used by OddswellIcons.UpgradeIcon in iOS. */
.app-upgrade-icon {
  display: block;
  width: 140px;
  height: 140px;
  background: currentColor;
  mask-image: var(--upgrade-icon);
  -webkit-mask-image: var(--upgrade-icon);
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

.app-upgrade-art {
  color: #ddf619;
}

.silver .app-upgrade-art {
  color: #a2a8ac;
}

.gold .app-upgrade-art {
  color: #f2b81f;
}

.red .app-upgrade-art {
  color: #d81d1d;
}

.purple .app-upgrade-art {
  color: #8b4de8;
}

.blue .app-upgrade-art {
  color: #2377e8;
}

@media (max-width: 800px) {
  .app-upgrade-icon {
    width: 100px;
    height: 100px;
  }
}
/* Shared label and value rows keep the entire scoring equation aligned. */
.scoring-demo .score-example {
  align-items: stretch;
}

.scoring-demo .score-example > div {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
}

.scoring-demo .score-example small {
  line-height: 1.5;
  margin-bottom: 8px;
}

.scoring-demo .score-example strong {
  display: block;
  font-size: 34px;
  line-height: 1.35;
  font-weight: 400;
  white-space: nowrap;
}

.scoring-demo .score-example .score-operator {
  display: flex;
  align-items: center;
  align-self: end;
  font: 400 28px/1.35 Space, monospace;
  height: 45.9px;
}

@media (max-width: 1050px) and (min-width: 801px) {
  .scoring-demo .score-example strong {
    font-size: 27px;
  }
  .scoring-demo .score-example .score-operator {
    font-size: 24px;
    height: 36.45px;
  }
}
@media (max-width: 800px) {
  .scoring-demo .score-example strong {
    font-size: 28px;
  }
  .scoring-demo .score-example .score-operator {
    font-size: 24px;
    height: 37.8px;
  }
}
/* Oversized board spaces tuck behind the dice at every breakpoint. */
.dice-table {
  gap: 0;
}

.dice-table .target-space {
  width: 190px;
  border-radius: 26px;
  z-index: 0;
}

.dice-table .target-number {
  font-size: 66px;
}

.dice-pair {
  position: relative;
  z-index: 1;
  margin-inline: -24px;
  pointer-events: none;
}

@media (max-width: 800px) {
  .dice-table .target-space {
    width: 145px;
    border-radius: 23px;
  }
  .dice-table .target-number {
    font-size: 54px;
  }
  .dice-pair {
    margin-inline: -22px;
  }
}
@media (max-width: 520px) {
  .dice-table .target-space {
    width: 112px;
    border-radius: 20px;
  }
  .dice-table .target-number {
    font-size: 44px;
  }
  .dice-pair {
    margin-inline: -29px;
  }
}
/* A consistent white finish avoids lighting changes when a roll settles. */
.dice-cube .dice-face {
  background: linear-gradient(135deg, #fff 0%, #f7f8f5 42%, #e1e4de 100%);
  box-shadow: inset 1px 1px 2px #fff, inset -3px -3px 7px rgba(168, 175, 163, 0.3019607843);
}

/* A quiet bevel separates adjoining planes without changing their lighting on landing. */
.dice-cube .dice-face::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(182, 189, 179, 0.2666666667);
  border-top-color: #fff;
  border-left-color: rgba(255, 255, 255, 0.8);
}

.dice-core-face {
  position: absolute;
  inset: 0;
  background: #fff;
  backface-visibility: hidden;
  border-radius: 2%;
  box-shadow: none;
}

.dice-core-face.face-1 {
  transform: translateZ(calc(var(--die-size) / 2 - 1px));
}

.dice-core-face.face-2 {
  transform: rotateY(90deg) translateZ(calc(var(--die-size) / 2 - 1px));
}

.dice-core-face.face-3 {
  transform: rotateX(90deg) translateZ(calc(var(--die-size) / 2 - 1px));
}

.dice-core-face.face-4 {
  transform: rotateX(-90deg) translateZ(calc(var(--die-size) / 2 - 1px));
}

.dice-core-face.face-5 {
  transform: rotateY(-90deg) translateZ(calc(var(--die-size) / 2 - 1px));
}

.dice-core-face.face-6 {
  transform: rotateY(180deg) translateZ(calc(var(--die-size) / 2 - 1px));
}

/* App-style selection halo: reveal only after each die finishes landing. */
.dice-table .die::after {
  content: "";
  position: absolute;
  inset: -54%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, #f9ffd4 0%, rgba(238, 255, 130, 0.6) 27%, rgba(221, 246, 25, 0.6509803922) 42%, rgba(221, 246, 25, 0.2509803922) 57%, rgba(221, 246, 25, 0) 72%);
  transform: translateZ(calc(var(--die-size) * -0.75));
  opacity: 0;
  transition: opacity 120ms ease-out;
}

.dice-table .die.landed::after {
  opacity: 1;
  transition: opacity 550ms ease-out;
}

/* Frosted board tiles and the app's outlined empty state. */
.dice-table .target-space {
  background: rgba(254, 254, 254, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.dice-table .target-space.empty-space {
  background: rgba(254, 254, 254, 0.08);
  border: 3px solid #fefefe;
}

.dice-table .target-space.empty-space:hover {
  background: rgba(254, 254, 254, 0.2);
}

.dice-table .target-space.matched {
  background: #ddf619;
  border-color: #111;
}

.roll-button, .shuffle-button {
  border-radius: 999px;
}

.roll-button:disabled {
  background: #333;
  color: #b8b8b4;
  cursor: default;
  transform: none;
}

.hero-store {
  margin: 22px 0 0;
  line-height: 0;
}

.hero-store .app-store img {
  width: 150px;
  height: auto;
}

/* Feedback can wrap without changing the hero's flow height. */
.dice-play .roll-caption {
  position: relative;
  height: 54px;
  min-height: 54px;
  max-height: 54px;
  max-width: 520px;
  margin: 15px auto 0;
  padding: 0 18px;
  line-height: 18px;
  overflow: auto;
  text-wrap: balance;
}

@media (max-width: 520px) {
  .hero-store {
    margin-top: 20px;
  }
  .hero-store .app-store img {
    width: 140px;
  }
  .dice-play .roll-caption {
    height: 72px;
    min-height: 72px;
    max-height: 72px;
  }
}
.upgrade-tier {
  display: inline-block;
  margin-top: 22px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1882352941);
  border-radius: 999px;
  color: #b8b8b4;
  font: normal 10px/1.5 Space, monospace;
}

@media (max-width: 800px) {
  .upgrade-card .upgrade-art {
    grid-row: 1/4;
  }
  .upgrade-tier {
    grid-column: 2;
    justify-self: start;
    margin-top: 16px;
  }
}
/* Browser-local hero game. */
.demo-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0 18px;
}

.demo-actions .roll-button {
  min-width: 180px;
}

.demo-actions .upgrade-button {
  background: #ddf619;
  color: #111;
  border: 1px solid #111;
}

.demo-actions .roll-button:disabled {
  opacity: 0.23;
  cursor: default;
}

.demo-score {
  margin: 0 auto 24px;
  width: min(360px, 100% - 44px);
  border: 2px solid #111;
  border-radius: 18px;
  background: rgba(254, 254, 254, 0.4392156863);
  backdrop-filter: blur(16px);
  padding: 15px 24px;
  color: #111;
}

.demo-score > span {
  display: block;
  font: normal 11px/normal Space, monospace;
  text-transform: uppercase;
}

.demo-score strong {
  display: block;
  font: 700 46px/1.3 Owners, sans-serif;
  overflow-wrap: anywhere;
}

.demo-score small {
  display: block;
  font: normal 10px/1.6 Space, monospace;
}

.dice-table .target-space.locked-space {
  cursor: default;
}

.demo-multiplier {
  position: absolute;
  top: 10px;
  left: 12px;
  font: normal 12px/normal Space, monospace;
}

.dice-cube .dice-face.silver-face {
  background: linear-gradient(135deg, #e9edf0, #a2a8ac 50%, #777e84);
  box-shadow: inset 1px 1px 3px #fff, inset -2px -2px 5px rgba(74, 81, 89, 0.3333333333);
}

.demo-market {
  width: min(660px, 100% - 24px);
  max-height: 90dvh;
  overflow: auto;
  background: rgba(32, 33, 30, 0.9607843137);
  color: #fefefe;
  border: 1px solid rgba(255, 255, 255, 0.2509803922);
  padding: 36px;
  border-radius: 25px;
  backdrop-filter: blur(24px);
}

.demo-market h2 {
  font: 700 34px/1.1 Owners, sans-serif;
  margin: 14px 30px 24px 0;
}

.demo-market .modal-close {
  color: #fff;
}

.demo-market p {
  font: normal 12px/1.8 Space, monospace;
  color: #b8b8b4;
  margin-bottom: 22px;
}

.demo-market .market-tier {
  font: normal 12px/normal Space, monospace;
  text-transform: uppercase;
  margin: 30px 0 16px;
  color: #fefefe;
}

.market-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 16px;
  margin: 0 0 14px;
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.0274509804);
  color: #fefefe;
  border: 1px solid rgba(255, 255, 255, 0.3137254902);
  border-radius: 15px;
  cursor: pointer;
}

.market-card:hover {
  border-color: #ddf619;
  background: rgba(221, 246, 25, 0.0392156863);
}

.market-card .app-upgrade-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  color: #ddf619;
}

.market-card-copy {
  display: block;
  flex: 1;
  min-width: 0;
}

.market-card-copy strong {
  display: block;
  font: 700 21px/1.2 Owners, sans-serif;
  margin-bottom: 9px;
}

.market-card-copy > span {
  display: block;
  font: normal 11px/1.8 Space, monospace;
  color: #b8b8b4;
}

.market-use {
  background: #ddf619;
  color: #111;
  font: 700 14px/normal Owners, sans-serif;
  padding: 11px 15px;
  border-radius: 999px;
}

.market-action {
  background: #ddf619;
  color: #111;
  border: 0;
  border-radius: 999px;
  font: 700 19px/normal Owners, sans-serif;
  padding: 14px 23px;
  cursor: pointer;
  margin-top: 12px;
}

.market-back {
  border: 0;
  background: none;
  color: #ddf619;
  padding: 0;
  font: normal 12px/normal Space, monospace;
  cursor: pointer;
}

.market-board {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 20px 0;
}

.market-board .target-space {
  width: 140px;
  background: rgba(254, 254, 254, 0.8784313725);
  cursor: pointer;
}

.market-board .target-space small {
  top: 10px;
  bottom: auto;
}

.editor-dice {
  height: 240px;
  padding: 20px 0;
  gap: 0;
}

.editor-dice .dice-pair {
  pointer-events: auto;
  margin: 0;
  gap: 85px;
}

.editor-dice .die {
  --die-size:90px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.editor-dice .die:active {
  cursor: grabbing;
}

.editor-dice .dice-face {
  cursor: inherit;
}

.editor-face-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.face-group h3 {
  font: 700 18px/normal Owners, sans-serif;
  margin-bottom: 12px;
}

.face-choices {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

.face-choice {
  font: 700 18px/normal Owners, sans-serif;
  padding: 8px 0;
  border: 1px solid rgba(255, 255, 255, 0.3137254902);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.0392156863);
  color: #fff;
  cursor: pointer;
}

.face-choice[aria-pressed=true] {
  background: #ddf619;
  color: #111;
  border-color: #ddf619;
}

.face-confirmation {
  border-top: 1px solid rgba(255, 255, 255, 0.1882352941);
  margin-top: 25px;
  padding-top: 20px;
  min-height: 80px;
}

.face-confirmation p {
  margin-bottom: 10px;
}

.face-value-label {
  font: normal 12px/normal Space, monospace;
  margin-right: 10px;
}

.face-confirmation select {
  background: #fefefe;
  color: #111;
  border: 0;
  border-radius: 5px;
  padding: 8px 16px;
  margin-right: 12px;
  font: normal 16px/normal Space, monospace;
}

@media (max-width: 520px) {
  .demo-actions {
    gap: 10px;
  }
  .demo-actions .roll-button {
    min-width: 0;
    font-size: 17px;
    padding: 14px 21px;
  }
  .demo-market {
    padding: 28px 18px;
  }
  .market-card {
    gap: 10px;
    padding: 16px 12px;
  }
  .market-card .app-upgrade-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }
  .market-use {
    font-size: 12px;
    padding: 8px;
  }
  .market-card-copy strong {
    font-size: 19px;
  }
  .editor-dice .dice-pair {
    gap: 58px;
  }
  .editor-dice .die {
    --die-size:76px ;
  }
  .editor-face-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .market-board .target-space {
    width: 115px;
  }
}
/* Locked spaces have no hover treatment. */
.dice-table .target-space.locked-space:hover {
  background: rgba(254, 254, 254, 0.65);
  border-color: transparent;
}

.dice-table .target-space.locked-space.matched:hover {
  background: #ddf619;
  border-color: #111;
}

.editor-dice .dice-face.pending-face {
  outline: 2px solid #ddf619;
  outline-offset: -3px;
}

.face-value-options {
  grid-template-columns: repeat(6, 1fr);
  margin: 12px 0 18px;
}

.demo-market .face-value-options button {
  background: #fefefe;
  color: #111;
}

.demo-market .face-value-options button:hover, .demo-market .face-value-options button[aria-pressed=true] {
  background: #ddf619;
  border-color: #111;
}

#dice {
  position: relative;
}

.heater-chip {
  position: absolute;
  left: calc(50% + 340px);
  top: calc(50% - 26px);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d81d1d;
  color: #fefefe;
  border: 2px solid #fefefe;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.2);
  font: 700 28px/1 Owners, sans-serif;
}

.heater-chip[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .heater-chip {
    left: auto;
    right: 20px;
    top: auto;
    bottom: 4px;
    width: 44px;
    height: 44px;
    font-size: 24px;
  }
}
.demo-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: min(520px, 100% - 44px);
  margin: 0 auto 24px;
}

.demo-stats .demo-score {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 15px 16px;
}

.demo-stats .demo-score strong {
  font-variant-numeric: tabular-nums;
}

.demo-actions .upgrade-button:disabled {
  background: #ddf619;
  color: #111;
}

@media (max-width: 520px) {
  .demo-stats {
    gap: 10px;
  }
  .demo-stats .demo-score strong {
    font-size: 38px;
  }
  .demo-stats .demo-score > span {
    font-size: 10px;
  }
}
/* Live values fit the blank stat boxes in the supplied screenshot. */
.game-phone-screen {
  container-type: inline-size;
}

.phone-count {
  position: absolute;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 2.1cqw;
  font: 400 5.1cqw/1 Space, monospace;
  color: #fefefe;
  pointer-events: none;
}

.phone-count-score {
  left: 5.65%;
  top: 72.45%;
  width: 42.6%;
  height: 5.5%;
}

.phone-count-cash {
  left: 24.4%;
  top: 82.25%;
  width: 28.2%;
  height: 4.4%;
  font-size: 4.2cqw;
}

.phone-count.counting {
  border-color: #ddf619;
  color: #ddf619;
}

.phone-count-score.target-cleared {
  background: #ddf619;
  border-color: #ddf619;
  color: #111;
}

.phone-replay {
  position: absolute;
  left: 5.65%;
  top: 88.9%;
  width: 88.7%;
  height: 7.25%;
  border: 0;
  border-radius: 999px;
  background: #ddf619;
  color: #111;
  font: 700 5.1cqw/1 Owners, sans-serif;
  cursor: pointer;
}

.phone-replay[hidden] {
  display: none;
}

.phone-replay:hover {
  background: #e8ff40;
}

.phone-replay:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Stage selection and difficulty cards echo the app's progression screens. */
.progression-layout {
  align-items: center;
  gap: 80px;
}

.progression-preview {
  min-width: 0;
}

.stage-preview {
  padding: 26px 26px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1450980392);
  border-radius: 22px;
  background: #161615;
}

.stage-preview > h3, .difficulty-preview > h3 {
  font: 700 24px/1.2 Owners, sans-serif;
  margin: 0 0 22px;
  text-align: center;
}

.stage-track {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0 0 24px;
}

.stage-track li {
  display: grid;
  place-items: center;
  width: 60px;
  aspect-ratio: 1;
  flex-shrink: 1;
  border: 2px solid #fefefe;
  border-radius: 50%;
  font: 700 30px/1 Owners, sans-serif;
  color: #fefefe;
}

.stage-track .complete {
  background: #ddf619;
  color: #111;
}

.stage-track .selected {
  background: #fefefe;
  color: #111;
  border: 4px solid #ddf619;
}

.stage-track .future {
  border-color: rgba(255, 255, 255, 0.1882352941);
  color: rgba(255, 255, 255, 0.3137254902);
}

.stage-preview-detail {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}

.stage-preview-detail h3 {
  margin: 0;
  font-size: 26px;
}

.stage-preview-detail > span {
  font: normal 10px/normal Space, monospace;
  text-transform: uppercase;
  color: #b8b8b4;
}

.stage-goal {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 20px;
}

.stage-goal > span {
  padding: 12px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2078431373);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.0235294118);
  font: normal 9px/normal Space, monospace;
  text-transform: uppercase;
  text-align: center;
  color: #b8b8b4;
}

.stage-goal strong {
  display: block;
  font: 700 30px/1.3 Owners, sans-serif;
  color: #fefefe;
  margin-top: 7px;
}

.journey .stage-goal p {
  font: 700 18px/1.35 Owners, sans-serif;
  margin: 0;
  color: #fefefe;
}

.difficulty-preview {
  padding-top: 30px;
}

.progress-difficulties {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.progress-difficulty-card {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1882352941);
  border-radius: 14px;
  background: #212120;
}

.progress-difficulty-card.current {
  border: 2px solid #ddf619;
  padding: 15px 17px;
}

.progress-status {
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  color: #aaa;
}

.current .progress-status {
  background: #ddf619;
  color: #111;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font: 700 18px/normal Owners, sans-serif;
}

.progress-difficulty-card h4 {
  font: normal 11px/1.4 Space, monospace;
  text-transform: uppercase;
  margin: 0 0 5px;
  font-weight: 400;
}

.journey .progress-difficulty-card p {
  font: normal 10px/1.65 Space, monospace;
  margin: 0;
  color: #aaa;
}

.journey .progress-unlock {
  font: normal 10px/1.7 Space, monospace;
  color: #ddf619;
  text-align: center;
  margin: 18px 0 0;
}

@media (max-width: 1050px) and (min-width: 801px) {
  .progression-layout {
    gap: 40px;
  }
  .stage-preview {
    padding: 22px 16px;
  }
  .stage-track {
    gap: 7px;
  }
  .stage-track li {
    font-size: 25px;
  }
  .stage-goal {
    grid-template-columns: 90px 1fr;
    gap: 12px;
  }
}
@media (max-width: 800px) {
  .progression-layout {
    gap: 40px;
  }
  .progression-preview {
    width: 100%;
    max-width: 500px;
    margin: auto;
  }
  .stage-track li {
    max-width: 65px;
  }
  .stage-preview {
    padding: 24px 18px;
  }
  .stage-goal {
    grid-template-columns: 95px 1fr;
    gap: 15px;
  }
}
/* A real stage screen anchors two scattered difficulty cards. */
.progression-collage {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px 0;
}

.progression-collage .stage-phone {
  width: 280px;
  flex-shrink: 0;
  margin: 0;
  transform: rotate(3deg);
}

.floating-difficulty {
  position: absolute;
  z-index: 3;
  width: 265px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
  background: rgba(36, 37, 35, 0.9607843137);
  backdrop-filter: blur(16px);
}

.floating-easy {
  top: 105px;
  right: -15px;
  transform: rotate(7deg);
}

.floating-medium {
  bottom: 95px;
  left: -28px;
  transform: rotate(-7deg);
}

@media (max-width: 1050px) and (min-width: 801px) {
  .progression-collage {
    min-height: 650px;
  }
  .progression-collage .stage-phone {
    width: 250px;
  }
  .floating-difficulty {
    width: 230px;
  }
  .floating-easy {
    right: -5px;
    top: 85px;
  }
  .floating-medium {
    left: -10px;
  }
}
@media (max-width: 800px) {
  .progression-collage {
    min-height: 650px;
    padding: 35px 0;
  }
  .progression-collage .stage-phone {
    width: 260px;
  }
  .floating-difficulty {
    width: 250px;
  }
  .floating-easy {
    right: 0;
    top: 90px;
  }
  .floating-medium {
    left: 0;
    bottom: 85px;
  }
}
@media (max-width: 400px) {
  .progression-collage .stage-phone {
    width: 240px;
  }
  .floating-difficulty {
    width: 225px;
  }
  .floating-easy {
    top: 95px;
  }
  .floating-medium {
    bottom: 105px;
  }
}
.progression-collage .stage-phone {
  transform: none;
}

.progression-collage {
  min-height: 760px;
}

.floating-easy {
  top: 55px;
  right: -10px;
  transform: rotate(6deg);
}

.floating-next {
  top: 225px;
  left: -30px;
  transform: rotate(-6deg);
}

.floating-medium {
  bottom: 205px;
  left: auto;
  right: -15px;
  transform: rotate(5deg);
}

.floating-hard {
  bottom: 40px;
  left: -20px;
  transform: rotate(-5deg);
}

@media (max-width: 1050px) and (min-width: 801px) {
  .floating-easy {
    right: 0;
  }
  .floating-next {
    left: -10px;
  }
  .floating-medium {
    right: 0;
  }
  .floating-hard {
    left: -5px;
  }
}
@media (max-width: 800px) {
  .progression-collage {
    min-height: 760px;
  }
  .floating-easy {
    right: 5px;
    top: 45px;
  }
  .floating-next {
    left: 5px;
    top: 215px;
  }
  .floating-medium {
    right: 5px;
    bottom: 200px;
    left: auto;
  }
  .floating-hard {
    left: 5px;
    bottom: 35px;
  }
}
/* Alternate cards behind and in front of the phone for a layered collage. */
.progression-collage {
  isolation: isolate;
}

.progression-collage .stage-phone {
  z-index: 2;
}

.progression-collage .floating-easy, .progression-collage .floating-medium {
  z-index: 3;
}

.progression-collage .floating-next, .progression-collage .floating-hard {
  z-index: 1;
}

/* App-style value tiles with arithmetic outside the boxes. */
.scoring-demo .score-example {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1.25fr) auto minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  border: 0;
  padding: 0;
  margin-bottom: 0;
}

.scoring-demo .score-example > div {
  min-width: 0;
  text-align: center;
}

.scoring-demo .score-example small {
  font-size: 9px;
  line-height: 1.5;
  white-space: nowrap;
  color: #aaa;
  margin-bottom: 10px;
}

.scoring-demo .score-example strong {
  display: grid;
  place-items: center;
  background: #3d3e39;
  border-radius: 10px;
  min-height: 60px;
  padding: 8px 7px;
  font: 400 28px/1.35 Space, monospace;
}

.scoring-demo .score-example .score-cash {
  padding: 0;
  border: 0;
}

.scoring-demo .score-example .score-cash strong {
  font-size: 28px;
}

.scoring-demo .score-example .score-operator {
  color: #888;
  height: 60px;
  font-size: 26px;
  justify-content: center;
}

@media (max-width: 1050px) and (min-width: 801px) {
  .scoring-demo .score-example {
    gap: 7px;
  }
  .scoring-demo .score-example small {
    font-size: 7px;
  }
  .scoring-demo .score-example strong, .scoring-demo .score-example .score-cash strong {
    font-size: 23px;
  }
  .scoring-demo .score-example .score-operator {
    font-size: 22px;
  }
}
@media (max-width: 520px) {
  .scoring-demo .score-example {
    gap: 6px;
  }
  .scoring-demo .score-example small {
    font-size: 7px;
  }
  .scoring-demo .score-example strong, .scoring-demo .score-example .score-cash strong {
    font-size: 22px;
    min-height: 54px;
    border-radius: 8px;
    padding: 8px 4px;
  }
  .scoring-demo .score-example .score-operator {
    height: 54px;
    font-size: 22px;
  }
}
.rules-header {
  background: #d9dad2 url("../assets/images/background.jpg") center/cover;
  color: #111;
  padding-bottom: 64px;
}
.rules-header h1 {
  font: 900 clamp(48px, 6vw, 80px)/1.02 Owners, sans-serif;
  letter-spacing: normal;
  margin: 35px 0 24px;
}
.rules-header h1 em {
  font-style: normal;
}
.rules-header p {
  max-width: 600px;
  font: normal 16px/1.75 Arial, Helvetica, sans-serif;
  margin-bottom: 0;
}

.rules-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 70px;
  align-items: start;
  padding-block: 70px 100px;
}

.rules-toc {
  position: sticky;
  top: 28px;
}
.rules-toc nav {
  display: grid;
  gap: 14px;
}
.rules-toc a {
  font: normal 11px/1.6 Space, monospace;
  color: #b8b8b4;
}
.rules-toc a:hover {
  color: #ddf619;
}

.rules-content {
  min-width: 0;
  max-width: 850px;
  font: normal 16px/1.75 Arial, Helvetica, sans-serif;
  color: #c6c6c0;
}
.rules-content > h2 {
  font: 900 40px/1.08 Owners, sans-serif;
  letter-spacing: normal;
  color: #ddf619;
  padding-top: 60px;
  margin: 0 0 25px;
  scroll-margin-top: 30px;
}
.rules-content > h2:first-child {
  padding-top: 0;
}
.rules-content h3 {
  font: 700 24px/1.25 Owners, sans-serif;
  color: #fefefe;
  margin: 30px 0 16px;
}
.rules-content p {
  margin-bottom: 20px;
}
.rules-content strong {
  color: #fefefe;
}
.rules-content ul {
  padding-left: 22px;
  margin: 0 0 24px;
}
.rules-content li {
  margin-bottom: 10px;
}
.rules-content a {
  color: #ddf619;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.rules-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0;
  font: normal 14px/1.7 Arial, Helvetica, sans-serif;
}
.rules-content th, .rules-content td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1450980392);
  text-align: left;
  vertical-align: top;
}
.rules-content th {
  color: #fefefe;
  font-weight: normal;
  background: rgba(255, 255, 255, 0.031372549);
}
.rules-content td:first-child {
  color: #fefefe;
}

.rules-equation, .rules-note {
  padding: 22px;
  background: rgba(255, 255, 255, 0.031372549);
  border: 1px solid rgba(255, 255, 255, 0.1882352941);
  border-radius: 14px;
  margin: 24px 0;
}

.rules-equation {
  color: #ddf619;
  font: normal 15px/1.8 Space, monospace;
}

.rules-note {
  border-left: 3px solid #ddf619;
}
.rules-note strong {
  display: block;
  margin-bottom: 10px;
}

.rules-table-wrap {
  overflow-x: auto;
}

.rules-catalog {
  display: grid;
  gap: 18px;
}

.rules-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.0235294118);
  border: 1px solid rgba(255, 255, 255, 0.1450980392);
  border-radius: 15px;
  scroll-margin-top: 25px;
}

.rules-card-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.rules-card-heading img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.rules-card-heading h3 {
  margin: 0;
  font: 700 22px/1.2 Owners, sans-serif;
  flex: 1;
}
.rules-card-heading > span {
  color: #111;
  background: #ddf619;
  border-radius: 999px;
  padding: 5px 12px;
  font: normal 12px/1.6 Space, monospace;
}

.rules-card p {
  margin-bottom: 12px;
}

.rules-card .rules-unlock {
  color: #ddf619;
  font: normal 10px/1.8 Space, monospace;
  margin: 0;
}

.rules-footer-link {
  padding-block: 25px 0;
  font: normal 12px/1.5 Space, monospace;
}

@media (max-width: 900px) {
  .rules-layout {
    grid-template-columns: 155px minmax(0, 1fr);
    gap: 35px;
  }
}
@media (max-width: 650px) {
  .rules-layout {
    display: block;
    padding-top: 35px;
  }
  .rules-toc {
    position: static;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1450980392);
  }
  .rules-toc nav {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .rules-content > h2 {
    font-size: 34px;
  }
  .rules-content th, .rules-content td {
    padding-inline: 8px;
  }
  .rules-card {
    padding: 19px;
  }
  .rules-card-heading {
    gap: 10px;
  }
  .rules-card-heading h3 {
    font-size: 20px;
  }
  .rules-header .nav > div > a {
    display: inline;
    font-size: 10px;
  }
}
.rules-body {
  position: relative;
  background: #111;
}

.rules-content .rules-heading-number {
  display: block;
  margin-bottom: 12px;
  font: normal 12px/1.5 Space, monospace;
  letter-spacing: 0.08em;
  color: #b8b8b4;
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding-block: 28px 0;
  font: normal 12px/1.6 Space, monospace;
}

.site-links a:hover {
  color: #ddf619;
}

.info-content {
  width: min(850px, 100% - 100px);
  padding-block: 65px 90px;
}

.info-content > h2 {
  font: 700 30px/1.2 Owners, sans-serif;
  color: #fefefe;
  padding-top: 30px;
}

.info-content > h2:first-child {
  padding-top: 0;
}

@media (max-width: 800px) {
  .info-content {
    width: calc(100% - 44px);
  }
  .site-links {
    gap: 14px 22px;
    font-size: 11px;
  }
}
.footer-brand {
  padding-top: 40px;
}

.footer-brand a {
  display: inline-block;
}

.footer-brand img {
  display: block;
  width: 180px;
  height: auto;
  filter: invert(1);
}

.footer-brand {
  text-align: center;
}

.footer-brand img {
  width: 125px;
}

.site-links {
  justify-content: center;
  text-align: center;
}

.download .cta-logo {
  width: 140px;
  height: auto;
}

.game-rules-link {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  margin-top: 4px;
  color: #ddf619;
  font: 700 19px/1.4 Owners, sans-serif;
}

.site-header-nav .nav-cta span {
  margin-left: 16px;
  font-family: Arial, sans-serif;
  font-size: 20px;
  line-height: 1;
}

.upgrade-grid .upgrade-card {
  --deck-accent:#ddf619;
  height: 480px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 120px 54px minmax(0, 1fr) 28px;
  gap: 14px;
  padding: 26px;
  border-color: var(--deck-accent);
}

.upgrade-grid .level-upgrade {
  --deck-accent:#bd9aef;
}

.upgrade-grid .upgrade-card .upgrade-art {
  grid-column: 1;
  grid-row: 1;
  height: 120px;
}

.upgrade-grid .upgrade-card h3 {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  align-self: center;
}

.upgrade-grid .upgrade-card p {
  grid-column: 1;
  grid-row: 3;
  min-height: 0;
  margin: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}

.upgrade-grid .upgrade-card .upgrade-tier {
  grid-column: 1;
  grid-row: 4;
  justify-self: start;
  align-self: center;
  margin: 0;
  border-color: var(--deck-accent);
  background: color-mix(in srgb, var(--deck-accent) 16%, transparent);
  color: var(--deck-accent);
}

.upgrade-grid .round-upgrade .app-upgrade-art {
  color: #ddf619;
}

@media (max-width: 800px) {
  .site-header-nav > div > .nav-rules {
    display: inline;
  }
  .site-header-nav {
    gap: 14px;
  }
  .hero .nav-logo {
    width: 110px;
  }
  .site-header-nav > div {
    gap: 14px;
    font-size: 11px;
  }
  .site-header-nav .nav-cta {
    padding: 9px 12px;
    white-space: nowrap;
  }
  .site-header-nav .nav-cta span {
    margin-left: 9px;
  }
  .upgrade-grid .upgrade-card {
    height: 360px;
    grid-template-columns: 90px minmax(0, 1fr);
    grid-template-rows: 54px minmax(0, 1fr) 28px;
    gap: 14px 18px;
    padding: 22px;
  }
  .upgrade-grid .upgrade-card .upgrade-art {
    grid-column: 1;
    grid-row: 1/4;
    height: 100%;
  }
  .upgrade-grid .upgrade-card h3 {
    grid-column: 2;
    grid-row: 1;
  }
  .upgrade-grid .upgrade-card p {
    grid-column: 2;
    grid-row: 2;
  }
  .upgrade-grid .upgrade-card .upgrade-tier {
    grid-column: 2;
    grid-row: 3;
  }
}
@media (max-width: 370px) {
  .hero .nav-logo {
    width: 90px;
  }
  .site-header-nav > div {
    gap: 10px;
  }
  .upgrade-grid .upgrade-card {
    grid-template-columns: 65px minmax(0, 1fr);
    gap: 12px;
  }
  .upgrade-grid .app-upgrade-icon {
    width: 75px;
    height: 75px;
  }
}
.game-copy > p:not(.lead),
.section-heading > p,
.deck-row p,
.journey .progression-layout > div:first-child > p,
.download .wrap > p:not(.fine) {
  font: normal 16px/1.8 Space, monospace;
}

.upgrade-grid .upgrade-card p {
  font: normal 14px/1.8 Space, monospace;
}

.market-card-copy > span {
  font: normal 13px/1.8 Space, monospace;
}

.journey .progress-difficulty-card p {
  font: normal 12px/1.7 Space, monospace;
}

@media (max-width: 800px) {
  .hero-title p {
    font: normal 15px/1.7 Space, monospace;
  }
  .game-copy > p:not(.lead),
  .section-heading > p,
  .deck-row p,
  .journey .progression-layout > div:first-child > p,
  .download .wrap > p:not(.fine) {
    font-size: 15px;
  }
}
.upgrade-grid .level-upgrade .app-upgrade-art {
  color: #bd9aef;
}

@media (max-width: 800px) {
  .upgrade-grid .upgrade-card {
    height: 480px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 110px 54px minmax(0, 1fr) 28px;
    gap: 14px;
    padding: 24px;
  }
  .upgrade-grid .upgrade-card .upgrade-art {
    grid-column: 1;
    grid-row: 1;
    height: 110px;
    justify-content: center;
  }
  .upgrade-grid .upgrade-card h3 {
    grid-column: 1;
    grid-row: 2;
  }
  .upgrade-grid .upgrade-card p {
    grid-column: 1;
    grid-row: 3;
  }
  .upgrade-grid .upgrade-card .upgrade-tier {
    grid-column: 1;
    grid-row: 4;
  }
  .upgrade-grid .app-upgrade-icon {
    width: 110px;
    height: 110px;
  }
}
.site-header-nav .nav-cta {
  background: #111;
  color: #fefefe;
}

@media (max-width: 800px) {
  .site-header-nav > div > .nav-rules {
    display: none;
  }
}
.docs-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1450980392);
}
.docs-subnav a {
  display: block;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #b8b8b4;
  font: normal 12px/1.5 Space, monospace;
  transition: color 0.15s, background-color 0.15s;
}
.docs-subnav a:hover {
  color: #fefefe;
  background: rgba(255, 255, 255, 0.0470588235);
}
.docs-subnav a[aria-current=page] {
  background: #ddf619;
  color: #111;
}

@media (max-width: 650px) {
  .docs-subnav {
    gap: 8px;
    padding-block: 22px;
  }
  .docs-subnav a {
    padding: 8px 12px;
    font-size: 11px;
  }
}
.docs-subnav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.docs-dropdown {
  display: none;
}

@media (max-width: 650px) {
  .docs-subnav {
    display: block;
    position: relative;
    z-index: 5;
  }
  .docs-subnav-links {
    display: none;
  }
  .docs-dropdown {
    display: block;
    position: relative;
  }
  .docs-dropdown summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #ddf619;
    color: #111;
    cursor: pointer;
    list-style: none;
    font: normal 13px/1.5 Space, monospace;
  }
  .docs-dropdown summary::-webkit-details-marker {
    display: none;
  }
  .docs-dropdown summary::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
  }
  .docs-dropdown[open] summary::after {
    transform: translateY(2px) rotate(225deg);
  }
  .docs-dropdown summary:focus-visible {
    outline: 2px solid #fefefe;
    outline-offset: 4px;
  }
  .docs-dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1450980392);
    border-radius: 14px;
    background: #20211e;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  }
  .docs-dropdown-panel a {
    display: block;
    padding: 13px 12px;
    border-radius: 8px;
    color: #fefefe;
    font: normal 13px/1.5 Space, monospace;
  }
  .docs-dropdown-panel a:hover, .docs-dropdown-panel a:focus-visible {
    background: rgba(255, 255, 255, 0.0470588235);
    color: #ddf619;
  }
}
@media (max-width: 800px) {
  .site-header-nav .nav-logo {
    width: 110px;
  }
  .rules-header .site-header-nav > div > .nav-rules {
    display: none;
  }
}
@media (max-width: 370px) {
  .site-header-nav .nav-logo {
    width: 90px;
  }
}
.upgrade-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.upgrade-rules-link {
  color: #ddf619;
  font: 700 17px/1.4 Owners, sans-serif;
  text-underline-offset: 4px;
}

.upgrade-rules-link span {
  margin-left: 8px;
}

.upgrade-rules-link:hover {
  text-decoration: underline;
}

.hero-store .app-store-coming-soon,
.download .wrap > .app-store-coming-soon {
  font: 700 18px/1.2 Owners, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  white-space: nowrap;
  min-height: 60px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2705882353);
  border-radius: 10px;
  background: #111;
  color: #fff;
  text-align: center;
  margin: 0;
}

.scoring-demo .scoring-footnote {
  font: normal 11px/1.6 Space, monospace;
  color: #aaa;
  margin: 14px 0 0;
  text-align: center;
}

/*# sourceMappingURL=landing.css.map */