﻿/* Generated bundle from apps\p5x-cover\styles.css. Keep source files as the editable cascade; update this bundle when imports change. */

/* === styles-base.css === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "ScoreSharp";
  src:
    local("Agency FB Bold"),
    local("Agency FB"),
    local("Arial Narrow Bold"),
    local("Arial Narrow"),
    local("Bahnschrift SemiCondensed"),
    local("Bahnschrift");
  font-display: swap;
}

@font-face {
  font-family: "CoverWatermarkHan";
  src: url("../fonts/SourceHanSansSC-Heavy.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "ScoreUnitSharp";
  src:
    local("SimHei"),
    local("Microsoft YaHei Bold"),
    local("Microsoft YaHei"),
    local("Arial Black");
  font-display: swap;
}

html,
body {
  width: 100%;
  min-height: 100%;
  overflow: hidden;
}

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #ffffff;
  color: #111111;
}

body.is-render-mode {
  background: #ffffff;
}

:root {
  --stage-width: 1920;
  --stage-height: 1080;
}

.portrait-fx-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.app {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  grid-template-areas: "controls stage";
  align-items: center;
  gap: 20px;
  padding: 24px;
}

body.is-render-mode .app {
  grid-template-columns: 1fr;
  grid-template-areas: "stage";
  gap: 0;
  padding: 0;
}

.controls-stack {
  grid-area: controls;
  position: relative;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding-right: 4px;
}

body.is-render-mode .controls-stack {
  display: none;
}

.control-panel {
  position: relative;
  width: 100%;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.12),
    inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px);
}

.control-panel-compact {
  padding-top: 16px;
  padding-bottom: 16px;
}

.control-panel-legal {
  background:
    linear-gradient(180deg, rgba(255, 46, 77, 0.10), rgba(255, 255, 255, 0.92)),
    rgba(255, 255, 255, 0.92);
}

.control-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.control-field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.control-field-inline {
  margin-top: 0;
}

.control-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(17, 17, 17, 0.68);
}

.control-select,
.control-input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 12px;
  background: #ffffff;
  color: #111111;
  font-size: 14px;
  font-weight: 600;
}

.control-input {
  appearance: textfield;
}

.control-checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  cursor: pointer;
  user-select: none;
}

.control-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #f50000;
  cursor: pointer;
}

.control-checkbox-text {
  font-size: 13px;
  font-weight: 700;
  color: rgba(17, 17, 17, 0.78);
}

.control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.control-actions-wrap {
  align-items: stretch;
}

.export-actions {
  padding: 8px;
  border-radius: 16px;
  background: rgba(245, 0, 0, 0.02);
  box-shadow: inset 0 0 0 1px rgba(245, 0, 0, 0.08);
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.export-actions .control-button {
  flex: 1 1 160px;
}

.export-actions:hover {
  background: rgba(245, 0, 0, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(245, 0, 0, 0.2),
    0 10px 28px rgba(245, 0, 0, 0.10);
  transform: translateY(-1px);
}

.control-button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: #f50000;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
  box-shadow: 0 10px 24px rgba(245, 0, 0, 0.22);
}

.control-button-secondary {
  background: #111111;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.14);
}

.control-button-ghost {
  background: rgba(17, 17, 17, 0.08);
  color: #111111;
  box-shadow: none;
}

.control-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(245, 0, 0, 0.28);
}

.control-button-secondary:hover {
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.2);
}

.control-button-ghost:hover {
  box-shadow: none;
  background: rgba(17, 17, 17, 0.12);
}

.control-button-export {
  box-shadow: 0 12px 28px rgba(245, 0, 0, 0.24);
}

.export-actions:hover .control-button-export {
  box-shadow: 0 16px 32px rgba(245, 0, 0, 0.34);
}

.control-button:active {
  transform: translateY(0);
}

.control-button:disabled,
.control-input:disabled,
.control-range:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.control-hint,
.control-current,
.control-status {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(17, 17, 17, 0.62);
}

.control-hint,
.control-current {
  margin-top: 8px;
}

.control-current {
  font-weight: 700;
  color: rgba(17, 17, 17, 0.78);
}

.control-status {
  min-height: 18px;
  margin-top: 10px;
}

.control-range-set {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.control-range-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 88px;
  align-items: center;
  gap: 10px;
}

.control-range {
  width: 100%;
  accent-color: #f50000;
}

.control-input-compact {
  min-height: 36px;
  padding-inline: 10px;
  text-align: center;
}

.control-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.control-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.control-chip:hover {
  transform: translateY(-1px);
}

.control-chip.is-active {
  border-color: #f50000;
  background: rgba(245, 0, 0, 0.08);
  color: #c20000;
}

.control-chip.is-empty {
  cursor: default;
  color: rgba(17, 17, 17, 0.48);
}

.stage-shell {
  grid-area: stage;
  position: relative;
  justify-self: end;
  width: min(100%, calc((100vh - 48px) * (var(--stage-width) / var(--stage-height))));
  max-width: 100%;
  aspect-ratio: var(--stage-width) / var(--stage-height);
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.10),
    inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

body.is-render-mode .stage-shell {
  justify-self: stretch;
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}

.cover-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--stage-width) * 1px);
  height: calc(var(--stage-height) * 1px);
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
  overflow: hidden;
  background: #ffffff;
}

.bg-layer,
.content-layer {
  position: absolute;
  inset: 0;
}

.base-bg {
  position: absolute;
  inset: 0;
  background-color: #ffffff;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.portrait-stage {
  position: absolute;
  inset: 0;
  z-index: 440;
  pointer-events: none;
}

.overlay-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* === styles-score-watermark.css === */
.watermark-stage {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 615;
  width: max-content;
  transform: translate(0, 0) scale(1);
  transform-origin: left top;
  pointer-events: none;
}

.watermark-stage.is-empty {
  display: none;
}

.watermark-text {
  position: relative;
  display: block;
  min-width: 1px;
  max-width: none;
  isolation: isolate;
  user-select: none;
  -webkit-user-drag: none;
}

.watermark-text-inner {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  max-width: none;
  overflow: visible;
  white-space: nowrap;
  vertical-align: top;
  z-index: 3;
}

.watermark-char {
  --wm-rotate: 0deg;
  --wm-shift-x: 0px;
  --wm-shift-y: 0px;
  --wm-scale: 1;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transform:
    translate(var(--wm-shift-x), var(--wm-shift-y))
    rotate(var(--wm-rotate))
    scale(var(--wm-scale));
  transform-origin: center bottom;
  isolation: isolate;
}

.watermark-char.is-lead {
  margin-right: 2px;
}

.watermark-char.is-ascii {
  letter-spacing: 0;
}

.watermark-char-shadow,
.watermark-char-face,
.watermark-char-glyph {
  position: absolute;
  pointer-events: none;
}

.watermark-char-shadow {
  inset: 0;
  background: #000000;
  transform: translate(6px, 5px);
  z-index: 0;
}

.watermark-char-face {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 68px;
  padding: 0 12px;
  border: 3px solid #000000;
  background: #111111;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.watermark-char.is-lead .watermark-char-face {
  min-width: 62px;
  height: 72px;
}

.watermark-char.is-ascii .watermark-char-face {
  min-width: 42px;
  padding-inline: 10px;
}

.watermark-char[data-tone="lead-red"] .watermark-char-face {
  background: #f50000;
  border-color: #000000;
  box-shadow: none;
}

.watermark-char[data-tone="black-white"] .watermark-char-face {
  background: #111111;
  border-color: #ffffff;
  box-shadow:
    inset 0 0 0 2px #111111,
    0 0 0 1px #000000;
}

.watermark-char[data-tone="black-red"] .watermark-char-face {
  background: #111111;
  border-color: #ffffff;
  box-shadow:
    inset 0 0 0 2px #111111,
    0 0 0 1px #000000;
}

.watermark-char[data-tone="white-black"] .watermark-char-face {
  background: #ffffff;
  border-color: #000000;
  box-shadow: none;
}

.watermark-char-glyph {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: "CoverWatermarkHan", "Microsoft YaHei UI", "Segoe UI", "PingFang SC", "Microsoft YaHei", "SimHei", sans-serif;
  font-size: 40px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  text-shadow: none;
  transform: translateY(-1px) scaleX(0.95);
}

.watermark-char.is-lead .watermark-char-glyph {
  font-size: 44px;
}

.watermark-char.is-ascii .watermark-char-glyph {
  font-size: 32px;
  transform: translateY(-1px) scaleX(0.92);
}

.watermark-char[data-tone="black-red"] .watermark-char-glyph {
  color: #f50000;
}

.watermark-char[data-tone="white-black"] .watermark-char-glyph {
  color: #111111;
}

.watermark-char.is-punctuation {
  min-width: auto;
  height: auto;
  padding: 0 2px 4px 0;
  transform:
    translate(var(--wm-shift-x), calc(var(--wm-shift-y) - 1px))
    rotate(var(--wm-rotate))
    scale(var(--wm-scale));
}

.watermark-char.is-punctuation .watermark-char-glyph {
  position: relative;
  inset: auto;
  color: #f50000;
  font-size: 38px;
  font-weight: 900;
  text-shadow:
    4px 4px 0 #000000,
    0 0 0 #ffffff;
}

.watermark-char-space {
  display: inline-block;
  flex: 0 0 14px;
  width: 14px;
  height: 1px;
}

.score-stage {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 660;
  width: max-content;
  transform: translateX(-100%) scale(1);
  transform-origin: right top;
  pointer-events: none;
}

.score-shell {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
  align-items: flex-end;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.14));
}


.score-main {
  --score-glass-top: rgba(255, 255, 255, 0.84);
  --score-glass-soft: rgba(255, 255, 255, 0.34);
  --score-glass-cool: rgba(176, 227, 255, 0.32);
  --score-glass-edge: rgba(195, 235, 255, 0.24);
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
  align-items: flex-end;
  min-height: 176px;
  isolation: isolate;
}

.score-main::before,
.score-main::after {
  content: none;
}

.score-number-stack {
  position: relative;
  display: inline-block;
  text-align: right;
  min-height: var(--score-glyph-height, 176px);
  z-index: 2;
}

.score-number {
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: var(--score-char-gap, 6px);
  white-space: nowrap;
}

.score-char {
  position: relative;
  display: inline-block;
}

.score-char-img {
  display: block;
  width: auto;
  height: var(--score-glyph-height, 176px);
  user-select: none;
  -webkit-user-drag: none;
}

.score-char-text {
  display: inline-flex;
  align-items: flex-end;
  height: var(--score-glyph-height, 176px);
  color: currentColor;
  font-family: "ScoreUnitSharp", "SimHei", "Microsoft YaHei", sans-serif;
  font-size: var(--score-unit-size, 118px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.score-char.is-unit .score-char-img {
  height: calc(var(--score-glyph-height, 176px) * 0.66);
  margin-left: 12px;
  margin-bottom: 8px;
}

.score-char-text.is-unit {
  margin-left: 12px;
}

.score-char-text.is-punctuation {
  font-family: "ScoreSharp", "Arial Narrow Bold", "Arial Narrow", sans-serif;
  font-size: calc(var(--score-glyph-height, 176px) * 0.44);
  margin: 0 4px 8px 4px;
}

.score-number-shadow,
.score-number-outline {
  position: absolute;
  inset: 0 auto auto 0;
}

.score-number-shadow {
  z-index: 1;
  color: #000000;
  transform: translate(12px, 10px);
  opacity: 0.72;
}

.score-number-outline {
  z-index: 2;
  color: #f50000;
  transform: translate(5px, 4px);
  opacity: 0.96;
}

.score-number-fill {
  position: relative;
  z-index: 3;
  color: #ffffff;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.2));
}

.score-number-shadow .score-char-img {
  filter: brightness(0);
}

.score-number-outline .score-char-img {
  filter: brightness(0) saturate(100%) invert(13%) sepia(99%) saturate(7484%) hue-rotate(0deg) brightness(108%) contrast(118%);
}

.score-number-fill .score-char-img {
  position: relative;
  z-index: 3;
  filter: none;
}

.score-number-fill .score-char.is-digit .score-char-img {
  opacity: 1;
}

.score-number-fill .score-char-text {
  filter: brightness(1.03) saturate(1.08);
}

#scoreUnitBadge,
#scoreUnitBadge * {
  display: none !important;
}

.score-stage.is-xxlong {
  --score-glyph-height: 116px;
  --score-unit-size: 78px;
}

.score-stage.is-long {
  --score-glyph-height: 156px;
  --score-unit-size: 104px;
}

.score-stage.is-xlong {
  --score-glyph-height: 138px;
  --score-unit-size: 92px;
}

.score-stage:not(.is-long):not(.is-xlong):not(.is-xxlong) {
  --score-glyph-height: 176px;
  --score-unit-size: 118px;
}

/* === styles-stage-art.css === */
.overlay-item {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: left top;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.16));
}

.portrait-shell {
  --portrait-url: none;
  position: absolute;
  left: -56px;
  bottom: -20px;
  width: 980px;
  height: 1080px;
  isolation: isolate;
  opacity: 1;
  transition:
    opacity 0.24s ease,
    left 0.24s ease,
    bottom 0.24s ease,
    width 0.24s ease,
    height 0.24s ease;
}

.portrait-shell.is-empty {
  opacity: 0;
}

.portrait-img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.portrait-shadow {
  z-index: 1;
  opacity: 1;
  transform: translate(34px, 18px) scale(1.05);
  filter:
    brightness(0)
    saturate(100%)
    invert(13%)
    sepia(99%)
    saturate(7484%)
    hue-rotate(0deg)
    brightness(108%)
    contrast(118%);
}

.portrait-outline {
  z-index: 2;
  opacity: 0.32;
  transform: translate(12px, -2px) scale(1.018);
  filter:
    brightness(0)
    saturate(0)
    invert(82%)
    contrast(0.92);
}

.portrait-main {
  z-index: 3;
  filter:
    grayscale(1)
    contrast(1.16)
    brightness(0.86)
    saturate(0)
    drop-shadow(0 18px 28px rgba(0, 0, 0, 0.18));
}

.portrait-red-filter {
  display: none;
}

.title-stage {
  --title-bottom-indent: 92px;
  --title-stage-top: 124px;
  --title-stage-right: 10px;
  --title-stage-width: 1420px;
  --title-stage-height: 360px;
  --title-top-asset-width: 560px;
  --title-bottom-rotate-x: 9deg;
  --title-bottom-rotate-y: -16deg;
  --title-bottom-rotate-z: -3deg;
  --title-bottom-asset-width: 760px;
  position: absolute;
  right: var(--title-stage-right);
  top: var(--title-stage-top);
  width: var(--title-stage-width);
  height: var(--title-stage-height);
  transform: none;
  transform-origin: right top;
}

.title-row {
  --title-row-x: 0px;
  --title-row-y: 0px;
  --title-row-scale: 1;
  --title-row-rotate-x: 0deg;
  --title-row-rotate-y: 0deg;
  --title-row-rotate-z: 0deg;
  --title-row-layer: 770;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 100%;
  gap: 2px;
  z-index: var(--title-row-layer);
  transform-style: preserve-3d;
  transform: translate3d(var(--title-row-x), var(--title-row-y), 0) scale(var(--title-row-scale));
  transform-origin: right top;
}

#titleRowTop .title-block:nth-child(1) {
  margin-right: -10px;
}

.title-row-bottom {
  margin-top: 10px;
  margin-left: 0;
  min-height: 120px;
}

.title-row.has-title-asset {
  align-items: flex-start;
}

.title-asset-shell {
  position: relative;
  transform-origin: right center;
  transform-style: preserve-3d;
  transform:
    perspective(2200px)
    rotateX(var(--title-row-rotate-x))
    rotateY(var(--title-row-rotate-y))
    rotateZ(var(--title-row-rotate-z));
  filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.24));
  will-change: transform;
}

.title-asset-shell.is-top {
  width: min(100%, var(--title-top-asset-width));
}

.title-asset-shell.is-bottom {
  width: min(100%, var(--title-bottom-asset-width));
  transform:
    translateY(-18px)
    perspective(2200px)
    rotateX(var(--title-row-rotate-x))
    rotateY(var(--title-row-rotate-y))
    rotateZ(var(--title-row-rotate-z));
}

.title-asset-shell::before {
  content: "";
  position: absolute;
  inset: auto 2% -4% 8%;
  height: 22%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0));
  filter: blur(16px);
  transform: translateZ(-1px);
  z-index: 0;
}

.title-asset-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  backface-visibility: hidden;
}

.title-block {
  --w: 210px;
  --h: 180px;
  --font: 108px;
  --y: 0px;
  --rotate: 0deg;
  --tilt-x: 10deg;
  --tilt-y: -5deg;
  --depth-x: 24px;
  --depth-y: 18px;
  --core-bg: #f50000;
  --red-white-inset: 8px;
  --red-inner-inset: 18px;
  --red-core-inset: 25px;
  --red-text-inset: 20px;
  --black-white-inset: 12px;
  --black-core-inset: 20px;
  --black-text-inset: 20px;
  --z-outer: 12px;
  --z-white: 24px;
  --z-inner: 30px;
  --z-core: 36px;
  --z-text: 52px;

  position: relative;
  width: var(--w);
  height: var(--h);
  transform-style: preserve-3d;
  transform:
    translateY(var(--y))
    rotate(var(--rotate))
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
  backface-visibility: hidden;
  filter: none;
}

.title-block.has-final-shadow {
  filter: none;
}

.title-depth {
  display: none;
}

.title-depth::before {
  content: none;
}

.title-outer {
  position: absolute;
  transform: translateZ(var(--z-outer));
  z-index: 1;
}

.title-white {
  position: absolute;
  transform: translateZ(var(--z-white));
  z-index: 2;
}

.title-inner {
  position: absolute;
  transform: translateZ(var(--z-inner));
  z-index: 3;
}

.title-core {
  position: absolute;
  background: var(--core-bg);
  transform: translateZ(var(--z-core));
  z-index: 4;
  overflow: hidden;
  box-shadow: none;
}

.title-core::before {
  content: none;
}

.title-text {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  font-size: var(--font);
  font-weight: 980;
  line-height: 1;
  color: #ffffff;
  letter-spacing: 0.01em;
  transform: translateZ(var(--z-text));
  text-shadow: none;
}

/* 红块：黑细框 -> 白粗框 -> 黑细框 -> 红心 */
.title-block.is-red .title-outer {
  inset: 0;
  background: #000000;
}

.title-block.is-red .title-white {
  inset: var(--red-white-inset);
  background: #ffffff;
}

.title-block.is-red .title-inner {
  inset: var(--red-inner-inset);
  background: #000000;
}

.title-block.is-red .title-core {
  inset: var(--red-core-inset);
  background: #f50000;
}

.title-block.is-red .title-text {
  inset: var(--red-text-inset);
}

/* 黑块：黑粗框 -> 白细框 -> 黑心 */
.title-block.is-black .title-outer {
  inset: 0;
  background: #000000;
}

.title-block.is-black .title-white {
  inset: var(--black-white-inset);
  background: #ffffff;
}

.title-block.is-black .title-inner {
  display: none;
}

.title-block.is-black .title-core {
  inset: var(--black-core-inset);
  background: #000000;
}

.title-block.is-black .title-text {
  inset: var(--black-text-inset);
}

@media (max-width: 1100px) {
  html,
  body {
    overflow: auto;
  }

  .app {
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
    grid-template-areas:
      "stage"
      "controls";
    align-content: start;
    gap: 16px;
    padding: 12px;
  }

  .controls-stack {
    width: 100%;
    max-height: none;
    padding-right: 0;
  }

  .control-panel {
    padding: 14px 16px;
  }

  .stage-shell {
    justify-self: center;
    width: 100%;
  }

  .control-range-row {
    grid-template-columns: 28px minmax(0, 1fr) 78px;
  }
}

/* 下面那行标题向左偏移，和上面形成错位 */
@media (max-width: 640px) {
  .control-range-row {
    grid-template-columns: 1fr;
  }

  .control-input-compact {
    text-align: left;
  }
}

#titleRowBottom {
  margin-right: var(--title-bottom-indent);
}

.legal-note-copy {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  color: rgba(17, 17, 17, 0.74);
  font-size: 12px;
  line-height: 1.8;
}

.legal-note-copy a {
  color: #b40022;
  font-weight: 800;
  text-decoration: none;
}

.legal-note-copy a:hover {
  text-decoration: underline;
}
