.dont-page {
  padding: 0;
  min-height: 100dvh;
  overflow: hidden;
}

.dont-screen {
  min-height: 100dvh;
  width: 100%;
}

.draw-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px 16px;
}

.draw-screen .back-link {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  left: 12px;
}

.count-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--navy-deep);
}

.count-num {
  margin: 0;
  font-size: min(42vw, 220px);
  line-height: 0.9;
  color: var(--green);
  text-shadow:
    6px 0 0 var(--magenta),
    -6px 0 0 var(--cyan),
    8px 8px 0 var(--shadow);
}

.word-screen {
  position: relative;
  background: var(--navy);
}

.word-stage {
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 12px;
}

.word-text {
  flex: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0;
  text-shadow: 6px 6px 0 var(--shadow);
  user-select: none;
  -webkit-user-select: none;
}

.word-actions {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 2px calc(8px + env(safe-area-inset-bottom));
  z-index: 2;
}

/* 仍竖屏时，把整层旋转成横向，让词语铺满给对面看 */
@media (orientation: portrait) {
  .word-screen.is-active .word-stage {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100dvh;
    height: 100dvw;
    transform: translate(-50%, -50%) rotate(90deg);
    padding: 10px 16px;
  }

}
