/* CK 控制台壳层：左操作轨 + 右结果主舞台（延续战报暗色，不照搬旧系统彩块） */

:root {
  --rail-w: 268px;
  --results-w: 1080px; /* 略收一点，给 10 行腾出纵向空间 */
  --frame-w: 1370px; /* rail + gap + results，整体居中 */
  --idle-h: 810px; /* 待机图 / 结果卡统一高度，避免切换跳动 */
  --gold: #f0dcb4;
  --gold-dim: rgba(240, 220, 180, 0.14);
  --panel: #0c1015;
  --panel-line: #2a3036;
  --field: #090d11;
  --field-line: #343a40;
  --label: #8b949e;
  --console-bg: #05080b;
}

body.console {
  height: 100%;
  overflow: hidden;
  padding: 0;
  /* 设计稿整体居中，由 JS 等比 scale 铺满视口（不拉伸） */
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(240, 220, 180, 0.06), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(28, 119, 242, 0.05), transparent 50%),
    var(--console-bg);
}

/* 固定设计宽度；高度随内容。铺满靠 transform: scale，不改宽高比 */
.console-frame {
  width: var(--frame-w);
  max-width: none;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 16px 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-shrink: 0;
  transform-origin: center center;
}

.console-shell {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  gap: 12px;
  /* 高度跟右侧结果走，左栏 stretch 齐平，而不是撑满视口 */
  height: auto;
  width: 100%;
  box-sizing: border-box;
  align-items: stretch;
}

/* ICP 备案：页面底部合规展示，弱化视觉以免抢戏 */
.site-beian {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 16px 2px;
  margin-top: 2px;
}

.site-beian a {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(139, 148, 158, 0.7);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}

.site-beian a:hover,
.site-beian a:focus-visible {
  color: var(--gold);
  outline: none;
}

/* ===== 左轨：高度锁定待机图 --idle-h，三卡与右侧齐平 ===== */
.rail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: var(--idle-h);
  min-height: var(--idle-h);
  max-height: var(--idle-h);
  align-self: stretch;
  overflow: hidden;
  box-sizing: border-box;
}

.rail__brand {
  flex: 0 0 auto;
  padding: 2px 4px 0;
  font-family: var(--num);
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.1;
}

.panel {
  min-height: 0;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 10px;
  padding: 10px 10px 10px;
  box-sizing: border-box;
}

/* 登录卡吃掉剩余高度；设置 / 合并保持内容高度 */
.panel--login {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.panel--setup,
.panel--merge {
  flex: 0 0 auto;
  /* 计分规则多一行后均分压缩，避免挤占登录卡高度 */
  padding: 8px 8px 8px;
}

.panel--setup .panel__head,
.panel--merge .panel__head {
  margin-bottom: 5px;
}

.panel--setup .field,
.panel--merge .field {
  margin-bottom: 4px;
}

.panel--setup .field__label,
.panel--merge .field__label {
  margin-bottom: 2px;
}

.panel--setup .field__select,
.panel--merge .field__select,
.panel--setup .ck-dd__trigger,
.panel--merge .ck-dd__trigger {
  height: 28px;
}

.panel--setup .setup-actions,
.panel--merge .merge-actions {
  gap: 4px;
  margin-top: 0;
}

.panel--merge .merge-grid {
  gap: 4px;
}

.panel__head {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.panel__title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
}

.panel__step {
  font-size: 10px;
  color: var(--label);
  letter-spacing: 0.08em;
}

.field {
  margin-bottom: 7px;
}

.field:last-of-type {
  margin-bottom: 10px;
}

.field__label {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  color: var(--label);
  letter-spacing: 0.04em;
}

.field__select,
.field__input {
  width: 100%;
  height: 32px;
  box-sizing: border-box;
  border: 1px solid var(--field-line);
  border-radius: 7px;
  background: var(--field);
  color: #e8e8e8;
  font: inherit;
  font-size: 12px;
  padding: 0 10px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field__select:focus,
.field__input:focus {
  border-color: rgba(240, 220, 180, 0.45);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.field__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238b949e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

/* 长列表自定义下拉：固定定位 + 视口内滚动，避免原生 select 顶出窗口 */
.ck-dd {
  position: relative;
}

.ck-dd__native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.ck-dd__trigger {
  width: 100%;
  height: 32px;
  box-sizing: border-box;
  border: 1px solid var(--field-line);
  border-radius: 7px;
  background: var(--field);
  color: #e8e8e8;
  font: inherit;
  font-size: 12px;
  padding: 0 32px 0 10px;
  outline: none;
  text-align: left;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238b949e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ck-dd__trigger:focus,
.ck-dd.is-open .ck-dd__trigger {
  border-color: rgba(240, 220, 180, 0.45);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.ck-dd.is-disabled .ck-dd__trigger,
.ck-dd__trigger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ck-dd__menu {
  position: fixed;
  z-index: 9999;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid var(--field-line);
  border-radius: 8px;
  background: #0e141a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  display: none;
  flex-direction: column;
  overflow: hidden;
  /* 挂在 body 上，按视口剩余高度显示 */
}

.ck-dd__menu.is-open {
  display: flex;
}

.ck-dd__search {
  flex: 0 0 auto;
  padding: 6px 6px 4px;
  border-bottom: 1px solid var(--field-line);
  background: #0e141a;
}

.ck-dd__search-input {
  width: 100%;
  height: 28px;
  box-sizing: border-box;
  border: 1px solid var(--field-line);
  border-radius: 6px;
  background: var(--field);
  color: #e8e8e8;
  font: inherit;
  font-size: 12px;
  padding: 0 10px;
  outline: none;
}

.ck-dd__search-input::placeholder {
  color: #6b737c;
}

.ck-dd__search-input:focus {
  border-color: rgba(240, 220, 180, 0.45);
  box-shadow: 0 0 0 2px var(--gold-dim);
}

.ck-dd__search-input::-webkit-search-cancel-button {
  filter: invert(0.7);
  cursor: pointer;
}

.ck-dd__list {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 4px;
  list-style: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ck-dd__empty {
  flex: 0 0 auto;
  padding: 14px 10px;
  font-size: 12px;
  color: var(--label);
  text-align: center;
}

.ck-dd__option {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #e8e8e8;
  font: inherit;
  font-size: 12px;
  text-align: left;
  padding: 7px 10px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ck-dd__option:hover,
.ck-dd__option.is-active {
  background: rgba(240, 220, 180, 0.12);
  color: var(--gold);
}

.ck-dd__option.is-selected {
  color: var(--gold);
}

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

.field__captcha {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 32px;
  gap: 6px;
  align-items: center;
}

.captcha-box {
  height: 32px;
  border-radius: 7px;
  border: 1px solid var(--field-line);
  background: #12181e;
  display: grid;
  place-items: center;
  overflow: hidden;
  user-select: none;
  cursor: pointer;
}

.captcha-box canvas,
.captcha-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.captcha-box img[hidden],
.captcha-box canvas[hidden] {
  display: none;
}

.captcha-box.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.icon-btn {
  height: 32px;
  width: 32px;
  border: 1px solid var(--field-line);
  border-radius: 7px;
  background: var(--field);
  color: var(--label);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.icon-btn:hover {
  color: var(--gold);
  border-color: rgba(240, 220, 180, 0.35);
}

.btn {
  width: 100%;
  height: 34px;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.12s ease, filter 0.12s ease, opacity 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  color: #1a1408;
  background: linear-gradient(180deg, #f6e6c8 0%, #e2c48a 100%);
}

.btn--primary:hover {
  filter: brightness(1.05);
}

.btn--accent {
  color: #fff;
  background: linear-gradient(180deg, #2a6fdb 0%, #1c56b5 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn--accent:hover {
  filter: brightness(1.06);
}

.btn--ghost {
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(240, 220, 180, 0.35);
}

.btn--ghost:hover {
  background: var(--gold-dim);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

.merge-grid {
  display: grid;
  gap: 6px;
}

.setup-actions,
.merge-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 2px;
}

/* 登录表单 / 已登录队徽与账号信息共用弹性高度，随 --idle-h 与下方两卡对齐 */
.panel--login__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.login-emblem {
  display: none;
  flex: 1 1 auto;
  align-items: stretch;
  justify-content: center;
  min-height: 0;
  margin-bottom: 8px;
  border-radius: 8px;
  background: #090d11;
  border: 1px solid rgba(42, 48, 54, 0.9);
  overflow: hidden;
}

.login-emblem img {
  display: block;
  width: 100%;
  height: 100%;
  /* 资源已按登录区比例上下裁切，cover 铺满无左右黑边 */
  object-fit: cover;
  object-position: center center;
  border: 0;
  box-shadow: none;
  user-select: none;
}

.panel--login.is-authed .login-emblem {
  display: flex;
}

.auth-profile {
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  min-height: 0;
}

.auth-profile.is-on {
  display: flex;
}

.panel--login #login-form {
  flex: 0 0 auto;
}

.auth-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 8px;
  border-radius: 7px;
  background: rgba(28, 119, 242, 0.1);
  border: 1px solid rgba(28, 119, 242, 0.25);
  font-size: 11px;
  color: #cfe0ff;
}

.auth-state button {
  border: 0;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}

.panel--login.is-authed #login-form {
  display: none;
}

.panel--login:not(.is-authed) .auth-profile {
  display: none;
}

/* ===== 右主舞台：待机板与战报叠层，整板上下划动 ===== */
.stage-main {
  min-width: 0;
  width: min(100%, var(--results-w));
  height: var(--idle-h);
  min-height: var(--idle-h);
  position: relative;
  overflow: hidden;
  align-self: stretch;
  justify-self: center;
  box-sizing: border-box;
}

.stage-main .app {
  width: 100%;
  height: auto;
  min-height: var(--idle-h);
  margin: 0;
  box-sizing: border-box;
}

/* ===== 右侧待机板：对齐 8 人战报高度，cktemplate / RB20 气质 ===== */
.results-idle {
  width: 100%;
  position: relative;
  z-index: 2;
  transform: translateY(0);
  will-change: transform;
}

/* 待机：战报藏在下方同层，待机板盖住 */
body.console.is-empty .app {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1;
  visibility: hidden;
  pointer-events: none;
}

/* 已出结果：待机板停在上方画外 */
body.console:not(.is-empty) .results-idle {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  transform: translateY(-105%);
  pointer-events: none;
  visibility: hidden;
}

body.console:not(.is-empty) .app {
  position: relative;
  z-index: 1;
  visibility: visible;
  pointer-events: auto;
}

/* JS 驱动滑动时：裁切舞台，停掉赛车微动效 */
.stage-main.is-stage-animating {
  overflow: hidden;
}

.stage-main.is-stage-animating .idle-board__car {
  animation: none;
}

body.console.is-empty .stage-main.is-stage-animating .app,
.stage-main.is-stage-animating .app {
  visibility: visible !important;
}

body.console:not(.is-empty) .stage-main.is-stage-animating .results-idle {
  visibility: visible !important;
}

.idle-board {
  position: relative;
  height: var(--idle-h);
  min-height: var(--idle-h);
  border-radius: 10px;
  overflow: hidden;
  background: #05080b;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  border: 1px solid #1c2228;
}

.idle-board__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  /* 海报已含氛围；这里只轻轻统一边缘，避免压住车身 */
  background: linear-gradient(
    180deg,
    rgba(5, 8, 11, 0.2) 0%,
    transparent 18%,
    transparent 68%,
    rgba(5, 8, 11, 0.15) 100%
  );
  transition: opacity 0.4s ease;
}

.idle-board__brand {
  position: absolute;
  z-index: 4;
  top: 28px;
  left: 34px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.idle-board__ck-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
}

.idle-board__ck {
  font-family: var(--num);
  font-size: 56px;
  font-weight: 700;
  font-style: italic;
  line-height: 0.85;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.75);
}

.idle-board__ck-bar {
  display: block;
  height: 5px;
  width: 100%;
  background: #e11d1d;
  border-radius: 1px;
  box-shadow: 0 0 16px rgba(225, 29, 29, 0.45);
}

.idle-board__subtitle {
  font-family: var(--num);
  font-size: 28px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.12em;
  color: #f2f2f2;
  padding-bottom: 6px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

/* 专用竖版海报铺满待机板 */
.idle-board__visual {
  position: absolute;
  z-index: 1;
  inset: 0;
  transition: transform 0.7s cubic-bezier(0.22, 0.8, 0.24, 1), opacity 0.55s ease;
  will-change: transform, opacity;
}

.idle-board__car {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  user-select: none;
  pointer-events: none;
  animation: idle-car-drift 7s ease-in-out infinite;
}

@keyframes idle-car-drift {
  0%,
  100% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1) translateY(-6px);
  }
}

.idle-board__foot {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 34px 28px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(5, 8, 11, 0.5) 35%,
    rgba(5, 8, 11, 0.94) 100%
  );
  text-align: left;
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.idle-board__eyebrow {
  font-family: var(--num);
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.28em;
  color: #f0dcb4;
  margin-bottom: 6px;
}

.idle-board__dots::after {
  content: "";
  display: inline-block;
  min-width: 1.5em;
  text-align: left;
}

.idle-board__hint {
  font-size: 13px;
  color: #8b949e;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  min-height: 1.35em;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.idle-board__elapsed {
  display: none;
  font-size: 12px;
  color: #9a8b6e;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.idle-board__progress {
  display: none;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}

.idle-board__progress-track {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: rgba(240, 220, 180, 0.12);
  overflow: hidden;
}

.idle-board__progress-bar {
  display: block;
  height: 100%;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8a7048, #f0dcb4, #8a7048);
  background-size: 200% 100%;
}

.idle-board__spinner {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(240, 220, 180, 0.22);
  border-top-color: #f0dcb4;
  border-right-color: #c4a574;
}

.idle-board.is-calculating .idle-board__progress {
  display: flex;
}

.idle-board.is-calculating .idle-board__elapsed {
  display: block;
}

.idle-board.is-calculating .idle-board__eyebrow {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-style: normal;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.18em;
  animation: idle-calc-pulse 1.15s ease-in-out infinite;
}

.idle-board.is-calculating .idle-board__dots::after {
  animation: idle-calc-dots 1.2s steps(4, end) infinite;
}

.idle-board.is-calculating .idle-board__hint {
  color: #e2d2b0;
  animation: idle-calc-hint 1.8s ease-in-out infinite;
}

.idle-board.is-calculating .idle-board__progress-bar {
  animation: idle-calc-bar 1.2s ease-in-out infinite;
}

.idle-board.is-calculating .idle-board__spinner {
  animation: idle-calc-spin 0.75s linear infinite;
}

.idle-board.is-calculating .idle-board__car {
  animation: idle-car-drift 2s ease-in-out infinite, idle-calc-glow 1.35s ease-in-out infinite;
}

.idle-board.is-calculating .idle-board__steps li:nth-child(3).is-current {
  color: #f0dcb4;
}

.idle-board.is-calculating .idle-board__steps li:nth-child(3).is-current span {
  animation: idle-calc-step 0.9s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(225, 29, 29, 0.45);
}

@keyframes idle-calc-dots {
  0% {
    content: "";
  }
  25% {
    content: "·";
  }
  50% {
    content: "··";
  }
  75%,
  100% {
    content: "···";
  }
}

@keyframes idle-calc-pulse {
  0%,
  100% {
    opacity: 0.78;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

@keyframes idle-calc-hint {
  0%,
  100% {
    opacity: 0.78;
  }
  50% {
    opacity: 1;
  }
}

@keyframes idle-calc-bar {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

@keyframes idle-calc-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes idle-calc-glow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.14) drop-shadow(0 0 22px rgba(240, 220, 180, 0.35));
  }
}

@keyframes idle-calc-step {
  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.idle-board__steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
}

.idle-board__steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6b737c;
  letter-spacing: 0.06em;
}

.idle-board__steps li span {
  font-family: var(--num);
  font-style: italic;
  font-weight: 700;
  color: #4a525a;
}

.idle-board__steps li.is-current {
  color: #e8e8e8;
}

.idle-board__steps li.is-current span {
  color: #e11d1d;
}

@media (prefers-reduced-motion: reduce) {
  .idle-board__car,
  .idle-board.is-calculating .idle-board__eyebrow,
  .idle-board.is-calculating .idle-board__dots::after,
  .idle-board.is-calculating .idle-board__progress-bar,
  .idle-board.is-calculating .idle-board__spinner,
  .idle-board.is-calculating .idle-board__hint,
  .idle-board.is-calculating .idle-board__car,
  .idle-board.is-calculating .idle-board__steps li:nth-child(3).is-current span {
    animation: none !important;
  }
}

@media (max-width: 1480px) {
  :root {
    --idle-h: 770px;
    --frame-w: 1320px;
    --results-w: 1040px;
    --rail-w: 256px;
  }

  .idle-board__ck {
    font-size: 50px;
  }

  .idle-board__subtitle {
    font-size: 24px;
  }
}

@media (max-width: 900px) {
  :root {
    --idle-h: 560px;
  }

  body.console {
    display: block;
    overflow: auto;
  }

  .console-frame {
    width: min(100% - 16px, var(--frame-w));
    height: auto;
    min-height: 100%;
    padding: 8px 0 16px;
    zoom: 1 !important;
    transform: none !important;
  }

  .console-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .rail {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .panel--login {
    flex: 0 0 auto;
  }

  .panel--login__body,
  .login-emblem {
    min-height: 180px;
  }

  .stage-main {
    height: auto;
    min-height: 60vh;
    overflow: auto;
  }

  .idle-board__brand {
    top: 18px;
    left: 18px;
  }

  .idle-board__ck {
    font-size: 40px;
  }

  .idle-board__subtitle {
    font-size: 20px;
  }

  .idle-board__foot {
    padding: 20px 18px 18px;
  }

  .site-beian {
    padding: 14px 12px 8px;
  }

  .site-beian a {
    font-size: 11px;
  }
}
