/* 
 * DT ARCADE / UNIFIED — UI STYLES
 * V2611145 — consolidated selectors and priorities
 *
 * Ordering is intentional: responsive, overlay and input states
 * interact through the cascade. Modify rules in place rather
 * than appending release-specific override blocks.
 * Font data is isolated in fonts.css for easier maintenance
 * and efficient reuse by the offline PWA.
  */

/* 
 * ANIMATION DEFINITIONS
  */

@keyframes dtHubOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(-16px);
  }
}

@keyframes dtHubOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(16px);
  }
}

@keyframes dtHubInLeft {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes dtHubInRight {
  from {
    opacity: 0;
    transform: translateX(16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes dtArcadeSelectionPulse {
  0%,100% {
    filter: brightness(1.34319527);
  }

  50% {
    filter: brightness(1);
  }
}

@keyframes dtArcadeHubSelectionPulse {
  0%,100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(.747);
  }
}

@keyframes dtArcadeLoaderScan {
  from {
    transform: translateX(-115%);
  }

  to {
    transform: translateX(575%);
  }
}

/* 
 * 01 · FOUNDATION / FRAME / CANVAS / CONTROLS
  */

:root {
  --red: #e3000b;
  --bg: #050506;
  --panel: #0c0d11;
  --line: #2a2b30;
  --muted: #afb0b6;
  --text: #f8f8f8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: "DTSwissCorporate",Arial,Helvetica,sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  font-weight: 700;
}

button:focus-visible,
input:focus-visible {
  outline: none;
  box-shadow: none;
}

.app {
  max-width: 1540px;
  margin: 0 auto;
  background: #000;
}

.bar {
  height: 84px;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 24px;
  background: #000;
}

.logo {
  width: 214px;
  flex: none;
}

.logo svg {
  display: block;
  width: 100%;
  height: auto;
}

.title {
  font-size: 28px;
  letter-spacing: .5px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.title .strong {
  font-weight: 700;
}

.title .light {
  font-weight: 300;
}

.model {
  margin-left: auto;
  font-size: 28px;
  text-transform: uppercase;
  white-space: nowrap;
}

.model .strong {
  font-weight: 700;
}

.model .light {
  font-weight: 300;
}

.game {
  position: relative;
  background: #111216;
  overflow: hidden;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1500/800;
  touch-action: manipulation;
}

.foot {
  min-height: 56px;
  background: #050506;
  border-top: 1px solid #18191d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  flex-wrap: wrap;
}

.controls {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  color: #7e8087;
}

.key {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #5d5f66;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  margin-right: 6px;
}

.buttons {
  display: flex;
  gap: 8px;
}

.shade {
  position: absolute;
  inset: 0;
  background: rgba(4,4,5,.92);
  display: grid;
  place-items: center;
  z-index: 5;
  padding: 14px;
}

.shade[hidden] {
  display: none;
}

.modal {
  width: min(720px,100%);
  background: #0d0e12;
  border-top: 4px solid var(--red);
  padding: 36px 28px;
  box-shadow: 0 20px 90px rgba(0,0,0,.65);
  text-align: center;
}

.overline {
  font-size: 12px;
  color: #f1434a;
  letter-spacing: 3px;
  font-weight: 700;
  text-transform: uppercase;
}

.modal h1 {
  margin: 16px 0 14px;
  font-size: 58px;
  line-height: .92;
  letter-spacing: -.5px;
  text-transform: uppercase;
}

.modal h1 .strong {
  font-weight: 700;
}

.modal h1 .light {
  font-weight: 300;
}

.modal p {
  font-size: 15px;
  line-height: 1.52;
  color: #c2c3c7;
}

.primary {
  border: 0;
  background: var(--red);
  color: #fff;
  padding: 15px 26px;
  font-weight: 700;
  letter-spacing: .5px;
  font-size: 15px;
  margin: 6px;
}

.primary:hover {
  background: #c60009;
}

.secondary {
  border: 0;
  background: #1b1c22;
  color: #fff;
  padding: 14px 22px;
  font-weight: 700;
  margin: 6px;
}

.secondary:hover {
  background: #262830;
}

#intro .primary,
#intro .secondary {
  min-width: 160px;
}

#intro .arcade-choice {
  background: #1b1c22;
  color: #fff;
}

#intro .arcade-choice.is-selected {
  background: var(--red);
  color: #fff;
}

#intro .arcade-choice:hover {
  background: #292a30;
}

#intro .arcade-choice.is-selected:hover {
  background: var(--red);
}

.name {
  font-size: 24px;
  letter-spacing: 2px;
  text-align: center;
  width: min(290px,100%);
  background: #18191e;
  border: 1px solid #5e6068;
  color: #fff;
  padding: 12px;
  text-transform: uppercase;
}

.sc {
  width: 100%;
  border-collapse: collapse;
  margin: 14px auto;
}

.sc th,
.sc td {
  padding: 9px;
  border-bottom: 1px solid #2f3137;
  text-align: left;
  font-size: 14px;
}

.sc th:last-child,
.sc td:last-child {
  text-align: right;
}

#scores .sc th,
#scores .sc td {
  padding: 9px 7px;
}

#scores .sc th:nth-child(3),
#scores .sc td:nth-child(3) {
  white-space: nowrap;
  font-weight: 700;
}

@media (max-width:620px) {
  #scores .sc th,#scores .sc td {
    font-size: 12px;
    padding: 9px 4px;
  }
}

.result {
  font-size: 60px;
  font-weight: 700;
}

.arcade-initials {
  max-width: 540px;
  margin: 14px auto 8px;
}

.initials-slots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px 0 16px;
}

.initials-slots span {
  display: grid;
  place-items: center;
  width: 65px;
  height: 68px;
  background: #18191d;
  border: 2px solid #35363c;
  font-size: 43px;
  font-weight: 700;
}

.initials-slots span.pending {
  border-color: var(--red);
  color: var(--red);
}

.arcade-letters {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 6px;
}

.letter-key {
  background: #1b1c22;
  color: #fff;
  border: 0;
  min-height: 41px;
  font-size: 22px;
  font-weight: 700;
}

.letter-key.active {
  background: var(--red);
  color: #fff;
  box-shadow: none;
}

.letter-key.special {
  font-size: 13px;
}

.letter-key:hover {
  background: #262830;
}

.letter-key.active:hover {
  background: var(--red);
}

.touch {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #050506;
  padding: 8px 10px;
}

.touch button {
  background: #1b1c22;
  color: #fff;
  border: 0;
  font-weight: 700;
  height: 38px;
  transition: background-color 100ms linear;
}

.touch button:hover {
  background: #262830;
}

.touch .action {
  padding: 0 20px;
  background: #1b1c22;
  border: 0;
  height: 38px;
  align-self: center;
}

.touch .action:hover {
  background: #262830;
}

.touch button.flash,
.touch button.flash:hover,
.touch button:active {
  background: var(--red);
}

@media (max-width:900px) {
  .bar {
    gap: 14px;
    height: 64px;
    padding: 0 10px;
  }

  .logo {
    width: 165px;
  }

  .title,.model {
    font-size: 18px;
  }

  .controls {
    display: none;
  }

  .touch {
    display: flex;
  }

  .modal {
    padding: 24px 16px;
  }

  .modal h1 {
    font-size: 42px;
  }
}

@media (max-width:620px) {
  .title {
    font-size: 14px;
  }

  .model {
    font-size: 14px;
  }

  .logo {
    width: 120px;
  }
}

.secondary.arcade-focused {
  background: #E3000B;
  color: #fff;
}

.primary.arcade-focused {
  background: #E3000B;
}

.letter-key:focus-visible,
.primary:focus-visible,
.secondary:focus-visible {
  outline: none;
}

#finish {
  padding: 12px;
  overflow: auto;
  align-items: center;
}

#finish .modal {
  width: min(606px,100%);
  padding: 20px 20px 18px;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
}

#finish .overline {
  font-size: 10px;
  letter-spacing: 2.6px;
}

#finish .modal h1 {
  font-size: 41px;
  margin: 9px 0 5px;
  line-height: 1.03;
}

#finish .result {
  font-size: 47px;
  line-height: 1.06;
}

#finish .arcade-initials {
  max-width: 426px;
  margin: 4px auto 8px;
}

#finish .initials-slots {
  gap: 7px;
  margin: 6px 0 10px;
}

#finish .initials-slots span {
  width: 46px;
  height: 45px;
  font-size: 28px;
  border-width: 1px;
}

#finish .arcade-letters {
  gap: 4px;
}

#finish .letter-key {
  min-height: 30px;
  font-size: 17px;
}

#finish .letter-key.special {
  font-size: 11px;
}

#finish .primary,
#finish .secondary {
  padding: 11px 17px;
  font-size: 13px;
  margin: 3px;
}

@media (prefers-reduced-motion:reduce) {
}

#introScores {
  font-weight: 700;
}

.touch {
  display: none !important;
}

.settings-modal {
  width: min(670px,100%);
  text-align: left;
  padding: 24px 28px 25px;
  max-height: calc(100% - 18px);
  overflow-y: auto;
}

.settings-modal h1 {
  text-align: center;
  margin: 10px 0 23px;
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
}

.settings-modal .overline {
  font-size: 11px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  border-bottom: 1px solid #2b2c31;
  font-weight: 700;
  font-size: 18px;
}

.setting-row label {
  color: #f7f7f7;
}

/* 
 * 02 · PORTRAIT LAYOUT / DEVICE BREAKPOINTS
  */

.setting-switch {
  border: 0;
  background: #25262c;
  color: #fff;
  padding: 10px 15px;
  font-weight: 700;
  min-width: 165px;
  text-align: center;
  font-size: 17px;
}

.setting-switch[aria-checked="true"] {
  background: var(--red);
  color: white;
}

.setting-switch[aria-pressed="true"] {
  background: var(--red);
  color: white;
}

.setting-switch.arcade-focused,
.setting-close.arcade-focused {
  background: var(--red) !important;
  color: #fff;
}

.setting-number {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
}

.setting-number input {
  width: 82px;
  height: 46px;
  border: 0;
  border-radius: 0;
  background: #25262c;
  color: #fff;
  text-align: center;
  padding: 5px;
  font-size: 23px;
  font-weight: 700;
  appearance: textfield;
}

.setting-number input::-webkit-inner-spin-button,
.setting-number input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.setting-close {
  display: block;
  margin: 28px auto 0;
  min-width: 165px;
  font-size: 16px;
  padding: 13px 20px;
}

@media (max-width:620px) {
  .settings-modal {
    width: min(520px,100%);
    padding: 19px 15px 20px;
  }

  .settings-modal h1 {
    font-size: 39px;
  }

  .setting-row {
    min-height: 60px;
    font-size: 14px;
  }

  .setting-switch {
    min-width: 115px;
    font-size: 13px;
  }

  .setting-number {
    font-size: 14px;
    gap: 8px;
  }

  .setting-number input {
    width: 62px;
    font-size: 18px;
  }

  .setting-close {
    margin-top: 18px;
  }
}

.bar {
  padding-left: 28px;
}

#app:fullscreen,
#app:-webkit-full-screen {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  background: #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#app:fullscreen .bar,
#app:-webkit-full-screen .bar {
  flex: 0 0 84px;
}

#app:fullscreen .game,
#app:-webkit-full-screen .game {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-image: var(--workshop-background);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#app:fullscreen .game canvas,
#app:-webkit-full-screen .game canvas {
  display: block;
  width: min(100%,calc((100dvh - 84px)*1.875));
  height: auto;
  max-height: 100%;
  flex: none;
}

@media (max-width:900px) {
  .bar {
    padding-left: 28px;
  }

  #app:fullscreen .bar,#app:-webkit-full-screen .bar {
    flex-basis: 64px;
  }

  #app:fullscreen .game canvas,#app:-webkit-full-screen .game canvas {
    width: min(100%,calc((100dvh - 64px)*1.875));
  }
}

.settings-version {
  text-align: center;
  margin: 24px 0 0;
  color: #777981;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .3px;
}

.settings-version span {
  padding: 0 8px;
  color: #55575e;
}

html.portrait-game,
html.portrait-game body {
  overflow-x: hidden;
}

html.portrait-game .app {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%,550px);
  max-width: 550px;
  min-height: 100dvh;
  margin: 0 auto;
  background: #050506;
}

html.portrait-game .bar {
  height: 80px;
  min-height: 80px;
  flex: 0 0 80px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 40px 23px;
  align-items: center;
  column-gap: 10px;
  row-gap: 0;
  padding: 8px 22px 7px;
  background: #000;
}

html.portrait-game .bar .title {
  grid-column: 1/-1;
  grid-row: 2;
  font-size: 18px;
  letter-spacing: .05px;
  white-space: nowrap;
  line-height: 1;
}

html.portrait-game .bar .model {
  margin-left: 0;
  font-size: 20px;
}

html.portrait-game .game {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  background-image: var(--workshop-background);
  background-size: cover;
  background-position: center;
}

html.portrait-game canvas {
  width: 100%;
  height: auto;
  min-height: calc(100dvh - 80px);
  aspect-ratio: 900/1680;
  touch-action: manipulation;
  object-fit: fill;
}

html.portrait-game .shade {
  padding: 10px 12px;
  align-items: center;
}

html.portrait-game .modal {
  width: min(100%,440px);
  padding: 27px 19px;
  max-height: calc(100dvh - 115px);
  overflow: auto;
}

html.portrait-game .modal h1 {
  font-size: clamp(30px,7.6vw,46px);
  line-height: 1.02;
}

html.portrait-game .modal p {
  font-size: 13px;
}

html.portrait-game .sc th,
html.portrait-game .sc td {
  padding: 8px 3px;
  font-size: 12px;
}

html.portrait-game .settings-modal {
  width: min(100%,460px);
}

html.portrait-game #finish .initials-slots span {
  width: 44px;
  height: 44px;
}

html.portrait-game #app:fullscreen,
html.portrait-game #app:-webkit-full-screen {
  max-width: none;
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

html.portrait-game #app:fullscreen .bar,
html.portrait-game #app:-webkit-full-screen .bar {
  flex: 0 0 70px;
  width: 100%;
  min-height: 70px;
}

html.portrait-game #app:fullscreen .game,
html.portrait-game #app:-webkit-full-screen .game {
  flex: 1;
  min-height: 0;
  width: 100%;
  background-image: var(--workshop-background);
  background-size: cover;
  background-position: center;
  align-items: center;
  justify-content: center;
}

html.portrait-game #app:fullscreen canvas,
html.portrait-game #app:-webkit-full-screen canvas {
  min-height: 0;
  width: min(100vw,calc((100dvh - 70px)*900/1680));
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 900/1680;
  object-fit: fill;
}

@media (max-width:420px) {
  html.portrait-game .bar {
    padding-left: 15px;
    padding-right: 15px;
    height: 72px;
    min-height: 72px;
    flex-basis: 72px;
    grid-template-rows: 36px 21px;
  }

  html.portrait-game .bar .logo {
    width: 135px;
  }

  html.portrait-game .bar .title {
    font-size: clamp(13px,4.2vw,17px);
  }

  html.portrait-game .bar .model {
    font-size: 18px;
  }

  html.portrait-game canvas {
    min-height: calc(100dvh - 72px);
  }

  html.portrait-game .setting-row {
    font-size: 13px;
  }

  html.portrait-game .setting-number {
    font-size: 12px;
  }

  html.portrait-game .setting-number input {
    width: 59px;
  }
}

@media (prefers-reduced-motion: reduce) {
}

html.portrait-game,
html.portrait-game body {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

html.portrait-game .app,
html.portrait-game #app:fullscreen,
html.portrait-game #app:-webkit-full-screen {
  box-sizing: border-box;
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  max-height: 100dvh;
  padding-top: env(safe-area-inset-top,0px);
  padding-bottom: env(safe-area-inset-bottom,0px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

html.portrait-game .bar .title {
  font-size: clamp(12px,3.7vw,16px);
}

html.portrait-game .game,
html.portrait-game #app:fullscreen .game,
html.portrait-game #app:-webkit-full-screen .game {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.portrait-game canvas,
html.portrait-game #app:fullscreen canvas,
html.portrait-game #app:-webkit-full-screen canvas {
  display: block;
  flex: none;
  align-self: center;
  width: auto;
  min-width: 0;
  min-height: 0;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 900/1680;
  object-fit: fill;
  touch-action: manipulation;
}

html.portrait-game .shade,
html.portrait-game #finish {
  padding: 8px;
  overflow: hidden;
  place-items: center;
  align-items: center;
  justify-items: center;
}

html.portrait-game .modal,
html.portrait-game #finish .modal,
html.portrait-game .settings-modal {
  flex: none;
  max-height: none;
  height: auto;
  overflow: visible;
  transform-origin: center center;
  margin: 0;
}

html.portrait-game #intro .modal {
  padding: 22px 13px;
}

html.portrait-game #intro .modal h1 {
  font-size: clamp(30px,8vw,43px);
}

html.portrait-game #intro .modal p {
  font-size: 13px;
  line-height: 1.36;
}

html.portrait-game #scores .modal {
  padding: 18px 14px;
}

html.portrait-game #scores .modal h1 {
  font-size: clamp(30px,8vw,42px);
  margin: 10px 0 9px;
}

html.portrait-game #scores .sc {
  margin: 7px auto;
}

html.portrait-game #scores .sc th,
html.portrait-game #scores .sc td {
  padding: 5px 3px;
  font-size: clamp(10px,3vw,13px);
}

html.portrait-game #scores .primary {
  margin: 6px;
}

html.portrait-game .settings-modal {
  padding: 15px 14px;
}

html.portrait-game .settings-modal h1 {
  font-size: 36px;
  margin: 8px 0 12px;
}

html.portrait-game .settings-modal .setting-row {
  min-height: 49px;
}

html.portrait-game .settings-modal .setting-number input {
  height: 39px;
}

html.portrait-game .settings-modal .setting-close {
  margin-top: 15px;
}

html.portrait-game .settings-modal .settings-version {
  margin-top: 12px;
}

html.portrait-game #finish .modal {
  padding: 14px 12px;
}

html.portrait-game #finish .modal h1 {
  margin: 7px 0 3px;
  font-size: 34px;
}

html.portrait-game #finish .arcade-letters {
  gap: 3px;
}

html.portrait-game #finish .letter-key {
  min-height: 28px;
}

html.portrait-game #finish .initials-slots {
  margin: 6px 0 7px;
}

html.portrait-game #finish .result {
  font-size: 40px;
}

@media (max-height:650px) {
  html.portrait-game .bar,
  html.portrait-game #app:fullscreen .bar,
  html.portrait-game #app:-webkit-full-screen .bar {
    flex-basis: 57px;
    height: 57px;
    min-height: 57px;
    max-height: 57px;
    padding: 3px 12px;
    grid-template-rows: 29px 17px;
  }

  html.portrait-game .bar .title {
    font-size: 13px;
  }
}

html.portrait-game .shade .modal {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: calc(100% - 16px);
  transform-origin: center center;
  transform: translate(-50%,-50%) scale(1);
}

html.portrait-game .bar,
html.portrait-game #app:fullscreen .bar,
html.portrait-game #app:-webkit-full-screen .bar {
  display: grid;
  grid-template-rows: minmax(0,1fr);
  align-items: center;
  column-gap: 12px;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  flex: 0 0 52px;
  padding: 5px 16px 10px;
}

html.portrait-game .bar .logo {
  grid-column: 1;
  grid-row: 1;
  width: 132px;
  max-width: 100%;
  align-self: center;
}

html.portrait-game .bar .model {
  align-self: center;
  font-size: clamp(14px,4vw,19px);
}

html.portrait-game .portrait-quick-actions {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  transform: translateY(-50%);
}

html.portrait-game .portrait-quick-actions[hidden] {
  display: none;
}

html.portrait-game .portrait-quick-actions button {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  font: normal 30px/1 Arial,Helvetica,sans-serif;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

html.portrait-game .portrait-quick-actions button:active,
html.portrait-game .portrait-quick-actions button.arcade-focused {
  border-color: #e3000b;
}

@media (max-height:650px) {
  html.portrait-game .bar,
 html.portrait-game #app:fullscreen .bar,
 html.portrait-game #app:-webkit-full-screen .bar {
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    flex-basis: 42px;
    padding: 3px 13px 7px;
  }

  html.portrait-game .bar .logo {
    width: 115px;
  }

  html.portrait-game .bar .model {
    font-size: 15px;
  }
}

html.portrait-game .app,
html.portrait-game #app:fullscreen,
html.portrait-game #app:-webkit-full-screen {
  padding-top: max(36px,env(safe-area-inset-top,0px));
}

html.portrait-game .bar .logo,
html.portrait-game .bar .model {
  position: relative;
  top: 8px;
}

html.portrait-game .portrait-quick-actions button {
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  font-weight: 900;
  color: #fff;
  -webkit-appearance: none;
  appearance: none;
  width: clamp(38px,10vw,50px);
  height: clamp(38px,10vw,50px);
}

html.portrait-game .portrait-quick-actions button svg {
  display: block;
  width: 30px;
  height: 30px;
  stroke-width: 3.1;
}

html.portrait-game .shade,
html.portrait-game #finish {
  position: fixed;
  inset: 0;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none;
  max-height: none;
  background: rgba(4,4,5,.92);
}

#portraitRotateNotice {
  display: none;
}

html.phone-game #portraitRotateNotice {
  display: none;
}

html.portrait-game .game::before {
  content: none;
  display: none !important;
}

html.portrait-game .portrait-quick-actions {
  z-index: 3;
  gap: 4px;
  align-items: center;
}

html.portrait-game .portrait-quick-actions button,
html.portrait-game .portrait-quick-actions button:focus {
  width: clamp(36px,9vw,43px);
  height: clamp(36px,9vw,43px);
  background: transparent !important;
  border: 0;
  outline: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  color: white;
  font-family: "Apple Symbols","Segoe UI Symbol","Arial Unicode MS",Arial,Helvetica,sans-serif;
  font-size: clamp(26px,6.4vw,31px);
  font-weight: 400;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}

html.portrait-game .portrait-quick-actions button:active,
html.portrait-game .portrait-quick-actions button.arcade-focused {
  color: #e3000b;
  background: transparent !important;
}

html.portrait-game .portrait-countdown-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  width: 100%;
  height: 100%;
  display: block;
  background: rgba(0,0,0,.81);
  overflow: hidden;
}

/* 
 * 03 · LOADER / HUB SELECTION / SETTINGS
  */

html.portrait-game .portrait-countdown-cover[hidden] {
  display: none;
}

html.portrait-game .portrait-countdown-cover span {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%,-50%);
  font: 700 clamp(100px,31vw,220px)/1 "DTSwissCorporate",Arial,sans-serif;
  color: #fff;
  white-space: nowrap;
}

html.portrait-game,
html.portrait-game body {
  background-image: var(--workshop-background);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #050506;
}

html.portrait-game .app,
html.portrait-game #app:fullscreen,
html.portrait-game #app:-webkit-full-screen {
  width: 100%;
  max-width: none;
  background: transparent;
}

html.portrait-game body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to bottom,rgba(0,0,0,0) 0%,#000 100%);
}

html.portrait-game button:not(:disabled):hover,
html.portrait-game button:not(:disabled):focus,
html.portrait-game button:not(:disabled):focus-visible,
html.portrait-game button:not(:disabled):active,
html.portrait-game button:not(:disabled).arcade-focused {
  background-color: #bf0009 !important;
  border-color: transparent;
  color: #fff;
  outline: none;
  box-shadow: none;
}

html.portrait-game .portrait-quick-actions button:hover,
html.portrait-game .portrait-quick-actions button:focus,
html.portrait-game .portrait-quick-actions button:focus-visible,
html.portrait-game .portrait-quick-actions button:active,
html.portrait-game .portrait-quick-actions button.arcade-focused {
  background: #bf0009 !important;
  color: #fff;
  border: 0;
  outline: 0;
  box-shadow: none;
}

#intro #begin {
  animation: none;
  transform-origin: center;
}

#intro #begin:is(:hover,:focus-visible,.arcade-focused,:active) {
  animation: none;
}

@media (prefers-reduced-motion:reduce) {
  #intro #begin {
    animation: none;
  }
}

.settings-modal {
  --settings-action-gap: 7px;
}

.settings-modal #soundControl {
  box-sizing: border-box;
  min-width: 0;
  width: calc((100% - 2 * var(--settings-action-gap)) / 3);
  flex: 0 0 calc((100% - 2 * var(--settings-action-gap)) / 3);
}

@media (max-width:620px) {
  .settings-modal {
    --settings-action-gap: 5px;
  }
}

#dtArcadeLoader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #050506;
  color: #fff;
  text-align: center;
  gap: 0;
  padding: 30px 18px;
  min-height: 100dvh;
  transition: opacity .34s ease,visibility .34s ease;
}

#dtArcadeLoader.is-complete {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#dtArcadeLoader .loading-brand {
  width: min(280px,64vw);
  max-width: 100%;
  margin: 0 auto;
}

#dtArcadeLoader .loading-brand svg {
  display: block;
  width: 100%;
  height: auto;
}

#dtArcadeLoader .loading-arcade {
  font-size: clamp(30px,7.5vw,46px);
  letter-spacing: .08em;
  line-height: 1.1;
  font-weight: 700;
  margin: 21px 0 74px;
  text-transform: uppercase;
}

@media (prefers-reduced-motion:reduce) {
}

#dtArcadeLoader .loading-play {
  display: none;
  min-width: 180px;
  min-height: 52px;
  box-sizing: border-box;
  padding: 12px 34px;
  border: 0;
  border-radius: 0;
  background: #e3000b;
  color: #fff;
  font: 700 21px/1.1 "DTSwissCorporate",Arial,sans-serif;
  letter-spacing: .075em;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color .16s ease;
  box-shadow: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

#dtArcadeLoader.is-ready .loading-play {
  display: block;
}

#dtArcadeLoader .loading-play:hover,
#dtArcadeLoader .loading-play:focus-visible,
#dtArcadeLoader .loading-play:active {
  background: #bf0009;
  outline: none;
  box-shadow: none;
}

#dtArcadeLoader .loading-progress {
  box-sizing: border-box;
  width: min(350px,78vw);
  height: 9px;
  background: #3d3e43;
  overflow: hidden;
  margin: 0 auto 14px;
  position: relative;
}

#dtArcadeLoader .loading-progress-fill {
  height: 100%;
  width: 0;
  background: #e3000b;
  transition: width .13s ease;
  will-change: width;
}

#dtArcadeLoader .loading-percent {
  font: 700 18px/1.2 "DTSwissCorporate",Arial,sans-serif;
  letter-spacing: .065em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  min-height: 23px;
  margin-bottom: 8px;
}

#dtArcadeLoader .loading-error {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #ff3440;
  margin: 4px auto 13px;
}

#dtArcadeLoader.is-ready .loading-progress,
#dtArcadeLoader.is-ready .loading-percent {
  display: none;
}

#dtArcadeLoader .loading-retry:not([hidden]) {
  display: block;
  background: #e3000b;
}

#dtArcadeLoader .loading-error[hidden],
#dtArcadeLoader .loading-retry[hidden] {
  display: none;
}

@media (prefers-reduced-motion:reduce) {
  #dtArcadeLoader .loading-progress-fill {
    transition: none;
  }
}

.settings-modal :is(#soundControl,#musicControl) {
  box-sizing: border-box;
  min-width: 0;
  width: calc((100% - 2 * var(--settings-action-gap,7px)) / 3);
  flex: 0 0 calc((100% - 2 * var(--settings-action-gap,7px)) / 3);
}

html.portrait-game #intro #begin,
html.portrait-game #intro #introScores {
  display: block;
  box-sizing: border-box;
  width: min(100%,250px);
  min-width: 0;
  margin: 9px auto 0;
}

html.portrait-game #intro #introScores {
  margin-top: 11px;
}

.hub-selector {
  --hub-label-width: auto;
  display: grid;
  grid-template-columns: minmax(34px,40px) minmax(0,var(--hub-label-width)) minmax(34px,40px);
  align-items: center;
  justify-content: center;
  column-gap: 12px;
  row-gap: 0;
  margin: 14px auto 12px;
  width: max-content;
  max-width: 100%;
}

.hub-nav {
  border: 0;
  background: transparent !important;
  color: #e3000b;
  font: 700 45px/1 "DTSwissCorporate",sans-serif;
  min-width: 40px;
  min-height: 45px;
  padding: 0 5px;
  cursor: pointer;
  justify-self: center;
}

.hub-nav:hover,
.hub-nav:focus-visible {
  color: #fff;
  background: transparent !important;
}

.hub-name {
  width: var(--hub-label-width,auto);
  min-width: 0;
  color: #fff;
  font: 700 34px/1.1 "DTSwissCorporate",sans-serif;
  letter-spacing: .4px;
  white-space: nowrap;
  text-align: center;
  justify-self: center;
  transform: translate3d(0,0,0);
}

.hub-selector.is-selected .hub-name {
  color: #e3000b;
}

.hub-name.anim-out-left {
  animation: dtHubOutLeft .12s ease both;
}

.hub-name.anim-out-right {
  animation: dtHubOutRight .12s ease both;
}

.hub-name.anim-in-left {
  animation: dtHubInLeft .2s cubic-bezier(.18,.7,.18,1) both;
}

.hub-name.anim-in-right {
  animation: dtHubInRight .2s cubic-bezier(.18,.7,.18,1) both;
}

@media (max-width:620px) {
  .hub-selector {
    margin: 8px auto;
    column-gap: 9px;
  }

  .hub-name {
    font-size: 26px;
  }

  .hub-nav {
    font-size: 35px;
    min-width: 34px;
    min-height: 36px;
  }
}

#scores .hub-score-browser {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin: 8px auto 12px;
}

#scores .hub-score-name {
  font: 700 clamp(18px,3vw,25px)/1.15 "DTSwissCorporate",Arial,sans-serif;
  color: #fff;
  white-space: nowrap;
  min-width: 232px;
}

#scores .hub-score-browser .hub-nav {
  font-size: 40px;
  min-width: 38px;
  min-height: 40px;
}

.score-actions,
.finish-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin: 9px auto 0;
}

.score-actions button,
.finish-actions button {
  margin: 0;
  min-width: 121px;
}

#finishHome,
#scoresHome {
  font-weight: 700;
}

#finish .finish-actions button:not(.arcade-focused),
#scores .score-actions button:not(.arcade-focused) {
  background: #1b1c22;
  color: #fff;
}

#finish .finish-actions button.arcade-focused,
#scores .score-actions button.arcade-focused {
  background: #E3000B;
  color: #fff;
}

#finish .finish-actions button {
  font-size: 13px;
}

@media (max-width:620px) {
  #scores .hub-score-name {
    font-size: 18px;
    min-width: 160px;
  }

  #scores .hub-score-browser .hub-nav {
    font-size: 34px;
    min-width: 30px;
  }

  .score-actions button,.finish-actions button {
    min-width: 0;
    padding: 10px 11px;
    font-size: 12px;
  }
}

.settings-modal {
  --settings-control-column: clamp(190px,41%,275px);
}

.settings-modal .setting-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) var(--settings-control-column);
  align-items: center;
  column-gap: 16px;
}

.settings-modal .setting-row > :is(.setting-switch,.setting-mode-group,.setting-number,.setting-hub-selector) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: none;
  justify-self: stretch;
}

.settings-modal .setting-row > .setting-switch,
.settings-modal #soundControl,
.settings-modal #musicControl,
.settings-modal #gameModeControl {
  box-sizing: border-box;
  width: 100%;
  flex: initial;
  min-width: 0;
  height: 46px;
  padding: 0 8px;
  font: 700 17px/1.1 "DTSwissCorporate",Arial,sans-serif;
  text-align: center;
}

.settings-modal .setting-number {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.settings-modal .setting-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.settings-modal .setting-number input {
  flex: 0 0 82px;
  box-sizing: border-box;
  width: 82px;
}

.settings-modal .setting-number span {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
}

@media (max-width:620px) {
  .settings-modal {
    --settings-control-column: min(48%,240px);
  }

  .settings-modal .setting-row {
    grid-template-columns: minmax(0,1fr) var(--settings-control-column);
    column-gap: 10px;
  }

  .settings-modal .setting-row > .setting-switch,
.settings-modal #soundControl,
.settings-modal #musicControl,
.settings-modal #gameModeControl {
    height: 40px;
    font-size: 15px;
  }

  .settings-modal .setting-number input {
    flex-basis: 62px;
    width: 62px;
  }
}

@media (max-width:360px) {
  .settings-modal {
    --settings-control-column: 54%;
  }
}

html.wide-game,
html.wide-game body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
  overscroll-behavior: none;
}

html.wide-game .app,
html.wide-game #app:fullscreen,
html.wide-game #app:-webkit-full-screen {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

html.wide-game .bar,
html.wide-game #app:fullscreen .bar,
html.wide-game #app:-webkit-full-screen .bar {
  flex: 0 0 clamp(58px,9vh,84px);
  height: clamp(58px,9vh,84px);
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 clamp(12px,2vw,30px);
  background: #000;
}

html.wide-game .bar .logo {
  width: clamp(126px,16vw,214px);
  flex: none;
  max-width: 36%;
}

html.wide-game .bar .model {
  margin-left: auto;
  font-size: clamp(16px,2.3vw,28px);
}

html.wide-game .game,
html.wide-game #app:fullscreen .game,
html.wide-game #app:-webkit-full-screen .game {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: var(--workshop-background) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

html.wide-game #screen,
html.wide-game #app:fullscreen #screen,
html.wide-game #app:-webkit-full-screen #screen {
  display: block;
  flex: none;
  align-self: center;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1500/800;
  object-fit: contain;
  touch-action: manipulation;
}

html.wide-game .portrait-quick-actions {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  transform: translateY(-50%);
}

html.wide-game .portrait-quick-actions[hidden] {
  display: none;
}

html.wide-game .portrait-quick-actions button {
  width: clamp(32px,4vw,46px);
  height: clamp(32px,4vw,46px);
  display: grid;
  place-items: center;
  color: #fff;
  background: transparent !important;
  border: 0;
  box-shadow: none;
  font: 700 clamp(22px,3vw,32px)/1 Arial,sans-serif;
  outline: 0;
  margin: 0;
  padding: 0;
}

html.wide-game .portrait-quick-actions button.arcade-focused,
html.wide-game .portrait-quick-actions button:hover,
html.wide-game .portrait-quick-actions button:active {
  color: #e3000b;
}

html.wide-game .portrait-countdown-cover {
  display: none;
}

html.wide-game #intro .modal {
  width: min(720px,96%);
}

@media (pointer:coarse) and (min-width:750px) {
  html.wide-game .portrait-quick-actions button {
    min-width: 46px;
    min-height: 46px;
  }
}

@media (max-width:750px) {
  html.wide-game .bar {
    gap: 8px;
  }

  html.wide-game .bar .logo {
    width: clamp(106px,21vw,156px);
  }

  html.wide-game .bar .model {
    font-size: clamp(13px,2.7vw,18px);
  }

  html.wide-game .modal {
    padding: 19px 15px;
  }

  html.wide-game .modal h1 {
    font-size: clamp(28px,5vw,44px);
  }
}

html.portrait-game.tablet-game .app {
  max-width: none;
  width: 100%;
}

html.portrait-game.tablet-game .bar .logo {
  width: clamp(132px,24vw,188px);
}

html.portrait-game.tablet-game .bar .model {
  font-size: clamp(18px,3vw,25px);
}

html.portrait-game.tablet-game .game {
  width: 100%;
}

html.tablet-game #portraitRotateNotice,
html.wide-game #portraitRotateNotice {
  display: none;
}

html.wide-game .game,
html.wide-game #app:fullscreen .game,
html.wide-game #app:-webkit-full-screen .game {
  background-image: linear-gradient(90deg,rgba(0,0,0,.63) 0%,rgba(0,0,0,.32) 19%,rgba(0,0,0,0) 52%),
   linear-gradient(180deg,rgba(0,0,0,.18) 0%,transparent 36%,rgba(0,0,0,.12) 100%),
   var(--workshop-background) !important;
  background-position: center,center,center !important;
  background-size: 100% 100%,100% 100%,cover !important;
  background-repeat: no-repeat !important;
}

html.portrait-game .game,
html.portrait-game #app:fullscreen .game,
html.portrait-game #app:-webkit-full-screen .game {
  background-image: linear-gradient(180deg,rgba(0,0,0,.49) 0%,rgba(0,0,0,.23) 17%,transparent 36%,transparent 79%,rgba(0,0,0,.35) 100%),
   var(--workshop-background) !important;
  background-position: center center,center center !important;
  background-size: 100% 100%,cover !important;
  background-repeat: no-repeat !important;
}

html.portrait-game body::after {
  display: none !important;
}

html.unified-game .game > .shade {
  position: fixed;
  inset: 0;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: max(12px,env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px))
         max(12px,env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px)) !important;
  overflow: hidden !important;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg,rgba(7,7,10,.8),rgba(1,1,2,.5)) !important;
}

html.unified-game .game > .shade[hidden] {
  display: none;
}

html.unified-game .game > .shade .modal,
html.unified-game .game > .shade #settings.modal {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: min(720px,100%) !important;
  max-width: 100%;
  max-height: 100% !important;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden !important;
  margin: auto !important;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

html.unified-game .game > #intro .modal {
  width: min(690px,100%) !important;
}

html.unified-game .game > #settings .modal {
  width: min(670px,100%) !important;
}

html.unified-game .game > #finish .modal {
  width: min(605px,100%) !important;
}

html.unified-game .game > #scores .modal {
  width: min(680px,100%) !important;
}

/* 
 * 04 · UNIFIED BUTTONS / PANELS / OVERLAYS
  */

html.unified-game .settings-modal {
  --settings-control-column: clamp(168px,44%,285px);
}

html.unified-game #intro .hub-selector .hub-name,
html.unified-game #scores .hub-score-name {
  max-width: calc(100vw - 120px);
  min-width: 0;
  font-size: clamp(16px,5vw,35px);
  overflow: hidden;
  text-overflow: ellipsis;
}

html.unified-game #scores .sc {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}

html.unified-game #scores .sc th,
html.unified-game #scores .sc td {
  word-break: normal;
  overflow-wrap: anywhere;
}

@media (max-width:620px) {
  html.unified-game .settings-modal {
    --settings-control-column: min(55%,240px);
  }

  html.unified-game .game > .shade .modal {
    padding: clamp(12px,3vw,22px) !important;
  }

  html.unified-game .game > .shade .modal h1 {
    font-size: clamp(29px,8vw,43px);
  }

  html.unified-game .settings-modal .setting-row {
    font-size: clamp(12px,3.4vw,15px);
  }
}

@media (max-height:600px) {
  html.unified-game .game > .shade .modal {
    padding: 13px 14px;
  }

  html.unified-game .game > .shade .modal h1 {
    font-size: clamp(27px,6vh,43px);
  }

  html.unified-game .settings-modal .setting-row {
    min-height: 42px;
  }
}

html.unified-game .bar,
html.unified-game #app:fullscreen .bar,
html.unified-game #app:-webkit-full-screen .bar {
  position: relative;
  z-index: 75;
  isolation: isolate;
}

html.unified-game .bar .model {
  margin-left: auto;
}

html.tablet-game #fullscreen,
html.phone-game #fullscreen {
  display: none;
}

html.unified-game .game > .shade {
  inset: var(--dt-arcade-header-h,80px) 0 0 0;
  top: var(--dt-arcade-header-h,80px);
  bottom: 0;
  width: 100vw !important;
  height: calc(100dvh - var(--dt-arcade-header-h,80px)) !important;
  z-index: 50;
}

html.portrait-game .bar,
html.portrait-game #app:fullscreen .bar,
html.portrait-game #app:-webkit-full-screen .bar {
  grid-template-columns: minmax(0,1fr) auto auto;
  gap: 0 clamp(5px,1.7vw,12px);
}

html.portrait-game .bar .model {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  white-space: nowrap;
}

@media (max-width:380px) {
  html.portrait-game .bar {
    padding-left: clamp(8px,3vw,15px);
    padding-right: clamp(8px,3vw,15px);
    column-gap: 5px;
  }

  html.portrait-game .bar .logo {
    width: clamp(100px,31vw,126px);
  }

  html.portrait-game .bar .model {
    font-size: clamp(12px,3.9vw,16px);
  }
}

html.unified-game .game,
html.unified-game #app:fullscreen .game,
html.unified-game #app:-webkit-full-screen .game {
  position: relative;
  overflow: hidden !important;
  width: 100% !important;
  min-height: 0;
}

html.unified-game .game #screen,
html.unified-game #app:fullscreen .game #screen,
html.unified-game #app:-webkit-full-screen .game #screen {
  position: absolute;
  display: block !important;
  left: 0;
  top: 0;
  width: 100% !important;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  object-fit: fill;
  transform: none;
  touch-action: manipulation;
}

html.unified-game .game #portraitCountdownCover {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100%;
  display: block;
  z-index: 12;
  overflow: hidden !important;
  pointer-events: none;
  background: rgba(0,0,0,.5) !important;
}

html.unified-game .game #portraitCountdownCover[hidden] {
  display: none;
}

html.unified-game .game #portraitCountdownCover span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  font: 700 clamp(95px,min(24vw,34dvh),310px)/1 "DTSwissCorporate",Arial,sans-serif;
  color: #fff;
  white-space: nowrap;
}

html.unified-game .game #portraitQuickActions {
  position: absolute;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: clamp(2px,.5vw,8px);
  transform: translateY(-50%);
}

html.unified-game .game #portraitQuickActions[hidden] {
  display: none;
}

html.unified-game .game #portraitQuickActions button {
  box-sizing: border-box;
  width: var(--dt-quick-size,42px) !important;
  height: var(--dt-quick-size,42px);
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  outline: 0;
  font-size: calc(var(--dt-quick-size,42px) * .63);
  color: #fff;
}

html.unified-game .game #portraitQuickActions button.arcade-focused,
html.unified-game .game #portraitQuickActions button:active {
  background: var(--red) !important;
  color: #fff;
}

html.unified-game .game #portraitQuickActions button:hover {
  color: var(--red);
}

html.unified-game #settingsFooter[hidden] {
  display: none !important;
}

html.unified-game #intro .intro-utility-actions[hidden] {
  display: none !important;
}

html.unified-game #intro .modal > p {
  max-width: min(470px,calc(100vw - 58px));
  margin: clamp(12px,2.4dvh,22px) auto clamp(14px,2.6dvh,25px);
  text-wrap: balance;
}

html.unified-game #intro .intro-utility-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  margin: clamp(22px,3.4dvh,32px) auto clamp(17px,2.8dvh,26px);
  width: auto;
  max-width: 100%;
}

html.unified-game #intro .intro-utility-actions.is-single .intro-tool-sep {
  display: none;
}

html.unified-game #intro .intro-tool {
  display: inline-block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  background: transparent !important;
  color: #e3000b;
  font: 700 clamp(15px,2.1vw,17px)/1 "DTSwissCorporate",Arial,sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
}

html.unified-game #intro .intro-tool-sep {
  display: inline-block;
  color: #5f6269;
  font: 300 clamp(16px,2.2vw,18px)/1 "DTSwissCorporate",Arial,sans-serif;
  padding: 0 16px;
  user-select: none;
}

html.unified-game #intro .intro-tool:hover,
html.unified-game #intro .intro-tool.arcade-focused,
html.unified-game #intro .intro-tool:focus-visible {
  background: transparent !important;
  color: #fff;
}

html.tablet-game #intro #fullscreen,
html.phone-game #intro #fullscreen,
html.unified-game #intro .intro-tool[hidden] {
  display: none;
}

@media (max-width:480px) {
  html.unified-game #intro .intro-utility-actions {
    margin-top: clamp(20px,3.2dvh,29px);
    margin-bottom: clamp(16px,2.7dvh,23px);
  }

  html.unified-game #intro .intro-tool {
    font-size: 14px;
  }

  html.unified-game #intro .intro-tool-sep {
    padding: 0 12px;
  }
}

html.unified-game .game #workshopFadeLayer {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  background-position: center center,center center,center center !important;
  background-size: 100% 100%,100% 100%,cover !important;
  background-repeat: no-repeat !important;
  will-change: opacity;
}

html.wide-game .game #workshopFadeLayer {
  background-image: linear-gradient(90deg,rgba(0,0,0,.63) 0%,rgba(0,0,0,.32) 19%,rgba(0,0,0,0) 52%),
   linear-gradient(180deg,rgba(0,0,0,.18) 0%,transparent 36%,rgba(0,0,0,.12) 100%),
   var(--next-workshop-background) !important;
}

html.portrait-game .game #workshopFadeLayer {
  background-image: linear-gradient(180deg,rgba(0,0,0,.49) 0%,rgba(0,0,0,.23) 17%,transparent 36%,transparent 79%,rgba(0,0,0,.35) 100%),
   var(--next-workshop-background) !important;
  background-position: center center,center center !important;
  background-size: 100% 100%,cover !important;
}

html.unified-game .game #screen {
  z-index: 1 !important;
}

@media (prefers-reduced-motion:reduce) {
  html.unified-game .game #workshopFadeLayer {
    transition: none;
  }
}

html.unified-game #intro .intro-description-line {
  display: block;
}

html.unified-game .settings-modal {
  padding: clamp(14px,2.2dvh,20px) clamp(13px,2.2vw,24px) 18px;
}

html.unified-game .settings-modal h1 {
  margin: 8px 0 clamp(10px,1.8dvh,17px);
}

html.unified-game .settings-modal .setting-row {
  min-height: clamp(42px,5.7dvh,54px);
  column-gap: clamp(7px,1.6vw,14px);
  font-size: clamp(12px,1.6vw,15px);
}

html.unified-game .settings-modal .setting-row > label,
html.unified-game .settings-modal .setting-row > span,
html.unified-game .settings-modal .setting-number,
html.unified-game .settings-modal .setting-number span {
  font-size: clamp(12px,1.6vw,15px);
}

html.unified-game .settings-modal .setting-row > .setting-switch,
html.unified-game .settings-modal .setting-switch {
  height: clamp(36px,4.9dvh,42px) !important;
  min-height: 0;
  font-size: clamp(11px,1.5vw,15px) !important;
}

html.unified-game .settings-modal .setting-number input {
  height: clamp(36px,4.9dvh,42px);
  font-size: 15px;
}

html.unified-game .settings-modal .settings-version {
  font-size: clamp(10px,1.35vw,13px);
}

html.unified-game .settings-modal .setting-close {
  font-size: 15px;
  min-height: 39px;
  padding: 9px 20px;
  margin: clamp(12px,2.1dvh,18px) auto 0;
}

@media (max-width:400px) {
  html.unified-game .settings-modal .setting-row {
    font-size: 12px;
  }
}

html.unified-game .game .arcade-progress-hud {
  position: absolute;
  z-index: 8;
  pointer-events: none;
  top: clamp(8px,1.8dvh,17px);
  left: clamp(12px,2.1vw,28px);
  right: clamp(12px,2.1vw,28px);
  color: #fff;
}

html.unified-game .arcade-progress-track {
  height: clamp(4px,.65dvh,8px);
  width: calc(100% - clamp(90px,12vw,134px));
  background: rgba(178,180,188,.42);
}

html.unified-game .arcade-progress-fill {
  height: 100%;
  width: 0%;
  background: #e3000b;
}

html.unified-game .arcade-progress-row {
  display: flex;
  align-items: center;
  gap: clamp(12px,2vw,24px);
  margin-top: clamp(14px,2dvh,22px);
  font-size: clamp(13px,1.35vw,19px);
  line-height: 1.25;
  font-weight: 700;
  white-space: nowrap;
}

html.unified-game .arcade-progress-row strong {
  font-size: clamp(16px,1.6vw,23px);
  line-height: 1.1;
}

@media (max-width:380px) {
  html.unified-game .arcade-progress-track {
    width: calc(100% - 92px);
  }

  html.unified-game .arcade-progress-row {
    gap: 10px;
  }
}

html.unified-game .game .portrait-stats-hud,
html.unified-game .game .portrait-title-hud,
html.unified-game .game .portrait-zone {
  display: none;
}

html.unified-game.portrait-game .game {
  --portrait-progress-h: clamp(42px,6.2dvh,64px);
  --portrait-stats-h: clamp(76px,10.6dvh,118px);
  --portrait-title-h: clamp(48px,6.8dvh,74px);
  display: grid;
  align-items: stretch;
  justify-items: stretch;
  grid-template-columns: minmax(0,1fr);
  grid-template-rows: var(--portrait-progress-h) var(--portrait-stats-h) var(--portrait-title-h)
                     minmax(0,.93fr) minmax(0,1.32fr);
  min-height: 0;
  isolation: isolate;
}

html.unified-game.portrait-game .game #arcadeProgressHud {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  min-width: 0;
  top: auto;
  left: auto;
  right: auto;
  margin: 0;
  padding: clamp(8px,1.3dvh,14px) clamp(12px,3.5vw,25px) 0;
  z-index: 6;
}

html.unified-game.portrait-game .arcade-progress-track {
  width: 100% !important;
}

html.unified-game.portrait-game .arcade-progress-row {
  margin-top: clamp(7px,1.1dvh,12px);
}

html.unified-game.portrait-game .game .portrait-stats-hud {
  grid-row: 2;
  grid-column: 1;
  z-index: 6;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0,1.45fr) minmax(0,.96fr) minmax(0,.85fr);
  gap: clamp(6px,1.8vw,22px);
  align-items: center;
  padding: clamp(8px,1.4dvh,14px) clamp(12px,3.5vw,25px);
  color: #fff;
  pointer-events: none;
  border-bottom: 1px solid rgba(235,236,241,.38);
}

html.unified-game.portrait-game .portrait-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

html.unified-game.portrait-game .portrait-stat>span {
  font-weight: 700;
  color: #c1c3c9;
  white-space: nowrap;
}

html.unified-game.portrait-game .portrait-stat strong {
  display: block;
  min-width: 0;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  white-space: nowrap;
}

/* 
 * 05 · HUD / RESPONSIVE ASSEMBLY GEOMETRY
  */

html.unified-game.portrait-game .portrait-stat.best-stat {
  text-align: center;
}

html.unified-game.portrait-game .portrait-stat.penalty-stat {
  text-align: right;
}

html.unified-game.portrait-game .portrait-stat.penalty-stat strong {
  color: #e3000b;
}

html.unified-game.portrait-game .game .portrait-title-hud {
  grid-column: 1;
  grid-row: 3;
  display: flex;
  align-items: center;
  z-index: 6;
  min-width: 0;
  padding: 2px clamp(12px,3.5vw,25px);
  color: #fff;
  pointer-events: none;
}

html.unified-game.portrait-game .portrait-title-hud>div {
  min-width: 0;
}

html.unified-game.portrait-game #portraitHubLabel {
  display: block;
  color: #e3000b;
  font-weight: 700;
}

html.unified-game.portrait-game .portrait-title-hud h2 {
  font-weight: 700;
  white-space: nowrap;
  margin: 0;
}

html.unified-game.portrait-game .game .portrait-zone {
  display: block;
  grid-column: 1;
  min-width: 0;
  min-height: 0;
  position: relative;
  z-index: 0;
  pointer-events: none;
}

html.unified-game.portrait-game #portraitHubZone {
  grid-row: 4;
}

html.unified-game.portrait-game #portraitPartsZone {
  grid-row: 5;
}

html.unified-game.portrait-game .game #screen {
  grid-row: 1/-1;
  pointer-events: auto;
}

html.unified-game.portrait-game .game #portraitQuickActions {
  z-index: 16;
  right: clamp(7px,2.5vw,20px);
}

@media (max-height:680px) {
  html.unified-game.portrait-game .game {
    --portrait-progress-h: clamp(38px,7dvh,52px);
    --portrait-stats-h: clamp(70px,12.2dvh,90px);
    --portrait-title-h: clamp(43px,7.8dvh,56px);
  }

  html.unified-game.portrait-game .portrait-stat {
    gap: 8px;
  }
}

@media (max-width:360px) {
  html.unified-game.portrait-game .game .portrait-stats-hud {
    column-gap: 4px;
  }

  html.unified-game.portrait-game .portrait-stat>span {
    font-size: 10px;
  }

  html.unified-game.portrait-game .portrait-stat.time-stat strong {
    font-size: clamp(25px,7.3vw,31px);
  }
}

html.unified-game .game .wide-zone,
html.unified-game .game .wide-stats-hud {
  display: none;
}

html.unified-game.wide-game .game {
  display: grid !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  grid-template-columns: minmax(0,1fr);
  grid-template-rows: clamp(62px,9.5%,105px) minmax(0,1.56fr) minmax(0,1.02fr);
  overflow: hidden !important;
  isolation: isolate;
}

html.unified-game.wide-game .game #arcadeProgressHud {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  min-width: 0;
  top: auto;
  left: auto;
  right: auto;
  margin: 0;
  padding: clamp(8px,1.4dvh,16px) clamp(12px,2vw,32px) 0;
  z-index: 8;
}

html.unified-game.wide-game .arcade-progress-track {
  width: 100% !important;
}

html.unified-game.wide-game .arcade-progress-row {
  margin-top: clamp(8px,1.5dvh,18px);
  font-size: clamp(12px,1.3vw,18px);
}

html.unified-game.wide-game .game .wide-zone {
  display: block;
  grid-column: 1;
  position: relative;
  z-index: 0;
  min-width: 0;
  min-height: 0;
  pointer-events: none;
}

html.unified-game.wide-game #wideHubZone {
  grid-row: 2;
}

html.unified-game.wide-game #widePartsZone {
  grid-row: 3;
}

html.unified-game.wide-game .game .wide-stats-hud {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-self: start;
  position: relative;
  z-index: 7;
  pointer-events: none;
  width: clamp(164px,24.2%,345px);
  max-width: 35%;
  padding: clamp(11px,2.6dvh,31px) 0 4px clamp(12px,2.1vw,32px);
  color: #fff;
}

html.unified-game.wide-game .wide-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: clamp(35px,6.0dvh,74px);
  border-bottom: 1px solid rgba(200,201,205,.18);
  font-variant-numeric: tabular-nums;
}

html.unified-game.wide-game .wide-stat-row span {
  font-size: clamp(10px,1vw,16px);
  font-weight: 700;
  color: #c9cad0;
  white-space: nowrap;
}

html.unified-game.wide-game .wide-stat-row strong {
  font-size: clamp(13px,1.65vw,27px);
  font-weight: 700;
  white-space: nowrap;
}

html.unified-game.wide-game .wide-stat-row:nth-child(2) strong {
  color: #e3000b;
}

html.unified-game.wide-game .wide-hub-heading {
  margin-top: clamp(11px,2.6dvh,31px);
}

html.unified-game.wide-game .wide-hub-heading span {
  display: block;
  color: #e3000b;
  font-weight: 700;
  font-size: clamp(9px,.9vw,14px);
}

html.unified-game.wide-game .wide-hub-heading h2 {
  font-size: clamp(15px,1.7vw,28px);
  line-height: 1.1;
  font-weight: 700;
  margin: 4px 0 0;
  white-space: nowrap;
}

html.unified-game.wide-game .game #screen {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100%;
  z-index: 3;
  pointer-events: auto;
}

html.unified-game.portrait-game .game #screen {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100%;
  z-index: 3;
}

@media (max-height:610px) and (orientation:landscape) {
  html.unified-game.wide-game .game {
    grid-template-rows: clamp(47px,12%,65px) minmax(0,1.32fr) minmax(0,1fr);
  }

  html.unified-game.wide-game .wide-stat-row {
    min-height: clamp(28px,7dvh,46px);
  }

  html.unified-game.wide-game .wide-hub-heading {
    margin-top: 5px;
  }
}

@media (orientation:landscape) and (max-height:510px) {
  html.phone-game.wide-game .bar {
    height: clamp(42px,11dvh,56px);
    flex-basis: clamp(42px,11dvh,56px);
    padding-left: max(12px,env(safe-area-inset-left,0px));
    padding-right: max(12px,env(safe-area-inset-right,0px));
  }

  html.phone-game.wide-game .bar .logo {
    width: clamp(100px,18vw,145px);
  }

  html.phone-game.wide-game .bar .model {
    font-size: clamp(13px,2.4vw,18px);
  }

  html.phone-game.wide-game .game {
    grid-template-rows: clamp(40px,11%,54px) minmax(0,1.36fr) minmax(0,1fr);
  }

  html.phone-game.wide-game .game #arcadeProgressHud {
    padding-top: 6px;
    padding-left: max(12px,env(safe-area-inset-left,0px));
    padding-right: max(12px,env(safe-area-inset-right,0px));
  }

  html.phone-game.wide-game .arcade-progress-row {
    margin-top: 5px;
    font-size: clamp(11px,1.6vw,14px);
  }

  html.phone-game.wide-game .wide-stats-hud {
    padding: 4px 0 0 max(12px,env(safe-area-inset-left,0px));
  }

  html.phone-game.wide-game .wide-stat-row {
    min-height: clamp(25px,7.5dvh,34px);
  }

  html.phone-game.wide-game .wide-stat-row span {
    font-size: clamp(9px,1.5vw,12px);
  }

  html.phone-game.wide-game .wide-stat-row strong {
    font-size: clamp(12px,2vw,17px);
  }

  html.phone-game.wide-game .wide-hub-heading {
    margin-top: 4px;
  }

  html.phone-game.wide-game .wide-hub-heading h2 {
    font-size: clamp(13px,2vw,18px);
  }
}

@media (orientation:landscape) and (max-height:415px) {
  html.phone-game.wide-game #intro .modal {
    padding: 12px 14px 10px;
  }

  html.phone-game.wide-game #intro .modal h1 {
    font-size: clamp(27px,4.5vw,39px);
    margin: 7px 0;
  }

  html.phone-game.wide-game #intro .hub-selector {
    margin: 5px auto;
  }

  html.phone-game.wide-game #intro .modal > p {
    font-size: clamp(11px,1.7vw,13px);
    line-height: 1.24;
    margin: 7px auto 9px;
  }

  html.phone-game.wide-game #intro .intro-utility-actions {
    margin: 10px auto 5px;
  }
}

html.unified-game.portrait-game .game .portrait-stats-hud {
  overflow: hidden;
  column-gap: clamp(5px,1.4vw,16px);
}

html.unified-game.portrait-game .portrait-stat {
  overflow: hidden;
  gap: clamp(4px,.8dvh,10px);
}

html.unified-game.portrait-game .portrait-stat>span {
  font-size: clamp(10px,1.65vw,12px);
  line-height: 1.1;
}

html.unified-game.portrait-game .portrait-stat strong {
  font-size: clamp(13px,2.7vw,24px);
  line-height: 1.04;
  max-width: 100%;
}

html.unified-game.portrait-game .portrait-stat.time-stat strong {
  font-size: clamp(23px,5.7vw,46px);
}

html.unified-game.portrait-game .arcade-progress-row {
  font-size: clamp(11px,2.25vw,16px);
}

html.unified-game.portrait-game .arcade-progress-row strong {
  font-size: clamp(14px,2.7vw,19px);
}

html.unified-game.portrait-game #portraitHubLabel {
  font-size: clamp(10px,1.5vw,13px);
  margin-bottom: clamp(2px,.45dvh,5px);
}

html.unified-game.portrait-game .portrait-title-hud h2 {
  font-size: clamp(19px,3.7vw,31px);
  line-height: 1.02;
  max-width: 100%;
  overflow: hidden;
}

html.unified-game.portrait-game .game .portrait-title-hud {
  overflow: hidden;
}

#finish .finish-actions {
  width: min(426px,100%);
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 4px;
  margin: 12px auto 0;
  align-items: stretch;
}

#finish .finish-actions button {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 11px 4px;
  font-size: clamp(10px,1.35vw,13px);
  white-space: nowrap;
}

@media (max-width:620px) {
  #finish .finish-actions {
    gap: 3px;
    margin-top: 11px;
  }

  #finish .finish-actions button {
    padding: 10px 3px;
    font-size: clamp(9px,2.5vw,12px);
  }
}

html.unified-game .settings-modal .settings-version .settings-debug-link {
  appearance: none;
  background: transparent !important;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  color: #85878c;
  cursor: pointer;
  line-height: inherit;
  vertical-align: baseline;
}

html.unified-game .settings-modal .settings-version .settings-debug-link:hover,
html.unified-game .settings-modal .settings-version .settings-debug-link:focus-visible,
html.unified-game .settings-modal .settings-version .settings-debug-link.arcade-focused,
html.unified-game .settings-modal .settings-version .settings-debug-link[aria-pressed="true"] {
  color: #e3000b;
  background: transparent !important;
}

@media (orientation: landscape) and (max-height: 510px) {
  html.unified-game.phone-game.wide-game .game #arcadeProgressHud {
    padding-left: var(--dt-wide-align-left,max(12px,env(safe-area-inset-left,0px)));
    padding-right: var(--dt-wide-align-right,max(12px,env(safe-area-inset-right,0px)));
  }

  html.unified-game.phone-game.wide-game .game .wide-stats-hud {
    left: var(--dt-wide-align-left,max(12px,env(safe-area-inset-left,0px)));
    padding-left: 0;
  }

  html.unified-game.phone-game.wide-game .game #portraitQuickActions {
    right: var(--dt-wide-align-right,max(12px,env(safe-area-inset-right,0px)));
  }
}

:root {
  --dt-dark-red: #a90009;
  --dt-dark-button: #1b1c22;
}

html.unified-game .desktop-cursor-setting {
  display: none;
}

html.unified-game.desktop-mouse-device .desktop-cursor-setting {
  display: grid;
}

html.unified-game :is(.primary,.setting-close,#begin) {
  background: #e3000b;
  color: #fff;
}

html.unified-game :is(.secondary,.letter-key,.setting-actions button,.settings-confirm button) {
  background: var(--dt-dark-button);
  color: #fff;
}

html.unified-game #intro .arcade-choice.primary {
  background: #e3000b !important;
}

html.unified-game #intro .arcade-choice.secondary {
  background: var(--dt-dark-button) !important;
}

html.unified-game #finish .finish-actions .primary {
  background: #e3000b !important;
}

/* 
 * 06 · KEYBOARD / TOUCH / INTERACTION STATES
  */

html.unified-game #finish .finish-actions .secondary,
html.unified-game #scores .score-actions .secondary {
  background: var(--dt-dark-button) !important;
}

html.unified-game :is(.primary,.secondary,.letter-key,.setting-switch,.setting-actions button,.settings-confirm button,.setting-close,.setting-hub-current):is(:hover,:focus-visible,:active,.arcade-focused),
html.unified-game .letter-key.active,
html.unified-game #intro .arcade-choice.is-selected,
html.unified-game #intro .arcade-choice:is(:hover,:focus-visible,:active),
html.unified-game #finish .finish-actions button:is(:hover,:focus-visible,:active,.arcade-focused),
html.unified-game #scores .score-actions button:is(:hover,:focus-visible,:active,.arcade-focused) {
  background: var(--dt-dark-red) !important;
  border-color: transparent;
  color: #fff;
  box-shadow: none;
}

html.unified-game .setting-switch[aria-checked="true"],
html.unified-game .setting-switch[aria-pressed="true"] {
  background: #e3000b;
}

html.unified-game .setting-switch[aria-checked="true"]:is(:hover,:focus-visible,:active,.arcade-focused),
html.unified-game .setting-switch[aria-pressed="true"]:is(:hover,:focus-visible,:active,.arcade-focused) {
  background: var(--dt-dark-red) !important;
}

html.unified-game .setting-mode-option:is(:hover,:focus-visible,:active,.arcade-focused),
html.unified-game .setting-mode-option[aria-pressed="true"]:is(:hover,:focus-visible,:active,.arcade-focused) {
  background: var(--dt-dark-red) !important;
}

html.unified-game #finish .initials-slots {
  box-sizing: border-box;
  display: block;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-bottom: 2px solid #777982;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  height: clamp(37px,5.5dvh,48px);
  padding: 3px 8px 7px;
  margin: 8px auto 12px;
  color: #fff;
  text-align: center;
  font: 700 clamp(19px,3.5dvh,29px)/1.1 "DTSwissCorporate",Arial,sans-serif;
  letter-spacing: .045em;
  text-transform: uppercase;
  outline: 0;
}

html.unified-game #finish .initials-slots::placeholder {
  color: #83858c;
  opacity: 1;
  font-size: clamp(11px,1.9dvh,14px);
  font-weight: 400;
  letter-spacing: .1em;
}

html.unified-game #finish .initials-slots:focus {
  border-bottom-color: #e3000b;
}

html.unified-game #finish .arcade-initials {
  margin: 8px auto 9px;
}

html.unified-game #finish .arcade-letters {
  row-gap: 5px;
  column-gap: 4px;
}

html.unified-game #finish .letter-key {
  min-height: clamp(26px,4.6dvh,38px);
  padding: 3px 2px;
  font-size: clamp(15px,2.8dvh,19px);
}

html.unified-game #finish .finish-actions {
  margin-top: 13px;
}

html.unified-game #finish .finish-actions button {
  min-height: clamp(34px,5dvh,47px);
  padding: clamp(7px,1.45dvh,13px) 4px;
}

html.unified-game .game #portraitQuickActions button,
html.unified-game .game #portraitQuickActions button:is(:hover,:focus,:focus-visible,:active,.arcade-focused),
html.portrait-game.unified-game .game #portraitQuickActions button:is(:hover,:focus,:focus-visible,:active,.arcade-focused) {
  background: transparent !important;
  background-color: transparent !important;
  border: 0;
  border-color: transparent;
  box-shadow: none;
  outline: 0;
  color: #fff;
}

html.unified-game .game #portraitQuickActions button:is(:hover,:focus-visible,:active,.arcade-focused) {
  color: #a90009;
}

html.unified-game .game #portraitQuickActions #portraitRestart {
  font-weight: 400;
}

html.unified-game.portrait-game .game #portraitQuickActions button {
  font-size: 28px;
  font-weight: 400;
}

@media (max-height:490px) and (orientation:landscape) {
  html.unified-game .game > #finish .modal {
    padding: 6px 12px;
  }

  html.unified-game #finish .modal h1 {
    font-size: clamp(23px,6dvh,29px);
    margin: 3px 0;
  }

  html.unified-game #finish .result {
    font-size: clamp(24px,7dvh,32px);
  }

  html.unified-game #finish .arcade-initials {
    margin: 2px auto 3px;
  }

  html.unified-game #finish .initials-slots {
    height: 24px;
    margin: 2px auto 5px;
    padding: 1px 5px 2px;
    font-size: 18px;
  }

  html.unified-game #finish .arcade-letters {
    row-gap: 2px;
    column-gap: 4px;
  }

  html.unified-game #finish .letter-key {
    min-height: clamp(19px,5.5dvh,26px);
    padding: 0 1px;
    font-size: 14px;
  }

  html.unified-game #finish .letter-key.special {
    font-size: 10px;
  }

  html.unified-game #finish .finish-actions {
    margin-top: 5px;
  }

  html.unified-game #finish .finish-actions button {
    min-height: 24px;
    padding: 3px 2px;
    font-size: 10px;
  }
}

html.unified-game #settings :is(.setting-switch,.setting-mode-option),
html.unified-game #settings :is(.setting-switch,.setting-mode-option)[aria-checked="true"],
html.unified-game #settings :is(.setting-switch,.setting-mode-option)[aria-pressed="true"] {
  background: var(--dt-dark-button) !important;
  color: #fff;
}

html.unified-game #settings :is(.setting-switch,.setting-mode-option):is(:hover,:focus-visible,:active,.arcade-focused) {
  background: var(--dt-dark-red) !important;
  color: #fff;
}

html.unified-game button:not(.hub-nav):not(.intro-tool):not(.settings-debug-link):not(#portraitHome):not(#portraitRestart):is(:hover,:focus-visible,.arcade-focused,.is-selected),
html.unified-game #finish .letter-key.active {
  animation: dtArcadeSelectionPulse 1.45s ease-in-out infinite both;
}

html.unified-game #intro #hubSelector.is-selected .hub-name {
  animation: dtArcadeHubSelectionPulse 1.45s ease-in-out infinite both;
}

html.unified-game #intro #hubSelector.is-selected .hub-name.anim-in-left {
  animation: dtHubInLeft .2s cubic-bezier(.18,.7,.18,1) both,
            dtArcadeHubSelectionPulse 1.45s ease-in-out infinite both;
}

html.unified-game #intro #hubSelector.is-selected .hub-name.anim-in-right {
  animation: dtHubInRight .2s cubic-bezier(.18,.7,.18,1) both,
            dtArcadeHubSelectionPulse 1.45s ease-in-out infinite both;
}

html.unified-game #intro .intro-tool:is(:hover,:focus-visible,.arcade-focused),
html.unified-game #intro .hub-selector .hub-nav:is(:hover,:focus-visible,.arcade-focused),
html.unified-game #scores .hub-nav:is(:hover,:focus-visible,.arcade-focused),
html.unified-game #settings .setting-hub-selector .hub-nav:is(:hover,:focus-visible,.arcade-focused),
html.unified-game #settings .settings-debug-link:is(:hover,:focus-visible,.arcade-focused),
html.unified-game .game #portraitQuickActions button:is(:hover,:focus-visible,.arcade-focused) {
  color: var(--dt-dark-red);
  animation: dtArcadeSelectionPulse 1.45s ease-in-out infinite both;
}

@media (prefers-reduced-motion:reduce) {
  html.unified-game button:is(:hover,:focus-visible,.arcade-focused,.is-selected),
  html.unified-game #finish .letter-key.active,
  html.unified-game #intro #hubSelector.is-selected .hub-name {
    animation: none !important;
  }

  html.unified-game #intro #hubSelector.is-selected .hub-name {
    filter: none;
  }

  html.unified-game button:is(:hover,:focus-visible,.arcade-focused,.is-selected) {
    filter: none;
  }
}

html.unified-game #intro #settingsFooter,
html.unified-game #intro #fullscreen {
  color: #444444;
  animation: none;
  filter: none;
}

html.unified-game #intro #settingsFooter:is(:hover,:focus-visible,.arcade-focused),
html.unified-game #intro #fullscreen:is(:hover,:focus-visible,.arcade-focused) {
  color: #E3000B;
}

html.unified-game #finish .modal h1 {
  color: #E3000B;
  font-weight: 300;
}

html.unified-game #finish .modal h1 span {
  font-weight: 300;
}

html.unified-game #finish #resultTime {
  color: #FFFFFF;
  font-weight: 700;
}

html.unified-game #scores .sc th:first-child,
html.unified-game #scores .sc td:first-child {
  width: 8%;
}

html.unified-game #scores .sc th:nth-child(2),
html.unified-game #scores .sc td:nth-child(2) {
  width: 32%;
}

html.unified-game #intro #begin.intro-start-inactive:not(:hover):not(:focus-visible):not(.arcade-focused) {
  background: var(--dt-dark-button) !important;
}

html.unified-game.desktop-mouse-device:not(.cursor-hidden),
html.unified-game.desktop-mouse-device:not(.cursor-hidden) * {
  cursor: default;
}

html.unified-game.desktop-mouse-device:not(.cursor-hidden) :is(button,a,[role="button"],label[for],select,summary,#screen) {
  cursor: pointer;
}

html.unified-game.desktop-mouse-device:not(.cursor-hidden) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]),textarea,[contenteditable="true"]) {
  cursor: text;
}

html.unified-game.desktop-mouse-device.cursor-hidden,
html.unified-game.desktop-mouse-device.cursor-hidden * {
  cursor: none;
}

html.unified-game .highscore-storage-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 12px 0;
  border-bottom: 1px solid #2b2c31;
  color: #a8aab1;
  font: 300 12px/1.45 "DTSwissCorporate",Arial,sans-serif;
  letter-spacing: .3px;
}

html.unified-game #highscoreStorageStatus {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

html.unified-game #syncHighscores {
  border: 0;
  border-radius: 0;
  background: #25262c;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  padding: 10px 13px;
  min-height: 40px;
  cursor: pointer;
}

html.unified-game #syncHighscores:disabled {
  opacity: .38;
  cursor: default;
  background: #25262c !important;
  animation: none !important;
}

html.unified-game #syncHighscores:not(:disabled):is(:hover,:focus-visible,.arcade-focused) {
  animation: dtArcadeSelectionPulse 1.45s ease-in-out infinite both;
  background: #A90009 !important;
  color: #fff;
}

html.unified-game .scores-connection-status {
  color: #93959e;
  font: 300 11px/1.4 "DTSwissCorporate",Arial,sans-serif;
  text-align: center;
  min-height: 17px;
  margin: 0 auto 10px;
  letter-spacing: .3px;
}

html.unified-game .settings-modal #highscoreStorageControl {
  min-width: 0;
  width: 100%;
}

/* 
 * 07 · FINISH / HIGHSCORES / SETTINGS DETAILS
  */

@media (max-width:620px) {
  html.unified-game .highscore-storage-info {
    font-size: 10px;
    min-height: 44px;
  }

  html.unified-game #syncHighscores {
    font-size: 10px;
    padding: 8px;
    min-height: 36px;
  }
}

@media (prefers-reduced-motion:reduce) {
  html.unified-game #syncHighscores:not(:disabled):is(:hover,:focus-visible,.arcade-focused) {
    animation: none !important;
  }
}

html.unified-game #intro #begin:not(:hover):not(:focus-visible):not(.arcade-focused):not(.is-selected) {
  background: var(--dt-dark-button) !important;
  animation: none;
  filter: none;
}

html.unified-game #intro #begin:is(:hover,:focus-visible,.arcade-focused,.is-selected) {
  background: var(--dt-dark-red) !important;
}

html.unified-game,
html.unified-game body,
html.unified-game body * {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

html.unified-game :is(input,textarea,[contenteditable],[role="textbox"]),
html.unified-game [contenteditable] * {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

html.unified-game .settings-modal .setting-number {
  --number-step-size: clamp(36px,4.9dvh,42px);
  gap: 8px;
}

html.unified-game .settings-modal .setting-number .setting-stepper {
  gap: 0;
}

html.unified-game .settings-modal .setting-number .setting-step {
  display: inline-flex;
  flex: 0 0 var(--number-step-size) !important;
  width: var(--number-step-size) !important;
  height: var(--number-step-size);
  min-width: var(--number-step-size);
  min-height: var(--number-step-size);
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--dt-dark-button) !important;
  color: #FFFFFF;
  font: 700 30px/1 "DTSwissCorporate",Arial,sans-serif;
  text-align: center;
  appearance: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none;
  outline: none;
  animation: none;
  filter: none;
}

html.unified-game .settings-modal .setting-number input {
  height: var(--number-step-size);
  background: var(--dt-dark-button) !important;
  border-radius: 0;
}

html.unified-game .settings-modal .setting-number input:is(:focus,:focus-visible,:active,:hover,.arcade-focused) {
  background: var(--dt-dark-button) !important;
  color: #FFFFFF;
}

@media (hover:hover) and (pointer:fine) {
  html.unified-game .settings-modal .setting-number .setting-step:hover {
    background: #E3000B !important;
    color: #FFFFFF;
    animation: none !important;
  }
}

html.unified-game .settings-modal .setting-number .setting-step:is(:focus-visible,.arcade-focused),
html.unified-game .settings-modal .setting-number .setting-step.arrow-pressed {
  background: #E3000B !important;
  color: #FFFFFF;
  animation: none !important;
}

@media (prefers-reduced-motion:reduce) {
  html.unified-game .settings-modal .setting-number .setting-step {
    animation: none;
    filter: none;
  }
}

@media (max-width:620px) {
  html.unified-game .settings-modal .setting-number {
    --number-step-size: clamp(30px,4.9dvh,38px);
    gap: 5px;
  }

  html.unified-game .settings-modal .setting-number .setting-stepper {
    gap: 0;
  }

  html.unified-game .settings-modal .setting-number input {
    width: 58px !important;
    flex-basis: 58px !important;
    min-width: 0;
  }
}

@media (max-width:420px) {
  html.unified-game .settings-modal .setting-row.setting-number-row {
    grid-template-columns: minmax(0,1fr) 62%;
  }

  html.unified-game .settings-modal .setting-number {
    --number-step-size: clamp(32px,10vw,38px);
    gap: 3px;
  }

  html.unified-game .settings-modal .setting-number .setting-stepper {
    gap: 0;
  }

  html.unified-game .settings-modal .setting-number input {
    width: 45px !important;
    flex-basis: 45px !important;
    min-width: 45px !important;
    padding: 3px 1px;
    font-size: 14px;
  }

  html.unified-game .settings-modal .setting-number span {
    font-size: 11px !important;
  }

  html.unified-game .settings-modal .setting-number .setting-step {
    font-size: 25px;
  }
}

@media (max-width:340px) {
  html.unified-game .settings-modal .setting-number {
    --number-step-size: 32px;
  }

  html.unified-game .settings-modal .setting-number .setting-stepper {
    gap: 0;
  }

  html.unified-game .settings-modal .setting-number input {
    width: 43px !important;
    flex-basis: 43px !important;
    min-width: 43px !important;
  }
}

html.unified-game :is(
  #intro .hub-selector .hub-nav,
  #scores .hub-score-browser .hub-nav,
  #settings .setting-hub-selector .hub-nav
),
html.unified-game :is(
  #intro .hub-selector .hub-nav,
  #scores .hub-score-browser .hub-nav,
  #settings .setting-hub-selector .hub-nav
):is(:hover,:focus,:focus-visible,:active,.arcade-focused) {
  background: transparent !important;
  background-color: transparent !important;
  border-color: transparent;
  color: #E3000B;
  outline: 0;
  box-shadow: none;
  animation: none;
  filter: none;
  -webkit-tap-highlight-color: transparent;
}

html.unified-game :is(
  #intro .hub-selector .hub-nav,
  #scores .hub-score-browser .hub-nav,
  #settings .setting-hub-selector .hub-nav
).arrow-pressed {
  color: #FFFFFF;
}

html.unified-game #finish .arcade-initials,
html.unified-game #finish .finish-actions {
  width: min(480px,100%);
  max-width: 100%;
}

html.unified-game #finish .arcade-letters {
  --name-key-gap: clamp(2px,.65vw,5px);
  --name-key-size: calc((100% - 9 * var(--name-key-gap)) / 10);
  display: flex;
  flex-direction: column;
  gap: clamp(3px,.7dvh,6px);
  width: 100%;
}

html.unified-game #finish .arcade-letter-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--name-key-gap);
  width: 100%;
}

html.unified-game #finish .letter-key,
html.unified-game #finish .letter-key.special {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  flex: 0 0 var(--name-key-size);
  width: var(--name-key-size);
  height: clamp(28px,4.8dvh,42px);
  min-height: 0;
  padding: 0;
  line-height: 1;
  font-size: clamp(11px,2.1dvh,19px);
}

html.unified-game #finish .letter-key.special {
  font-size: clamp(9px,1.6dvh,13px);
}

html.unified-game #finish .finish-actions {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
  margin: 14px auto 0;
}

html.unified-game #finish .finish-actions #save {
  grid-column: 1/-1;
  min-height: clamp(38px,6dvh,52px);
  font-size: clamp(13px,2.3dvh,17px);
}

html.unified-game #finish .finish-actions :is(#again,#finishHome) {
  grid-row: 2;
  min-height: clamp(32px,4.8dvh,42px);
  font-size: clamp(10px,1.8dvh,13px);
}

@media (orientation:landscape) and (max-height:490px) {
  html.unified-game #finish .arcade-letters {
    gap: 2px;
    --name-key-gap: 3px;
  }

  html.unified-game #finish .letter-key,
 html.unified-game #finish .letter-key.special {
    height: clamp(19px,5.5dvh,26px);
    min-height: 0;
    font-size: clamp(11px,3.7dvh,15px);
  }

  html.unified-game #finish .letter-key.special {
    font-size: 10px;
  }

  html.unified-game #finish .finish-actions {
    gap: 3px;
    margin-top: 5px;
  }

  html.unified-game #finish .finish-actions #save {
    min-height: clamp(24px,8dvh,29px);
    font-size: 11px;
  }

  html.unified-game #finish .finish-actions :is(#again,#finishHome) {
    min-height: clamp(20px,6dvh,25px);
    font-size: 10px;
  }
}

html.unified-game .settings-modal .setting-number-row .setting-number {
  gap: 0;
}

html.unified-game .settings-modal .setting-number-row .setting-stepper {
  display: flex;
  width: 100%;
  min-width: 0;
  gap: 0;
  align-items: stretch;
  background: var(--dt-dark-button);
}

html.unified-game .settings-modal .setting-number-row .setting-stepper .setting-step {
  flex: 0 0 clamp(36px,4.9dvh,42px);
  width: clamp(36px,4.9dvh,42px);
}

html.unified-game .settings-modal .setting-number-row .setting-stepper input {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  background: var(--dt-dark-button) !important;
}

html.unified-game #finish .finish-actions #save:disabled,
html.unified-game #finish .finish-actions #save:disabled:is(:hover,:focus,:focus-visible,:active,.arcade-focused) {
  background: #292A30 !important;
  color: rgba(255,255,255,.48);
  cursor: default;
  animation: none !important;
  filter: none !important;
  box-shadow: none;
}

html.unified-game #finish .score-name-notice {
  color: #E3000B;
  font: 700 clamp(9px,1.5dvh,12px)/1.25 "DTSwissCorporate",Arial,sans-serif;
  letter-spacing: .015em;
  text-align: center;
  margin: -5px 0 5px;
  padding: 0 2px;
}

html.unified-game #finish .score-name-notice[hidden] {
  display: none;
}

@media (orientation:landscape) and (max-height:490px) {
  html.unified-game #finish .score-name-notice {
    font-size: 9px;
    margin: -2px 0 2px;
  }
}

#dtArcadeLoader .loading-progress::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 0;
  width: 22%;
  pointer-events: none;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.25),transparent);
  animation: dtArcadeLoaderScan 1.5s linear infinite;
}

#dtArcadeLoader.is-pending .loading-progress::after {
  background: linear-gradient(90deg,transparent,rgba(227,0,11,.45),#e3000b,rgba(227,0,11,.45),transparent);
}

#dtArcadeLoader.has-error .loading-progress::after {
  display: none;
}

#dtArcadeLoader.is-pending .loading-percent {
  font-size: clamp(14px,3.8vw,18px);
}

@media (prefers-reduced-motion:reduce) {
  #dtArcadeLoader .loading-progress::after {
    animation: none;
    transform: translateX(0);
  }

  #dtArcadeLoader.is-pending .loading-progress::after {
    background: #e3000b;
    width: 9%;
  }
}

html.unified-game #finish .overline {
  margin-bottom: clamp(6px,3.1dvh,28px);
}

html.unified-game #finish #resultTime {
  line-height: 1;
  margin-top: 20px;
  margin-bottom: -4px;
}

html.unified-game #finish .modal h1 {
  margin: 0 0 15px;
}

html.unified-game #finish .initials-slots {
  width: min(255px,100%);
  margin-top: 5px;
  margin-bottom: 15px;
}

html.unified-game #finish .score-name-notice:not([hidden]) {
  margin-bottom: 20px !important;
}

@media (orientation:landscape) and (max-height:490px) {
  html.unified-game #finish .overline {
    margin-bottom: 3px;
  }

  html.unified-game #finish #resultTime {
    margin-bottom: 0;
  }

  html.unified-game #finish .modal h1 {
    margin-top: 3px;
    margin-bottom: 4px;
  }

  html.unified-game #finish .initials-slots {
    margin-top: 2px;
    margin-bottom: 4px;
  }

  html.unified-game #finish .score-name-notice:not([hidden]) {
    margin-bottom: 3px !important;
  }
}

@media (orientation:portrait) and (max-height:660px) {
  html.unified-game #finish .overline {
    margin-bottom: 5px;
  }

  html.unified-game #finish .modal h1 {
    margin-bottom: 8px;
  }

  html.unified-game #finish .score-name-notice:not([hidden]) {
    margin-bottom: 5px !important;
  }
}

html.unified-game.arcade-keyboard-nav #intro .arcade-choice:not(.is-selected):is(:hover,:focus-visible),
html.unified-game.arcade-keyboard-nav #finish .letter-key:not(.active):is(:hover,:focus-visible),
html.unified-game.arcade-keyboard-nav #finish .finish-actions :is(#again,#finishHome):not(.arcade-focused):is(:hover,:focus-visible),
html.unified-game.arcade-keyboard-nav #scores .score-actions button:not(.arcade-focused):is(:hover,:focus-visible),
html.unified-game.arcade-keyboard-nav #settings .setting-switch:not(.arcade-focused):is(:hover,:focus-visible),
html.unified-game.arcade-keyboard-nav #settings .setting-step:not(.arrow-pressed):is(:hover,:focus-visible),
html.unified-game.arcade-keyboard-nav #settings #syncHighscores:not(.arcade-focused):is(:hover,:focus-visible) {
  background: var(--dt-dark-button) !important;
  animation: none !important;
  filter: none !important;
  box-shadow: none;
}

html.unified-game.arcade-keyboard-nav #finish #save:not(.arcade-focused):not(:disabled):is(:hover,:focus-visible),
html.unified-game.arcade-keyboard-nav #settings #settingsClose:not(.arcade-focused):is(:hover,:focus-visible) {
  background: #E3000B !important;
  animation: none !important;
  filter: none !important;
  box-shadow: none;
}

html.unified-game.arcade-keyboard-nav #intro #begin:not(.is-selected):is(:hover,:focus-visible) {
  background: var(--dt-dark-button) !important;
  animation: none !important;
  filter: none !important;
}

html.unified-game.arcade-keyboard-nav #intro :is(#settingsFooter,#fullscreen):not(.arcade-focused):is(:hover,:focus-visible) {
  color: #444444;
  animation: none !important;
  filter: none !important;
}

html.unified-game.arcade-keyboard-nav #settings #debugToggle:not(.arcade-focused):not([aria-pressed="true"]):is(:hover,:focus-visible) {
  color: #85878C;
  animation: none !important;
  filter: none !important;
}

html.unified-game.arcade-keyboard-nav #portraitQuickActions button:not(.arcade-focused):is(:hover,:focus-visible) {
  background: transparent !important;
  color: #FFFFFF;
  animation: none !important;
  filter: none !important;
}

html.unified-game .settings-modal .setting-row[hidden] {
  display: none !important;
}

@media (hover:hover) and (pointer:fine) {
  html.unified-game:not(.arcade-keyboard-nav):not(.arcade-touch-nav) #settings .setting-number-row .setting-stepper:hover,
 html.unified-game:not(.arcade-keyboard-nav):not(.arcade-touch-nav) #settings .setting-number-row .setting-stepper:hover > :is(.setting-step,input) {
    background: #E3000B !important;
    color: #FFFFFF;
    animation: none !important;
    filter: none !important;
    box-shadow: none;
  }
}

html.unified-game:not(.arcade-keyboard-nav) #settings .setting-number-row .setting-stepper:active,
html.unified-game #settings .setting-number-row .setting-stepper.arcade-focused {
  background: #E3000B !important;
  animation: none !important;
  filter: none !important;
}

html.unified-game:not(.arcade-keyboard-nav) #settings .setting-number-row .setting-stepper:active > :is(.setting-step,input),
html.unified-game.arcade-keyboard-nav #settings .setting-number-row .setting-stepper.arcade-focused > :is(.setting-step,input),
html.unified-game #settings .setting-number-row .setting-stepper.arcade-focused > :is(.setting-step,input) {
  background: #E3000B !important;
  color: #FFFFFF;
  animation: none !important;
  filter: none !important;
  box-shadow: none;
}

html.unified-game.arcade-keyboard-nav #settings .setting-number-row .setting-stepper:not(.arcade-focused),
html.unified-game.arcade-keyboard-nav #settings .setting-number-row .setting-stepper:not(.arcade-focused) > :is(.setting-step,input):is(:hover,:focus-visible,.arrow-pressed) {
  background: var(--dt-dark-button) !important;
  color: #FFFFFF;
  animation: none;
  filter: none;
}

html.unified-game.arcade-touch-nav #settings .setting-number-row .setting-stepper:not(:active),
html.unified-game.arcade-touch-nav #settings .setting-number-row .setting-stepper:not(:active) > :is(.setting-step,input) {
  background: var(--dt-dark-button) !important;
  color: #FFFFFF;
  animation: none !important;
  filter: none !important;
  box-shadow: none;
}

html.unified-game #scores .hub-score-browser.is-selected .hub-score-name {
  color: #E3000B;
  animation: dtArcadeHubSelectionPulse 1.45s ease-in-out infinite both;
}

@media (hover:hover) and (pointer:fine) {
  html.unified-game:not(.arcade-keyboard-nav):not(.arcade-touch-nav)
 #scores .hub-score-browser:hover .hub-score-name {
    color: #E3000B;
    animation: dtArcadeHubSelectionPulse 1.45s ease-in-out infinite both;
  }
}

@media (prefers-reduced-motion:reduce) {
  html.unified-game #scores .hub-score-browser.is-selected .hub-score-name,
 html.unified-game #scores .hub-score-browser:hover .hub-score-name {
    animation: none !important;
    filter: none !important;
  }
}

html.unified-game #scores .score-device-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px,2.2vw,26px);
  margin: clamp(8px,1.9dvh,18px) auto clamp(7px,1.5dvh,14px);
}

html.unified-game #scores .score-device-filter {
  width: clamp(34px,4.5vw,55px);
  height: clamp(34px,4.5vw,55px);
  padding: 2px;
  border: 0;
  background: transparent !important;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: none;
  outline: 0;
  animation: none;
  -webkit-tap-highlight-color: transparent;
}

html.unified-game #scores .score-device-symbol {
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

html.unified-game #scores .score-device-symbol.score-device-all {
  -webkit-mask-image: url("./assets/common/Icons-devices.svg");
  mask-image: url("./assets/common/Icons-devices.svg");
}

html.unified-game #scores .score-device-symbol.score-device-phone {
  -webkit-mask-image: url("./assets/common/Icons-phone.svg");
  mask-image: url("./assets/common/Icons-phone.svg");
}

html.unified-game #scores .score-device-symbol.score-device-tablet {
  -webkit-mask-image: url("./assets/common/Icons-tablet.svg");
  mask-image: url("./assets/common/Icons-tablet.svg");
}

html.unified-game #scores .score-device-symbol.score-device-computer {
  -webkit-mask-image: url("./assets/common/Icons-computer.svg");
  mask-image: url("./assets/common/Icons-computer.svg");
}

html.unified-game #scores .score-device-filter[aria-pressed="true"],
html.unified-game #scores .score-device-filter.arcade-focused {
  color: #E3000B;
}

@media (hover:hover) and (pointer:fine) {
  html.unified-game:not(.arcade-keyboard-nav):not(.arcade-touch-nav) #scores .score-device-filter:hover {
    color: #E3000B;
  }
}

html.unified-game #scores .sc th:nth-child(1),
html.unified-game #scores .sc td:nth-child(1) {
  width: 8%;
}

html.unified-game #scores .sc th:nth-child(2),
html.unified-game #scores .sc td:nth-child(2) {
  width: 22%;
}

html.unified-game #scores .sc th:nth-child(3),
html.unified-game #scores .sc td:nth-child(3) {
  width: 18%;
}

html.unified-game #scores .sc th:nth-child(4),
html.unified-game #scores .sc td:nth-child(4) {
  width: 20%;
}

html.unified-game #scores .sc th:nth-child(5),
html.unified-game #scores .sc td:nth-child(5) {
  width: 15%;
}

html.unified-game #scores .sc th:nth-child(6),
html.unified-game #scores .sc td:nth-child(6) {
  width: 17%;
  white-space: nowrap;
  text-align: right;
}

@media (max-width:620px) {
  html.unified-game #scores .sc th,html.unified-game #scores .sc td {
    padding: 7px 2px;
    font-size: clamp(8px,2.5vw,12px);
    overflow-wrap: normal;
  }

  html.unified-game #scores .sc th:nth-child(2),html.unified-game #scores .sc td:nth-child(2) {
    width: 21%;
  }

  html.unified-game #scores .sc th:nth-child(3),html.unified-game #scores .sc td:nth-child(3) {
    width: 16%;
  }

  html.unified-game #scores .sc th:nth-child(4),html.unified-game #scores .sc td:nth-child(4) {
    width: 22%;
  }

  html.unified-game #scores .sc th:nth-child(5),html.unified-game #scores .sc td:nth-child(5) {
    width: 15%;
  }

  html.unified-game #scores .sc th:nth-child(6),html.unified-game #scores .sc td:nth-child(6) {
    width: 18%;
  }
}

html.png-debug,
html.png-debug body,
html.png-debug .app,
html.png-debug #app,
html.png-debug .game,
html.png-debug #app:fullscreen .game,
html.png-debug #app:-webkit-full-screen .game {
  background-color: #333333 !important;
}

html.png-debug.wide-game .game,
html.png-debug.wide-game #app:fullscreen .game,
html.png-debug.wide-game #app:-webkit-full-screen .game,
html.png-debug.portrait-game .game,
html.png-debug.portrait-game #app:fullscreen .game,
html.png-debug.portrait-game #app:-webkit-full-screen .game,
html.png-debug.portrait-game body,
html.png-debug.portrait-game,
html.png-debug.portrait-game body,
html.png-debug.portrait-game .app {
  background-image: none !important;
}

html.png-debug .game #workshopFadeLayer,
html.png-debug .game::before,
html.png-debug body::after {
  display: none !important;
  background-image: none !important;
}

html.unified-game #settings .setting-row.player-name-row .player-name-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: clamp(36px,4.9dvh,42px);
  padding: 0 12px;
  background: #25262c !important;
  color: #fff;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font: 700 clamp(12px,1.5vw,15px)/1.1 "DTSwissCorporate",Arial,sans-serif;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

html.unified-game #settings .setting-row.player-name-row .player-name-input::placeholder {
  color: #85868b;
  opacity: 1;
}

html.unified-game #settings .setting-row.player-name-row .player-name-input:is(:focus,.arcade-focused) {
  border-bottom-color: #E3000B;
  outline: none;
}

html.unified-game #scores .score-filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px,2vw,20px);
  max-width: 100%;
  margin: clamp(8px,1.9dvh,18px) auto clamp(7px,1.5dvh,14px);
}

html.unified-game #scores .score-filter-toolbar .score-device-filters {
  margin: 0;
  gap: clamp(5px,1.25vw,14px);
  flex: 0 1 auto;
  min-width: 0;
}

html.unified-game #scores .score-filter-toolbar .score-device-filter {
  width: clamp(29px,4vw,47px);
  height: clamp(29px,4vw,47px);
  flex: 0 1 auto;
}

html.unified-game #scores .score-mode-filters {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: clamp(6px,1.5vw,12px);
  margin: 0;
  padding: 0;
}

html.unified-game #scores .score-mode-filter {
  display: inline-block;
  min-width: 0;
  min-height: 0;
  padding: 4px 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  color: #ABACB2;
  font: 700 clamp(10px,1.15vw,12px)/1.25 "DTSwissCorporate",Arial,sans-serif;
  text-decoration: none;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  animation: none;
  filter: none;
  -webkit-tap-highlight-color: transparent;
}

html.unified-game #scores .score-mode-filter[aria-current="true"] {
  color: #E3000B;
}

html.unified-game #scores .score-mode-filter.arcade-focused,
html.unified-game #scores .score-mode-filter:focus-visible {
  color: #FF4149;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (hover:hover) and (pointer:fine) {
  html.unified-game:not(.arcade-keyboard-nav):not(.arcade-touch-nav) #scores .score-mode-filter:hover {
    color: #FF4149;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

html.unified-game #scores .sc tr.is-personal-score {
  background: rgba(227,0,11,.08);
}

html.unified-game #scores .sc tr.is-personal-score td:nth-child(2) {
  color: #FF444E;
  font-weight: 700;
}

html.unified-game #scores .sc td.empty-score-mode {
  text-align: center;
  color: #98999F;
  padding: 20px 6px !important;
  font: 300 clamp(11px,2.6vw,15px)/1.35 "DTSwissCorporate",Arial,sans-serif !important;
}

@media (max-width:360px) {
  html.unified-game #scores .score-filter-toolbar {
    gap: 8px;
  }

  html.unified-game #scores .score-filter-toolbar .score-device-filters {
    gap: 4px;
  }

  html.unified-game #scores .score-filter-toolbar .score-device-filter {
    width: 29px;
    height: 29px;
  }

  html.unified-game #scores .score-mode-filters {
    gap: 6px;
  }

  html.unified-game #scores .score-mode-filter {
    font-size: 10px;
  }
}

html.unified-game #settings .setting-row.player-name-row .player-name-input,
html.unified-game #settings .setting-row.player-name-row .player-name-input:is(:hover,:focus,:focus-visible,:active,.arcade-focused) {
  background: var(--dt-dark-button) !important;
  color: #FFFFFF;
  border: 0;
  border-bottom: 0;
  outline: none;
  box-shadow: none;
  border-radius: 0;
}

/* Player name: use the finish-screen QWERTZ keyboard in Settings. */
html.unified-game #settings .setting-row.player-name-row .player-name-input:is(:hover,:focus,:focus-visible,.arcade-focused),
html.unified-game #settings .setting-row.player-name-row .player-name-input.name-keyboard-open {
  background: var(--dt-dark-red) !important;
  color: #fff;
}

/* The name editor floats above Settings; opening it never reflows Settings. */
html.unified-game #settings #settingsNameKeyboard[hidden] { display: none; }
html.unified-game #settings #settingsNameKeyboard {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 20;
  margin: 0;
  padding: clamp(10px,3dvh,22px);
  overflow: hidden;
  isolation: isolate;
}
html.unified-game #settings .settings-name-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1,1,2,.83);
  cursor: default;
}
html.unified-game #settings .settings-name-keyboard-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(7px,1.45dvh,13px);
  box-sizing: border-box;
  width: min(100%,550px);
  max-height: 100%;
  padding: clamp(15px,2.7dvh,28px) clamp(12px,3vw,28px);
  background: #0d0e12;
  border-top: 4px solid var(--red);
  box-shadow: 0 18px 75px rgba(0,0,0,.75);
  overflow-y: auto;
  overscroll-behavior: contain;
}
html.unified-game #settings .settings-name-keyboard-title {
  font: 700 clamp(20px,3.6dvh,31px)/1 "DTSwissCorporate",Arial,sans-serif;
  color: #fff;
  text-align: center;
}
html.unified-game #settings .settings-name-preview {
  box-sizing: border-box;
  min-height: clamp(31px,5dvh,44px);
  width: 100%;
  padding: 6px 5px;
  border-bottom: 2px solid var(--red);
  color: #fff;
  font: 700 clamp(15px,2.6dvh,22px)/1.25 "DTSwissCorporate",Arial,sans-serif;
  letter-spacing: .06em;
  text-align: center;
  overflow-wrap: anywhere;
}
html.unified-game #settings .settings-name-preview.is-placeholder { color: #8e8e94; }
html.unified-game #settings .settings-name-keyboard .arcade-letters {
  --name-key-gap: clamp(2px,.65vw,5px);
  --name-key-size: calc((100% - 9 * var(--name-key-gap)) / 10);
  display: flex;
  flex-direction: column;
  gap: clamp(3px,.7dvh,6px);
  width: 100%;
}
html.unified-game #settings .settings-name-keyboard .arcade-letter-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: var(--name-key-gap);
}
html.unified-game #settings .settings-name-keyboard .letter-key {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  flex: 0 0 var(--name-key-size);
  width: var(--name-key-size);
  height: clamp(28px,4.8dvh,42px);
  min-height: 0;
  padding: 0;
  font-size: clamp(11px,2.1dvh,19px);
  line-height: 1;
}
html.unified-game #settings .settings-name-keyboard .letter-key.special {
  font-size: clamp(9px,1.6dvh,13px);
}
html.unified-game #settings .settings-name-keyboard .letter-key.active,
html.unified-game #settings .settings-name-keyboard .letter-key:is(:hover,:active,:focus-visible),
html.unified-game #settings .settings-name-done:is(:hover,:active,:focus-visible,.arcade-focused) {
  background: var(--dt-dark-red) !important;
  color: #fff;
}
html.unified-game #settings .settings-name-done {
  align-self: center;
  width: min(100%,220px);
  min-height: clamp(31px,4.6dvh,40px);
  font: 700 clamp(11px,2dvh,14px)/1 "DTSwissCorporate",Arial,sans-serif;
}
@media (orientation:landscape) and (max-height:490px) {
  html.unified-game #settings .settings-name-keyboard .arcade-letters { gap: 2px; --name-key-gap: 3px; }
  html.unified-game #settings .settings-name-keyboard .letter-key { height: clamp(19px,5.5dvh,26px); font-size: clamp(11px,3.7dvh,15px); }
  html.unified-game #settings .settings-name-done { min-height: 28px; }
}

@media (orientation:landscape) and (max-height:490px) {
  html.unified-game #settings #settingsNameKeyboard { padding: 6px 10px; }
  html.unified-game #settings .settings-name-keyboard-panel { gap: 5px; padding: 9px 16px; }
  html.unified-game #settings .settings-name-keyboard-panel .overline { font-size: 10px; }
  html.unified-game #settings .settings-name-keyboard-title { font-size: 18px; }
  html.unified-game #settings .settings-name-preview { min-height: 24px; font-size: 15px; padding: 3px; }
}
