    @font-face {
      font-family: "LiLinGothicSC";
      src: url("../fonts/LiLinGothicSC.ttf?v=5.5.11-android-opening-controls-20260930") format("truetype");
      font-display: swap;
    }

    @font-face {
      font-family: "Brilon";
      src: url("../fonts/Brilon-Regular.ttf?v=5.5.11-android-opening-controls-20260930") format("truetype");
      font-display: swap;
    }

    .opening-sequence {
      position: fixed;
      inset: 0;
      z-index: 10000;
      display: none;
      place-items: center;
      overflow: hidden;
      background: #000;
    }

    .opening-sequence.is-active {
      display: grid;
    }

    .opening-frame {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      opacity: 0;
      visibility: hidden;
      transition: opacity 420ms ease;
    }

    .opening-sequence[data-frame="0"] .opening-frame[data-frame="0"],
    .opening-sequence[data-frame="1"] .opening-frame[data-frame="1"],
    .opening-sequence[data-frame="2"] .opening-frame[data-frame="2"],
    .opening-sequence[data-frame="3"] .opening-frame[data-frame="3"],
    .opening-sequence[data-frame="4"] .opening-frame[data-frame="4"] {
      opacity: 1;
      visibility: visible;
    }

    .opening-frame > picture {
      display: contents;
    }

    .opening-frame > img,
    .opening-frame > picture > img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .opening-frame-game-logo > img,
    .opening-frame-game-logo > picture > img {
      width: min(58cqw, 1760px);
      height: auto;
      max-height: 74cqh;
    }

    .zodiac-announcement {
      position: fixed;
      inset: 0;
      z-index: 9800;
      display: none;
      place-items: center;
      overflow: hidden;
      background:
        linear-gradient(rgba(6, 8, 10, 0.46), rgba(6, 8, 10, 0.58)),
        url("../art/map/world_map_stage_base.webp?v=5.5.11-android-opening-controls-20260930") center / cover no-repeat,
        #090a0b;
      pointer-events: none;
    }

    .zodiac-announcement.is-active {
      display: grid;
    }

    .zodiac-parchment {
      width: min(74cqw, 2380px);
      min-height: min(45cqh, 860px);
      display: grid;
      place-content: center;
      gap: clamp(32px, 3cqh, 60px);
      padding: clamp(110px, 10cqh, 190px) clamp(180px, 10cqw, 340px);
      text-align: center;
      background: url("../art/ui/event_warning_parchment.png") center / 100% 100% no-repeat;
      filter: drop-shadow(0 36px 60px rgba(0, 0, 0, 0.66));
    }

    .zodiac-title {
      color: #33271c;
      font-family: "LiLinGothicSC", "PingFang SC", serif;
      font-size: var(--type-screen-major);
      font-weight: 900;
      line-height: 1.12;
      text-shadow: 0 2px rgba(255, 248, 220, 0.34);
    }

    .zodiac-message {
      color: #6d3828;
      font-family: "LiLinGothicSC", "LiLinGothic", "PingFang SC", sans-serif;
      font-size: var(--type-screen-body);
      font-weight: 760;
      line-height: 1.25;
    }

    :root {
      --screen-design-width: 3240;
      --screen-design-height: 1920;
      --screen-design-aspect: 1.6875;
      color-scheme: dark;
      --bg: #07070a;
      --panel: #10131a;
      --panel-2: #151922;
      --line: #313947;
      --text: #f8fafc;
      --muted: #9aa7b8;
      --gold: #f5c451;
      --red: #ef4444;
      --green: #2dd4bf;
      --ice: #7dd3fc;
      --swamp: #a3e635;
      --desert: #f59e0b;
      --sea: #22d3ee;
      --violet: #a78bfa;
      --world-ink: #101312;
      --world-charcoal: #202424;
      --world-stone: #706856;
      --world-bone: #f7f1e4;
      --world-bone-dim: #cfc7b4;
      --world-wood: #3d3028;
      --world-wood-light: #5c4e40;
      --world-bronze: #a47b45;
      --world-brass: #d3b06d;
      --world-verdigris: #648f88;
      --world-wine: #7a314e;
      --glass-fill: rgba(26, 31, 30, 0.72);
      --glass-fill-strong: rgba(16, 19, 18, 0.88);
      --glass-edge: rgba(247, 241, 228, 0.18);
      --glass-highlight: rgba(247, 241, 228, 0.1);
      --corner-lg: 28px;
      --corner-md: 20px;
      --corner-sm: 13px;
      --shadow-deep: 0 30px 70px rgba(0, 0, 0, 0.46);
      --shadow-float: 0 16px 36px rgba(0, 0, 0, 0.34);
    }

    * { box-sizing: border-box; }

    html,
    body {
      width: 100%;
      height: 100%;
      margin: 0;
      overflow: hidden;
      background: var(--bg);
      color: var(--text);
      font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      letter-spacing: 0;
    }

    body {
      position: relative;
      background: #000;
    }

    .resolution-lock {
      position: fixed;
      inset: 0;
      z-index: 20000;
      display: none;
      place-items: center;
      padding: 64px;
      background: #000;
      color: var(--world-bone);
      font-family: var(--font-ui);
      text-align: center;
    }

    .resolution-lock-card {
      max-width: 1120px;
      padding: 48px 64px;
      border: 1px solid rgba(211, 176, 109, 0.5);
      border-radius: 28px;
      background: rgba(20, 23, 22, 0.96);
    }

    .resolution-lock-title {
      font-size: var(--type-screen-major);
      font-weight: 900;
    }

    .resolution-lock-copy {
      margin-top: 24px;
      color: var(--world-bone-dim);
      font-size: var(--type-screen-body);
      line-height: 1.4;
    }

    .screen-design-canvas {
      position: absolute;
      left: 0;
      top: 0;
      width: 3240px;
      height: 1920px;
      overflow: hidden;
      container-type: size;
      transform: translate(0, 0) scale(1);
      transform-origin: top left;
      background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.08), transparent 18%, transparent 82%, rgba(245, 158, 11, 0.08)),
        #07070a;
      --ui-screen-cup-safe-right: 18cqw;
      --ui-screen-status-safe-side: var(--ui-screen-cup-safe-right);
      --ui-stage-art-top: 33.333cqh;
    }

    .screen-room-code {
      position: fixed;
      z-index: 80;
      top: 2.2cqh;
      left: 1.6cqw;
      display: none;
      min-width: 8.5rem;
      padding: 0.58rem 1rem 0.62rem;
      border: 1px solid rgba(211, 176, 109, 0.72);
      border-radius: 999px;
      background: rgba(16, 19, 18, 0.88);
      box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.08);
      color: var(--world-bone);
      font-size: clamp(18px, 1.25cqw, 34px);
      font-weight: 850;
      text-align: center;
      letter-spacing: 0.08em;
      backdrop-filter: blur(12px);
    }

    body[data-phase="SETUP"] .screen-room-code {
      display: block;
    }

    .screen-room-code:empty {
      display: none !important;
    }

    .panel {
      min-width: 0;
      min-height: 0;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      background: var(--panel);
      border-color: var(--line);
    }

    .left-panel {
      position: relative;
      isolation: isolate;
      grid-template-rows: minmax(0, 1fr);
      border-right: 2px solid var(--line);
    }

    .left-panel .ledger {
      position: relative;
      z-index: 1;
    }

    .center-panel {
      grid-column: 1;
      position: relative;
      width: 100%;
      height: 100%;
      min-width: 0;
      min-height: 0;
      background:
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,0.03), transparent 24%),
        #090b0f;
      background-size: 36px 36px, 36px 36px, auto;
    }

    .ledger {
      min-height: 0;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr) auto;
      gap: 8px;
      padding: 10px;
      overflow: hidden;
    }

    .ledger-stats {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 10px;
    }

    .event-penalty-card {
      padding: 9px 12px;
      background: linear-gradient(135deg, rgba(127, 29, 29, 0.96), rgba(69, 10, 10, 0.88));
      border-left: 5px solid #fca5a5;
    }

    .event-penalty-kicker {
      color: #fecaca;
      font-size: 0.76rem;
      font-weight: 950;
    }

    .event-penalty-main {
      margin-top: 3px;
      color: #fff7ed;
      font-size: 1.2rem;
      font-weight: 1000;
    }

    .event-penalty-detail {
      margin-top: 3px;
      color: #fecaca;
      font-size: 0.82rem;
      font-weight: 850;
    }

    .stat {
      min-width: 0;
      padding: 9px 12px;
      background: #171b23;
    }

    .stat-label {
      color: var(--muted);
      font-size: 0.78rem;
      font-weight: 900;
    }

    .stat-value {
      margin-top: 2px;
      font-size: 1.08rem;
      font-weight: 950;
      color: var(--gold);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .team-ledger {
      min-height: 0;
      overflow: hidden;
      display: grid;
      grid-template-rows: repeat(8, minmax(0, 1fr));
      gap: 5px;
    }

    .team-row {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      gap: 7px;
      align-items: center;
      min-height: 0;
      padding: 6px 7px;
      background: #141923;
      border-left: 5px solid var(--muted);
    }

    .team-row.active {
      border-left-color: var(--gold);
      background: #1d1b16;
    }

    .team-rank {
      width: 32px;
      height: 32px;
      display: grid;
      place-items: center;
      color: #111827;
      background: var(--gold);
      border-radius: 4px;
      font-weight: 1000;
    }

    .team-name {
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 7px;
      font-family: var(--font-team-name);
      font-size: 0.98rem;
      font-weight: 950;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .team-meta {
      margin-top: 2px;
      color: var(--muted);
      font-size: 0.72rem;
      font-weight: 800;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .team-flags {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      margin-top: 4px;
    }

    .team-flag {
      padding: 2px 5px;
      background: rgba(15, 23, 42, 0.86);
      border: 1px solid rgba(154, 167, 184, 0.18);
      color: #dbeafe;
      font-size: 0.64rem;
      font-weight: 900;
    }

    .team-progress {
      display: none;
      background: rgba(15, 23, 42, 0.92);
      border: 1px solid rgba(154, 167, 184, 0.14);
      overflow: hidden;
    }

    .team-progress > span {
      display: block;
      height: 100%;
      width: var(--progress, 0%);
      background: linear-gradient(90deg, var(--team-color), rgba(248, 250, 252, 0.78));
    }

    .drink-total {
      min-width: 78px;
      text-align: right;
      font-size: 1.45rem;
      font-weight: 1000;
      color: #fecaca;
    }

    .drink-total span {
      display: block;
      color: var(--muted);
      font-size: 0.72rem;
      font-weight: 900;
    }

    canvas {
      width: 100%;
      height: 100%;
      display: block;
    }

    .team-intro-selene-frame {
      position: absolute;
      left: 259.875px;
      top: 154px;
      z-index: 25;
      box-sizing: border-box;
      width: 2720.25px;
      height: 1612px;
      display: none;
      border-style: solid;
      border-width: 96px 82px;
      border-image-source: url("../art/ui/team_intro_selene_ceremonial_frame.png?v=5.5.11-android-opening-controls-20260930");
      border-image-slice: 110 120 110 120;
      border-image-width: 96px 82px;
      border-image-repeat: stretch;
      pointer-events: none;
      filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.46));
    }

    body[data-phase="TEAM_INTRO"] .team-intro-selene-frame {
      display: block;
    }

    body[data-phase="TEAM_INTRO"] .last-cup-widget {
      display: none;
    }

    .last-cup-widget {
      position: absolute;
      top: 34px;
      right: 46px;
      z-index: 26;
      width: min(12cqw, 210px);
      min-width: 138px;
      display: grid;
      justify-items: center;
      pointer-events: none;
      filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.58));
    }

    .last-cup-number {
      width: 100%;
      min-width: 92px;
      box-sizing: border-box;
      padding: 5px 14px 3px;
      text-align: center;
      color: var(--world-bone);
      background:
        linear-gradient(145deg, var(--glass-highlight), transparent 38%),
        linear-gradient(180deg, rgba(61, 48, 40, 0.9), var(--glass-fill-strong));
      border: 2px solid rgba(211, 176, 109, 0.82);
      border-radius: 999px;
      font-family: "Brilon", "PingFang SC", "Microsoft YaHei", sans-serif;
      font-size: clamp(28px, 2.6cqw, 52px);
      font-weight: 1000;
      line-height: 1;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -8px 18px rgba(0, 0, 0, 0.28),
        0 10px 28px rgba(0, 0, 0, 0.38);
      -webkit-backdrop-filter: blur(18px) saturate(1.15);
      backdrop-filter: blur(18px) saturate(1.15);
    }

    .last-cup-totals {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      justify-content: center;
      height: 72px;
      padding: 7px 12px;
      gap: 2px;
      text-align: center;
    }

    .last-cup-original,
    .last-cup-adjusted {
      width: auto;
      min-width: 0;
      text-align: center;
    }

    .last-cup-original {
      color: var(--world-brass);
      font-size: clamp(14px, 0.85cqw, 18px);
      line-height: 1.1;
      white-space: nowrap;
    }

    .last-cup-adjusted {
      color: var(--world-brass);
      font-family: var(--font-ui);
      font-size: clamp(23px, 1.5cqw, 32px);
      font-weight: 650;
      font-synthesis: none;
      line-height: 1;
      white-space: nowrap;
    }

    .last-cup-art {
      width: 100%;
      margin-top: -2px;
      display: block;
    }

    .last-cup-team {
      max-width: 100%;
      margin-top: 8px;
      padding: 12px 13px;
      color: var(--world-brass);
      background:
        repeating-linear-gradient(90deg, rgba(247, 241, 228, 0.018) 0 1px, transparent 1px 5px),
        linear-gradient(180deg, rgba(35, 42, 40, 0.84), rgba(16, 19, 18, 0.9));
      border: 1px solid rgba(211, 176, 109, 0.48);
      border-radius: 999px;
      font-family: var(--font-team-name);
      font-size: clamp(13px, 0.9cqw, 18px);
      font-weight: 900;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), var(--shadow-float);
    }

    .dice-float {
      position: absolute;
      right: 24px;
      bottom: 24px;
      width: 122px;
      height: 122px;
      display: none;
      place-items: center;
      border: 0;
      background: transparent;
      perspective: 720px;
      pointer-events: none;
    }

    .dice-float.show.human {
      display: grid;
    }

    .dice-cube {
      position: relative;
      width: 90px;
      height: 90px;
      transform-style: preserve-3d;
      transform: rotateX(-12deg) rotateY(14deg) rotateZ(-4deg);
      will-change: transform, filter;
    }

    .dice-cube.rolling {
      animation: diceHumanTumble3d 0.86s linear infinite;
    }

    .dice-cube.settling {
      transition: transform 0.52s cubic-bezier(0.18, 0.88, 0.24, 1.16), filter 0.52s ease;
      filter: drop-shadow(0 22px 18px rgba(0, 0, 0, 0.54));
    }

    .dice-face {
      position: absolute;
      inset: 0;
      border-radius: 17px;
      background-color: #d8d5ca;
      background-position: center;
      background-size: cover;
      background-repeat: no-repeat;
      backface-visibility: hidden;
      box-shadow: inset 0 0 0 2px rgba(211, 176, 109, 0.34);
    }

    .dice-face.face-1 { transform: translateZ(45px); background-image: url('../art/ui/dice/human_1.png'); }
    .dice-face.face-2 { transform: rotateX(90deg) translateZ(45px); background-image: url('../art/ui/dice/human_2.png'); }
    .dice-face.face-3 { transform: rotateY(90deg) translateZ(45px); background-image: url('../art/ui/dice/human_3.png'); }
    .dice-face.face-4 { transform: rotateY(-90deg) translateZ(45px); background-image: url('../art/ui/dice/human_4.png'); }
    .dice-face.face-5 { transform: rotateX(-90deg) translateZ(45px); background-image: url('../art/ui/dice/human_5.png'); }
    .dice-face.face-6 { transform: rotateY(180deg) translateZ(45px); background-image: url('../art/ui/dice/human_6.png'); }

    .dice-result-face {
      z-index: 2;
      opacity: 0;
      transform: translateZ(46px);
      transition: opacity 0.12s ease;
    }

    .dice-cube.settling .dice-result-face {
      opacity: 1;
    }

    .dice-ground-shadow {
      position: absolute;
      left: 50%;
      bottom: 3px;
      width: 88px;
      height: 25px;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.5);
      filter: blur(10px);
      transform: translateX(-50%);
      animation: diceGroundShadow 0.86s ease-in-out infinite;
      z-index: -1;
    }

    .dice-float.settled .dice-ground-shadow {
      opacity: 0.58;
      animation: none;
      transform: translateX(-50%) scale(0.92);
    }

    @keyframes diceHumanTumble3d {
      0% { transform: translate3d(0, 8px, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(0.92); filter: drop-shadow(0 10px 9px rgba(0,0,0,0.38)); }
      25% { transform: translate3d(-10px, -19px, 32px) rotateX(155deg) rotateY(118deg) rotateZ(74deg) scale(1.03); filter: drop-shadow(12px 28px 16px rgba(0,0,0,0.48)); }
      52% { transform: translate3d(9px, -26px, 46px) rotateX(340deg) rotateY(278deg) rotateZ(176deg) scale(1.08); filter: drop-shadow(-10px 34px 18px rgba(0,0,0,0.42)); }
      78% { transform: translate3d(-5px, -10px, 18px) rotateX(545deg) rotateY(430deg) rotateZ(282deg) scale(1); filter: drop-shadow(7px 22px 13px rgba(0,0,0,0.5)); }
      100% { transform: translate3d(0, 7px, 0) rotateX(720deg) rotateY(540deg) rotateZ(360deg) scale(0.94); filter: drop-shadow(0 11px 10px rgba(0,0,0,0.42)); }
    }

    @keyframes diceGroundShadow {
      0%, 100% { opacity: 0.64; transform: translateX(-50%) scale(0.94); }
      52% { opacity: 0.28; transform: translateX(-50%) scale(0.62); }
    }

    .law-board,
    .rule-board {
      background: #141923;
    }

    .law-board {
      padding: 12px;
      display: grid;
      gap: 4px;
    }

    .law-label {
      color: var(--ice);
      font-size: 0.84rem;
      font-weight: 950;
    }

    .law-owner {
      color: var(--gold);
      font-family: var(--font-team-name);
      font-size: 1.22rem;
      font-weight: 1000;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .finish-column {
      position: absolute;
      top: 560px;
      right: 24px;
      height: 1120px;
      z-index: 25;
      width: 384px;
      display: grid;
      grid-template-rows: repeat(8, minmax(0, 1fr));
      gap: 8px;
      pointer-events: none;
    }

    body[data-phase="TEAM_INTRO"] .finish-column {
      display: none !important;
    }

    .finish-slot {
      min-height: 0;
      display: grid;
      grid-template-columns:
        96px
        132px
        minmax(116px, 1fr);
      gap: 8px;
      align-items: center;
      overflow: hidden;
      padding: 8px;
      border: 1px solid rgba(211, 176, 109, 0.42);
      border-radius: clamp(9px, 0.7cqw, 18px);
      background:
        linear-gradient(100deg, rgba(20, 23, 22, 0.94), rgba(29, 29, 27, 0.78)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 5px);
      box-shadow: inset 0 1px 0 rgba(255, 248, 229, 0.08), 0 6px 14px rgba(0, 0, 0, 0.42);
    }

    .finish-slot.is-current {
      border-color: rgba(245, 196, 81, 0.9);
      background:
        linear-gradient(100deg, rgba(49, 41, 25, 0.96), rgba(30, 28, 23, 0.82)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 5px);
    }

    .finish-slot-label {
      box-sizing: border-box;
      width: 100%;
      min-width: 0;
      padding: 5px 7px 6px;
      color: var(--world-bone);
      background: rgba(15, 18, 17, 0.9);
      border: 1px solid rgba(211, 176, 109, 0.72);
      border-radius: 999px;
      font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
      font-size: var(--type-screen-hud-meta);
      font-weight: 900;
      line-height: 1.15;
      text-align: center;
      white-space: nowrap;
    }

    .finish-rank-copy {
      min-width: 0;
      display: grid;
      align-content: center;
      gap: 8px;
      justify-items: center;
      text-align: center;
    }

    .finish-team-visual {
      position: relative;
      min-width: 0;
      height: 100%;
      box-sizing: border-box;
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      justify-content: center;
      align-items: center;
      filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.72));
    }

    .finish-team-art-viewport {
      position: relative;
      grid-column: 1 / -1;
      width: 100%;
      height: 100%;
      min-width: 0;
      min-height: 0;
      overflow: hidden;
    }

    .finish-team-art {
      position: absolute;
      display: block;
      width: auto;
      height: auto;
      max-width: none;
      max-height: none !important;
      object-fit: fill;
    }

    .team-figure-mirror-x {
      transform: scaleX(-1);
    }

    .finish-slot.is-finished .finish-team-visual {
      grid-template-columns: 36px minmax(0, 1fr);
      gap: 4px;
    }

    .finish-slot.is-finished .finish-team-art-viewport {
      grid-column: 2;
      width: 100%;
    }

    .finish-graduate-coin {
      position: static;
      grid-column: 1;
      grid-row: 1;
      align-self: end;
      z-index: 3;
      width: 36px;
      height: 36px;
      object-fit: contain;
      clip-path: circle(48% at 50% 50%);
      filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.72));
    }

    .finish-team-copy {
      min-width: 0;
      display: grid;
      align-items: center;
    }

    .finish-team-name {
      overflow: hidden;
      white-space: normal;
      overflow-wrap: anywhere;
      color: var(--world-bone);
      font-family: var(--font-team-name);
      font-size: var(--type-screen-hud-name);
      font-weight: 900;
      line-height: 1.05;
    }

    .finish-team-status {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: rgba(226, 220, 205, 0.66);
      font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
      font-size: var(--type-screen-hud-meta);
      font-weight: 800;
    }

    .finish-rank-copy .finish-team-status {
      width: 100%;
      text-align: center;
    }

    .finish-slot.is-finished .finish-team-status {
      color: rgba(237, 194, 104, 0.94);
    }

    .stage-frame {
      position: absolute;
      inset: 0;
      overflow: hidden;
      border: 0;
      background: transparent;
      pointer-events: none;
    }

    .stage-idle,
    .stage-appearance {
      position: absolute;
      inset: 0;
      display: block;
      padding: 0;
      text-align: center;
    }

    .stage-idle {
      display: none;
    }

    .stage-appearance {
      --stage-art-top: var(--ui-stage-art-top, 33.333cqh);
      --stage-status-top: 10.5cqh;
      --stage-caption-top: 15.65cqh;
      --stage-caption-max-height: 17.2cqh;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.36s ease;
      background: transparent;
      isolation: isolate;
    }

    .stage-appearance::before,
    .stage-appearance::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: -1;
    }

    .stage-appearance::before {
      display: none;
    }

    .stage-appearance::after {
      display: none;
    }

    .stage-appearance.show {
      opacity: 1;
    }

    .stage-gaia-permission,
    .stage-selene-protection {
      position: absolute;
      left: 24px;
      top: 30px;
      z-index: 8;
      width: 620px;
      box-sizing: border-box;
      display: none;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      pointer-events: none;
    }

    .stage-gaia-permission.show,
    .stage-selene-protection.show {
      display: flex;
    }

    .stage-gaia-permission-art,
    .stage-selene-protection-art {
      display: block;
      width: 252px;
      height: 252px;
      object-fit: contain;
      filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.62));
    }

    .stage-gaia-permission-copy,
    .stage-selene-protection-copy {
      width: 100%;
      display: grid;
      justify-items: center;
      color: #ffffff;
      font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
      font-size: 34px;
      font-weight: 800;
      line-height: 1.34;
      text-align: center;
      text-shadow:
        0 3px 10px rgba(0, 0, 0, 0.98),
        0 0 24px rgba(0, 0, 0, 0.82);
    }

    .stage-gaia-permission-team-line,
    .stage-gaia-permission-action-line,
    .stage-selene-protection-team-line,
    .stage-selene-protection-action-line {
      display: block;
      white-space: nowrap;
    }

    html[data-locale="en-GB"] .stage-gaia-permission-copy,
    html[data-locale="en-GB"] .stage-selene-protection-copy {
      font-size: 27px;
    }

    .stage-appearance.dual-round-status .stage-gaia-permission,
    .stage-appearance.dual-round-status .stage-selene-protection {
      left: 0;
      width: 540px;
      gap: 8px;
    }

    .stage-appearance.dual-round-status .stage-gaia-permission {
      top: 16px;
    }

    .stage-appearance.dual-round-status .stage-selene-protection {
      top: 304px;
    }

    .stage-appearance.dual-round-status .stage-gaia-permission-art,
    .stage-appearance.dual-round-status .stage-selene-protection-art {
      width: 188px;
      height: 188px;
    }

    .stage-appearance.dual-round-status .stage-gaia-permission-copy,
    .stage-appearance.dual-round-status .stage-selene-protection-copy {
      font-size: 26px;
      line-height: 1.28;
    }

    html[data-locale="en-GB"] .stage-appearance.dual-round-status .stage-gaia-permission-copy,
    html[data-locale="en-GB"] .stage-appearance.dual-round-status .stage-selene-protection-copy {
      font-size: 24px;
    }

    .stage-appearance.hold {
      pointer-events: auto;
    }

    .stage-appearance.settled .stage-art {
      filter: drop-shadow(0 28px 62px rgba(0,0,0,0.48));
    }

    .stage-art {
      position: absolute;
      left: 5.53cqw;
      right: 5.53cqw;
      top: var(--stage-art-top);
      bottom: 0;
      z-index: 5;
      display: block;
      overflow: visible;
      border: 0;
      background: transparent;
      box-shadow: none;
      background-position: center bottom;
      background-size: contain;
      background-repeat: no-repeat;
      opacity: 0;
      transform: translateY(22px) scale(0.96);
      transform-origin: center bottom;
      transition: opacity 0.34s ease, transform 0.56s cubic-bezier(.16,.86,.28,1.08), filter 0.3s ease;
    }

    /* The Ares source is compositionally weighted to the left by the cape and body.
       Keep the shared art canvas centered, then apply a small optical correction. */
    .stage-appearance.type-ARES .stage-art {
      background-position: calc(50% + 20px) bottom;
    }

    .stage-appearance.show .stage-art {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    .stage-art::before,
    .stage-art::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
    }

    .stage-art.has-image::before {
      display: none;
    }

    .stage-art.has-image::after {
      display: none;
    }

    .stage-art.has-image .stage-sigil {
      display: none;
    }

    .stage-art::before {
      display: none;
    }

    .stage-art::after {
      display: none;
    }

    .stage-appearance.category-god .stage-art::after {
      clip-path: polygon(0 76%, 18% 50%, 38% 68%, 56% 34%, 74% 62%, 100% 42%, 100% 100%, 0 100%);
    }

    .stage-appearance.category-region .stage-art::after {
      clip-path: polygon(0 44%, 16% 35%, 30% 46%, 46% 30%, 62% 43%, 76% 32%, 100% 45%, 100% 100%, 0 100%);
    }

    .stage-appearance.category-npc .stage-art::after,
    .stage-appearance.category-gate .stage-art::after {
      clip-path: polygon(0 56%, 12% 36%, 28% 62%, 44% 28%, 60% 56%, 78% 30%, 100% 52%, 100% 100%, 0 100%);
    }

    .stage-appearance.category-warning .stage-art {
      left: 8cqw;
      right: 8cqw;
      top: 18cqh;
      bottom: 18cqh;
      background-position: center center;
      transform: none;
      transition: opacity 0.34s ease;
      transform-origin: center center;
    }

    .stage-appearance.category-warning.show .stage-art {
      transform: none;
    }

    .stage-appearance.category-warning .stage-punishment-top {
      left: 50%;
      right: auto;
      top: 57.32cqh;
      width: 1440px;
      height: 360px;
      max-height: 360px;
      box-sizing: border-box;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      padding: 40px 100px;
      color: #3f2f1d;
      background: transparent;
      border: 0;
      border-radius: 0;
      box-shadow: none;
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
      font-size: 64px;
      line-height: 1.25;
      text-align: center;
      text-shadow: 0 1px 0 rgba(255,255,255,0.42);
      transform: translate(-50%, -50%);
      transition: opacity 0.28s ease;
      white-space: pre-line;
      font-family: "LiLinGothicSC", "PingFang SC", sans-serif;
    }

    .stage-appearance.category-warning .stage-penalty-big {
      display: none !important;
    }

    .stage-appearance.category-warning .stage-caption {
      display: none !important;
    }

    .stage-appearance.category-warning .stage-punishment-top,
    .stage-appearance.category-warning .stage-caption-team,
    .stage-appearance.category-warning .stage-caption-title,
    .stage-appearance.category-warning .stage-caption-rule {
      font-family: "LiLinGothicSC", "LiLinGothic", "PingFang SC", sans-serif;
    }

    .stage-appearance.category-warning .stage-punishment-top::before {
      display: none;
    }

    .stage-appearance.type-GAIA_RELEASE_WARNING .stage-punishment-top {
      display: grid;
      place-items: center;
      padding: 0 100px;
      font-size: 64px;
      line-height: 1.25;
      text-align: center;
    }

    .stage-sigil {
      width: 104px;
      height: 104px;
      display: grid;
      place-items: center;
      border: 2px solid rgba(211, 176, 109, 0.58);
      background:
        repeating-linear-gradient(90deg, rgba(247, 241, 228, 0.025) 0 1px, transparent 1px 5px),
        linear-gradient(180deg, rgba(112, 104, 86, 0.72), rgba(32, 36, 36, 0.9));
      border-radius: var(--corner-md);
      font-size: 4.5rem;
      box-shadow: 0 24px 70px rgba(0,0,0,0.45);
      z-index: 1;
    }

    .stage-punishment-top {
      position: absolute;
      left: 50%;
      right: auto;
      top: 76px;
      z-index: 6;
      width: max-content;
      min-width: 620px;
      max-width: calc(100% - (2 * var(--ui-screen-status-safe-side, 18cqw)));
      box-sizing: border-box;
      min-height: 7.4cqh;
      max-height: none;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: clamp(0.65rem, 1cqh, 1.15rem) clamp(4.5rem, 4.4cqw, 8.5rem);
      color: var(--world-bone);
      background: transparent;
      border: 0;
      border-radius: 0;
      font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
      font-size: var(--type-screen-major);
      font-weight: 850;
      line-height: 1.18;
      text-align: center;
      text-wrap: balance;
      white-space: pre-line;
      overflow: visible;
      text-shadow: 0 2px 8px rgba(0,0,0,0.7);
      box-shadow: none;
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
      isolation: isolate;
      opacity: 0;
      transform: translate(-50%, -10px);
      transition: opacity 0.28s ease, transform 0.34s ease;
    }

    .stage-punishment-top::before {
      content: "";
      position: absolute;
      inset: 0;
      box-sizing: border-box;
      border-style: solid;
      border-width: 24px 64px;
      border-image-source: url("../art/ui/stage_punishment_frame.png?v=5.5.11-android-opening-controls-20260930");
      border-image-slice: 48 128 fill;
      border-image-width: 24px 64px;
      border-image-repeat: stretch;
      filter: drop-shadow(0 18px 34px rgba(3, 7, 12, 0.5));
      z-index: 0;
      pointer-events: none;
    }

    .stage-punishment-top-copy {
      position: relative;
      z-index: 1;
      display: block;
      width: 100%;
      max-width: 100%;
      text-align: center;
      white-space: pre-line;
      text-wrap: balance;
    }

    .stage-appearance.effect-ready .stage-punishment-top {
      opacity: 1;
      transform: translate(-50%, 0);
    }

    .stage-appearance.category-warning.effect-ready .stage-punishment-top {
      opacity: 1;
      transform: translate(-50%, -50%);
    }

    .stage-penalty-big {
      position: absolute;
      left: var(--ui-screen-status-safe-side, 18cqw);
      right: var(--ui-screen-status-safe-side, 18cqw);
      top: var(--stage-status-top);
      z-index: 6;
      display: none;
      flex-wrap: wrap;
      align-items: stretch;
      justify-content: center;
      gap: clamp(8px, 0.55cqw, 14px);
    }

    .stage-penalty-big.show {
      display: flex;
    }

    .stage-appearance.mixed-status-layout .stage-penalty-big.show {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      justify-items: center;
    }

    .stage-penalty-big {
      opacity: 0;
      transform: translateY(-8px);
      transition: opacity 0.28s ease, transform 0.34s ease;
    }

    .stage-appearance.effect-ready .stage-penalty-big.show {
      opacity: 1;
      transform: translateY(0);
    }

    .stage-penalty-chip {
      flex: 0 1 auto;
      width: fit-content;
      max-width: 100%;
      min-height: 4.35cqh;
      padding: clamp(0.45rem, 0.7cqh, 0.8rem) 1cqw;
      color: #fff7ed;
      background:
        linear-gradient(145deg, rgba(255,255,255,0.1), transparent 38%),
        linear-gradient(180deg, rgba(122, 49, 78, 0.94), rgba(67, 25, 38, 0.94));
      border: 1px solid rgba(247, 241, 228, 0.2);
      border-radius: var(--corner-sm);
      font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
      font-size: var(--type-screen-body);
      font-weight: 850;
      text-align: center;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), var(--shadow-float);
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1.2;
    }

    .stage-penalty-chip.live,
    .stage-penalty-chip.positive,
    .stage-penalty-chip.neutral {
      background:
        linear-gradient(145deg, rgba(255,255,255,0.1), transparent 38%),
        linear-gradient(180deg, rgba(100, 143, 136, 0.94), rgba(36, 74, 69, 0.94));
    }

    .stage-caption {
      position: absolute;
      left: 50%;
      top: var(--stage-caption-top);
      width: min(66cqw, 1600px);
      max-height: var(--stage-caption-max-height);
      box-sizing: border-box;
      overflow: hidden;
      z-index: 4;
      padding: clamp(0.3rem, 0.55cqw, 0.7rem) clamp(1.1rem, 2cqw, 2.6rem);
      text-align: center;
      background:
        linear-gradient(145deg, var(--glass-highlight), transparent 32%),
        linear-gradient(180deg, rgba(35, 42, 40, 0.76), rgba(16, 19, 18, 0.84));
      border: 1px solid var(--glass-edge);
      border-top: 3px solid rgba(211, 176, 109, 0.58);
      border-radius: var(--corner-lg);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), var(--shadow-deep);
      -webkit-backdrop-filter: blur(22px) saturate(1.15);
      backdrop-filter: blur(22px) saturate(1.15);
      opacity: 0;
      transform: translate(-50%, 14px);
      transition: opacity 0.3s ease, transform 0.36s ease;
      pointer-events: none;
      font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    }

    .stage-caption-frame {
      display: none;
      position: absolute;
      inset: 0;
      z-index: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      user-select: none;
    }

    .stage-caption-frame-source {
      display: none !important;
    }

    .stage-caption-team,
    .stage-caption-title,
    .stage-caption-rule {
      position: relative;
      z-index: 1;
    }

    .stage-appearance.has-caption-frame .stage-caption {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
      max-height: none !important;
      overflow: visible;
      isolation: isolate;
      background: transparent;
      border: 0;
      border-radius: 0;
      box-shadow: none;
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }

    .stage-appearance.has-caption-frame .stage-caption-frame {
      display: block;
    }

    .stage-appearance.has-deity-frame .stage-caption {
      --deity-caption-uniform-width: 1573px;
      width: var(--caption-content-width, var(--deity-caption-uniform-width)) !important;
      padding: 0 var(--deity-caption-inline, 180px);
    }

    .stage-appearance.has-character-frame .stage-caption {
      --deity-caption-inline: 180px;
      --deity-caption-base-width: 1518px;
      height: 330px;
    }

    .stage-appearance.has-character-frame .stage-caption-team,
    .stage-appearance.has-character-frame .stage-caption-title,
    .stage-appearance.has-character-frame .stage-caption-rule {
      transform: translateY(3.37px);
    }

    .stage-appearance.has-generic-frame .stage-caption {
      width: var(--caption-content-width, max-content) !important;
      min-width: 960px;
      height: 220px;
      box-sizing: border-box;
      padding: 0 220px;
      gap: 8px;
    }

    .stage-appearance.has-generic-frame .stage-caption-team,
    .stage-appearance.has-generic-frame .stage-caption-title,
    .stage-appearance.has-generic-frame .stage-caption-rule {
      margin: 0;
      transform: translateY(3px);
    }

    .stage-appearance.has-generic-frame .stage-caption-team {
      font-size: 36px;
    }

    .stage-appearance.has-generic-frame .stage-caption-title {
      font-size: 62px;
    }

    .stage-appearance.has-generic-frame .stage-caption-rule {
      padding: 0;
      font-size: 32px;
    }

    .stage-appearance.type-ARTEMIS.has-deity-frame .stage-caption {
      --deity-caption-base-width: 1520px;
      height: 308px;
    }

    .stage-appearance.type-ZEUS.has-deity-frame .stage-caption {
      --deity-caption-base-width: 1430px;
      height: 334px;
    }

    .stage-appearance.type-ARES.has-deity-frame .stage-caption {
      --deity-caption-base-width: 1480px;
      height: 328px;
    }

    .stage-appearance.type-DIONYSUS.has-deity-frame .stage-caption {
      --deity-caption-inline: 170px;
      --deity-caption-base-width: 1320px;
      height: 338px;
    }

    .stage-appearance.type-SELENE.has-deity-frame .stage-caption,
    .stage-appearance.type-ATHENA.has-deity-frame .stage-caption {
      --deity-caption-base-width: 1573px;
      height: 330px;
    }

    .stage-appearance.type-HERA.has-deity-frame .stage-caption {
      --deity-caption-base-width: 1545px;
      height: 330px;
    }

    .stage-appearance.type-POSEIDON.has-deity-frame .stage-caption {
      --deity-caption-base-width: 1419px;
      height: 330px;
    }

    .stage-appearance.type-HADES.has-deity-frame .stage-caption {
      --deity-caption-base-width: 1335px;
      height: 330px;
    }

    .stage-appearance.type-SEKHMET.has-deity-frame .stage-caption {
      --deity-caption-inline: 150px;
      --deity-caption-base-width: 1214px;
      height: 330px;
    }

    .stage-appearance.type-ALETHEIA.has-deity-frame .stage-caption {
      --deity-caption-inline: 145px;
      --deity-caption-base-width: 1270px;
      height: 330px;
    }

    .stage-appearance.type-APHRODITE.has-deity-frame .stage-caption {
      --deity-caption-inline: 135px;
      --deity-caption-base-width: 1177px;
      height: 330px;
    }

    .stage-appearance.type-MOIRAI.has-deity-frame .stage-caption {
      --deity-caption-inline: 135px;
      --deity-caption-base-width: 1129px;
      height: 330px;
    }

    .stage-appearance.type-NARCISSUS.has-deity-frame .stage-caption {
      --deity-caption-base-width: 1358px;
      height: 330px;
    }

    .stage-appearance.type-CHAOS.has-deity-frame .stage-caption {
      --deity-caption-inline: 135px;
      --deity-caption-base-width: 1184px;
      height: 330px;
    }

    .stage-appearance.type-NEMESIS.has-deity-frame .stage-caption {
      --deity-caption-inline: 120px;
      --deity-caption-base-width: 1058px;
      height: 330px;
    }

    .stage-appearance.type-WHITE_BLACK_QUEENS.has-deity-frame .stage-caption {
      --deity-caption-inline: 125px;
      --deity-caption-base-width: 1122px;
      height: 330px;
    }

    .stage-appearance.type-CHILI_MOTHER_DINO.has-deity-frame .stage-caption {
      --deity-caption-inline: 125px;
      --deity-caption-base-width: 1148px;
      height: 330px;
    }

    .stage-appearance.type-GAIA.has-deity-frame .stage-caption {
      --deity-caption-inline: 170px;
      --deity-caption-base-width: 1396px;
      height: 330px;
    }

    .stage-appearance.type-MNEMOSYNE.has-deity-frame .stage-caption {
      --deity-caption-inline: 145px;
      --deity-caption-base-width: 934px;
      height: 330px;
    }

    .stage-appearance.type-HELIOS.has-deity-frame .stage-caption {
      --deity-caption-inline: 130px;
      --deity-caption-base-width: 1133px;
      height: 330px;
    }

    .stage-appearance.type-EROS.has-deity-frame .stage-caption {
      --deity-caption-inline: 110px;
      --deity-caption-base-width: 1300px;
      height: 330px;
    }

    .stage-appearance.type-MUSE.has-deity-frame .stage-caption {
      --deity-caption-inline: 135px;
      --deity-caption-base-width: 1047px;
      height: 330px;
    }

    .stage-appearance.type-PLUTUS.has-deity-frame .stage-caption {
      --deity-caption-inline: 130px;
      --deity-caption-base-width: 1096px;
      height: 330px;
    }

    .stage-appearance.type-TYCHE.has-deity-frame .stage-caption {
      --deity-caption-inline: 105px;
      --deity-caption-base-width: 877px;
      height: 330px;
    }

    .stage-appearance.type-ERIS.has-deity-frame .stage-caption {
      --deity-caption-inline: 110px;
      --deity-caption-base-width: 1019px;
      height: 330px;
    }

    .stage-appearance.type-NIKE.has-deity-frame .stage-caption {
      --deity-caption-inline: 110px;
      --deity-caption-base-width: 962px;
      height: 330px;
    }

    .stage-appearance.type-THEMIS.has-deity-frame .stage-caption {
      --deity-caption-inline: 80px;
      --deity-caption-base-width: 807px;
      height: 330px;
    }

    /* Keep every approved signature event frame on one vertical rhythm. The
       individual source artworks have different native heights, which made
       identical three-line copy sit noticeably closer to some ornaments than
       others. The sliced renderer preserves each frame's decorated edges. */
    .stage-appearance.has-deity-frame .stage-caption {
      height: 360px !important;
    }

    /* The generic bronze frame uses larger copy than the signature frames.
       Give that same three-line group comparable breathing room instead of
       compressing it into the old 220px strip. */
    .stage-appearance.has-generic-frame .stage-caption {
      height: 320px;
    }

    .stage-appearance.has-caption-frame .stage-caption-team,
    .stage-appearance.has-caption-frame .stage-caption-title,
    .stage-appearance.has-caption-frame .stage-caption-rule {
      min-width: 0;
      max-width: 100%;
      white-space: nowrap;
    }

    .stage-appearance.has-deity-frame.mixed-status-layout .stage-caption {
      padding: 0 var(--deity-caption-inline, 180px);
    }

    .stage-appearance:not(.has-stage-status):not(.category-warning) {
      --stage-caption-top: 10.5cqh;
      --stage-caption-max-height: 22cqh;
    }

    .stage-appearance.caption-ready .stage-caption {
      opacity: 1;
      transform: translate(-50%, 0);
    }

    .stage-caption-team {
      width: 100%;
      color: var(--world-brass);
      font-size: var(--type-screen-body-l);
      font-weight: 950;
      line-height: 1.05;
      text-align: center;
      text-shadow: 0 5px 16px rgba(0,0,0,0.7);
      font-family: var(--font-team-name);
    }

    .stage-caption-title {
      width: 100%;
      margin-top: clamp(0.35rem, 0.55cqh, 0.7rem);
      color: var(--world-bone);
      font-size: var(--type-screen-display-l);
      font-weight: 1000;
      line-height: 1.08;
      text-align: center;
      text-shadow: 0 4px 14px rgba(0,0,0,0.7);
      font-family: var(--font-event-name);
    }

    .stage-caption-rule {
      width: 100%;
      margin-top: clamp(0.3rem, 0.5cqh, 0.75rem);
      padding-bottom: 0.18em;
      color: var(--world-bone-dim);
      font-size: var(--type-screen-body);
      font-weight: 800;
      line-height: 1.25;
      text-align: center;
      white-space: pre-line;
      text-shadow: 0 3px 12px rgba(0,0,0,0.7);
      font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    }

    .team-drink-now {
      flex: 0 0 auto;
      padding: 3px 7px;
      color: #fff7ed;
      background: #b91c1c;
      font-size: 0.76rem;
      font-weight: 1000;
    }

    .stage-appearance.type-DEMON {
      --terrain-pattern: repeating-linear-gradient(100deg, rgba(239, 68, 68, 0.36) 0 8px, rgba(15, 23, 42, 0.2) 8px 16px);
    }

    .stage-appearance.type-GRASSLAND {
      --terrain-pattern: repeating-linear-gradient(90deg, rgba(153, 246, 228, 0.22) 0 3px, transparent 3px 11px);
    }

    .stage-appearance.type-SNOW_MOUNTAIN {
      --terrain-pattern: repeating-linear-gradient(135deg, rgba(224, 242, 254, 0.3) 0 5px, transparent 5px 15px);
    }

    .stage-appearance.type-SWAMP {
      --terrain-pattern: repeating-radial-gradient(circle at 20% 50%, rgba(217, 249, 157, 0.22) 0 3px, transparent 4px 15px);
    }

    .stage-appearance.type-DESERT {
      --terrain-pattern: repeating-linear-gradient(170deg, rgba(253, 230, 138, 0.28) 0 3px, transparent 3px 18px);
    }

    .stage-appearance.type-OCEAN {
      --terrain-pattern: repeating-linear-gradient(0deg, rgba(165, 243, 252, 0.24) 0 3px, transparent 3px 13px);
    }

    .stage-appearance.type-UNDERWORLD {
      --terrain-pattern: repeating-linear-gradient(120deg, rgba(248, 113, 113, 0.22) 0 4px, transparent 4px 14px);
    }

    .stage-appearance.type-DIVINE_REALM {
      --terrain-pattern: repeating-linear-gradient(90deg, rgba(250, 204, 21, 0.26) 0 3px, transparent 3px 15px);
    }

    .stage-appearance.type-CHAOS_THRONE {
      --terrain-pattern: repeating-radial-gradient(circle at 50% 45%, rgba(167, 139, 250, 0.28) 0 4px, transparent 5px 18px);
    }

    .stage-appearance.type-PIRATE_ISLANDS {
      --terrain-pattern: repeating-linear-gradient(0deg, rgba(165, 243, 252, 0.24) 0 3px, transparent 3px 13px);
    }

    .rule-board {
      padding: 20px;
      display: grid;
      gap: 8px;
      min-height: 138px;
      background: #141923;
    }

    .rule-team {
      color: var(--muted);
      font-size: 0.82rem;
      font-weight: 950;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .rule-title {
      font-size: 1.5rem;
      line-height: 1.05;
      font-weight: 1000;
      color: #fde68a;
      overflow-wrap: anywhere;
    }

    .rule-text {
      color: #e5e7eb;
      font-size: 1.02rem;
      line-height: 1.42;
      font-weight: 780;
      overflow-wrap: anywhere;
    }

    #game-map {
      transition: filter 0.9s ease, transform 0.9s ease;
      transform-origin: center;
    }

    .finale-honor-overlay {
      position: absolute;
      inset: 0;
      z-index: 46;
      display: none;
      overflow: hidden;
      pointer-events: none;
      color: var(--world-bone);
      background:
        radial-gradient(circle at 50% 42%, rgba(211, 176, 109, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(5, 8, 7, 0.28), rgba(5, 8, 7, 0.68));
    }

    .finale-honor-overlay.show { display: block; }

    .finale-honor-header {
      position: absolute;
      top: 48px;
      left: 50%;
      z-index: 4;
      width: 1180px;
      transform: translateX(-50%);
      text-align: center;
    }

    .finale-honor-eyebrow {
      color: var(--world-brass);
      font-family: var(--font-ui);
      font-size: 28px;
      font-weight: 650;
      letter-spacing: .22em;
    }

    .finale-progress {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
      margin-top: 18px;
    }

    .finale-progress-step {
      position: relative;
      padding-top: 14px;
      color: rgba(247, 241, 228, .5);
      font-family: var(--font-ui);
      font-size: 24px;
      font-weight: 500;
    }

    .finale-progress-step::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      border-radius: 999px;
      background: rgba(247, 241, 228, .16);
    }

    .finale-progress-step.is-complete,
    .finale-progress-step.is-current { color: var(--world-bone); }
    .finale-progress-step.is-complete::before { background: rgba(211, 176, 109, .52); }
    .finale-progress-step.is-current::before {
      background: var(--world-brass);
      box-shadow: 0 0 20px rgba(211, 176, 109, .45);
    }

    .finale-ceremony-panel {
      position: absolute;
      left: 50%;
      top: 190px;
      bottom: 84px;
      width: 2180px;
      transform: translateX(-50%);
      display: grid;
      grid-template-columns: 1.05fr .95fr;
      align-items: stretch;
      overflow: hidden;
      border: 1px solid rgba(211, 176, 109, .42);
      border-top: 4px solid rgba(211, 176, 109, .78);
      border-radius: var(--modal-radius);
      background:
        linear-gradient(145deg, rgba(247, 241, 228, .08), transparent 28%),
        linear-gradient(180deg, rgba(35, 42, 40, .76), rgba(16, 19, 18, .9));
      box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 42px 100px rgba(0,0,0,.54);
      -webkit-backdrop-filter: blur(20px) saturate(1.08);
      backdrop-filter: blur(20px) saturate(1.08);
    }

    .finale-ceremony-panel[hidden] { display: none !important; }

    .finale-ceremony-copy {
      display: grid;
      align-content: center;
      gap: 26px;
      padding: 90px 72px 90px 96px;
    }

    .finale-ceremony-kicker {
      color: var(--world-brass);
      font-family: var(--font-ui);
      font-size: 32px;
      font-weight: 650;
      letter-spacing: .08em;
    }

    .finale-ceremony-title {
      max-width: 950px;
      color: var(--world-bone);
      font-family: var(--font-display);
      font-size: var(--type-screen-display-xl);
      font-weight: 400;
      font-synthesis: none;
      line-height: 1.08;
      letter-spacing: .02em;
      text-wrap: balance;
    }

    .finale-ceremony-title.is-team-name {
      font-family: var(--font-team-name);
    }

    .finale-ceremony-message {
      max-width: 920px;
      color: var(--world-bone-dim);
      font-family: var(--font-ui);
      font-size: var(--type-screen-body-l);
      font-weight: 500;
      line-height: 1.42;
      text-wrap: balance;
    }

    .finale-ceremony-stat {
      display: none;
      align-items: baseline;
      gap: 18px;
      width: fit-content;
      padding: 16px 28px 18px;
      border-left: 4px solid var(--world-wine);
      background: rgba(122, 49, 78, .22);
    }

    .finale-ceremony-stat.show { display: flex; }
    .finale-ceremony-number {
      color: #f5d98e;
      font-family: var(--font-number);
      font-size: 88px;
      font-weight: 400;
      font-variant-numeric: tabular-nums lining-nums;
      line-height: .9;
    }
    .finale-ceremony-unit {
      color: var(--world-bone);
      font-family: var(--font-ui);
      font-size: 32px;
      font-weight: 650;
    }

    .finale-ceremony-visual {
      position: relative;
      min-width: 0;
      overflow: hidden;
      border-left: 1px solid rgba(211, 176, 109, .16);
      background:
        radial-gradient(circle at 50% 52%, rgba(211, 176, 109, .2), transparent 45%),
        linear-gradient(90deg, rgba(16, 19, 18, .12), rgba(16, 19, 18, .48));
    }

    .finale-ceremony-art {
      position: absolute;
      display: block;
      width: auto;
      height: auto;
      max-width: none;
      max-height: none;
      filter: drop-shadow(0 42px 56px rgba(0,0,0,.72));
    }

    .finale-ceremony-art.is-logo {
      inset: 18% 11%;
      width: 78%;
      height: 64%;
      object-fit: contain;
      filter: drop-shadow(0 32px 54px rgba(0,0,0,.62));
    }

    .photo-call-overlay {
      position: absolute;
      inset: 0;
      z-index: 3;
      display: none;
      grid-template-columns: minmax(0, 58fr) minmax(420px, 42fr);
      overflow: hidden;
      pointer-events: none;
      background:
        linear-gradient(90deg, rgba(5, 7, 11, 0.24) 0 54%, rgba(5, 7, 11, 0.58) 62%, rgba(5, 7, 11, 0.86) 100%),
        linear-gradient(180deg, rgba(5, 7, 11, 0.2), rgba(5, 7, 11, 0.58));
    }

    .photo-call-overlay.show { display: grid; }

    .photo-call-overlay.logo-endcard-visible { z-index: 9; }

    .finale-honor-overlay.logo-endcard-visible .finale-honor-header {
      visibility: hidden;
    }

    .photo-logo-endcard {
      position: absolute;
      inset: 0;
      z-index: 8;
      display: grid;
      place-items: center;
      padding: 7cqh 8cqw;
      visibility: hidden;
      opacity: 0;
      background: #000;
      transition: opacity 0.9s ease, visibility 0s linear 0.9s;
    }

    .photo-logo-endcard.show {
      visibility: visible;
      opacity: 1;
      transition: opacity 0.9s ease;
    }

    html[data-credits-end-demo="true"] .photo-logo-endcard {
      transition: none;
    }

    .photo-logo-endcard img {
      display: block;
      width: min(76cqw, 2300px);
      max-width: 100%;
      max-height: 78cqh;
      object-fit: contain;
      filter: drop-shadow(0 34px 58px rgba(0, 0, 0, 0.72));
    }

    .photo-logo-contact {
      position: absolute;
      left: 50%;
      bottom: 7cqh;
      display: flex;
      align-items: baseline;
      justify-content: center;
      width: min(90cqw, 2920px);
      padding: 4px 0;
      transform: translateX(-50%);
      color: rgba(247, 241, 228, .82);
      font-family: var(--font-ui);
      font-size: 36px;
      font-weight: 520;
      letter-spacing: .025em;
      line-height: 1.25;
      text-align: center;
      white-space: nowrap;
    }

    .photo-logo-contact-email {
      color: #f5d98e;
      font-family: var(--font-ui);
      font-weight: 500;
      letter-spacing: .035em;
    }

    body[data-phase="FINALE_READY"] #game-map,
    body[data-phase="FINALE_WINNER"] #game-map,
    body[data-phase="FINAL_CUP"] #game-map,
    body[data-phase="FINALE_PHOTO"] #game-map {
      filter: brightness(0.52) saturate(0.82);
      transform: none;
    }

    body[data-phase="FINALE_READY"] .stage-frame,
    body[data-phase="FINALE_READY"] .dice-float,
    body[data-phase="FINALE_WINNER"] .stage-frame,
    body[data-phase="FINALE_WINNER"] .dice-float,
    body[data-phase="FINAL_CUP"] .stage-frame,
    body[data-phase="FINAL_CUP"] .dice-float,
    body[data-phase="FINALE_PHOTO"] .stage-frame,
    body[data-phase="FINALE_PHOTO"] .dice-float {
      display: none !important;
    }

    .photo-honoree {
      position: relative;
      min-width: 0;
      min-height: 0;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr) auto;
      justify-items: center;
      padding: 190px 4cqw 72px;
      text-align: center;
      opacity: 1;
      transform: translateY(0) scale(1);
      transition: opacity 0.72s ease, transform 0.72s ease;
    }

    .photo-honoree.is-changing {
      opacity: 0;
      transform: translateY(22px) scale(0.975);
    }

    .photo-title-stack {
      position: relative;
      z-index: 2;
      width: min(92%, 1480px);
      min-height: 220px;
      display: grid;
      align-content: start;
      justify-items: center;
      gap: 10px;
      color: var(--world-bone);
      text-shadow: 0 5px 20px rgba(0, 0, 0, 0.92);
    }

    .photo-primary-title {
      font-family: "LiLinGothicSC", "PingFang SC", sans-serif;
      font-size: clamp(56px, 4.6cqw, 112px);
      line-height: 1.05;
      color: #f5d98e;
      letter-spacing: 0.03em;
    }

    .photo-primary-story {
      color: #fffaf0;
      font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
      font-size: clamp(24px, 1.8cqw, 42px);
      font-weight: 760;
      line-height: 1.25;
    }

    .photo-secondary-titles {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 14px;
      width: min(100%, 1280px);
    }

    .photo-secondary-title {
      display: grid;
      gap: 4px;
      min-width: min(360px, 42%);
      padding: 10px 22px 12px;
      border: 1px solid rgba(211, 176, 109, 0.52);
      border-radius: 24px;
      background: rgba(16, 19, 18, 0.68);
      text-align: center;
    }

    .photo-secondary-title-name {
      color: #f7f1e4;
      font-size: clamp(22px, 1.55cqw, 36px);
      font-weight: 850;
    }

    .photo-secondary-title-story {
      color: rgba(255, 250, 240, 0.86);
      font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
      font-size: clamp(17px, 1.05cqw, 25px);
      font-weight: 680;
      line-height: 1.25;
    }

    .photo-secondary-title {
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 15px 36px rgba(0,0,0,0.32);
      -webkit-backdrop-filter: blur(18px);
      backdrop-filter: blur(18px);
    }

    .photo-team-art-viewport {
      position: relative;
      align-self: stretch;
      justify-self: stretch;
      min-width: 0;
      min-height: 0;
      overflow: hidden;
    }

    .photo-team-art {
      position: absolute;
      display: block;
      width: auto;
      height: auto;
      max-width: none;
      max-height: none;
      filter: drop-shadow(0 42px 54px rgba(0,0,0,0.72));
    }

    .photo-team-name {
      position: relative;
      z-index: 2;
      margin-top: -6px;
      min-width: min(76%, 760px);
      padding: 12px 30px 15px;
      border-top: 2px solid rgba(211, 176, 109, 0.7);
      color: #fffaf0;
      font-family: var(--font-team-name);
      font-size: clamp(30px, 2.4cqw, 54px);
      font-weight: 900;
      line-height: 1.1;
      text-shadow: 0 4px 18px rgba(0,0,0,0.9);
    }

    .photo-credits {
      position: relative;
      min-width: 0;
      overflow: hidden;
      border-left: 1px solid rgba(211, 176, 109, 0.2);
      background:
        linear-gradient(90deg, rgba(16, 19, 18, 0.2), rgba(16, 19, 18, 0.66)),
        repeating-linear-gradient(90deg, rgba(247, 241, 228, 0.018) 0 1px, transparent 1px 7px);
      -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
      mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
    }

    .photo-credits-track {
      position: absolute;
      left: 7%;
      right: 7%;
      top: 100%;
      text-align: center;
      will-change: transform;
    }

    .photo-credits-track.is-rolling {
      animation: photoCreditsRoll var(--credits-duration, 150s) linear 1 both;
    }

    .credits-game-title {
      margin-bottom: 26px;
      color: #f5d98e;
      font-family: "LiLinGothicSC", "PingFang SC", sans-serif;
      font-size: clamp(34px, 2.35cqw, 58px);
      line-height: 1.18;
    }

    .credits-heading {
      margin-bottom: 72px;
      color: #f7f1e4;
      font-size: clamp(24px, 1.55cqw, 38px);
      font-weight: 800;
      letter-spacing: 0.34em;
    }

    .credit-section { margin: 0 0 72px; }

    .credit-group {
      margin: 0 0 24px;
      color: #d3b06d;
      font-family: "LiLinGothicSC", "PingFang SC", sans-serif;
      font-size: clamp(28px, 1.85cqw, 44px);
      line-height: 1.15;
    }

    .credit-row {
      display: grid;
      grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
      gap: 24px;
      align-items: baseline;
      margin: 0 0 16px;
      color: #f7f1e4;
      font-size: clamp(20px, 1.2cqw, 30px);
      line-height: 1.34;
    }

    .credit-row.single { grid-template-columns: minmax(0, 1fr); }

    .credit-role {
      text-align: right;
      color: #cfc7b4;
      font-weight: 650;
    }

    .credit-row.single .credit-role { text-align: center; }

    .credit-name {
      text-align: left;
      color: #fffaf0;
      font-weight: 850;
    }

    @keyframes photoCreditsRoll {
      from { transform: translateY(0); }
      to { transform: translateY(var(--credits-end-translate, calc(-100% - 100cqh))); }
    }

    /* 3.1 fixed-canvas UI contract: test previews scale the canvas; components never reflow. */
    .zodiac-title {
      font-weight: 400;
      font-synthesis: none;
    }

    .zodiac-message {
      font-family: var(--font-ui);
      font-size: 28px;
      font-weight: 500;
      line-height: 1.4;
    }

    .last-cup-widget {
      top: 16px;
      right: 67px;
      width: 420px;
      min-width: 420px;
      transform: scale(1.14);
      transform-origin: top right;
    }

    .last-cup-art {
      width: 210px;
    }

    .last-cup-number {
      width: 420px;
      min-width: 420px;
      font-weight: 400;
      font-synthesis: none;
    }

    .last-cup-totals {
      height: 108px;
      align-items: center;
      padding: 12px 24px;
    }

    .last-cup-original {
      font-size: 18px;
    }

    .last-cup-adjusted {
      font-size: 32px;
    }

    html[data-locale="en-GB"] .last-cup-number {
      font-family: var(--font-ui);
      line-height: 1.1;
    }

    html[data-locale="en-GB"] .last-cup-original {
      font-size: 16px;
    }

    html[data-locale="en-GB"] .last-cup-adjusted {
      font-size: 22px;
    }

    .finish-column {
      top: 512px;
      right: 32px;
      width: 480px;
      height: 1336px;
      grid-template-rows: repeat(8, 160px);
      gap: 8px;
    }

    .screen-now-playing {
      position: absolute;
      left: 32px;
      right: auto;
      bottom: 32px;
      z-index: 27;
      display: flex;
      align-items: center;
      gap: 16px;
      width: fit-content;
      max-width: 1900px;
      min-height: 72px;
      box-sizing: border-box;
      padding: 8px 24px 8px 10px;
      overflow: hidden;
      color: var(--world-bone);
      background: linear-gradient(90deg, rgba(16, 19, 18, 0.9), rgba(16, 19, 18, 0.7));
      border: 1px solid rgba(211, 176, 109, 0.44);
      border-radius: 40px;
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.08);
      font-family: var(--font-ui);
      font-size: var(--type-screen-body);
      font-weight: 650;
      line-height: 1.2;
      white-space: nowrap;
      pointer-events: none;
      opacity: 0;
      visibility: hidden;
      transform: translateY(8px);
      transition: opacity 220ms ease, transform 220ms ease, visibility 220ms step-end;
    }

    .screen-now-playing.is-visible {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      transition: opacity 220ms ease, transform 220ms ease, visibility 0s;
    }

    .screen-now-playing.is-actionable {
      pointer-events: auto;
      cursor: pointer;
      border-color: rgba(240, 211, 138, 0.84);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42), 0 0 0 2px rgba(215, 184, 102, 0.18);
    }

    .screen-now-playing.is-actionable:active {
      transform: translateY(0) scale(0.98);
    }

    .screen-now-playing-coin {
      flex: 0 0 72px;
      width: 72px;
      height: 72px;
      object-fit: contain;
      filter: drop-shadow(0 4px 7px rgba(0, 0, 0, 0.45));
    }

    .screen-now-playing-copy {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .finish-slot {
      grid-template-columns: 108px 144px 180px;
      gap: 12px;
      padding: 12px;
      border-radius: var(--card-radius);
    }

    .finish-slot.is-current {
      border-left: 6px solid var(--world-brass);
      padding-left: 7px;
    }

    .finish-slot-label {
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      font-size: 32px;
      font-weight: 650;
    }

    .finish-rank-copy {
      gap: 10px;
    }

    .finish-rank-copy .finish-team-status,
    .finish-team-status {
      font-size: 28px;
      font-weight: 500;
    }

    html[data-locale="en-GB"] .finish-slot-label,
    html[data-locale="en-GB"] .finish-rank-copy .finish-team-status {
      font-size: 22px;
      letter-spacing: -0.2px;
    }

    .finish-team-visual {
      width: 144px;
      height: 136px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(211,176,109,.17), rgba(16,19,18,.12) 68%, transparent 69%);
    }

    .finish-team-art-viewport {
      width: 132px;
      height: 132px;
      place-self: center;
    }

    .finish-slot.is-finished .finish-team-visual {
      grid-template-columns: 1fr;
      gap: 0;
    }

    .finish-slot.is-finished .finish-team-art-viewport {
      grid-column: 1;
      width: 132px;
    }

    .finish-graduate-coin {
      position: absolute;
      left: 0;
      bottom: 0;
      width: 36px;
      height: 36px;
    }

    .finish-team-name {
      font-size: 32px;
      padding-block: 4px; /* Reserve font ink beyond its line box; keep the row centred. */
      font-weight: 650;
      line-height: 1.16;
      word-break: keep-all;
      overflow-wrap: normal;
    }

    .stage-punishment-top {
      left: 50%;
      right: auto;
      top: 48px;
      width: max-content;
      min-width: 620px;
      max-width: 2160px;
      box-sizing: border-box;
      min-height: 128px;
      max-height: none;
      padding: 26px 104px 30px;
      font-size: 56px;
      font-weight: 650;
      line-height: 1.18;
      text-align: center;
    }

    .stage-penalty-big,
    .stage-appearance.has-stage-status .stage-penalty-big {
      left: 540px;
      right: 540px;
      top: var(--stage-status-top, 224px);
      gap: 8px;
      grid-template-columns: 1fr;
      justify-items: center;
    }

    .stage-penalty-chip,
    .stage-penalty-chip.live,
    .stage-penalty-chip.positive,
    .stage-penalty-chip.neutral {
      position: relative;
      z-index: 0;
      isolation: isolate;
      min-height: 92px;
      width: fit-content;
      max-width: 100%;
      box-sizing: border-box;
      padding: 14px 122px;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      color: #fff4f3;
      font-size: var(--type-screen-status);
      font-weight: 650;
      line-height: 1.28;
      text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9);
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }

    .stage-penalty-chip::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      pointer-events: none;
      border: 1px solid transparent;
      border-image-source: url("../art/ui/status_penalty_frame.png?v=5.5.11-android-opening-controls-20260930");
      border-image-slice: 72 280 fill;
      border-image-width: 30px 104px;
      border-image-repeat: stretch;
      filter: drop-shadow(0 12px 26px rgba(28, 4, 11, 0.38));
    }

    .stage-penalty-chip.live::before,
    .stage-penalty-chip.positive::before,
    .stage-penalty-chip.neutral::before {
      border-image-source: url("../art/ui/status_benefit_frame.png?v=5.5.11-android-opening-controls-20260930");
      filter: drop-shadow(0 12px 26px rgba(4, 24, 21, 0.38));
    }

    .stage-penalty-chip.long-copy,
    .stage-penalty-chip.live.long-copy,
    .stage-penalty-chip.positive.long-copy,
    .stage-penalty-chip.neutral.long-copy {
      padding-inline: 60px;
      font-size: 44px;
      line-height: 1.24;
    }

    .stage-caption,
    .stage-appearance:not(.has-stage-status):not(.category-warning) .stage-caption {
      top: var(--stage-caption-top, 224px) !important;
      width: 1840px;
      max-height: var(--stage-caption-max-height, 360px) !important;
      padding: 24px 48px 36px;
      border-radius: var(--modal-radius);
    }

    .stage-appearance.has-stage-status .stage-caption {
      top: var(--stage-caption-top, 304px) !important;
    }

    .stage-appearance.mixed-status-layout .stage-penalty-chip,
    .stage-appearance.mixed-status-layout .stage-penalty-chip.live,
    .stage-appearance.mixed-status-layout .stage-penalty-chip.positive,
    .stage-appearance.mixed-status-layout .stage-penalty-chip.neutral {
      font-size: 44px;
    }

    .stage-appearance.mixed-status-layout .stage-caption {
      padding: 16px 48px 24px;
    }

    .stage-caption-team {
      font-size: 40px;
      font-weight: 650;
    }

    .stage-caption-title {
      font-size: 80px;
      font-weight: 400;
      font-synthesis: none;
      letter-spacing: .02em;
    }

    .stage-caption-rule {
      font-size: 32px;
      font-weight: 500;
      line-height: 1.36;
    }

    .stage-appearance.has-deity-frame .stage-caption-team {
      font-size: 34px;
    }

    .stage-appearance.has-deity-frame .stage-caption-title {
      font-size: 68px;
    }

    .stage-appearance.has-deity-frame .stage-caption-rule {
      font-size: 27px;
      padding-bottom: 0;
    }

    .stage-appearance.has-deity-frame:not(.category-warning) .stage-caption {
      padding: 0 var(--deity-caption-inline, 180px);
    }

    .stage-appearance.has-generic-frame:not(.category-warning) .stage-caption {
      padding: 0 220px;
    }

    .stage-appearance.type-DIONYSUS.has-deity-frame:not(.category-warning) .stage-caption {
      --deity-caption-inline: 170px;
    }

    /* Let Dionysus' grape crown kiss and slightly cross the lower ornament,
       while the taller caption keeps that intentional overlap below the copy. */
    .stage-appearance.type-DIONYSUS .stage-art {
      background-size: auto 98%;
    }

    /* Keep Tyche's wheel just below the dialogue copy while preserving the
       approved bottom anchor and a light touch against the decorative frame. */
    .stage-appearance.type-TYCHE .stage-art {
      background-size: auto 94%;
    }

    .stage-art,
    .stage-appearance.has-stage-status .stage-art {
      top: var(--stage-art-safe-top, 640px) !important;
    }

    .photo-call-overlay {
      grid-template-columns: 2048px 1192px;
    }

    .photo-primary-title,
    .credits-game-title,
    .credit-group {
      font-weight: 400;
      font-synthesis: none;
    }

    .photo-primary-title { font-size: 88px; }
    .photo-primary-story { font-size: 32px; }
    .photo-team-name { font-size: 44px; }
    .credits-game-title { font-size: 52px; }
    .credits-heading { font-size: 40px; letter-spacing: .04em; }
    .credit-group { font-family: var(--font-ui); font-size: 40px; }
    .credit-row { font-size: 28px; }

    html[data-ui-preview="true"] .screen-design-canvas::after {
      content: "测试等比预览 · 非正式分辨率";
      position: absolute;
      right: 32px;
      bottom: 20px;
      z-index: 19999;
      padding: 8px 14px;
      border: 1px solid rgba(211,176,109,.48);
      background: rgba(0,0,0,.72);
      color: var(--world-bone-dim);
      font: 500 24px/1.2 var(--font-ui);
      pointer-events: none;
    }
    html[data-locale="en-GB"][data-ui-preview="true"] .screen-design-canvas::after {
      content: "Scaled test preview · non-production resolution";
    }
