/* DICE LABS additions for the reusable individual-app landing page. */
:root {
  --dice-app-panel: rgba(18, 20, 23, 0.94);
  --dice-app-panel-soft: rgba(255, 255, 255, 0.06);
  --dice-app-line: rgba(255, 255, 255, 0.3);
}

/* Dimension's vertical connector lines are intentionally removed. */
#header > *::before { display: none; }

#header .dice-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  width: auto;
  height: 5.5rem;
  border: 0;
  border-radius: 0;
  line-height: 1;
}

.dice-logo .dice {
  display: inline-block;
  color: #fff;
  font-family: "Arial Unicode MS", "Segoe UI Symbol", sans-serif;
  font-size: 4.4rem;
  line-height: 1;
  text-shadow: 0 0 1.25rem rgba(255, 255, 255, 0.2);
}

.dice-logo .dice-left {
  transform: rotate(24deg);
  transform-origin: 50% 55%;
  animation: dice-left-roll 2s 0.55s cubic-bezier(.2, .7, .2, 1) both;
}

.dice-logo .dice-right {
  transform: translateY(calc(0.25rem + 4px));
  animation: dice-arrive 0.65s 0.55s ease-out both;
}

@keyframes dice-left-roll {
  0% { opacity: 0; transform: rotate(-75deg) scale(0.55); }
  100% { opacity: 1; transform: rotate(744deg) scale(1); }
}

@keyframes dice-arrive {
  0% { opacity: 0; transform: translate(0.8rem, 0.25rem) scale(0.6); }
  100% { opacity: 1; transform: translateY(calc(0.25rem + 4px)) scale(1); }
}

#header { width: 100%; }

#header > * { margin-top: calc(3.5rem - 2px); }
#header > :first-child { margin-top: 0; }
#header .content {
  width: min(80%, 57.6rem);
  margin-top: calc(3.5rem - 7px);
}
#header .content .inner { padding: calc(3rem - 2px) calc(2rem - 2px); }

#header nav { position: relative; width: min(calc(100vw - 4rem), 72rem); }
#header nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  align-items: stretch;
  border: 0;
}

#header nav.use-middle::after { display: none; }

#header nav ul li {
  position: relative;
  flex: 1 1 max-content;
  min-width: max-content;
  margin: 0;
  border: solid 1px #fff !important;
}

#header nav ul li a,
#header .language-toggle {
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: max-content;
  width: 100%;
  height: 2.75rem;
  padding: 0 calc(1.25rem - 2px) 0 calc(1.45rem - 2px);
  border: 0;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.17rem;
  font-size: 0.8rem;
  line-height: 2.75rem;
  white-space: nowrap;
}

.language-current-flag {
  width: 1.2rem;
  height: 0.9rem;
  object-fit: cover;
  border-radius: 1px;
}

#header .language-toggle:hover,
#header .language-toggle:focus-visible { background-color: rgba(255, 255, 255, 0.075); }

.language-options {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  z-index: 20;
  width: max-content;
  min-width: 11rem;
  padding: calc(0.35rem - 2px);
  transform: translateX(-50%);
  border: solid 1px rgba(255, 255, 255, 0.45);
  border-radius: 0.25rem;
  background: rgba(18, 20, 23, 0.96);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.35);
}

.language-options button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
  text-align: left;
  cursor: pointer;
}

.language-options button:hover,
.language-options button:focus-visible,
.language-options button.is-active { background: rgba(255, 255, 255, 0.12); }

.language-options img {
  width: 1.2rem;
  height: 0.9rem;
  object-fit: cover;
  border-radius: 1px;
}

.platform-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.platform-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: #fff;
  font-size: 1rem;
}

.microsoft-store-icon {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  transform: scale(1.05);
}

.demo-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.demo-link .icon { color: #fff; }

html,
body {
  background: #11161a url("../../images/bg.jpg?v=1788345634133") center / cover fixed no-repeat !important;
}

#wrapper {
  background: linear-gradient(rgba(19, 21, 25, 0.2), rgba(19, 21, 25, 0.2)), url("../../images/bg.jpg?v=1788345634133") center / cover fixed no-repeat;
}

#bg:after {
  background-image: url("../../images/bg.jpg?v=1788345634133") !important;
  background-position: center;
}

#bg:before {
  background-image: linear-gradient(to top, rgba(19, 21, 25, 0.3), rgba(19, 21, 25, 0.3)), url("../../images/overlay.png") !important;
}

#main article.app-information {
  width: min(72rem, calc(100vw - 3rem));
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  padding: 0;
  background: var(--dice-app-panel);
  scrollbar-width: thin;
  scrollbar-color: #000 transparent;
}

#main article.app-information::-webkit-scrollbar { width: 6px; }
#main article.app-information::-webkit-scrollbar-track { background: transparent; }
#main article.app-information::-webkit-scrollbar-thumb {
  background-color: #000;
  border: 3px solid transparent;
  border-radius: 2px;
}

#main article.app-information::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
body.is-article-visible { overflow: hidden; }

.app-spotlights > section {
  display: grid;
  grid-template-columns: minmax(16rem, 42%) 1fr;
  min-height: 17rem;
  border-bottom: solid 1px var(--dice-app-line);
  background: var(--dice-app-panel-soft);
}

.app-spotlights > section:nth-child(even) { grid-template-columns: 1fr minmax(16rem, 42%); }
.app-spotlights > section:nth-child(even) img { grid-column: 2; grid-row: 1; }

.app-spotlights img {
  width: 100%;
  height: 100%;
  min-height: 17rem;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05);
}

.spotlight-copy { align-self: center; padding: calc(3rem - 2px); }
.spotlight-copy h2 { margin-bottom: calc(1rem - 2px); font-size: 1.35rem; }
.spotlight-copy p { margin: 0 0 calc(1.25rem - 2px); }

.contact-spotlight {
  display: block !important;
  min-height: 0 !important;
  border-bottom: 0 !important;
  background: #050505 !important;
}

.contact-spotlight .spotlight-copy { max-width: 38rem; padding: calc(3.5rem - 2px); }

@media screen and (max-width: 736px) {
  #header > * { margin-top: calc(2rem - 2px); }
  #header > :first-child { margin-top: 0; }
  #header .content { width: calc(100% - 2rem); }
  #header .content .inner { padding: calc(2.5rem - 2px) calc(1rem - 2px); }
  #header nav { width: min(calc(100vw - 2rem), 72rem); }
  #header .dice-logo { height: 4.75rem; }
  .dice-logo .dice { font-size: 3.75rem; }
  #main article.app-information { width: min(100%, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); }
  .app-spotlights > section,
  .app-spotlights > section:nth-child(even) { display: flex; flex-direction: column; }
  .app-spotlights > section:nth-child(even) img { order: 0; }
  .app-spotlights img { min-height: 13rem; max-height: 16rem; }
  .spotlight-copy,
  .contact-spotlight .spotlight-copy { padding: 2.5rem 2rem; }
}

@media screen and (max-width: 480px) {
  #header .content .inner { padding: calc(2.5rem - 2px) 0; }
  .language-options { left: 0.8rem; width: calc(100% - 1.6rem); transform: none; }
}
