
/* Direct component styles from the user-provided master; showcase globals excluded. */
:root {
      /* ==================== 1. 100% 零锯齿高清平滑字体系统 ==================== */
      --font-ui: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      --font-num: "SF Pro Rounded", "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", -apple-system, BlinkMacSystemFont, sans-serif;

      /* ==================== 2. 《小小远征营》原生明亮清新卡牌品质色板 ==================== */
      --q-green: #9BE086;     /* 1阶 翠绿品质 */
      --q-blue: #84CFF5;      /* 2阶 晴空蓝品质 */
      --q-purple: #C3A6F5;    /* 3阶 薰衣草紫品质 */
      --q-gold: #F7D26A;      /* 4阶 暖阳金品质 */
      --q-peach: #F5A88E;     /* 5阶 蜜桃红品质 */

      /* ==================== 3. 左图吸色：全屏界面深海蓝底板色系 (Full-Screen Blue Theme) ==================== */
      --fs-blue-main: #00528C;        /* 左图全屏主底色 rgb(0, 82, 140) */
      --fs-blue-inner-rim: #1971B0;   /* 左图内嵌亮蓝边线 */
      --fs-blue-outer-rim: #0A4370;   /* 左图外沿深蓝过渡 */
      --fs-blue-inset-well: #003E6B;  /* 左图内部深一阶圆角凹槽 rgb(0, 64, 108) */
      --fs-blue-deep-slot: #002F52;   /* 更深一阶的列表底槽 */

      /* ==================== 4. 右图吸色：通用弹出框黄色羊皮纸色系 (Universal Yellow Parchment Modal) ==================== */
      --pm-yellow-main: #ECD8A3;      /* 右图羊皮纸中心主色 rgb(236, 216, 163) */
      --pm-yellow-rim: #E6D8A8;       /* 右图外圈浅米黄边沿 rgb(230, 216, 168) */
      --pm-inner-line: #C0A976;       /* 右图内嵌细线框 rgb(192, 169, 118) */
      --pm-corner-fold: #E4C888;      /* 右图右下角斜折角暗部 rgb(228, 200, 136) */
      --pm-inset-well: #DFC484;       /* 弹窗内部深一阶压印分区槽（拉开层次） */
      --pm-inset-deep: #D2B36E;       /* 弹窗内部更深一阶的物资/槽位托盘 */
      --pm-text-main: #4A3518;        /* 羊皮纸深浓咖主文字 */
      --pm-text-sub: #7E6235;         /* 羊皮纸暖褐副文字（右图 #98804F 加深版） */

      /* ==================== 5. 标题蓝色缎带与轻薄立体按钮色板 ==================== */
      --rb-blue-top: #3888FF;
      --rb-blue-main: #1663E3;        /* 左图缎带主色 rgb(22, 99, 227) */
      --rb-blue-lip: #003770;         /* 左图缎带底边 rgb(0, 55, 112) */

      --btn-cyan-face: #18F2FF;
      --btn-cyan-lip: #00B4C4;
      --btn-cyan-text: #003842;

      --btn-yellow-face: #FFE619;
      --btn-yellow-lip: #CCA800;
      --btn-yellow-text: #3B2800;
      --btn-yellow-navy-text: #0B253C;

      --btn-green-bg: #30FD34;        /* 左图荧光绿按钮主色 rgb(48, 253, 52) */
      --btn-green-lip: #00BA0E;
      --btn-green-text: #003804;

      /* 不可点击态 A：资源不足 / 碎片不足 / 条件未达标（深铁灰暗沉态） */
      --btn-disabled-bg: #454E5E;
      --btn-disabled-lip: #2A303C;
      --btn-disabled-hi: rgba(255, 255, 255, 0.14);
      --btn-disabled-text: #A6B3C6;

      /* 不可点击态 B：已满级 / 已完成（深古铜暗金态） */
      --btn-max-bg: linear-gradient(180deg, #6B5027 0%, #4E3818 100%);
      --btn-max-lip: #30210B;
      --btn-max-hi: rgba(255, 228, 148, 0.28);
      --btn-max-text: #FFE082;

      --btn-cost-pill: #002835;
      --btn-cost-pill-disabled: #1D232D;

      --rate-active-bg: #0099E9;
      --rate-active-lip: #006FB0;
      --rate-inactive-bg: #004484;
      --rate-inactive-lip: #002B57;
      --rate-inactive-text: #8AD4FF;

      --tab-outer-shell: #0D1522;
      --tab-inner-navy: #003260;
      --tab-inner-lip: #002244;
      --tab-label-blue: #6BC2FF;
      --tab-label-active: #FFFFFF;

      --nav-navy-face: #004484;
      --nav-navy-lip: #002B57;
      --nav-yellow-face: #FFE047;
      --nav-yellow-lip: #C8A614;
    }
    .rh-ribbon {
      position: relative;
      width: 420px;
      height: 68px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 14px 0 4px;
      z-index: 2;
      flex: none;
    }

    .rh-ribbon-bg-svg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
      overflow: visible;
    }

    .rh-ribbon-bust-mask {
      position: absolute;
      left: 26px;
      bottom: 16px;
      width: 82px;
      height: 78px;
      overflow: hidden;
      z-index: 3;
      pointer-events: none;
      display: flex;
      align-items: flex-end;
      justify-content: center;
    }

    .rh-ribbon-bust-mask img {
      width: 78px;
      height: 78px;
      object-fit: contain;
      transform: translateY(10px);
      filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.28));
    }

    .rh-ribbon-title {
      position: relative;
      z-index: 4;
      font-family: var(--font-ui);
      font-size: 22px;
      font-weight: 900;
      color: #FFFFFF;
      letter-spacing: 1.2px;
      line-height: 1;
      transform: translateY(-7px);
      text-shadow: 0 2px 0 rgba(0, 22, 56, 0.65);
    }


    /* ============================================================================
       SECTION 02: 轻薄立体按钮母版体系（含资源不足深色不可点态 & 已满级深古铜态）
       ============================================================================ */
    .rh-btn-cost {
      position: relative;
      width: 236px;
      height: 66px;
      border: 2.5px solid #000000;
      border-radius: 16px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      padding: 6px 14px 9px;
      cursor: pointer;
      transition: transform 0.08s ease;
      background: var(--btn-face);
      box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.55), inset 0 -4px 0 var(--btn-lip);
    }

    .rh-btn-cost:active:not([data-unavailable="true"]) {
      transform: translateY(2px) scale(0.99);
      box-shadow: inset 0 -2px 0 var(--btn-lip);
    }

    .rh-btn-cost.cyan {
      --btn-face: var(--btn-cyan-face);
      --btn-lip: var(--btn-cyan-lip);
      --btn-label-col: var(--btn-cyan-text);
    }

    .rh-btn-cost.yellow {
      --btn-face: var(--btn-yellow-face);
      --btn-lip: var(--btn-yellow-lip);
      --btn-label-col: var(--btn-yellow-text);
    }

    .rh-btn-cost.green {
      --btn-face: var(--btn-green-bg);
      --btn-lip: var(--btn-green-lip);
      --btn-label-col: var(--btn-green-text);
    }

    .rh-btn-cost[data-unavailable="true"],
    .rh-btn-single[data-unavailable="true"] {
      background: var(--btn-disabled-bg);
      box-shadow: inset 0 1.5px 0 var(--btn-disabled-hi), inset 0 -3.5px 0 var(--btn-disabled-lip);
      cursor: not-allowed;
    }

    .rh-btn-cost[data-unavailable="true"] .rh-btn-action-label,
    .rh-btn-single[data-unavailable="true"] .rh-btn-action-label {
      color: var(--btn-disabled-text);
      text-shadow: 0 1px 0 rgba(0, 0, 0, 0.65);
    }

    .rh-btn-cost[data-unavailable="true"] .rh-cost-pill {
      background: var(--btn-cost-pill-disabled);
      border: 1px solid rgba(255, 107, 107, 0.4);
    }

    .rh-btn-cost[data-unavailable="true"] .rh-cost-num.is-short {
      color: #FF7373;
    }

    .rh-btn-single.is-maxed {
      background: var(--btn-max-bg);
      box-shadow: inset 0 1.5px 0 var(--btn-max-hi), inset 0 -3.5px 0 var(--btn-max-lip);
      cursor: default;
    }

    .rh-btn-single.is-maxed .rh-btn-action-label {
      color: var(--btn-max-text);
      text-shadow: 0 1.5px 0 #1F1404;
    }

    .rh-cost-pill {
      position: relative;
      width: 118px;
      height: 22px;
      background: var(--btn-cost-pill);
      border-radius: 999px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding-left: 10px;
    }

    .rh-cost-icon {
      position: absolute;
      left: -9px;
      top: 50%;
      transform: translateY(-50%);
      width: 26px;
      height: 26px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .rh-cost-icon svg {
      width: 100%;
      height: 100%;
    }

    .rh-cost-num {
      font-family: var(--font-num);
      font-size: 14.5px;
      font-weight: 900;
      font-variant-numeric: tabular-nums;
      color: #FFFFFF;
      line-height: 1;
    }

    .rh-btn-action-label {
      font-family: var(--font-ui);
      font-size: 19.5px;
      font-weight: 900;
      color: var(--btn-label-col);
      letter-spacing: 0.6px;
      line-height: 1.05;
      text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    }

    .rh-btn-single {
      position: relative;
      width: 172px;
      height: 50px;
      border: 2.5px solid #000000;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding-bottom: 3.5px;
      cursor: pointer;
      transition: transform 0.08s ease;
      background: var(--btn-face);
      box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.55), inset 0 -3.5px 0 var(--btn-lip);
    }

    .rh-btn-single:active:not([data-unavailable="true"]):not(.is-maxed) {
      transform: translateY(2px) scale(0.99);
      box-shadow: inset 0 -1.5px 0 var(--btn-lip);
    }

    .rh-btn-single.green {
      --btn-face: var(--btn-green-bg);
      --btn-lip: var(--btn-green-lip);
      --btn-label-col: var(--btn-green-text);
    }

    .rh-btn-single.yellow {
      --btn-face: var(--btn-yellow-face);
      --btn-lip: var(--btn-yellow-lip);
      --btn-label-col: var(--btn-yellow-navy-text);
    }

    .rh-btn-single.cyan {
      --btn-face: var(--btn-cyan-face);
      --btn-lip: var(--btn-cyan-lip);
      --btn-label-col: var(--btn-cyan-text);
    }

    .rh-btn-single .rh-btn-action-label {
      font-size: 19px;
      font-weight: 900;
    }

    .rh-rate-group {
      display: inline-flex;
      width: 168px;
      height: 36px;
      border: 2.5px solid #000000;
      border-radius: 11px;
      overflow: hidden;
      background: #000000;
      gap: 2px;
    }

    .rh-rate-seg {
      flex: 1;
      background: var(--rate-inactive-bg);
      display: flex;
      align-items: center;
      justify-content: center;
      padding-bottom: 2px;
      cursor: pointer;
      box-shadow: inset 0 -3px 0 var(--rate-inactive-lip);
    }

    .rh-rate-seg.active {
      background: var(--rate-active-bg);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -3px 0 var(--rate-active-lip);
    }

    .rh-rate-seg .num {
      font-family: var(--font-num);
      font-size: 17px;
      font-weight: 900;
      color: var(--rate-inactive-text);
      line-height: 1;
      text-shadow: 0 1.5px 0 rgba(0, 12, 28, 0.85);
    }

    .rh-rate-seg .unit {
      font-family: var(--font-num);
      font-size: 13.5px;
      font-weight: 900;
      color: var(--rate-inactive-text);
      margin-left: 1.5px;
      line-height: 1;
      text-shadow: 0 1.5px 0 rgba(0, 12, 28, 0.85);
    }

    .rh-rate-seg.active .num,
    .rh-rate-seg.active .unit {
      color: #FFFFFF;
      text-shadow: 0 1.5px 0 #003A6B;
    }

    .rh-subpanel-bar {
      display: inline-flex;
      background: var(--tab-outer-shell);
      border: 2.5px solid #000000;
      border-radius: 12px;
      padding: 4px;
      gap: 5px;
    }

    .rh-subtab-btn {
      position: relative;
      min-width: 108px;
      height: 40px;
      padding: 0 16px 2px;
      background: var(--tab-inner-navy);
      border: 1.5px solid #001226;
      border-radius: 8px;
      box-shadow: inset 0 -2.5px 0 var(--tab-inner-lip);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }

    .rh-subtab-btn.active {
      background: #00529E;
      border-color: #2986FF;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -2.5px 0 #002E5C;
    }

    .rh-subtab-btn span {
      font-family: var(--font-ui);
      font-size: 15.5px;
      font-weight: 900;
      color: var(--tab-label-blue);
    }

    .rh-subtab-btn.active span {
      color: var(--tab-label-active);
      text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
    }

    .rh-red-dot {
      position: absolute;
      top: -4px;
      right: -4px;
      width: 13px;
      height: 13px;
      border-radius: 50%;
      background: #FF2600;
      border: 2px solid #000000;
    }

    .rh-bottom-nav-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      max-width: 368px;
      gap: 12px;
    }

    .rh-btn-back {
      width: 60px;
      height: 64px;
      background: var(--nav-navy-face);
      border: 2.5px solid #000000;
      border-radius: 16px;
      box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.25), inset 0 -3.5px 0 var(--nav-navy-lip);
      display: flex;
      align-items: center;
      justify-content: center;
      padding-bottom: 3px;
      cursor: pointer;
      transition: transform 0.08s;
    }

    .rh-btn-back:active {
      transform: translateY(2px);
    }

    .rh-btn-sq-tab {
      position: relative;
      width: 68px;
      height: 64px;
      border: 2.5px solid #000000;
      border-radius: 16px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      padding-top: 4px;
      cursor: pointer;
      background: var(--nav-navy-face);
      box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.25), inset 0 -3.5px 0 var(--nav-navy-lip);
    }

    .rh-btn-sq-tab.active {
      background: var(--nav-yellow-face);
      box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.65), inset 0 -3.5px 0 var(--nav-yellow-lip);
    }

    .rh-btn-sq-tab img,
    .rh-btn-sq-tab svg {
      width: 36px;
      height: 36px;
      object-fit: contain;
    }

    .rh-btn-sq-tab .sq-bottom-label {
      position: absolute;
      bottom: -7px;
      background: #071930;
      border: 1.5px solid #000000;
      border-radius: 99px;
      padding: 1px 9px 1.5px;
      font-family: var(--font-ui);
      font-size: 13.5px;
      font-weight: 900;
      color: #FFFFFF;
      line-height: 1.15;
      white-space: nowrap;
      box-shadow: 0 1.5px 0 rgba(0, 0, 0, 0.45);
    }

    .rh-btn-sq-tab.active .sq-bottom-label {
      background: #3B2200;
      color: #FFE854;
    }


    /* ============================================================================
       SECTION 03: 零锯齿高清平滑文字规范表
       ============================================================================ */
    .typo-compare-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
    }

    .typo-compare-table th,
    .typo-compare-table td {
      border: 1px solid #223452;
      padding: 13px 16px;
      text-align: left;
      vertical-align: middle;
    }

    .typo-compare-table th {
      background: #162338;
      color: #8FB2DF;
      font-weight: 800;
    }

    .typo-compare-table td {
      background: #0C1320;
    }


    /* ============================================================================
       SECTION 04: 正式定稿卡牌母版（方向B + 未解锁整体压暗态 + 升级按钮三态）
       ============================================================================ */
    .camp-unit-card {
      width: 136px;
      border: 2.5px solid #000000;
      border-radius: 16px;
      overflow: hidden;
      background: #FFFDF6;
      box-shadow: inset 0 -3.5px 0 #DFC9A0, 0 4px 0 rgba(0, 0, 0, 0.32);
      display: flex;
      flex-direction: column;
      transition: transform 0.1s ease;
    }

    .camp-unit-portrait {
      position: relative;
      width: 100%;
      aspect-ratio: 1 / 1;
      background:
        radial-gradient(ellipse at 50% 44%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.25) 42%, rgba(255, 255, 255, 0) 76%),
        var(--quality, var(--q-green));
      border-bottom: 2.5px solid #000000;
      box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .camp-unit-portrait img {
      width: 84%;
      height: 84%;
      object-fit: contain;
      filter: drop-shadow(0 3px 3px rgba(43, 24, 10, 0.25));
    }

    .camp-deployed-flag {
      position: absolute;
      top: 6px;
      right: 6px;
      width: 24px;
      height: 24px;
      border-radius: 7px;
      background: #FF7F00;
      border: 2px solid #000000;
      box-shadow: inset 0 1px 0 #FFB84D;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 3;
    }

    .camp-deployed-flag svg {
      width: 14px;
      height: 14px;
    }

    /* 未解锁状态 (is-locked)：整体显著压暗 */
    .camp-unit-card.is-locked {
      background: #262E3B;
      box-shadow: inset 0 -3.5px 0 #171C24, 0 4px 0 rgba(0, 0, 0, 0.45);
    }

    .camp-unit-card.is-locked .camp-unit-portrait {
      background: radial-gradient(ellipse at 50% 44%, #4A5568 0%, #2D3542 58%, #1E242E 100%);
      box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.55);
    }

    .camp-unit-card.is-locked .camp-unit-portrait img {
      filter: grayscale(1) brightness(0.42) contrast(1.15) opacity(0.8);
    }

    .camp-unit-card.is-locked .camp-unit-body {
      background: linear-gradient(180deg, #323B4A 0%, #232A36 100%);
    }

    .camp-unit-card.is-locked .camp-unit-name {
      color: #B8C4D4;
    }

    .camp-unit-card.is-locked .camp-unit-unlock-hint {
      color: #8494A8;
      background: rgba(12, 16, 24, 0.45);
      border-radius: 6px;
      padding: 4px 6px;
      margin-top: 2px;
    }

    .camp-lock-badge {
      position: absolute;
      right: 7px;
      bottom: 7px;
      width: 28px;
      height: 28px;
      border-radius: 8px;
      background: #141A24;
      border: 2px solid #000000;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
      color: #FFD954;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 3;
    }

    .camp-unit-body {
      padding: 7px 8px 8px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      background: linear-gradient(180deg, #FFFDF7 0%, #F5E8CE 100%);
      flex: 1;
    }

    .camp-unit-name {
      font-family: var(--font-ui);
      font-size: 15px;
      font-weight: 900;
      color: #2B180A;
      text-align: center;
      line-height: 1.2;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .camp-unit-unlock-hint {
      font-size: 12px;
      font-weight: 800;
      color: #7A5A3A;
      text-align: center;
      padding: 5px 0 3px;
    }

    .camp-shard-row {
      position: relative;
      width: 100%;
      height: 24px;
      display: flex;
      align-items: center;
      padding-left: 4px;
    }

    .camp-lv-shield {
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      min-width: 34px;
      height: 26px;
      padding: 0 5px;
      border-radius: 7px;
      border: 2px solid #000000;
      background: linear-gradient(180deg, #FFE854 0%, #F59E0B 100%);
      box-shadow: inset 0 1px 0 #FFFBEB;
      z-index: 4;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-num);
      font-size: 12px;
      font-weight: 900;
      color: #3B1A00;
      line-height: 1;
    }

    .camp-shard-meter {
      width: 100%;
      height: 20px;
      margin-left: 18px;
      border: 2px solid #000000;
      border-radius: 7px;
      background: #233852;
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .camp-shard-fill {
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      background: linear-gradient(180deg, #47F5FF 0%, #00CBE8 100%);
    }

    .camp-shard-fill.can-upgrade {
      background: linear-gradient(180deg, #52FF52 0%, #00D60E 100%);
    }

    .camp-shard-fill.max-gold {
      background: linear-gradient(180deg, #FFE066 0%, #E59A0C 100%);
    }

    .camp-shard-text {
      position: relative;
      z-index: 2;
      font-family: var(--font-num);
      font-size: 12px;
      font-weight: 900;
      font-variant-numeric: tabular-nums;
      color: #FFFFFF;
      padding-left: 8px;
      line-height: 1;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 3px rgba(0, 0, 0, 0.75);
    }

    .camp-card-upgrade-btn {
      position: relative;
      width: 100%;
      height: 34px;
      border: 2px solid #000000;
      border-radius: 9px;
      background: var(--btn-green-bg);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -3px 0 var(--btn-green-lip);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 7px 2px;
      cursor: pointer;
    }

    .camp-card-upgrade-btn .up-txt {
      font-family: var(--font-ui);
      font-size: 13.5px;
      font-weight: 900;
      color: #003804;
    }

    .camp-card-upgrade-btn .up-price {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      background: #002835;
      padding: 2px 7px 2px 4px;
      border-radius: 99px;
      font-family: var(--font-num);
      font-size: 12px;
      font-weight: 900;
      color: #FFFFFF;
    }

    .camp-card-upgrade-btn .up-price svg {
      width: 15px;
      height: 15px;
    }

    .camp-card-upgrade-btn.is-disabled {
      background: var(--btn-disabled-bg);
      box-shadow: inset 0 1px 0 var(--btn-disabled-hi), inset 0 -3px 0 var(--btn-disabled-lip);
      cursor: not-allowed;
    }

    .camp-card-upgrade-btn.is-disabled .up-txt {
      color: #B4C0D0;
    }

    .camp-card-upgrade-btn.is-disabled .up-price {
      background: var(--btn-cost-pill-disabled);
      color: #CBD5E1;
    }

    .camp-card-upgrade-btn.is-disabled .up-price.is-short {
      color: #FF7373;
      border: 1px solid rgba(255, 115, 115, 0.45);
    }

    .camp-card-upgrade-btn.is-maxed {
      background: var(--btn-max-bg);
      box-shadow: inset 0 1px 0 var(--btn-max-hi), inset 0 -3px 0 var(--btn-max-lip);
      justify-content: center;
      cursor: default;
    }

    .camp-card-upgrade-btn.is-maxed .up-txt {
      color: var(--btn-max-text);
      text-shadow: 0 1px 0 #1F1404;
    }


    /* ============================================================================
       SECTION 05: 通用弹出框唯一母版（1:1 复刻右图 #ECD8A3 黄色羊皮纸底板 + 蓝色缎带标题 + 右上角红关闭钮）
       ============================================================================ */

    /* 通用黄色羊皮纸弹出框外壳（复刻右图：3px 黑边 + #E6D8A8 外衬边 + #C0A976 内线框 + #ECD8A3 主底 + 右下角斜折痕） */
    .rh-universal-yellow-modal {
      position: relative;
      width: 382px;
      background: var(--pm-yellow-rim);
      border: 3px solid #000000;
      border-radius: 12px 12px 16px 16px;
      padding: 0 6px 6px;
      margin-top: 12px;
      box-shadow:
        inset 0 -3px 0 #CBB57E,
        0 14px 32px rgba(0, 0, 0, 0.65);
      z-index: 110;
    }

    /* 羊皮纸内层主画布（复刻右图 #C0A976 细内框线 + #ECD8A3 暖黄主底 + 顶部缎带投射暗影 + 右下角 135deg 斜折角暗影 #E4C888） */
    .rh-universal-yellow-canvas {
      position: relative;
      background:
        linear-gradient(180deg, rgba(110, 78, 26, 0.22) 0px, rgba(110, 78, 26, 0.08) 7px, transparent 8px),
        linear-gradient(135deg, transparent 0%, transparent 86%, var(--pm-corner-fold) 86%, var(--pm-corner-fold) 100%),
        var(--pm-yellow-main);
      border: 2px solid var(--pm-inner-line);
      border-top: none;
      border-radius: 0 0 10px 10px;
      padding: 20px 12px 14px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      color: var(--pm-text-main);
    }

    /* 复刻右图边缘复古羊皮纸小缺口装饰（左、右、底边微缺口） */
    .rh-universal-yellow-modal::before {
      content: "";
      position: absolute;
      left: -3px;
      top: 58px;
      width: 6px;
      height: 6px;
      background: #000000;
      clip-path: polygon(0 0, 100% 50%, 0 100%);
      z-index: 125;
      pointer-events: none;
    }

    .rh-universal-yellow-modal::after {
      content: "";
      position: absolute;
      right: 46px;
      bottom: -3px;
      width: 7px;
      height: 6px;
      background: #000000;
      clip-path: polygon(50% 0, 100% 100%, 0 100%);
      z-index: 125;
      pointer-events: none;
    }

    /* 右上角红色关闭按钮 (BtnClose) —— 锚定在全宽缎带右上角 */
    .rh-modal-close-btn {
      position: absolute;
      top: -10px;
      right: -12px;
      width: 38px;
      height: 38px;
      border-radius: 11px;
      border: 2.5px solid #000000;
      background: #FF3B30;
      box-shadow: inset 0 2px 0 #FF7A70, inset 0 -3.5px 0 #B81D13, 0 2px 4px rgba(0, 0, 0, 0.45);
      color: #FFFFFF;
      font-family: var(--font-num);
      font-size: 20px;
      font-weight: 900;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 160;
      line-height: 1;
      text-shadow: 0 1.5px 0 #000000;
    }

    /* 弹窗顶部 100% 全宽跨顶蓝色缎带标题容器（1:1 复刻左图：主缎带面比 382px 弹窗宽 14px，完整覆盖整个弹窗最上方！） */
    .rh-modal-header-ribbon {
      display: flex;
      justify-content: center;
      width: 420px;
      margin: -14px -22px -15px -22px;
      position: relative;
      z-index: 145;
    }

    /* 黄色羊皮纸弹窗内部：深一阶的暖沙压印槽 (#DFC484，用于承载四维属性、收益行、出战槽、物资槽，拉开清晰深浅层次！) */
    .pm-inset-box {
      background: var(--pm-inset-well);
      border: 1.5px solid #B59960;
      border-radius: 10px;
      box-shadow: inset 0 2px 4px rgba(102, 72, 24, 0.14), 0 1px 0 rgba(255, 255, 255, 0.45);
      padding: 9px 10px;
    }

    /* 黄色羊皮纸弹窗内部：更深半阶的托盘 (#D2B36E，用于衬托最上层的亮白卡片/道具格) */
    .pm-deep-tray {
      background: var(--pm-inset-deep);
      border: 1.5px solid #9E7E43;
      border-radius: 10px;
      box-shadow: inset 0 2px 4px rgba(84, 54, 14, 0.2), 0 1px 0 rgba(255, 255, 255, 0.4);
      padding: 8px 10px;
    }

    /* 黄色羊皮纸弹窗内部：单条亮面信息卡 (#F7ECCE) */
    .pm-light-row {
      background: #F8EED3;
      border: 1.5px solid #BBA068;
      border-radius: 9px;
      box-shadow: inset 0 1px 0 #FFFFFF;
      padding: 7px 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }


    /* ============================================================================
       SECTION 06: 全屏界面深海蓝底色母版（1:1 复刻左图 #00528C 全屏底 + #003E6B 深凹槽）
       ============================================================================ */
    .rh-fullscreen-blue-shell {
      width: 416px;
      background: var(--fs-blue-main);
      border: 3px solid #000000;
      border-radius: 22px;
      padding: 6px;
      box-shadow:
        inset 0 2px 0 #2684C9,
        inset 0 -4px 0 #00345C,
        0 14px 32px rgba(0, 0, 0, 0.65);
    }

    .rh-fullscreen-blue-canvas {
      background: var(--fs-blue-main);
      border: 2px solid var(--fs-blue-inner-rim);
      border-radius: 16px;
      padding: 14px 12px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      color: #FFFFFF;
    }

    /* 复刻左图中央放红宝石的深海蓝圆角内凹槽 (#003E6B) */
    .rh-fullscreen-blue-well {
      background: var(--fs-blue-inset-well);
      border: 1.5px solid #002C4D;
      border-bottom-color: #1668A3;
      border-radius: 13px;
      box-shadow: inset 0 2px 5px rgba(0, 15, 32, 0.45);
      padding: 10px;
    }


    /* ============================================================================
       SECTION 07: 顶栏 5 大资源母版 + 建筑卡 + 战策卡 + 底部 4 主导航
       ============================================================================ */
    .rh-hud-resource-list {
      display: flex;
      flex-direction: column;
      gap: 11px;
    }

    .rh-hud-res-bar {
      position: relative;
      width: 218px;
      height: 32px;
      display: flex;
      align-items: center;
      margin-left: 12px;
    }

    .rh-hud-res-track {
      position: relative;
      width: 100%;
      height: 100%;
      background: #081828;
      border: 2px solid #000000;
      border-radius: 7px;
      transform: skewX(-14deg);
      overflow: hidden;
    }

    .rh-hud-res-fill {
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      background: linear-gradient(180deg, #4DFF79 0%, #02FE3F 55%, #00B82B 100%);
      border-right: 2px solid #000000;
    }

    .rh-hud-res-fill.is-full {
      background: linear-gradient(180deg, #FFE854 0%, #FF9900 60%, #CC6600 100%);
    }

    .rh-hud-res-fill.is-gem {
      background: linear-gradient(180deg, #D49EFF 0%, #9B51E0 60%, #6A1B9A 100%);
    }

    .rh-hud-res-fill.is-bread {
      background: linear-gradient(180deg, #FFD166 0%, #F59E0B 60%, #B45309 100%);
    }

    .rh-hud-res-icon {
      position: absolute;
      left: -13px;
      top: 50%;
      transform: translateY(-50%);
      width: 34px;
      height: 34px;
      z-index: 3;
      filter: drop-shadow(0 1.5px 1px rgba(0, 0, 0, 0.4));
    }

    .rh-hud-res-val {
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      z-index: 3;
      font-family: var(--font-num);
      font-size: 13.5px;
      font-weight: 900;
      font-variant-numeric: tabular-nums;
      color: #FFFFFF;
      background: rgba(4, 14, 28, 0.78);
      padding: 1px 7px;
      border-radius: 6px;
      line-height: 1.2;
      display: inline-flex;
      align-items: baseline;
      gap: 3px;
    }

    .rh-hud-res-val small {
      font-size: 10.5px;
      color: #8FB2DF;
      font-weight: 800;
    }

    .rh-res-delta {
      position: absolute;
      right: -58px;
      top: 50%;
      transform: translateY(-50%);
      font-family: var(--font-num);
      font-size: 12.5px;
      font-weight: 900;
      padding: 2px 7px;
      border-radius: 99px;
      border: 1.5px solid #000;
    }

    .rh-res-delta.gain {
      background: #103818;
      color: #2BFF4F;
    }

    .rh-res-delta.spend {
      background: #3B1219;
      color: #FF7373;
    }

    .orig-cost-chip {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: #FFFDF5;
      border: 2px solid #000000;
      box-shadow: inset 0 -2px 0 #DFC696;
      border-radius: 99px;
      padding: 3px 11px 3px 6px;
      font-family: var(--font-num);
      font-size: 13.5px;
      font-weight: 900;
      color: #2B180A;
    }

    .orig-cost-chip svg {
      width: 19px;
      height: 19px;
    }

    .orig-bright-loot-slot {
      width: 78px;
      height: 66px;
      border-radius: 11px;
      border: 2px solid #000000;
      background: radial-gradient(circle at 50% 40%, #FFFFFF 0%, #FFFDF5 58%, #F7E6B8 100%);
      box-shadow: inset 0 1.5px 0 #FFFFFF, inset 0 -2.5px 0 #DEC282, 0 2px 0 rgba(0, 0, 0, 0.18);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
      padding: 4px;
    }

    .orig-bright-loot-slot svg {
      width: 30px;
      height: 30px;
      filter: drop-shadow(0 1.5px 1px rgba(0, 0, 0, 0.2));
    }

    .orig-bright-loot-slot .loot-val {
      font-family: var(--font-num);
      font-size: 13.5px;
      font-weight: 900;
      font-variant-numeric: tabular-nums;
      color: #2B1608;
      line-height: 1;
    }

    .orig-report-card-chip {
      position: relative;
      width: 58px;
      height: 58px;
      border-radius: 12px;
      border: 2px solid #000000;
      background:
        radial-gradient(ellipse at 50% 44%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.25) 45%, transparent 75%),
        var(--quality, var(--q-green));
      box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.65), 0 2px 0 rgba(0, 0, 0, 0.18);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .orig-report-card-chip img {
      width: 82%;
      height: 82%;
      object-fit: contain;
    }

    .orig-report-card-chip b {
      position: absolute;
      right: -4px;
      bottom: -4px;
      background: #FF7F00;
      color: #FFFFFF;
      border: 1.5px solid #000000;
      border-radius: 99px;
      padding: 1px 6px;
      font-family: var(--font-num);
      font-size: 11.5px;
      font-weight: 900;
      line-height: 1.1;
    }

    .camp-building-card {
      width: 176px;
      background: linear-gradient(180deg, #FFFDF7 0%, #F4E4C1 100%);
      border: 2.5px solid #000000;
      border-radius: 16px;
      box-shadow: inset 0 -3.5px 0 #D8BE8C, 0 4px 0 rgba(0, 0, 0, 0.3);
      padding: 9px;
      display: flex;
      flex-direction: column;
      gap: 7px;
      color: #2B180A;
    }

    .camp-building-head {
      display: flex;
      align-items: center;
      gap: 8px;
      position: relative;
    }

    .camp-building-icon {
      width: 48px;
      height: 48px;
      border-radius: 11px;
      border: 2px solid #000000;
      background: radial-gradient(circle at 50% 45%, #FFFFFF 0%, #F7D26A 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 4px;
      flex: none;
    }

    .camp-building-icon img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .camp-building-head h3 {
      font-size: 14.5px;
      font-weight: 900;
      color: #2B180A;
      line-height: 1.15;
    }

    .camp-building-head small {
      font-family: var(--font-num);
      font-size: 12px;
      font-weight: 900;
      color: #8A5A24;
    }

    .camp-building-benefit {
      font-size: 12px;
      font-weight: 800;
      color: #5C3A16;
      background: #EAD6AA;
      border: 1.5px solid #C8A668;
      border-radius: 8px;
      padding: 4px 7px;
      text-align: center;
    }

    .camp-offer-card {
      width: 112px;
      border: 2.5px solid #000000;
      border-radius: 15px;
      background: #FFFDF7;
      box-shadow: inset 0 -3.5px 0 #D8C093, 0 4px 0 rgba(0, 0, 0, 0.3);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .camp-offer-top {
      width: 100%;
      padding: 8px 6px 6px;
      background:
        radial-gradient(ellipse at 50% 42%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.2) 50%, transparent 80%),
        var(--quality, var(--q-green));
      border-bottom: 2px solid #000000;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3px;
    }

    .camp-offer-top img {
      width: 48px;
      height: 48px;
      object-fit: contain;
    }

    .camp-offer-sign {
      background: #2B180A;
      color: #FFE402;
      border: 1.5px solid #000000;
      border-radius: 99px;
      padding: 1px 8px;
      font-family: var(--font-num);
      font-size: 12px;
      font-weight: 900;
    }

    .camp-offer-body {
      padding: 7px 6px 8px;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .camp-offer-body strong {
      font-size: 13px;
      font-weight: 900;
      color: #2B180A;
    }

    .camp-offer-body small {
      font-size: 11.5px;
      font-weight: 800;
      color: #7A5224;
    }

    .camp-main-nav {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
      width: 100%;
      max-width: 392px;
      background: #091526;
      border: 3px solid #000000;
      border-radius: 18px;
      padding: 6px;
      box-shadow: inset 0 1.5px 0 #1E3F6E;
    }

    .camp-nav-tab {
      position: relative;
      height: 58px;
      border: 2px solid #000000;
      border-radius: 13px;
      background: #003A70;
      box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.2), inset 0 -3px 0 #002244;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2px;
      cursor: pointer;
    }

    .camp-nav-tab.selected {
      background: linear-gradient(180deg, #FFE854 0%, #F5B800 100%);
      box-shadow: inset 0 1.5px 0 #FFFFFF, inset 0 -3px 0 #B87D00;
    }

    .camp-nav-tab img,
    .camp-nav-tab svg {
      width: 28px;
      height: 28px;
      object-fit: contain;
    }

    .camp-nav-tab strong {
      font-size: 12.5px;
      font-weight: 900;
      color: #B8DCFF;
      line-height: 1;
    }

    .camp-nav-tab.selected strong {
      color: #2B180A;
    }
  
/* R9 adapters for the supplied mother component library. Original kit tokens,
 * SVG and component CSS are imported first; these rules bind live game DOM. */
:root{--ui-font:var(--font-ui);--paper-ink:var(--pm-text-main);--paper-muted:var(--pm-text-sub);--paper-face:var(--pm-yellow-main);--paper-well:var(--pm-inset-well);--paper-line:var(--pm-inner-line)}
.mother-game,.mother-game button,#dialog.mother-modal,#dialog.mother-modal button{font-family:var(--font-ui)!important;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.mother-game :is(b,strong,.resource-amounts,.power-badge,.remaining),#dialog.mother-modal :is(b,strong,.unit-detail-level,.loot-value){font-family:var(--font-num)!important;font-variant-numeric:tabular-nums}
#appRoot.mother-game{background:var(--fs-blue-main)!important;color:#fff}
.mother-game #metaBar,.mother-game #rhMenuBackdrop{display:none!important}
.mother-game #view.mother-view{margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:var(--fs-blue-main)!important;min-height:0;overflow-x:hidden;overflow-y:auto;padding:12px 12px 22px}
.mother-game #view.mother-view::before,.mother-game #view.mother-view::after{content:none!important;display:none!important}
/* The exact continuous SVG carries the width and fold proportions. */
.mother-game .mother-page-header{position:relative;display:flex;align-items:center;justify-content:center;flex:none;margin:2px 0 4px;padding:0;height:auto;min-height:0;background:none!important;border:0;box-shadow:none;overflow:visible;z-index:12}
.mother-game .mother-page-header[hidden]{display:none!important}
.mother-game .mother-page-header::before,.mother-game .mother-page-header::after{content:none!important;display:none!important}
.m9-ribbon{width:100%;height:auto;aspect-ratio:420/68;max-width:100%;margin:0;isolation:isolate}
.m9-ribbon>.rh-ribbon-bg-svg{inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
.m9-ribbon .rh-ribbon-title{display:block;max-width:calc(100% - 100px);font-family:var(--font-ui)!important;font-size:clamp(18px,5.3cqw,22px);line-height:1.05;letter-spacing:1px;font-weight:900;color:#fff!important;text-align:center;transform:translateY(-6px);text-shadow:0 2px #001638a6;overflow-wrap:normal;text-wrap:balance;z-index:2}
.m9-ribbon .rh-ribbon-bust-mask{left:6%;bottom:23%;width:20%;height:115%;z-index:1}
.m9-ribbon .rh-ribbon-bust-mask img{width:100%;height:100%;max-width:none;transform:translateY(14%);object-fit:contain;filter:drop-shadow(0 2px 0 #0004)}
.mother-icon{display:inline-block;width:26px;height:26px;object-fit:contain;vertical-align:middle;flex:none}
/* Thin original button bodies; old decorative pseudo layers are opted out. */
.mother-btn{--mother-face:var(--btn-cyan-face);--mother-lip:var(--btn-cyan-lip);--mother-ink:var(--btn-cyan-text);position:relative;display:flex;flex-flow:row nowrap;align-items:center;justify-content:center;gap:6px;min-width:0;width:auto;height:50px;min-height:50px;padding:5px 13px 8px;border:2.5px solid #000!important;border-radius:14px;background:var(--mother-face)!important;box-shadow:inset 0 1.5px #ffffff8c,inset 0 -3.5px var(--mother-lip)!important;color:var(--mother-ink)!important;font-size:19px;font-weight:900;line-height:1.1;text-align:center;text-shadow:0 1px #ffffff80;cursor:pointer;overflow:visible;transform:none}
.mother-btn::before,.mother-btn::after{display:none!important;content:none!important}
.mother-btn :is(span,strong,b,small){color:inherit!important;font-size:inherit;font-weight:inherit;text-shadow:inherit}
.mother-btn .mother-icon,.mother-btn>.rh-icon{width:25px;height:25px;flex:none}
.mother-btn.m9-green{--mother-face:var(--btn-green-bg);--mother-lip:var(--btn-green-lip);--mother-ink:var(--btn-green-text)}
.mother-btn.m9-yellow{--mother-face:var(--btn-yellow-face);--mother-lip:var(--btn-yellow-lip);--mother-ink:var(--btn-yellow-navy-text)}
.mother-btn.m9-cyan{--mother-face:var(--btn-cyan-face);--mother-lip:var(--btn-cyan-lip);--mother-ink:var(--btn-cyan-text)}
.mother-btn:active:not(:disabled):not([data-unavailable=true]){transform:translateY(2px) scale(.99);box-shadow:inset 0 -1.5px var(--mother-lip)!important}
.mother-btn:is(:disabled,[data-unavailable=true]){background:var(--btn-disabled-bg)!important;box-shadow:inset 0 1.5px var(--btn-disabled-hi),inset 0 -3.5px var(--btn-disabled-lip)!important;color:var(--btn-disabled-text)!important;text-shadow:0 1px #000a;cursor:not-allowed}
.mother-btn.is-maxed{background:var(--btn-max-bg)!important;box-shadow:inset 0 1.5px var(--btn-max-hi),inset 0 -3.5px var(--btn-max-lip)!important;color:var(--btn-max-text)!important;text-shadow:0 1.5px #1f1404;cursor:default}
.mother-btn.m9-cost-button{height:66px;min-height:66px;flex-direction:column;gap:4px;padding:6px 14px 9px}
.mother-btn .rh-cost-pill{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:3px;width:118px;height:22px;min-height:22px;margin:0;padding:1px 7px 1px 17px;background:var(--btn-cost-pill);border:0;border-radius:999px;color:#fff!important;flex:none;font-family:var(--font-num)!important;font-size:14.5px;line-height:1;white-space:nowrap;text-shadow:none}
.mother-btn .rh-cost-pill :is(span,strong,b){color:#fff!important;font-size:14.5px!important;line-height:1;text-shadow:none}
.mother-btn .rh-cost-pill :is(img,svg){position:absolute;left:-9px;top:50%;transform:translateY(-50%);width:26px;height:26px;object-fit:contain;margin:0;flex:none}
.mother-btn .rh-btn-action-label{font-size:19.5px!important;font-weight:900;letter-spacing:.3px;line-height:1.05;white-space:normal}
.mother-btn.m9-language{--mother-ink:#8ad4ff;height:40px;min-height:40px;flex:1;padding:4px 6px 7px;background:var(--nav-navy-face)!important;box-shadow:inset 0 1px #ffffff40,inset 0 -3px var(--nav-navy-lip)!important;color:#8ad4ff!important;font-size:14px;border-radius:10px}
.mother-btn.m9-language[aria-pressed=true]{--mother-ink:var(--btn-yellow-text);background:var(--nav-yellow-face)!important;color:var(--btn-yellow-text)!important;box-shadow:inset 0 1px #fffc,inset 0 -3px var(--nav-yellow-lip)!important}
.mother-btn.m9-back{width:42px;height:42px;min-height:42px;flex:none;padding:7px;background:var(--nav-navy-face)!important;box-shadow:inset 0 1.5px #ffffff40,inset 0 -3.5px var(--nav-navy-lip)!important;border-radius:12px;color:#18bcf5!important}
.mother-game .castle-stage-controls>.mother-btn{height:40px;min-height:40px;width:104px;padding:4px 8px 7px;font-size:14px;border-radius:11px}
.mother-game .adventure-scene>.speed-button.mother-btn{position:absolute;inset:auto 13px 13px auto;width:52px;height:42px;min-height:42px;padding:3px 7px 6px;border-radius:11px;font-size:24px;z-index:3;pointer-events:auto}
.mother-game .adventure-overlay>.back-button.mother-btn{position:relative;inset:auto;width:42px;height:42px;min-height:42px;flex:none;pointer-events:auto}
.mother-game .shop-offer .shop-price.mother-btn{position:relative;inset:auto;display:flex;align-items:center;justify-content:center;gap:4px;width:100%;height:42px!important;min-height:42px!important;margin:0;padding:5px 8px 8px!important;border:2.5px solid #000!important;border-radius:12px!important;background:var(--btn-green-bg)!important;box-shadow:inset 0 1.5px #ffffff8c,inset 0 -3.5px var(--btn-green-lip)!important;color:var(--btn-green-text)!important;font-family:var(--font-num)!important;font-size:17px!important;line-height:1;text-shadow:0 1px #ffffff80!important;transform:none!important}
.mother-game .shop-offer .shop-price.mother-btn b{font-size:17px!important;color:var(--btn-green-text)!important;line-height:1;text-shadow:none!important}
.mother-game .shop-offer .shop-price.mother-btn :is(svg,img){position:static;width:24px!important;height:24px!important;transform:none!important;object-fit:contain}
.mother-game .shop-offer .shop-price.mother-btn::before,.mother-game .shop-offer .shop-price.mother-btn::after{content:none!important;display:none!important}
.mother-game .shop-offer--starter .shop-price.mother-btn{max-width:140px}
/* Main menu is the library's four-square system, including selected skin. */
.mother-game #mainNav.camp-main-nav{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:100%;max-width:none;flex:none;height:76px;min-height:76px;margin:0;padding:6px 8px 8px;background:#091526;border:3px solid #000;border-radius:18px 18px 0 0;box-shadow:inset 0 1.5px #1e3f6e;z-index:30}
.mother-game #mainNav>.camp-nav-tab{display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;gap:2px;position:relative;width:auto;height:58px;min-height:58px;margin:0;padding:3px 4px 6px;border:2px solid #000;border-radius:13px;background:#003a70!important;box-shadow:inset 0 1.5px #ffffff33,inset 0 -3px #002244!important;color:#b8dcff}
.mother-game #mainNav>.camp-nav-tab.selected{background:linear-gradient(#ffe854,#f5b800)!important;box-shadow:inset 0 1.5px #fff,inset 0 -3px #b87d00!important}
.mother-game #mainNav>.camp-nav-tab::before,.mother-game #mainNav>.camp-nav-tab::after{content:none!important;display:none!important}
.mother-game #mainNav>.camp-nav-tab :is(img,svg){position:static;width:32px;height:32px;max-width:none;margin:0;transform:none;object-fit:contain;filter:none;overflow:visible}
.mother-game #mainNav>.camp-nav-tab>strong{position:static;inset:auto;display:block;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:#b8dcff!important;font-family:var(--font-ui)!important;font-size:12.5px;font-weight:900;line-height:1;text-shadow:none;white-space:nowrap}
.mother-game #mainNav>.camp-nav-tab.selected>strong{color:#2b180a!important}
.mother-game .notice-dot{position:absolute;right:-4px;top:-4px;width:13px;height:13px;border:2px solid #000;background:#ff2600;box-shadow:none;border-radius:50%;z-index:10}
/* Same slanted track, top-light fill and dark numeral chip as the source HUD. */
.mother-game .hud{position:relative!important;display:flex;align-items:center;gap:12px;min-height:48px;height:48px;flex:none;padding:7px 10px 7px 16px;background:var(--fs-blue-main)!important;box-shadow:none!important;border:0!important}
.mother-game #resources{display:flex;align-items:center;flex:1;gap:12px;min-width:0;width:auto;overflow:visible}
.mother-game .resource.mother-resource{position:relative;display:block;flex:1;min-width:0;width:auto;height:32px;min-height:32px;max-width:218px;margin:0;padding:0;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;overflow:visible;color:#fff}
.mother-game .resource.mother-resource::before,.mother-game .resource.mother-resource::after{content:none!important;display:none!important}
.mother-resource .m9-resource-track{position:absolute;inset:0;z-index:0;background:#081828;border:2px solid #000;border-radius:7px;transform:skewX(-14deg);overflow:hidden;pointer-events:none}
.mother-resource .m9-resource-track>i{position:absolute;inset:0 auto 0 0;width:var(--resource-fill,100%);background:linear-gradient(#4dff79,#02fe3f 55%,#00b82b);border-right:2px solid #000}
.mother-resource.is-full .m9-resource-track>i{background:linear-gradient(#ffe854,#f90 60%,#c60)}
.mother-resource.m9-gem-resource .m9-resource-track>i{background:linear-gradient(#d49eff,#9b51e0 60%,#6a1b9a)}
.mother-game .mother-resource>.mother-icon,.mother-game .mother-resource>.rh-icon{position:absolute;left:-12px;top:50%;transform:translateY(-50%);width:31px;height:31px;z-index:3;margin:0;filter:drop-shadow(0 1.5px 1px #0006)}
.mother-game .mother-resource .resource-amounts{position:absolute;right:3px;top:50%;transform:translateY(-50%);z-index:3;width:auto;max-width:calc(100% - 13px);margin:0;padding:1px 5px;border-radius:6px;background:#040e1cc7;display:inline-flex;flex-flow:row nowrap;align-items:baseline;justify-content:center;gap:2px;line-height:1.2;white-space:nowrap}
.mother-game .mother-resource .resource-number{position:relative;display:flex;align-items:baseline;gap:0;max-width:none;min-width:0;line-height:1.2}
.mother-game .mother-resource b{font-family:var(--font-num)!important;font-size:13.5px!important;font-weight:900;line-height:1.2;color:#fff!important;letter-spacing:0;text-shadow:none}
.mother-game .mother-resource small{font-family:var(--font-num)!important;font-size:10.5px!important;font-weight:800;line-height:1.2;color:#8fb2df!important;letter-spacing:0;text-shadow:none}
.mother-game .mother-resource.is-full b{color:#ffe854!important}
.mother-game #helpButton{width:32px;height:32px;min-height:32px;border:2px solid #000;border-radius:10px;background:#003a70;box-shadow:inset 0 1px #ffffff40,inset 0 -3px #002244;padding:3px;flex:none}
.mother-game #helpButton img{width:100%;height:100%;object-fit:contain}
.mother-game .resource-delta{font-family:var(--font-num)!important;font-weight:900;font-size:12px;border:1.5px solid #000;border-radius:99px;padding:2px 5px;background:#103818;color:#2bff4f}
.mother-game .resource-delta.spend{background:#3b1219;color:#ff7373}
/* Full screens use the two exact blue depths, rather than navy or yellow lists. */
.mother-game #view.mother-view :is(.rh-battle-shelf,.stats-row,.team-card,.empty-team,.departure-controls,.adventure-stats,.loot-panel,.journey-log){background:var(--fs-blue-inset-well)!important;border:1.5px solid #002c4d;border-bottom-color:#1668a3;border-radius:13px;box-shadow:inset 0 2px 5px #000f2073;color:#fff}
.mother-game #view.mother-view .stats-row{padding:11px 5px;margin:0 0 14px}
.mother-game #view.mother-view .stat{border-color:#1668a3!important}
.mother-game #view.mother-view .stat :is(strong,b){color:#fff!important;font-size:25px;font-weight:900;text-shadow:none}
.mother-game #view.mother-view .stat small{color:#8ad4ff!important;font-size:12px;font-weight:800}
.mother-game #view.mother-view .castle-entry{background:#002f52!important;border:0!important;box-shadow:none!important;border-radius:9px}
.mother-game #view.mother-view .empty-team{min-height:84px;display:flex;align-items:center;padding:12px;margin:0 0 12px}
.mother-game #view.mother-view .empty-team>span{width:42px;height:42px;margin-right:12px;border:2px solid #000;border-radius:11px;background:#00528c;box-shadow:inset 0 -3px #002b57;display:grid;place-items:center}
.mother-game #view.mother-view .empty-team :is(b,h3){color:#fff!important;font-family:var(--font-ui)!important;font-size:17px;font-weight:900;text-shadow:none}
.mother-game #view.mother-view .empty-team small{color:#8ad4ff!important;font-size:12px;line-height:1.4}
.mother-game #view.mother-view .empty-team.has-draft{background:#00529e!important;border-color:#2986ff;box-shadow:inset 0 1px #ffffff40,inset 0 -2.5px #002e5c}
.mother-game #view.mother-view .empty-team.has-draft b{color:#ffe854!important}
.mother-game #view.mother-view .empty-team.has-report b{color:#52ff52!important}
.mother-game #view.mother-view .team-info h3{color:#ffe854;font-size:17px;font-weight:900}
.mother-game #view.mother-view .team-info p{font-size:13px;color:#8ad4ff}
.mother-game #view.mother-view .team-reward{background:#002f52;border-color:#1668a3}
.mother-game #view.mother-view .report-latest{width:100%;font-size:15px}
.mother-game #squadBar{background:var(--fs-blue-main);border:0;padding:5px 10px 8px;flex:none}
.mother-game #queueHeader{font-size:11px;color:#8ad4ff;margin-bottom:4px}
.mother-game #squadSlots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.mother-game #squadSlots .squad-slot{height:42px;min-height:42px;border:2px solid #000;border-radius:8px;padding:2px 3px;background:#004484;box-shadow:inset 0 -3px #002b57;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#8ad4ff}
.mother-game #squadSlots .squad-slot :is(b,small){color:inherit!important;font-family:var(--font-ui)!important;text-shadow:none;line-height:1.2;font-size:11px;white-space:normal;font-weight:800}
.mother-game #squadSlots .squad-slot.is-draft{background:#ffe047;box-shadow:inset 0 1px #fffc,inset 0 -3px #c8a614;color:#3b2800}
.mother-game #squadSlots .squad-slot.is-active{background:#0099e9;box-shadow:inset 0 -3px #006fb0;color:#fff}
.mother-game #squadSlots .squad-slot.locked{background:#263342;color:#8494a8;box-shadow:inset 0 -3px #15202d}
.mother-game #view.departure-view.mother-view{display:flex;flex-direction:column;gap:10px;padding:0 0 12px;overflow-y:auto}
.mother-game .departure-view.mother-view .departure-scene{flex:1 1 160px;min-height:140px;border-bottom:2px solid #000;border-radius:0;box-shadow:none}
.mother-game .departure-view.mother-view .departure-controls{position:relative;flex:none;margin:0 12px;padding:12px;display:flex;flex-direction:column;gap:10px}
.mother-game .departure-view.mother-view .departure-controls::before,.mother-game .departure-view.mother-view .departure-controls::after{content:none!important;display:none!important}
.mother-game .departure-view.mother-view .departure-energy{background:#002f52;border:1px solid #1668a3;padding:8px 10px;margin:0;border-radius:9px;color:#fff}
.mother-game .departure-view.mother-view .departure-energy-status>span{font-size:13px;color:#52ff52;text-shadow:none}
.mother-game .departure-view.mother-view .departure-energy-status i{background:#52ff52}
.mother-game .departure-view.mother-view .departure-energy.is-tired .departure-energy-status>span{color:#ffe082}
.mother-game .departure-view.mother-view .departure-energy.is-tired .departure-energy-status i{background:#ffe082}
.mother-game .departure-view.mother-view .departure-energy.is-low .departure-energy-status>span{color:#ff9b7b}
.mother-game .departure-view.mother-view .departure-energy.is-low .departure-energy-status i{background:#ff7373}
.mother-game .departure-view.mother-view .energy-recover{height:34px;min-height:34px;font-size:12px;padding:4px 10px 7px;border-radius:10px}
.m9-factor-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;font-weight:900;color:#fff}
.m9-factor-heading .rh-rate-group{width:168px;flex:none}
.m9-factor-heading .rh-rate-seg{border:0;border-radius:0;margin:0;min-width:0;padding:0 0 2px}
.m9-factor-copy{margin:0;text-align:center;color:#8ad4ff;font-size:12px;line-height:1.4}
.mother-game .departure-view.mother-view .departure-controls>.mother-btn{width:100%;max-width:none;margin:0}
/* One actual canvas for all non-theatrical paper dialogs. */
#dialog.mother-modal{position:fixed;inset:30px 0 20px;margin:auto;width:min(382px,calc(100% - 36px));height:fit-content;max-width:382px;max-height:calc(100dvh - 95px);padding:0 6px 6px!important;border:3px solid #000!important;border-radius:12px 12px 16px 16px!important;background:var(--pm-yellow-rim)!important;box-shadow:inset 0 -3px #cbb57e,0 14px 32px #000a!important;filter:none!important;transform:none!important;color:var(--pm-text-main);overflow:visible!important;isolation:isolate}
#dialog.mother-modal.has-dialog-wallet{inset-block-start:calc(var(--modal-hud-bottom,48px) + 32px);inset-block-end:18px;max-height:calc(100dvh - var(--modal-hud-bottom,48px) - 82px)}
#dialog.mother-modal::before{content:''!important;display:block!important;position:absolute;inset:auto auto auto -3px!important;top:58px!important;width:6px!important;height:6px!important;max-width:none;border:0!important;border-image:none!important;border-radius:0;background:#000!important;clip-path:polygon(0 0,100% 50%,0 100%);box-shadow:none!important;transform:none!important;animation:none!important;z-index:125;pointer-events:none}
#dialog.mother-modal::after{content:''!important;display:block!important;position:absolute;inset:auto 46px -3px auto!important;width:7px!important;height:6px!important;border:0!important;border-image:none!important;border-radius:0;background:#000!important;clip-path:polygon(50% 0,100% 100%,0 100%);z-index:125;pointer-events:none;box-shadow:none!important;transform:none!important}
.m9-dialog-header,.m9-report-header{position:relative!important;inset:auto!important;display:block!important;width:calc(100% + 38px)!important;height:auto!important;max-width:none!important;margin:-18px -19px -15px!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;overflow:visible;z-index:145}
#dialog.mother-modal>.close,#dialog.mother-modal>.rh-modal-close-btn,.m9-report-modal>.rh-modal-close-btn{position:absolute;top:-12px;right:-13px;width:38px;height:38px;min-width:38px;min-height:38px;border:2.5px solid #000!important;border-radius:11px!important;background:#ff3b30!important;box-shadow:inset 0 2px #ff7a70,inset 0 -3.5px #b81d13,0 2px 4px #0007!important;padding:0;color:#fff!important;font-size:25px;font-family:var(--font-num)!important;font-weight:900;line-height:1;text-shadow:0 1.5px #000;outline:none;z-index:160;display:flex;align-items:center;justify-content:center}
#dialog.mother-modal>.close::before,#dialog.mother-modal>.close::after{display:none!important;content:none!important}
#dialog.mother-modal>#dialogBody.mother-body{display:flex;flex-direction:column;gap:10px;min-height:0;max-height:calc(100dvh - 155px);overflow-x:hidden;overflow-y:auto;width:100%;height:auto;padding:20px 12px 14px!important;margin:0;background:linear-gradient(#6e4e1a38 0px,#6e4e1a14 7px,transparent 8px),linear-gradient(135deg,transparent 86%,var(--pm-corner-fold) 86%),var(--pm-yellow-main)!important;border:2px solid var(--pm-inner-line)!important;border-top:0!important;border-radius:0 0 10px 10px;color:var(--pm-text-main)!important;box-shadow:none;scrollbar-width:thin;scrollbar-color:#b59960 transparent}
#dialogBody.mother-body:focus{outline:none}
#dialog.mother-modal #dialogBody :is(p,small,label,li,summary){font-size:13px;line-height:1.5;color:var(--pm-text-sub);text-shadow:none}
#dialog.mother-modal #dialogBody :is(h2,h3,b,strong){color:var(--pm-text-main);text-shadow:none}
#dialog.mother-modal #dialogBody :is(.pm-inset-box,.pm-deep-tray,.pm-light-row){flex:none}
#dialog.mother-modal #dialogBody .pm-inset-box{background:var(--pm-inset-well)!important;border:1.5px solid #b59960!important;border-radius:10px;box-shadow:inset 0 2px 4px #66481824,0 1px #ffffff73!important;padding:9px 10px}
#dialog.mother-modal #dialogBody .pm-deep-tray{background:var(--pm-inset-deep)!important;border:1.5px solid #9e7e43!important;border-radius:10px;box-shadow:inset 0 2px 4px #54360e33,0 1px #fff6!important;padding:8px 10px}
#dialog.mother-modal #dialogBody .pm-light-row{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#f8eed3!important;border:1.5px solid #bba068!important;border-radius:9px;box-shadow:inset 0 1px #fff!important;padding:7px 10px}
#dialog.mother-modal #dialogBody .mother-btn,#dialog.mother-modal #dialogBody .mother-btn :is(span,b,strong,small){color:var(--mother-ink)!important}
#dialog.mother-modal #dialogBody .mother-btn:is(:disabled,[data-unavailable=true]),#dialog.mother-modal #dialogBody .mother-btn:is(:disabled,[data-unavailable=true]) :is(span,b,strong,small){color:var(--btn-disabled-text)!important}
#dialog.mother-modal #dialogBody .mother-btn .rh-cost-pill,#dialog.mother-modal #dialogBody .mother-btn .rh-cost-pill :is(span,b,strong){color:#fff!important}
#dialog.mother-modal #dialogBody>.wide{width:100%;margin:0;max-width:none}
#dialog.mother-modal .dialog-actions{display:flex;gap:10px;margin:4px 0 0}
#dialog.mother-modal .dialog-actions>.mother-btn{flex:1;min-width:0;font-size:18px}
#dialog.mother-modal .language-options{display:flex;gap:7px;margin:0;padding:0;background:none;border:0}
#dialog.mother-modal .help-list{list-style:none;display:flex;flex-direction:column;gap:12px;margin:0;padding:10px 0;background:none;border:0;box-shadow:none}
#dialog.mother-modal .help-list li{display:flex;align-items:center;gap:10px;margin:0;padding:0;font-size:14px!important}
#dialog.mother-modal .quality-help{margin:0;padding:10px 0;border-top:1px solid #b59960;min-height:0}
#dialog.mother-modal .demo-tools{margin:0;min-height:0}
#dialog.mother-modal .help-list b{display:grid;place-items:center;flex:none;width:30px;height:32px;background:#004484;border:2px solid #000;border-radius:8px;color:#fff!important;font-family:var(--font-num)!important}
#dialog.mother-modal .help-note{font-size:12px!important;margin:0;padding-top:9px;border-top:1px solid #b59960}
#dialog.mother-modal .demo-tools{border-top:1px solid #b59960;padding-top:10px}
#dialog.mother-modal .demo-tools .mother-btn{font-size:15px;height:42px;min-height:42px;margin:8px 0 0}
#dialog.mother-modal .unit-detail{display:flex;flex-direction:column;min-height:0;max-height:none;height:auto;margin:0;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;border-radius:0;overflow:visible}
#dialog.mother-modal .unit-detail::before,#dialog.mother-modal .unit-detail::after{display:none!important;content:none!important}
#dialog.mother-modal.mother-unit-modal{height:fit-content;max-height:calc(100dvh - 90px);display:flex;flex-direction:column}
#dialog.mother-modal.mother-unit-modal:not([open]){display:none}
#dialog.mother-modal.mother-unit-modal #dialogBody.mother-body{flex:0 1 auto;height:auto;max-height:calc(100dvh - 150px);min-height:0;overflow:hidden;padding-top:18px!important}
#dialog.mother-modal.mother-unit-modal .unit-detail{flex:0 1 auto}
#dialog.mother-modal .unit-detail-scroll{flex:0 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:0 1px 1px;scrollbar-width:thin;scrollbar-color:#b59960 transparent}
#dialog.mother-modal .unit-detail-heading{display:flex;flex-flow:row nowrap;align-items:center;gap:12px;min-height:92px;margin:0 0 10px;padding:9px 10px}
#dialog.mother-modal .unit-detail-portrait{position:relative;display:flex;align-items:center;justify-content:center;flex:none;width:74px;height:74px;min-width:74px;padding:0;border:2.5px solid #000;border-radius:13px;background:radial-gradient(ellipse at 50% 44%,#fffb,transparent 75%),var(--quality,var(--q-green));box-shadow:inset 0 1.5px #fff;overflow:hidden}
#dialog.mother-modal .unit-detail-portrait::before,#dialog.mother-modal .unit-detail-portrait::after{display:none!important;content:none!important}
#dialog.mother-modal .unit-detail-portrait img{width:84%;height:84%;object-fit:contain;max-width:none;margin:0;transform:none;filter:none}
#dialog.mother-modal .unit-detail-identity{display:flex;flex-direction:column;gap:4px;min-width:0}
#dialog.mother-modal .unit-detail-identity h2{position:static!important;inset:auto!important;width:auto!important;height:auto!important;margin:0;padding:0;background:none;font-size:20px;line-height:1.1;font-weight:900;color:#3b230a!important;text-shadow:none;letter-spacing:0;transform:none}
#dialog.mother-modal .unit-detail-badges{display:flex;gap:6px;margin:0;flex-wrap:wrap}
#dialog.mother-modal .unit-detail-badges>span{border:1.5px solid #8c6a30;border-radius:6px;padding:2px 7px;background:#f8eed3;color:#4a3518;font-size:11.5px;font-weight:900}
#dialog.mother-modal .unit-detail-badges>.unit-rarity{background:#2e7d32;border-color:#000;color:#fff}
#dialog.mother-modal .rarity-rare .unit-detail-badges>.unit-rarity{background:#126d9d}
#dialog.mother-modal .rarity-epic .unit-detail-badges>.unit-rarity{background:#6b36a4}
#dialog.mother-modal .unit-detail-level{color:#a9570c!important;font-family:var(--font-num)!important;font-size:15px;font-weight:900}
#dialog.mother-modal .unit-detail-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0 0 10px}
#dialog.mother-modal .unit-detail-stat.pm-light-row{min-height:40px;padding:7px 9px;gap:6px}
#dialog.mother-modal .unit-detail-stat>span{font-size:12px;font-weight:800;color:#7e6235;white-space:nowrap}
#dialog.mother-modal .unit-detail-stat>strong{min-width:0;font-family:var(--font-num)!important;font-size:18px;font-weight:900;line-height:1.1;white-space:normal;overflow-wrap:anywhere;text-align:right}
#dialog.mother-modal .unit-detail-skill{font-size:13px!important;line-height:1.5!important;margin:0 0 10px}
#dialog.mother-modal .unit-recruit-rank{margin:0 0 10px;font-size:13px;line-height:1.4}
#dialog.mother-modal .unit-recruit-rank>span{color:#7e6235!important}
#dialog.mother-modal .unit-recruit-rank>strong{color:#008a2b!important;font-size:14px}
#dialog.mother-modal .unit-deploy{margin:0;padding:0;border:0}
#dialog.mother-modal .unit-deploy summary{font-size:13px;font-weight:900;margin:0 0 8px;color:#4a3518!important}
#dialog.mother-modal .unit-assign-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:8px}
#dialog.mother-modal .unit-assign-slots button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:5px 3px;border:1.5px solid #8c6a30;border-radius:8px;background:#e8cc8a;box-shadow:inset 0 1px #fff8;color:#4a3518}
#dialog.mother-modal .unit-assign-slots button.selected{background:#fffef7;border:2px solid #f90;box-shadow:0 0 0 1px #000}
#dialog.mother-modal .unit-assign-slots img{height:32px;width:32px;object-fit:contain;margin:0}
#dialog.mother-modal .unit-assign-slots span{font-size:10.5px;line-height:1.3;color:#4a3518;font-weight:800;text-align:center}
#dialog.mother-modal .unit-detail-footer{flex:none;background:none!important;border:0!important;border-radius:0;box-shadow:none!important;padding:11px 0 0!important;margin:0}
#dialog.mother-modal .unit-upgrade-cost{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin:0 0 9px;padding:0}
#dialog.mother-modal .unit-upgrade-cost>span{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border:2px solid #000;border-radius:99px;background:#fffdf5;box-shadow:inset 0 -2px #dfc696;font-family:var(--font-num)!important;font-size:13px;font-weight:900;color:#4a3518;white-space:nowrap}
#dialog.mother-modal .unit-upgrade-cost :is(img,svg){width:18px;height:18px;object-fit:contain;flex:none}
#dialog.mother-modal .unit-upgrade-cost .is-short b{color:#d13b1b!important}
#dialog.mother-modal .unit-upgrade-action{width:100%;max-width:none;margin:0}
#dialog.mother-modal .m9-unit-actions{display:flex;align-items:center;gap:8px;width:100%}
#dialog.mother-modal .m9-unit-actions>.unit-upgrade-action{flex:1;min-width:0;font-size:17px}
#dialog.mother-modal .m9-unit-actions>.m9-get-cards{flex:none;width:92px;height:40px;min-height:40px;padding:4px 6px 7px;border-radius:11px;font-size:14px}
#dialog.mother-modal #dialogBody .mother-btn.is-maxed,#dialog.mother-modal #dialogBody .mother-btn.is-maxed :is(span,b,strong,small){color:var(--btn-max-text)!important}
#dialog.mother-modal .building-tip-heading{display:flex;flex-flow:row nowrap;align-items:center;gap:12px;min-height:90px;margin:0 0 10px;text-align:left}
#dialog.mother-modal .building-tip-heading .building-tip-icon{display:flex;align-items:center;justify-content:center;width:70px;height:70px;min-width:70px;flex:none;margin:0;padding:0;border:2px solid #000;border-radius:11px;background:#f8e4aa;box-shadow:inset 0 1px #fff;overflow:hidden}
#dialog.mother-modal .building-tip-icon img{width:84%!important;height:84%!important;max-width:none;transform:none;object-fit:contain;margin:0;filter:none}
#dialog.mother-modal .building-tip-heading h2{display:block;margin:0 0 6px;padding:0;font-size:20px;line-height:1.2}
#dialog.mother-modal .building-tip-heading p{font-family:var(--font-num)!important;font-size:15px!important;font-weight:900;color:#a9570c!important;line-height:1.2;margin:0}
#dialog.mother-modal .building-benefits{display:flex;flex-direction:column;gap:8px;margin:0 0 10px}
#dialog.mother-modal .benefit-line{min-height:40px;margin:0;font-size:13px}
#dialog.mother-modal .benefit-line>span{font-size:13px;color:#7e6235;flex:none}
#dialog.mother-modal .benefit-line>b,#dialog.mother-modal .benefit-line>strong{font-size:13px;font-weight:900;line-height:1.4;text-align:right}
#dialog.mother-modal .benefit-line.is-next{background:#fffdf7!important;border-color:#f90!important}
#dialog.mother-modal .benefit-line.is-next>strong{color:#008a2b!important}
#dialog.mother-modal .building-upgrade-summary{display:flex;flex-direction:column;gap:7px;margin:0 0 10px}
#dialog.mother-modal .building-tip-cost .loot-values{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin:0}
#dialog.mother-modal .building-tip-cost .loot-value{display:inline-flex;align-items:center;gap:3px;padding:3px 7px;border:2px solid #000;border-radius:99px;background:#fffdf5;box-shadow:inset 0 -2px #dfc696;color:#2b180a;font-family:var(--font-num)!important;font-size:12.5px;font-weight:900;line-height:1.2;white-space:nowrap}
#dialog.mother-modal .building-tip-cost .loot-value :is(svg,img){width:18px;height:18px;flex:none}
#dialog.mother-modal .building-tip-note{font-size:12px!important;text-align:center;margin:0!important}
#dialog.mother-modal .construction-big{display:flex;flex-direction:column;align-items:center;gap:4px;margin:0 0 10px;padding:12px}
#dialog.mother-modal .construction-big b{font-family:var(--font-num)!important;font-size:28px}
#dialog.mother-modal .speed-actions{display:flex;flex-direction:column;gap:8px;margin:0}
#dialog.mother-modal .speed-actions>.mother-btn{width:100%;font-size:15px;height:auto;min-height:50px}
#dialog.mother-modal .card-shortage{display:flex;flex-direction:column;align-items:center;gap:10px}
#dialog.mother-modal .card-shortage-unit{width:90px;height:90px;margin:0}
#dialog.mother-modal .card-shortage-unit img{width:100%;height:100%;object-fit:contain}
#dialog.mother-modal .card-shortage>.mother-btn{width:100%;font-size:17px}
#dialog.mother-modal .rest-option{width:100%;display:flex;align-items:center;gap:9px;margin:0;padding:9px 10px}
#dialog.mother-modal .rest-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px;text-align:left}
#dialog.mother-modal .rest-copy b{font-size:15px}
#dialog.mother-modal .rest-copy small{font-size:11px!important;line-height:1.4}
#dialog.mother-modal .rest-price{width:auto;height:auto;min-height:36px;border:2px solid #000!important;border-radius:10px;background:var(--btn-green-bg);box-shadow:inset 0 1px #fff8,inset 0 -3px var(--btn-green-lip);padding:8px 9px;font-weight:900;color:#003804;font-size:13px;display:flex;align-items:center;gap:3px;white-space:nowrap}
#dialog.mother-modal .rest-price :is(svg,img){width:21px;height:21px;object-fit:contain}
#dialog.mother-modal .rest-option:disabled{background:#a99c7c!important;opacity:1;box-shadow:inset 0 1px #ddd4bb!important;filter:none}
#dialog.mother-modal .rest-option:disabled .rest-price{background:#454e5e;box-shadow:inset 0 -3px #2a303c;color:#a6b3c6}
#dialog.mother-modal .boost-summary{display:flex;flex-direction:column;gap:7px;margin:0}
#dialog.mother-modal .boost-summary>div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #b59960;padding:7px 0;font-size:14px}
#dialog.mother-modal .boost-summary>div:last-child{border-bottom:0}
#dialog.mother-modal .boost-summary b{font-size:16px}
#dialog.mother-modal .route-choice{display:flex;gap:10px;align-items:center;text-align:left;width:100%;margin:0 0 9px}
#dialog.mother-modal .castle-list{max-height:none;height:auto;min-height:0}
#dialog.mother-modal .castle-list-scroll{overflow:auto;min-height:0;max-height:calc(100dvh - 250px);padding:1px}
#dialog.mother-modal .castle-goal{margin:0 0 10px}
#dialog.mother-modal .castle-goal-loot{background:#d2b36e;border:0;border-radius:0 0 8px 8px;color:#4a3518;padding:8px;margin:8px -10px -9px}
#dialog.mother-modal .castle-goal :is(p,small){color:#7e6235!important}
#dialog.mother-modal .castle-goal-progress{color:#4a3518;font-size:12px}
#dialog.mother-modal .castle-history{border-color:#b59960}
#dialog.mother-modal>.modal-resource-wallet{position:fixed;left:var(--wallet-left,50vw);top:var(--wallet-top,8px);width:var(--wallet-width,130px);transform:translateX(-50%);z-index:170;display:flex;justify-content:center;pointer-events:auto;filter:none;margin:0}
#dialog.mother-modal>.modal-resource-wallet .context-gems{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;min-height:var(--wallet-height,32px);padding:4px 8px;border:2px solid #000;border-radius:8px;background:#081828;color:#fff;font-family:var(--font-num)!important;font-size:15px;font-weight:900;white-space:nowrap;box-shadow:inset 0 -2px #0006}
#dialog.mother-modal>.modal-resource-wallet .context-gems :is(svg,img){width:24px;height:24px;flex:none}
#dialog.mother-modal>.modal-resource-wallet .context-gems :is(b,span){color:#fff;font-size:15px}
/* Final reward receipts use the same mother paper, with the live card data. */
#dialog[data-kind=chestrewards]:not(.rh-unlock-playing) .m9-receipt{position:relative;width:min(382px,calc(100vw - 36px));max-height:calc(100dvh - 90px);margin:22px auto 0;padding:0 16px 14px;background:linear-gradient(135deg,transparent 86%,#e4c888 86%),#ecd8a3;border:3px solid #000;border-radius:12px 12px 16px 16px;box-shadow:inset 0 0 0 5px #e6d8a8,inset 0 0 0 7px #c0a976,0 14px 32px #000a;color:#4a3518;overflow:visible}
#dialog[data-kind=chestrewards]:not(.rh-unlock-playing) .m9-receipt::before,#dialog[data-kind=chestrewards]:not(.rh-unlock-playing) .m9-receipt::after{content:none!important;display:none!important}
#dialog[data-kind=chestrewards]:not(.rh-unlock-playing) .m9-receipt .rp-heading{position:relative;inset:auto;display:block;height:auto;width:calc(100% + 70px);margin:-18px -35px -3px;padding:0;background:none;border:0;box-shadow:none;flex:none;z-index:145}
#dialog[data-kind=chestrewards]:not(.rh-unlock-playing) .m9-receipt .rp-heading::before,#dialog[data-kind=chestrewards]:not(.rh-unlock-playing) .m9-receipt .rp-heading::after{content:none!important;display:none!important}
#dialog[data-kind=chestrewards]:not(.rh-unlock-playing) .m9-receipt .rh-paper-reward-close{position:absolute;top:-12px;right:-13px;width:38px;height:38px;min-height:38px;padding:0;border:2.5px solid #000;border-radius:11px;background:#ff3b30;box-shadow:inset 0 2px #ff7a70,inset 0 -3.5px #b81d13,0 2px 4px #0007;color:#fff;font-size:25px;line-height:1;display:grid;place-items:center;z-index:160}
#dialog[data-kind=chestrewards]:not(.rh-unlock-playing) .m9-receipt .rh-paper-reward-close{position:absolute!important;inset:-12px -13px auto auto!important;width:38px!important;height:38px!important;min-height:38px!important;border:2.5px solid #000!important;border-radius:11px!important;background:#ff3b30!important;box-shadow:inset 0 2px #ff7a70,inset 0 -3.5px #b81d13,0 2px 4px #0007!important;color:#fff!important;font-family:var(--font-num)!important;font-size:25px!important;text-shadow:0 1.5px #000!important;transform:none!important;outline:none!important}
#dialog[data-kind=chestrewards]:not(.rh-unlock-playing) .m9-receipt .rh-paper-reward-close::before,#dialog[data-kind=chestrewards]:not(.rh-unlock-playing) .m9-receipt .rh-paper-reward-close::after{content:none!important;display:none!important}
#dialog[data-kind=chestrewards]:not(.rh-unlock-playing) .reward-showcase.m9-receipt{position:relative!important;display:flex!important;flex-direction:column!important;gap:0!important;isolation:isolate;width:min(382px,calc(100vw - 36px))!important;height:auto!important;max-height:calc(100dvh - 80px)!important;margin:22px auto 0!important;padding:0 12px 14px!important;background:linear-gradient(135deg,transparent 86%,#e4c888 86%),#ecd8a3!important;border:3px solid #000!important;border-radius:12px 12px 16px 16px!important;box-shadow:inset 0 0 0 5px #e6d8a8,inset 0 0 0 7px #c0a976,0 14px 32px #000a!important;overflow:visible!important;transform:none!important}
#dialog[data-kind=chestrewards]:not(.rh-unlock-playing) .m9-receipt>.rp-heading{position:relative!important;inset:auto!important;display:block!important;flex:none!important;width:calc(100% + 50px)!important;max-width:none!important;height:auto!important;min-height:0!important;margin:-18px -25px -15px!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;overflow:visible!important}
#dialog[data-kind=chestrewards]:not(.rh-unlock-playing) .m9-receipt .rp-results-scroll{display:block!important;position:relative!important;flex:0 1 auto!important;min-height:0!important;height:auto!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;margin:18px 0 0!important;padding:4px!important;background:#dfc484!important;border:1.5px solid #b59960!important;border-radius:10px!important;box-shadow:inset 0 2px 4px #66481824,0 1px #fff7!important;scrollbar-color:#b59960 transparent}
#dialog[data-kind=chestrewards]:not(.rh-unlock-playing) .m9-receipt .rp-results-grid{margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
#dialog[data-kind=chestrewards]:not(.rh-unlock-playing) .m9-receipt .rp-footer{display:flex!important;position:relative!important;inset:auto!important;flex:none!important;width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:10px 0 0!important;background:none!important;border:0!important;box-shadow:none!important}
#dialog[data-kind=chestrewards]:not(.rh-unlock-playing) .m9-receipt .rp-footer>.mother-btn{width:100%!important;max-width:none!important;height:50px!important;min-height:50px!important;font-size:19px!important;margin:0!important}
#dialog[data-kind=chestrewards]:not(.rh-unlock-playing) .m9-receipt .m9-ribbon>.rh-paper-reward-close{position:absolute!important;inset:calc(40% - 19px) -3px auto auto!important;z-index:160}
#dialog[data-kind=chestrewards]:not(.rh-unlock-playing) .m9-receipt.is-revealed .rp-results-scroll{opacity:1!important;visibility:visible!important;transform:none!important}
#dialog[data-kind=chestrewards]:not(.rh-unlock-playing) .m9-receipt.is-ready .rp-footer{opacity:1!important;visibility:visible!important;transform:none!important}
/* Keep the light and character performance, bring every information tray onto
   the same warm paper and readable state colors as the mother components. */
#dialog:is([data-kind=unitupgrade],[data-kind=buildingcomplete],[data-kind=castlevictory],[data-kind=newunit])>.close{position:fixed!important;inset:14px 14px auto auto!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;padding:0!important;border:2.5px solid #000!important;border-radius:11px!important;background:#ff3b30!important;box-shadow:inset 0 2px #ff7a70,inset 0 -3.5px #b81d13,0 2px 4px #0007!important;color:#fff!important;font-family:var(--font-num)!important;font-size:25px!important;font-weight:900;line-height:1;text-shadow:0 1.5px #000!important;transform:none!important;outline:none!important;z-index:170}
#dialog:is([data-kind=unitupgrade],[data-kind=buildingcomplete],[data-kind=castlevictory],[data-kind=newunit])>.close::before,#dialog:is([data-kind=unitupgrade],[data-kind=buildingcomplete],[data-kind=castlevictory],[data-kind=newunit])>.close::after{content:none!important;display:none!important}
#dialog:is([data-kind=unitupgrade],[data-kind=buildingcomplete],[data-kind=castlevictory],[data-kind=newunit])>.close:not([hidden]){display:flex!important;align-items:center;justify-content:center}
.mother-game .rh-castle-defeat,#dialog.rh-advancement[data-kind=unitupgrade]{background:#002f52!important}
.mother-game .rh-castle-defeat::before,#dialog.rh-advancement::before{background:none!important;content:none!important;display:none!important}
#dialog.rh-advancement::backdrop{background:#002f52!important}
#dialog[data-kind=unitupgrade] .rh-advancement-stats,#dialog[data-kind=buildingcomplete] .pf-building>.pf-gain-sequence,#dialog[data-kind=buildingcomplete] .pf-building-batch>.pf-gain-sequence,.mother-game .rh-castle-defeat .rh-defeat-summary,#dialog[data-kind=castlevictory] .castle-victory-loot{background:linear-gradient(135deg,transparent 86%,#e4c888 86%),#ecd8a3!important;border:3px solid #000!important;border-radius:12px!important;box-shadow:inset 0 0 0 3px #e6d8a8,inset 0 0 0 5px #c0a976,0 7px 15px #0004!important;color:#4a3518!important}
#dialog[data-kind=unitupgrade] .rh-advancement-stats{padding:13px!important}
#dialog[data-kind=unitupgrade] .rh-advancement-stats h3{color:#3b230a!important;text-shadow:none!important}
#dialog[data-kind=unitupgrade] :is(.pf-power,.pf-stats,.pf-rank){background:none!important;border-color:#b59960!important;color:#4a3518!important;box-shadow:none!important}
#dialog[data-kind=unitupgrade] .pf-power>span,#dialog[data-kind=unitupgrade] .pf-stat>span,#dialog[data-kind=unitupgrade] .pf-rank>span{color:#7e6235!important;text-shadow:none!important}
#dialog[data-kind=unitupgrade] .pf-power strong,#dialog[data-kind=unitupgrade] .pf-power strong b,#dialog[data-kind=unitupgrade] .pf-stat strong,#dialog[data-kind=unitupgrade] .pf-stat strong b{color:#2b1608!important;text-shadow:none!important}
#dialog[data-kind=unitupgrade] .pf-power>em,#dialog[data-kind=unitupgrade] .pf-stat>em,#dialog[data-kind=unitupgrade] .pf-rank>b{color:#007b2d!important;text-shadow:none!important}
#dialog[data-kind=unitupgrade] .pf-stat{background:#f8eed3!important;border:1.5px solid #bba068!important;border-radius:9px!important;padding:7px 8px!important;margin:5px 0!important;box-shadow:inset 0 1px #fff!important}
#dialog[data-kind=unitupgrade] .pf-stat :is(small,i),#dialog[data-kind=unitupgrade] .pf-note{color:#7e6235!important;text-shadow:none!important}
#dialog:is([data-kind=unitupgrade],[data-kind=buildingcomplete]) .pf-level{background:#dfc484!important;border:1.5px solid #9e7e43!important;border-radius:10px;box-shadow:inset 0 1px #fff8!important;padding:5px 10px!important;color:#4a3518!important}
#dialog:is([data-kind=unitupgrade],[data-kind=buildingcomplete]) .pf-level :is(small,i){color:#7e6235!important;background:none!important;border:0!important;box-shadow:none!important;text-shadow:none!important}
#dialog:is([data-kind=unitupgrade],[data-kind=buildingcomplete]) .pf-level>b{color:#174a12!important;background:#9be086!important;border:1.5px solid #346329!important;border-radius:7px;box-shadow:inset 0 1px #fff8!important;padding:3px 7px;text-shadow:none!important}
#dialog[data-kind=buildingcomplete] .pf-building>.pf-gain-sequence,#dialog[data-kind=buildingcomplete] .pf-building-batch>.pf-gain-sequence{padding:7px!important}
#dialog[data-kind=buildingcomplete] .pf-gain-sequence .pf-attribute-gain{background:#f8eed3!important;border:1.5px solid #bba068!important;border-radius:9px;box-shadow:inset 0 1px #fff!important;color:#4a3518!important;text-shadow:none!important}
#dialog[data-kind=buildingcomplete] .pf-gain-sequence .pf-attribute-gain :is(span,small){color:#7e6235!important;text-shadow:none!important}
#dialog[data-kind=buildingcomplete] .pf-gain-sequence .pf-attribute-gain b{color:#007b2d!important;text-shadow:none!important}
#dialog[data-kind=buildingcomplete] .rh-building-gains{padding:7px!important;background:linear-gradient(135deg,transparent 86%,#e4c888 86%),#ecd8a3!important;border:3px solid #000!important;border-radius:12px!important;box-shadow:inset 0 0 0 3px #e6d8a8,inset 0 0 0 5px #c0a976,0 7px 15px #0004!important;color:#4a3518!important;scrollbar-color:#b59960 transparent}
#dialog[data-kind=buildingcomplete] .rh-building-gains>div{background:#f8eed3!important;border:1.5px solid #bba068!important;border-radius:9px!important;box-shadow:inset 0 1px #fff!important;color:#4a3518!important;padding:10px 9px!important}
#dialog[data-kind=buildingcomplete] .rh-building-gains span{color:#7e6235!important;font-weight:800;text-shadow:none!important}
#dialog[data-kind=buildingcomplete] .rh-building-gains b{color:#007b2d!important;font-family:var(--font-num)!important;font-weight:900;text-shadow:none!important}
#dialog[data-kind=buildingcomplete] .pf-building-batch .pf-batch-list>article{background:#f8eed3!important;border:1.5px solid #bba068!important;border-radius:9px!important;box-shadow:inset 0 1px #fff!important}
#dialog[data-kind=buildingcomplete] .pf-building-batch .pf-batch-list>article :is(h3,strong){color:#4a3518!important;text-shadow:none!important}
.mother-game .rh-castle-defeat .rh-defeat-summary{padding:13px!important}
.mother-game .rh-castle-defeat .rh-defeat-summary h3{color:#3b230a!important;text-shadow:none!important;border-color:#b59960!important}
.mother-game .rh-castle-defeat .rh-defeat-summary .castle-score{padding:9px 5px!important;background:#d2b36e!important;border:1.5px solid #9e7e43!important;border-radius:9px;box-shadow:inset 0 2px 4px #54360e22!important}
.mother-game .rh-castle-defeat .rh-defeat-summary .castle-score :is(small,.castle-score-target){color:#7e6235!important;text-shadow:none!important}
.mother-game .rh-castle-defeat .rh-defeat-summary .castle-score-side.ally b{color:#006d99!important}
.mother-game .rh-castle-defeat .rh-defeat-summary .castle-score-side.enemy b{color:#b83423!important}
.mother-game .rh-castle-defeat .rh-defeat-guidance{display:flex;flex-direction:column;gap:7px;padding-top:8px}
.mother-game .rh-castle-defeat .rh-defeat-guidance p{background:#f8eed3!important;border:1.5px solid #bba068!important;border-radius:9px;margin:0!important;padding:7px 9px!important;color:#4a3518!important;font-size:12px;box-shadow:inset 0 1px #fff!important;text-shadow:none!important}
#dialog[data-kind=castlevictory] .castle-victory-loot{padding:13px!important}
#dialog[data-kind=castlevictory] .castle-victory-loot>p{color:#4a3518!important;text-shadow:none!important;font-size:14px;font-weight:900}
#dialog[data-kind=castlevictory] .castle-victory-loot>small{color:#7e6235!important;text-shadow:none!important}
#dialog[data-kind=castlevictory] .castle-rewards{gap:8px!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
#dialog[data-kind=castlevictory] .castle-rewards>span{background:#fffdf9!important;border:2px solid #000!important;border-radius:10px;padding:6px 7px!important;color:#2b1608!important;font-size:17px!important;box-shadow:inset 0 1px #fff,inset 0 -2px #dfc696!important;text-shadow:none!important}
#dialog[data-kind=castlevictory] .castle-rewards>span b{color:#2b1608!important;font-family:var(--font-num)!important;font-size:17px!important;text-shadow:none!important}
#dialog[data-kind=castlevictory] .castle-rewards svg{width:25px!important;height:25px!important;filter:none!important}
#dialog[data-kind=castlevictory] .castle-victory-content>.mother-btn{width:100%;height:50px;min-height:50px}
/* Report: the mother's paper composition, with original report actions/data. */
.mother-game #view.ended-view.mother-view{display:block;padding:26px 18px 24px;background:var(--fs-blue-main)!important;overflow:auto}
.mother-game .m9-report-modal{position:relative;width:100%;max-width:382px;height:auto;margin:0 auto;padding:0 6px 6px;background:#e6d8a8;border:3px solid #000;border-radius:12px 12px 16px 16px;box-shadow:inset 0 -3px #cbb57e,0 14px 32px #000a;color:#4a3518}
.m9-report-body{display:flex;flex-direction:column;gap:10px;padding:20px 12px 14px;background:linear-gradient(#6e4e1a38 0px,#6e4e1a14 7px,transparent 8px),linear-gradient(135deg,transparent 86%,#e4c888 86%),#ecd8a3;border:2px solid #c0a976;border-top:0;border-radius:0 0 10px 10px}
.mother-game .m9-report-body .expedition-result{display:flex;flex-direction:column;align-items:center;gap:9px;min-height:0;width:100%;margin:0;padding:10px;background:#dfc484;border:1.5px solid #b59960;border-radius:10px;box-shadow:inset 0 2px 4px #66481824,0 1px #fff7;overflow:visible;color:#4a3518}
.mother-game .m9-report-body .expedition-result::before,.mother-game .m9-report-body .expedition-result::after{content:none!important;display:none!important}
.mother-game .m9-report-body .result-crest{display:grid;place-items:center;width:42px;height:42px;min-height:42px;margin:0;border:2px solid #000;border-radius:50%;background:#fffdf5;box-shadow:none}
.mother-game .m9-report-body .result-crest .mother-icon{width:25px;height:25px}
.mother-game .m9-report-body .eyebrow{font-family:var(--font-ui)!important;font-size:15px;line-height:1.3;color:#7e6235;margin:0;font-weight:900;letter-spacing:0}
.mother-game .m9-report-body .report-new-record{display:flex;align-items:center;justify-content:center;gap:8px;padding:3px 10px;margin:0;border:1.5px solid #000;border-radius:99px;background:#ff9200;color:#fff;font-size:13px;font-weight:900;line-height:1;box-shadow:inset 0 1px #ffcb70;text-shadow:none}
.mother-game .m9-report-body .result-days{display:flex;align-items:center;gap:7px;margin:0;line-height:1}
.mother-game .m9-report-body .result-days>small,.mother-game .m9-report-body .result-duration>b{font-size:15px;font-weight:900;color:#7e6235}
.mother-game .m9-report-body .result-duration{display:flex;align-items:baseline;gap:7px}
.mother-game .m9-report-body .result-duration>strong{font-family:var(--font-num)!important;font-size:48px;font-weight:900;line-height:1;color:#2b180a;text-shadow:0 2px #ffe9b1}
.mother-game .m9-report-body .report-summary{display:flex;justify-content:center;gap:16px;margin:0;color:#7e6235;font-size:13px;font-weight:800}
.mother-game .m9-report-body .result-resources{display:flex;flex-direction:column;gap:10px;width:100%;padding:9px;background:#d2b36e;border:1.5px solid #9e7e43;border-radius:10px;box-shadow:inset 0 2px 4px #54360e33,0 1px #fff6}
.mother-game .m9-report-body .report-loot-group h3{font-size:14px;font-weight:900;color:#4a3518;text-align:center;margin:0 0 8px}
.mother-game .m9-report-body .report-loot-group .loot-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;width:100%}
.mother-game .m9-report-body .report-loot-group .loot-value{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;padding:7px 2px;border:2px solid #000;border-radius:11px;background:#fffdf5;box-shadow:inset 0 -2px #dfc696;color:#2b180a;font-family:var(--font-num)!important;font-size:14px;font-weight:900;line-height:1.2;text-shadow:none;white-space:nowrap}
.mother-game .m9-report-body .report-loot-group .loot-value :is(svg,img){width:26px;height:26px;flex:none}
.mother-game .m9-report-body .report-cards{display:flex;flex-wrap:wrap;justify-content:center;gap:9px;width:100%;margin:0;padding:2px 0 7px}
.mother-game .m9-report-body .report-cards>span{position:relative;display:grid;place-items:center;width:58px;height:58px;background:#9be086;border:2px solid #000;border-radius:11px;box-shadow:inset 0 1px #fff;overflow:visible}
.mother-game .m9-report-body .report-cards img{width:84%;height:84%;object-fit:contain}
.mother-game .m9-report-body .report-cards b{position:absolute;bottom:-7px;right:-5px;padding:2px 5px;background:#ff9200;border:1.5px solid #000;border-radius:99px;color:#fff;font-size:11px;font-weight:900;line-height:1}
.mother-game .m9-report-body .result-actions{display:flex;flex-direction:column;gap:9px;position:static;width:100%;margin:0;padding:0;background:none;border:0;box-shadow:none}
.mother-game .m9-report-body .result-actions>.mother-btn{width:100%;height:50px;min-height:50px;font-size:18px}
.mother-game .m9-report-body .castle-report-entry{display:flex;align-items:center;gap:9px;margin:0;padding:7px 10px;background:#f8eed3;border:1.5px solid #bba068;border-radius:9px;box-shadow:inset 0 1px #fff;color:#4a3518;text-align:left}
.mother-game .m9-report-body .castle-report-entry>svg{width:40px;height:40px;flex:none}
.mother-game .m9-report-body .castle-report-entry span{min-width:0;display:flex;flex-direction:column;gap:3px}
.mother-game .m9-report-body .castle-report-entry b{font-size:14px;font-weight:900;color:#4a3518}
.mother-game .m9-report-body .castle-report-entry small{font-size:12px;color:#7e6235;line-height:1.3}
/* The report's exact source composition uses its own names so no former
   celebration numerals or blue loot panels can override the paper component. */
.mother-game .m9-report-body .m9-report-result{gap:4px!important;padding:12px 10px!important;background:#dfc484!important;border:1.5px solid #b59960!important;text-align:center;color:#4a3518!important;overflow:visible!important}
.m9-report-crest{display:grid;place-items:center;width:40px;height:40px;flex:none;background:#fffdf6;border:2px solid #000;border-radius:50%}
.m9-report-crest .mother-icon{width:22px;height:22px}
.mother-game .m9-report-body .m9-report-route{font-size:13px!important;font-weight:900;letter-spacing:1.5px;color:#6e4314!important;margin:5px 0}
.m9-report-record{position:static;display:inline-flex;align-items:center;justify-content:center;align-self:center;padding:1.5px 10px;background:#ff7f00;border:1.5px solid #000;border-radius:99px;color:#fff;font-size:12px;font-weight:900;line-height:1.5;transform:none;text-shadow:none}
.m9-report-days{display:flex;align-items:baseline;justify-content:center;gap:6px;margin:2px 0}
.mother-game .m9-report-days small{font-size:15px!important;font-weight:900;color:#5c3710!important}
.m9-report-days strong{font-family:var(--font-num)!important;font-size:44px!important;font-weight:900;line-height:1;color:#2b1608!important;text-shadow:0 2px #ffffffbf}
.mother-game .m9-report-days b{font-size:16px;font-weight:900;color:#5c3710!important}
.mother-game .m9-report-body .m9-report-summary{display:flex;gap:14px;font-size:13px!important;font-weight:900;color:#633d15!important;margin:2px 0 6px}
.mother-game .m9-report-body .m9-report-summary span{color:#633d15!important}
.m9-report-resources{width:100%;display:flex;flex-direction:column;gap:7px;padding:8px 10px;background:#d2b36e;border:1.5px solid #9e7e43;border-radius:10px;box-shadow:inset 0 2px 4px #54360e33,0 1px #fff6}
.m9-report-loot-group{display:flex;flex-direction:column;gap:7px;padding:0;margin:0;background:none;border:0;box-shadow:none}
.m9-report-loot-group h3{font-size:13px;font-weight:900;line-height:1.3;color:#422408;margin:0}
.m9-report-loot-row{display:flex;justify-content:center;gap:10px;min-width:0}
.m9-report-loot-row .orig-bright-loot-slot{flex:1;max-width:78px;min-width:0;width:auto;padding:7px 4px;background:#fffdf9}
.m9-report-loot-row .orig-bright-loot-slot .mother-icon{position:static;width:30px;height:30px;object-fit:contain;transform:none}
.m9-report-loot-row .loot-val{display:block;font-family:var(--font-num)!important;font-size:13px;font-weight:900;line-height:1.2;color:#2b1608;white-space:normal;overflow-wrap:anywhere}
.m9-report-loot-note{margin:0;font-size:11px;line-height:1.4;color:#7e6235}
.m9-report-cards{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:5px}
.m9-report-cards .orig-report-card-chip{width:58px;height:58px}
.m9-report-cards .orig-report-card-chip img{width:48px;height:48px;object-fit:contain}
.mother-game .m9-report-body .castle-report-entry>.m9-report-castle-art{display:flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;background:radial-gradient(circle at 50% 45%,#fff,#ffd666);border:2px solid #000;border-radius:10px}
.m9-report-castle-art img{width:32px;height:32px;object-fit:contain}
@media(max-width:350px){
 .mother-game .hud{padding-left:13px;padding-right:8px;gap:8px}
 .mother-game #resources{gap:9px}
 .mother-game .mother-resource>.mother-icon,.mother-game .mother-resource>.rh-icon{width:27px;height:27px;left:-10px}
 .mother-game .mother-resource .resource-amounts{flex-direction:column;align-items:flex-end;gap:0;padding:1px 4px;max-width:calc(100% - 11px)}
 .mother-game .mother-resource b{font-size:12px!important}
 .mother-game .mother-resource small{font-size:9.5px!important}
 .m9-ribbon .rh-ribbon-title{font-size:18px;max-width:calc(100% - 86px);letter-spacing:.5px}
 #dialog.mother-modal #dialogBody .unit-detail-stat.pm-light-row{flex-direction:row;align-items:center;gap:3px;padding:7px 5px}
 #dialog.mother-modal .unit-detail-stat>span{font-size:11px}
 #dialog.mother-modal .unit-detail-stat>strong{font-size:16px;letter-spacing:-.4px}
 #dialog.mother-modal .unit-assign-slots span{font-size:10px}
 .mother-game #mainNav.camp-main-nav{gap:6px;padding-left:6px;padding-right:6px}
 .mother-game #view.ended-view.mother-view{padding-left:18px;padding-right:18px}
 .mother-game .m9-report-body{padding-left:10px;padding-right:10px}
 .mother-game .m9-report-body .result-duration>strong{font-size:44px}
}
:lang(en) .m9-ribbon .rh-ribbon-title{font-size:16px;line-height:1.05;letter-spacing:0;max-width:calc(100% - 90px)}
@media(max-height:740px){
 .mother-game .departure-view.mother-view .departure-scene{min-height:120px;flex-basis:120px}
 .mother-game .departure-view.mother-view .departure-controls{gap:8px;padding:10px}
 #dialog.mother-modal.mother-unit-modal{height:fit-content;max-height:calc(100dvh - 90px)}
}

/* Adaptations of Section 04 / 07 of the user-supplied mother library.
   Native camp-* card styles come verbatim from mother-kit-r9.css. */
.cards-view.mother-view{padding:12px 12px 22px;display:block;background:var(--fs-blue-main)}
.cards-view.mother-view .mother-deck-section{margin:0 0 16px;padding:11px 12px 13px;border:2px solid #00223e;border-radius:15px;background:var(--fs-blue-inset-well);box-shadow:inset 0 2px 0 #ffffff19,0 3px 0 #002d4b}
.mother-cards-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 10px;color:#fff}
.mother-cards-heading h2,.mother-cards-heading h3{margin:0;font:900 18px/1.2 var(--font-ui);color:#fff;text-shadow:0 2px #002c4b}
.mother-cards-heading small{font:800 12px/1.3 var(--font-num);color:#c7e9ff;text-align:right}
.mother-deck-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.mother-deck-slot{appearance:none;position:relative;min-width:0;padding:0;border:2.5px solid #000;border-radius:12px;overflow:hidden;background:#FFFDF6;color:#2B180A;box-shadow:inset 0 -3px #DFC9A0,0 3px #0004;display:flex;flex-direction:column;align-items:stretch;cursor:pointer}
.mother-deck-portrait{position:relative;height:70px;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 44%,#ffffffb8,#ffffff40 42%,#ffffff00 76%),var(--quality);border-bottom:2px solid #000}
.mother-deck-portrait img{width:84%;height:88%;object-fit:contain;filter:drop-shadow(0 2px 2px #2b180a40)}
.mother-deck-portrait .mother-deck-level{left:4px;top:auto;bottom:4px;transform:none;min-width:32px;height:23px;font-size:11px;padding-inline:4px;pointer-events:none}
.mother-deck-slot>b{padding:4px 2px 6px;font:900 13px/1.2 var(--font-ui);color:#2B180A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mother-deck-slot.is-empty{background:#003354;border:2px dashed #4a91bd;box-shadow:inset 0 2px 5px #0004}
.mother-deck-slot.is-empty>b{color:#90bdd9}
.mother-deck-plus{display:flex;align-items:center;justify-content:center;height:70px;font:700 34px/1 var(--font-ui);color:#78b1d6}
.mother-unit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px 8px;align-items:stretch}
.mother-unit-grid>.camp-unit-card{width:auto;min-width:0;margin:0}
.mother-unit-grid .camp-unit-portrait{appearance:none;padding:0;margin:0;border:0;border-bottom:2.5px solid #000;border-radius:0;cursor:pointer;flex:none}
.mother-unit-grid .camp-unit-portrait::before,.mother-unit-grid .camp-unit-portrait::after{content:none}
.mother-unit-grid .camp-unit-body{padding:7px 6px 8px;gap:6px}
.mother-unit-grid .camp-unit-name{margin:0;font:900 15px/1.2 var(--font-ui);color:#2B180A;text-shadow:none}
.mother-unit-grid .camp-card-upgrade-btn{padding-right:4px;padding-left:5px;gap:2px}
.mother-unit-grid .up-price{padding-right:5px;gap:2px;white-space:nowrap;font:900 12px/1.2 var(--font-num);color:#fff;text-shadow:0 1px 2px #000b}
.mother-unit-grid .up-txt{font-size:13.5px;white-space:nowrap}
.mother-unit-grid .camp-shard-meter{margin-left:18px}
.mother-unit-grid .camp-shard-text{padding-left:8px;font-size:12px;white-space:nowrap}
.mother-unit-grid .camp-unit-card.is-locked .camp-unit-body{justify-content:flex-start}
.mother-unit-grid .camp-unit-unlock-hint{line-height:1.4;margin-top:auto}
.mother-card-new{position:absolute;left:5px;top:5px;z-index:5;display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:20px;padding:0 4px;border:1.5px solid #000;border-radius:6px;background:linear-gradient(#ff7168,#ed3c32);box-shadow:inset 0 1px #ffb5aa;color:#fff;font:900 11px/1 var(--font-ui);text-shadow:0 1px #8d2017}
.camp-lock-badge svg{width:18px;height:18px}
.camp-card-upgrade-btn:disabled{opacity:1}
.camp-card-upgrade-btn:disabled:active{transform:none}
.camp-shard-row.has-long-count{height:34px}
.camp-shard-row.has-long-count .camp-shard-meter{height:32px}
.camp-shard-row.has-long-count .camp-shard-text{white-space:normal;overflow-wrap:anywhere;text-align:center;line-height:1.1}
.camp-shard-row.has-long-count .camp-lv-shield{left:-2px;min-width:32px}
.buildings{gap:11px!important}
#view .buildings>.camp-building-card{width:auto!important;min-width:0!important;min-height:0!important;height:auto!important;margin:0!important;padding:9px!important;gap:7px!important;display:flex!important;flex-direction:column!important;grid-template-columns:none!important;background:linear-gradient(#FFFDF7,#F4E4C1)!important;border:2.5px solid #000!important;border-radius:16px!important;box-shadow:inset 0 -3.5px #D8BE8C,0 4px #0005!important;color:#2B180A!important;overflow:visible!important}
#view .buildings>.camp-building-card::before,#view .buildings>.camp-building-card::after{content:none!important}
.camp-building-card>.camp-building-head{appearance:none;width:100%;padding:0;margin:0;border:0;border-radius:0;box-shadow:none;background:none;text-align:left;min-height:48px;color:#2B180A;cursor:pointer}
.camp-building-card .camp-building-head::before,.camp-building-card .camp-building-head::after{content:none}
.camp-building-card .camp-building-icon{width:48px;height:48px;box-sizing:border-box;overflow:visible}
.camp-building-card .camp-building-icon img{object-fit:contain;filter:drop-shadow(0 2px 1px #72502d44)}
.mother-building-identity{min-width:0;flex:1}
.camp-building-card .camp-building-head h3{margin:0 0 3px;white-space:nowrap;color:#2B180A;text-shadow:none}
.camp-building-card .camp-building-head small{display:block;line-height:1.2}
.mother-building-ready{position:absolute;right:-3px;top:-3px;display:flex;align-items:center;justify-content:center;width:21px;height:21px;border:1.5px solid #000;border-radius:50%;background:#30FD34;color:#003804;font:900 16px/1 var(--font-num);box-shadow:inset 0 1px #fff9}
.camp-building-card .camp-building-benefit{margin:0;line-height:1.35;min-height:25px;display:flex;align-items:center;justify-content:center;padding:4px 3px}
.mother-building-costs{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px;margin-top:auto;min-height:29px}
.mother-building-costs .orig-cost-chip{padding:3px 6px 3px 4px;gap:3px;font-size:12.5px;line-height:1.2;white-space:nowrap}
.mother-building-costs .orig-cost-chip svg{width:17px;height:17px}
.mother-building-costs .orig-cost-chip.is-short{color:#be352a}
.camp-building-card .mother-building-action{width:100%;height:36px;min-height:36px;margin:0;padding:0 5px 3px;box-sizing:border-box;font:900 14px/1.15 var(--font-ui);color:var(--btn-label-col);text-shadow:none;white-space:normal;display:flex;align-items:center;justify-content:center;flex:none}
.camp-building-card .build-countdown>.hourglass-icon{width:21px;height:21px}
.camp-building-card .mother-building-action.is-disabled{background:var(--btn-disabled-bg);color:var(--btn-disabled-text);box-shadow:inset 0 1px #ffffff24,inset 0 -3px var(--btn-disabled-lip);cursor:not-allowed;opacity:1}
.camp-building-card .mother-building-action.is-maxed{background:var(--btn-max-bg);color:var(--btn-max-text);box-shadow:inset 0 1px #c49d55,inset 0 -3px var(--btn-max-lip);opacity:1}
.mother-build-progress{position:relative;width:100%;height:12px;border:2px solid #000;border-radius:5px;background:#263c51;overflow:hidden;margin-top:auto}
.mother-build-progress>i{display:block;height:100%;background:linear-gradient(#47f5ff,#00cbe8)}
.choices:has(>.camp-offer-card){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch;padding:0 3px 5px}
.choices>.camp-offer-card{width:auto;min-width:0;margin:0;padding:0;cursor:pointer;appearance:none;line-height:1.2;min-height:0;max-height:none;align-self:stretch;isolation:isolate}
.choices>.camp-offer-card::before,.choices>.camp-offer-card::after{content:none}
.choices>.camp-offer-card .camp-offer-top{box-sizing:border-box;position:relative;flex:none;padding-top:8px;padding-bottom:7px;gap:4px}
.mother-offer-art{width:100%;height:52px;display:flex;align-items:center;justify-content:center;position:relative;gap:1px}
.mother-offer-art>img,.mother-offer-art>svg{width:52px;height:52px;object-fit:contain;flex:none;filter:drop-shadow(0 2px 1px #52321145)}
.mother-offer-art.is-pair>img,.mother-offer-art.is-pair>svg{width:43px;height:48px}
.choices>.camp-offer-card .camp-offer-sign{font-size:12px;line-height:1.2;white-space:nowrap;min-height:20px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}
.choices>.camp-offer-card .camp-offer-body{width:100%;box-sizing:border-box;padding:7px 5px 8px;gap:5px;flex:1;justify-content:space-between}
.choices>.camp-offer-card .camp-offer-body strong{font-size:13px;line-height:1.25;min-height:32px;display:flex;align-items:center;justify-content:center}
.choices>.camp-offer-card .camp-offer-body small{font-size:11.5px;line-height:1.25;color:#7A5224;white-space:normal;overflow-wrap:anywhere}
.mother-offer-tier{position:absolute;right:3px;top:3px;background:#fff9d8;border:1px solid #674116;border-radius:5px;padding:1px 3px;color:#4a3518;font:900 10px/1.2 var(--font-num)}
.choices>.camp-offer-card.is-chosen{opacity:.8;border-color:#075c17;box-shadow:inset 0 -3px #8db779,0 3px #00210066}
.choices>.camp-offer-card:disabled{cursor:default}
.choices>.camp-offer-card:disabled:not(.is-chosen){filter:saturate(.35);opacity:.7}
.mother-chest-shelf{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0 0 16px!important;overflow:visible!important}
.mother-chest-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-bottom:5px}
.mother-chest-row>.mother-shop-chest{position:relative;width:auto;min-width:0;appearance:none;cursor:pointer;padding:0;margin:0;color:#2B180A}
.mother-chest-row>.mother-shop-chest .camp-offer-top{position:relative;box-sizing:border-box;padding:8px 5px 7px;gap:4px}
.mother-chest-art{height:62px;width:100%;display:flex;align-items:center;justify-content:center}
.mother-chest-art>svg{width:70px;height:62px;filter:drop-shadow(0 3px 2px #41250e33)}
.mother-chest-row>.mother-shop-chest .camp-offer-body{width:100%;box-sizing:border-box;gap:7px;padding:8px 4px 9px}
.mother-chest-row>.mother-shop-chest .camp-offer-body>strong{font:900 13px/1.25 var(--font-ui);color:#2B180A;text-shadow:none;white-space:nowrap}
.mother-chest-status{display:flex;align-items:center;justify-content:center;min-height:24px;margin:0;padding:3px 3px;border:1.5px solid #C8A668;border-radius:7px;background:#EAD6AA;font:900 12px/1.15 var(--font-num);color:#5C3A16;box-sizing:border-box;white-space:nowrap}
.mother-chest-status .gem-amount{gap:3px;font:900 12px/1 var(--font-num);color:#5C3A16!important;text-shadow:none!important;white-space:nowrap}
.mother-chest-status .gem-amount>svg{width:17px;height:17px}
.mother-chest-row>.mother-shop-chest:disabled{cursor:default;filter:saturate(.4);opacity:.75}
.mother-chest-ready{position:absolute;right:4px;top:4px;z-index:3;width:19px;height:19px;display:flex;align-items:center;justify-content:center;border:1.5px solid #000;border-radius:50%;background:#F6503D;color:#fff;font:900 13px/1 var(--font-num);box-shadow:inset 0 1px #ffb5aa;text-shadow:0 1px #8d2017}
.mother-special-chest-row{display:flex;flex-direction:column;gap:9px;margin-top:9px}
.mother-special-chest{appearance:none;position:relative;display:flex;align-items:center;gap:10px;width:100%;padding:7px;border:2.5px solid #000;border-radius:13px;background:linear-gradient(#FFFDF7,#F4E4C1);box-shadow:inset 0 -3px #D8BE8C,0 3px #0005;color:#2B180A;cursor:pointer;text-align:left}
.mother-special-chest-art{width:48px;height:45px;flex:none;display:flex;align-items:center;justify-content:center;border:2px solid #000;border-radius:9px;background:radial-gradient(circle at 50% 45%,#ffffffb8,#ffffff20 65%),var(--quality)}
.mother-special-chest-art>svg{width:44px;height:40px}
.mother-special-chest>span:nth-child(2){display:flex;align-items:center;justify-content:space-between;gap:8px;flex:1;padding-right:16px}
.mother-special-chest strong{font:900 14px/1.2 var(--font-ui);color:#2B180A;text-shadow:none}
.mother-special-chest b{font:900 14px/1.2 var(--font-num);color:#8A5A24;text-shadow:none}
/* Keep receipt timing hooks, replace the former independent metal portrait. */
#dialog .mother-reward-showcase .rp-results-grid{gap:12px 9px!important;align-items:stretch!important;grid-template-columns:repeat(min(var(--rp-columns),2),minmax(0,1fr))!important;width:100%!important;max-width:361px!important;margin-inline:auto!important}
#dialog .mother-reward-showcase .mother-reward-card{width:auto!important;min-width:0!important;max-width:none!important;display:flex!important;flex-direction:column!important;grid-template-columns:none!important;gap:0!important;padding:0!important;border:2.5px solid #000!important;border-radius:16px!important;background:#FFFDF6!important;box-shadow:inset 0 -3.5px #DFC9A0,0 4px #0005!important;overflow:hidden!important;text-align:center!important}
#dialog .mother-reward-showcase .mother-reward-card::before,#dialog .mother-reward-showcase .mother-reward-card::after{content:none!important}
#dialog .mother-reward-showcase .mother-reward-card .rp-portrait{width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;min-height:0!important;aspect-ratio:1!important;flex:none!important;padding:0!important;margin:0!important;border:0!important;border-bottom:2.5px solid #000!important;border-radius:0!important;box-shadow:inset 0 2px #ffffff8c!important;background:radial-gradient(ellipse at 50% 44%,#ffffffb8 0%,#ffffff40 42%,#ffffff00 76%),var(--quality)!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;transform:none!important;isolation:isolate}
#dialog .mother-reward-showcase .mother-reward-card .rp-portrait::before,#dialog .mother-reward-showcase .mother-reward-card .rp-portrait::after{content:none!important}
#dialog .mother-reward-showcase .mother-reward-card .rp-portrait-art{position:relative!important;inset:auto!important;width:84%!important;height:84%!important;display:flex!important;align-items:center!important;justify-content:center!important;z-index:2}
#dialog .mother-reward-showcase .mother-reward-card .rp-portrait-art img{width:100%!important;height:100%!important;object-fit:contain!important;filter:drop-shadow(0 3px 3px #2b180a40)!important;transform:none!important}
#dialog .mother-reward-showcase .mother-reward-card .rp-card-copy{padding:7px 7px 9px!important;gap:6px!important;width:100%!important;min-width:0!important;margin:0!important;background:linear-gradient(#FFFDF7,#F5E8CE)!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;box-sizing:border-box!important;min-height:0!important}
#dialog .mother-reward-showcase .mother-reward-card .camp-unit-name{margin:0!important;font:900 15px/1.2 var(--font-ui)!important;color:#2B180A!important;text-shadow:none!important;white-space:normal!important}
#dialog .mother-reward-showcase .mother-reward-card .rp-new-badge{left:5px!important;top:5px!important;right:auto!important;bottom:auto!important;transform:none!important;width:auto!important;height:21px!important;border:1.5px solid #000!important;border-radius:6px!important;padding:0 4px!important;background:linear-gradient(#ff7168,#ed3c32)!important;color:#fff!important;font:900 11px/1 var(--font-ui)!important;z-index:5!important}
.mother-reward-quantity{position:absolute;right:5px;bottom:5px;z-index:5;border:1.5px solid #000;border-radius:7px;padding:2px 5px 3px;background:linear-gradient(#ffad35,#ff7d00);box-shadow:inset 0 1px #ffd99a;color:#2b180a;font:900 13px/1 var(--font-num)}
#dialog .mother-reward-showcase .mother-reward-card .rp-unit-role,#dialog .mother-reward-showcase .mother-reward-card .rp-upgrade-ready{display:block!important;align-self:center!important;margin:0!important;padding:0!important;border:0!important;background:none!important;color:#407528!important;font:900 12px/1.2 var(--font-ui)!important;text-shadow:none!important}
#dialog .mother-reward-showcase .mother-reward-card .rp-unit-tag{margin:0!important;padding:4px 3px!important;border:1px solid #c8a668!important;border-radius:6px!important;background:#ead6aa!important;color:#6c4821!important;font:800 11.5px/1.25 var(--font-ui)!important;text-align:center!important;white-space:normal!important}
#dialog .mother-reward-showcase .mother-reward-card .camp-shard-row{height:26px!important;margin-top:auto!important}
#dialog .mother-reward-showcase .mother-reward-card .camp-lv-shield{font:900 12px/1 var(--font-num)!important;color:#3b1a00!important}
#dialog .mother-reward-showcase .mother-reward-card .rp-shards{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0 0 0 18px!important;padding:0!important;width:100%!important;height:20px!important;border:2px solid #000!important;border-radius:7px!important;box-shadow:none!important;background:#233852!important;overflow:hidden!important}
#dialog .mother-reward-showcase .mother-reward-card .rp-shards i{height:100%!important;background:linear-gradient(#47f5ff,#00cbe8)!important;border-radius:0!important}
#dialog .mother-reward-showcase .mother-reward-card .rp-shards i.can-upgrade{background:linear-gradient(#52ff52,#00d60e)!important}
#dialog .mother-reward-showcase .mother-reward-card .rp-shards .camp-shard-text{font:900 12px/1 var(--font-num)!important;color:#fff!important;text-shadow:0 1px 2px #000e,0 0 3px #000b!important;padding-left:8px!important;position:relative!important;inset:auto!important;white-space:nowrap!important}
#dialog .mother-reward-showcase .mother-reward-card .camp-shard-row.has-long-count{height:34px!important}
#dialog .mother-reward-showcase .mother-reward-card .has-long-count .rp-shards{height:32px!important}
#dialog .mother-reward-showcase .mother-reward-card .has-long-count .camp-shard-text{line-height:1.1!important;white-space:normal!important;text-align:center!important}
#dialog .mother-reward-showcase[data-reward-count="1"] .rp-results-grid{max-width:176px!important;margin-inline:auto!important;width:100%!important}
@media(max-width:359px){.mother-unit-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}.cards-view.mother-view{padding-inline:13px}.mother-unit-grid .camp-unit-body{padding-inline:8px}.mother-unit-grid .camp-card-upgrade-btn{padding-inline:7px}.mother-building-costs .orig-cost-chip{font-size:12px;padding-inline:4px}.buildings>.camp-building-card{padding:8px}.camp-building-card .camp-building-head{gap:6px}.camp-building-card .camp-building-icon{width:44px;height:44px}.camp-building-card .camp-building-head h3{font-size:13px}.camp-building-card .mother-building-action{font-size:13px}.choices:has(>.camp-offer-card){gap:5px;padding-inline:0}.choices>.camp-offer-card .camp-offer-body{padding-inline:3px}.mother-offer-art.is-pair>img,.mother-offer-art.is-pair>svg{width:36px}.choices>.camp-offer-card .camp-offer-body strong{font-size:12.5px}#dialog .mother-reward-showcase .rp-results-grid{grid-template-columns:repeat(min(var(--rp-columns),2),minmax(0,1fr))!important}}
@media(min-width:410px){.mother-unit-grid{gap:12px 10px}.mother-unit-grid .camp-unit-body{padding-inline:8px}.mother-unit-grid .camp-card-upgrade-btn{padding-inline:7px}.mother-deck-portrait,.mother-deck-plus{height:78px}}
@media(max-width:359px){#dialog .mother-reward-showcase .mother-reward-card .rp-shards .camp-shard-text{padding-left:14px!important}}

/* Gemini warm foundations with R9 drawn controls. */
:root{--warm-ink:#34281b;--warm-sub:#786953;--warm-bg:#faf6eb;--warm-low:#efe7d5;--warm-line:#d0bda0;--warm-card:#fffdf6}
body.warm-ui{background:radial-gradient(ellipse at top,#efe8d8,#cfc3ab)!important;color:var(--warm-ink)}
#appRoot.warm-game{background:linear-gradient(180deg,#faf6eb 0,#faf6eb 112px,#efe7d5 100%)!important;color:var(--warm-ink);border:0!important;box-shadow:0 18px 50px #44341c22!important}
#appRoot.warm-game #view.mother-view{background:transparent!important;color:var(--warm-ink)}
#appRoot.warm-game .hud{position:relative!important;inset:auto!important;display:flex;align-items:center;justify-content:flex-start;flex:none;height:50px;min-height:50px;gap:6px;padding:7px 12px 6px!important;background:transparent!important;border:0!important;box-shadow:none!important;z-index:30}
#appRoot.warm-game .hud::before,#appRoot.warm-game .hud::after{display:none!important;content:none!important}
#appRoot.warm-game #resources{display:flex;align-items:center;justify-content:flex-start;flex:0 1 auto!important;gap:6px;width:auto!important;min-width:0;max-width:calc(100% - 38px);padding:0;margin:0}
#appRoot.warm-game .hud .resource.mother-resource{position:relative;flex:0 0 clamp(78px,calc((100cqw - 68px)/3),104px)!important;width:clamp(78px,calc((100cqw - 68px)/3),104px)!important;max-width:none!important;min-width:0!important;height:34px;min-height:34px;padding:4px 6px 4px 5px!important;gap:3px;transform:none!important;clip-path:none!important;border:1px solid #fffdf6a8!important;border-radius:999px!important;background:linear-gradient(#624f386b,#503f2c7a)!important;box-shadow:inset 0 1px #ffffff61,0 3px 9px #4432181c!important;backdrop-filter:blur(8px);color:#fff!important;overflow:visible!important}
#appRoot.warm-game .hud .resource[hidden]{display:none!important}
#appRoot.warm-game .hud .resource::before,#appRoot.warm-game .hud .resource::after,#appRoot.warm-game .m9-resource-track{display:none!important;content:none!important}
#appRoot.warm-game .hud .resource>.mother-icon{position:static!important;inset:auto!important;width:18px!important;height:18px!important;flex:0 0 18px!important;transform:none!important;margin:0!important;filter:drop-shadow(0 1px 1px #2a1a0a55)}
#appRoot.warm-game .hud .resource-amounts{display:flex;flex:1;align-items:baseline;justify-content:flex-end;gap:0!important;white-space:nowrap;min-width:0}
#appRoot.warm-game .hud .resource b{font-family:var(--font-num)!important;color:#fff!important;font-size:13.5px!important;font-weight:850!important;line-height:1.15;text-shadow:0 1px 2px #36240ec2;letter-spacing:-.2px}
#appRoot.warm-game .hud .resource small{font-size:10.5px!important;font-weight:750;color:#fffbf2eb!important;text-shadow:0 1px 1px #36240ea3;line-height:1.15;margin:0;white-space:nowrap}
#appRoot.warm-game .hud #res-gems small{font-size:13px!important;color:#8cf978!important;margin-left:2px}
#appRoot.warm-game .hud .resource.is-full b{color:#ff4d3d!important}
#appRoot.warm-game #helpButton{display:grid;place-items:center;position:relative;width:32px!important;min-width:32px;height:32px!important;min-height:32px;flex:0 0 32px;margin:0 0 0 auto!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;outline-offset:2px}
#appRoot.warm-game #helpButton::before,#appRoot.warm-game #helpButton::after{content:none!important;display:none!important}
#appRoot.warm-game #helpButton :is(img,svg){position:static;width:32px!important;height:32px!important;max-width:none;object-fit:contain;filter:drop-shadow(0 2px 1px #38240d33)}
#appRoot.warm-game.camp-mode>.hud{position:absolute!important;inset:0 0 auto!important;pointer-events:none}
#appRoot.warm-game.camp-mode>.hud>*{pointer-events:auto}
/* Keep the drawn bevels; reduce only their outline weight. */
.warm-game .mother-btn,#dialog .mother-btn,.warm-game .camp-card-upgrade-btn,.warm-game .rh-btn-single{border-width:2px!important}
#appRoot.warm-game #mainNav.camp-main-nav{background:linear-gradient(#f8f0db,#eee1bc)!important;border:0!important;border-top:1px solid #cbb88f!important;border-radius:0!important;box-shadow:0 -3px 12px #4e37191a!important;padding:6px 8px 7px;gap:4px}
#appRoot.warm-game #mainNav .camp-nav-tab{border-width:2px!important}
#appRoot.warm-game #mainNav .camp-nav-tab:not(.selected){background:#f8f0db!important;border-color:#bba37d!important;box-shadow:inset 0 1px #fff,inset 0 -3px #d9c695!important;color:#6a5031!important}
#appRoot.warm-game #mainNav .camp-nav-tab:not(.selected) strong{color:#6a5031!important;text-shadow:none!important}
#appRoot.warm-game #squadSlots.mother-squad-slots{background:none!important;border:0;box-shadow:none;padding:0 12px 9px}
#appRoot.warm-game #squadSlots>button{background:#ffefb0!important;border:2px solid #6b4c22!important;box-shadow:inset 0 1px #fff9,inset 0 -3px #d9b859!important;color:#5a3a13!important}
#appRoot.warm-game #squadSlots>button :is(b,strong,small,span){color:#5a3a13!important;text-shadow:none!important}
#appRoot.warm-game #squadSlots>button.selected{background:#ffe619!important;box-shadow:inset 0 1px #fff9,inset 0 -3px #cca800!important}
#appRoot.warm-game #squadSlots>button.locked{background:#e6ddcb!important;border-color:#bcae91!important;box-shadow:inset 0 -2px #cbbd9f!important;color:#92836b!important}
.warm-game .squad-label{color:#786953!important}
/* Shop keeps complete cards and R9 controls, with an airy warm surface. */
#appRoot.warm-game .shop-front{gap:20px;padding:0 1px 18px}
#appRoot.warm-game .shop-offer{border:1.5px solid #ac8550!important;border-radius:15px!important;background:linear-gradient(#fffef8,#fbf3de)!important;box-shadow:inset 0 1px #fff,inset 0 -3px #dfc797,0 3px 0 #947a4733!important;color:#34281b!important;overflow:hidden}
#appRoot.warm-game .shop-offer::before{background:#f9edcb!important;opacity:.6;height:37px}
#appRoot.warm-game .shop-offer-title{color:#34281b!important;font:900 18px/1.25 var(--font-ui)!important;text-shadow:none!important;padding:8px 3px 3px;min-height:35px}
#appRoot.warm-game .shop-benefit{color:#6b5638!important;font-weight:800;font-size:12.5px;line-height:1.35;text-shadow:none!important;min-height:31px;padding:0 6px 6px}
#appRoot.warm-game .shop-price.mother-btn{width:calc(100% - 28px)!important;height:42px!important;min-height:42px!important;margin:5px 14px 13px!important;padding:4px 5px 7px!important;flex:none;border-width:2px!important;border-radius:11px;font-size:18px!important;color:#003804!important;box-shadow:inset 0 1px #ffffff8c,inset 0 -3.5px #00ba0e!important}
#appRoot.warm-game .shop-price.mother-btn b{font-weight:900!important;color:#003804!important;text-shadow:none!important}
#appRoot.warm-game .shop-offer--starter{background:linear-gradient(110deg,#ffe788,#ffd85d)!important;border-color:#b67a20!important;min-height:171px;box-shadow:inset 0 1px #fff4bd,inset 0 -4px #d2a33f,0 3px #86632722!important}
#appRoot.warm-game .shop-offer--starter .shop-price{width:122px!important;margin:3px 0 0!important}
#appRoot.warm-game .shop-offer--starter .shop-offer-title{font-size:22px!important;min-height:0;padding:0}
#appRoot.warm-game .shop-starter-rewards{color:#5c431b!important;text-shadow:none!important;font-weight:900}
#appRoot.warm-game .shop-starter-gem svg{height:100%;width:100%}
#appRoot.warm-game .mother-chest-shelf .camp-offer-top>svg,#appRoot.warm-game .mother-chest-shelf .camp-offer-top>img{width:48px!important;height:44px!important;max-width:none;object-fit:contain}
#appRoot.warm-game .mother-chest-shelf .camp-offer-top{min-height:82px}
#appRoot.warm-game .shop-section h2.warm-section-ribbon{height:auto;min-height:0;width:90%;margin:2px auto 12px;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;isolation:auto}
#appRoot.warm-game .shop-section h2.warm-section-ribbon::before,#appRoot.warm-game .shop-section h2.warm-section-ribbon::after{display:none!important;content:none!important}
#appRoot.warm-game .shop-section h2 .m9-ribbon .rh-ribbon-title{font-size:18px;max-width:80%;transform:translateY(-4px)}
#appRoot.warm-game .shop-section h2 .m9-ribbon{aspect-ratio:420/62}
#appRoot.warm-game .shop-pack-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:13px 11px}
#appRoot.warm-game .shop-offer--resources,#appRoot.warm-game .shop-offer--diamonds{min-height:230px;padding-top:3px}
#appRoot.warm-game .shop-offer--resources .shop-offer-title,#appRoot.warm-game .shop-offer--diamonds .shop-offer-title{font-size:16px!important;min-height:33px}
#appRoot.warm-game .shop-pack-art{height:90px!important;width:100%;margin:0 auto}
#appRoot.warm-game .shop-pack-chest,#appRoot.warm-game .shop-pack-chest>svg{width:84px!important;height:78px!important}
#appRoot.warm-game .shop-resource-piece,#appRoot.warm-game .shop-resource-piece :is(svg,img){width:29px!important;height:29px!important;object-fit:contain}
#appRoot.warm-game .shop-art-halo{background:radial-gradient(ellipse,#fff9db,#f2e7c4 56%,#f2e7c400 72%)!important}
#appRoot.warm-game .shop-diamond-art .shop-art-halo{background:radial-gradient(ellipse,#ebfdf0,#d8f2de 56%,#d8f2de00 73%)!important}
#appRoot.warm-game .shop-gem-piece,#appRoot.warm-game .shop-gem-piece :is(svg,img){width:44px!important;height:44px!important;max-width:none;object-fit:contain}
#appRoot.warm-game .shop-materials{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px 3px!important;min-height:43px!important;width:calc(100% - 12px)!important;margin:0 6px 4px;padding:0!important;color:#4b3519!important;font-size:14px!important;line-height:1.15;font-weight:900!important;text-shadow:none!important}
#appRoot.warm-game .shop-materials>span{min-width:0;display:flex;justify-content:center;align-items:center;gap:3px;white-space:nowrap}
#appRoot.warm-game .shop-materials>span:last-child{grid-column:1/-1}
#appRoot.warm-game .shop-materials b{font-family:var(--font-num)!important;font-weight:900;color:#4b3519!important}
#appRoot.warm-game .shop-materials :is(svg,img){width:17px!important;height:17px!important;flex:none}
#appRoot.warm-game .shop-gem-quantity{color:#37633b!important;text-shadow:none!important;font-size:16px;font-weight:900}
/* Three separate information cards, never tappable. */
#appRoot.warm-game .teams-view>.stats-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;background:none!important;padding:0!important;border:0!important;border-radius:0;box-shadow:none!important;margin:4px 0 14px;overflow:visible}
#appRoot.warm-game .teams-view .stats-row>.stat{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;min-height:81px;padding:11px 8px;background:linear-gradient(#fff,#fbf8ee)!important;border:1px solid #cdbb98!important;border-radius:12px;box-shadow:inset 0 1px #fff,0 3px #d5c5a4!important;color:#34281b!important;cursor:default}
#appRoot.warm-game .teams-view .stats-row>.stat::before,#appRoot.warm-game .teams-view .stats-row>.stat::after{display:none!important}
#appRoot.warm-game .teams-view .stats-row>.stat:last-child{background:#e6f2ff!important;border-color:#afc9e3!important;box-shadow:inset 0 1px #fff,0 3px #b8cfe7!important}
#appRoot.warm-game .teams-view .stats-row small{font-size:11px!important;color:#786953!important;font-weight:800;text-align:left}
#appRoot.warm-game .teams-view .stats-row strong{font-size:25px!important;color:#34281b!important;text-shadow:none!important}
#appRoot.warm-game .teams-view .team-list{gap:13px}
#appRoot.warm-game .teams-view .empty-team{border:1.5px solid #bca77f!important;border-radius:14px!important;background:#e7dcc5!important;box-shadow:inset 0 1px #fff7,inset 0 -3px #cfbd98!important;color:#544634!important;min-height:86px;padding:13px 17px}
#appRoot.warm-game .teams-view .empty-team>span{border:1px solid #b79b69!important;background:#fff7df!important;color:#80551c!important;box-shadow:inset 0 -2px #dac38e!important;border-radius:11px}
#appRoot.warm-game .teams-view .empty-team.has-draft,#appRoot.warm-game .teams-view .empty-team.has-report{background:#fff0b8!important;border-color:#b58828!important;box-shadow:inset 0 1px #fff8,inset 0 -3px #dfbd61!important}
#appRoot.warm-game .teams-view .empty-team :is(b,small){color:#5a4122!important;text-shadow:none!important}
#appRoot.warm-game .teams-view .team-card{background:#fffdf5!important;border:1px solid #cbb590!important;box-shadow:inset 0 -3px #d9c8a3!important}
#appRoot.warm-game .teams-view .team-card :is(h3,p,.loot-value){color:#543d20!important;text-shadow:none!important}
/* Keep R9 modal paper, remove only redundant title ribbons in identity dialogs. */
#dialog.mother-modal{border-width:2px!important}
#dialog.mother-modal.warm-no-title{padding-top:8px!important;border-radius:15px!important}
#dialog.mother-modal.warm-no-title>#dialogBody{padding-top:10px!important;border-top:1.5px solid #c0a976!important;border-radius:10px!important}
#dialog.mother-modal.warm-no-title>.close{top:8px!important;right:8px!important;transform:none!important;width:36px!important;height:36px!important;min-width:36px;min-height:36px;border-width:2px!important}
#dialog.mother-modal.warm-no-title :is(.unit-detail-heading,.building-tip-heading){padding-right:35px!important}
#dialog.mother-modal.warm-no-title :is(.unit-detail-portrait,.building-tip-icon){border-width:1.25px!important}
#dialog.mother-modal.warm-no-title .m9-unit-actions{display:flex;flex-direction:row;gap:9px;width:100%}
#dialog.mother-modal.warm-no-title .m9-unit-actions>.mother-btn{width:0!important;min-width:0!important;flex:1 1 0!important;height:47px!important;min-height:47px!important;margin:0!important;padding:5px 4px 8px!important;font-size:16px!important;border-radius:12px}
@media(max-width:359px){
 #appRoot.warm-game .hud{padding-inline:9px!important;gap:5px}
 #appRoot.warm-game #resources{gap:4px}
 #appRoot.warm-game .hud .resource.mother-resource{font-size:12px;padding-inline:4px!important;gap:2px;flex-basis:clamp(78px,calc((100cqw - 62px)/3),104px)!important;width:clamp(78px,calc((100cqw - 62px)/3),104px)!important}
 #appRoot.warm-game .hud .resource b{font-size:12.5px!important}
 #appRoot.warm-game .hud .resource small{font-size:9.5px!important}
 #appRoot.warm-game .shop-price.mother-btn{width:calc(100% - 22px)!important;margin-inline:11px!important;font-size:16px!important}
 #appRoot.warm-game .shop-materials{font-size:13px!important}
 #appRoot.warm-game .shop-materials :is(svg,img){width:14px!important;height:14px!important}
 #appRoot.warm-game .shop-offer-title{font-size:16px!important}
 #appRoot.warm-game .shop-benefit{font-size:11.5px}
}
/* Clear R9 HUD's inner meter geometry, not just its paint. */
#appRoot.warm-game .hud .resource .resource-amounts{position:static!important;inset:auto!important;transform:none!important;width:auto!important;height:auto!important;max-width:calc(100% - 21px);padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;flex:1!important;display:flex!important;flex-flow:row nowrap!important;gap:0!important}
#appRoot.warm-game .hud .resource .resource-number{position:relative!important;inset:auto!important;transform:none!important;width:auto!important;height:auto!important;min-width:0!important;padding:0!important;margin:0!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;display:inline-flex!important;flex:none!important;align-items:baseline;line-height:1.15;white-space:nowrap}
#appRoot.warm-game .hud .resource :is(b,small){position:static!important;inset:auto!important;transform:none!important;display:inline-block!important;flex:none!important;height:auto!important;width:auto!important;min-width:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;white-space:nowrap!important;line-height:1.15!important}
#appRoot.warm-game #squadBar{background:transparent!important;border:0!important;box-shadow:none!important}
#appRoot.warm-game #queueHeader{color:#786953!important;background:none!important;border:0!important}
#appRoot.warm-game #queueHeader :is(span,b){color:#786953!important;text-shadow:none!important}
#appRoot.warm-game #view.teams-view .empty-team.has-draft b,#appRoot.warm-game #view.teams-view .empty-team.has-report b{color:#593b14!important;text-shadow:none!important}
#appRoot.warm-game .mother-shop-chest .mother-chest-art{width:48px!important;height:44px!important;display:grid;place-items:center}
#appRoot.warm-game .mother-shop-chest .mother-chest-art>svg{width:48px!important;height:44px!important;max-width:none;object-fit:contain}
#appRoot.warm-game .seven-map .map-squad{background:none!important;border:0!important;box-shadow:none!important}
#appRoot.warm-game .seven-map .map-squad>span{background:#ffe619!important;border:2px solid #5b401d!important;box-shadow:inset 0 1px #fff9,inset 0 -3px #cca800,0 2px #62431644!important;color:#5b3c12!important}
#appRoot.warm-game .seven-map .map-squad>span svg{color:#5b3c12!important}
#appRoot.warm-game .seven-map .map-squad b{color:#4b3214!important;text-shadow:0 1px #fff9,1px 0 #fff9,-1px 0 #fff9!important}
#appRoot.warm-game .seven-map .map-squad.locked>span{background:#eadab4!important;border-color:#ab9467!important;box-shadow:inset 0 -3px #c6ac74!important}
#appRoot.warm-game #view .shop-demo-note{color:#786953!important;text-shadow:none!important;font-size:12px}
#appRoot.warm-game #resources{display:flex!important;grid-template-columns:none!important;flex:0 0 auto!important}
#appRoot.warm-game .hud .resource.mother-resource:not([hidden]){display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:flex-start!important}
#appRoot.warm-game .seven-map .map-squad{display:flex!important;flex-direction:column;justify-content:center;align-items:center;width:50px!important;height:66px!important;padding:0!important;gap:4px!important}
#appRoot.warm-game .seven-map .map-squad>span{position:relative!important;inset:auto!important;display:flex!important;align-items:center;justify-content:center;width:42px!important;height:42px!important;min-width:42px;flex:none!important;border-radius:10px!important}
#appRoot.warm-game .seven-map .map-squad>span :is(svg,img){position:static!important;width:24px!important;height:24px!important;transform:none!important;object-fit:contain}
#appRoot.warm-game .seven-map .map-squad>b{display:block!important;position:static!important;font-size:11px!important;line-height:1.2;white-space:nowrap}
@media(max-width:359px){
 #appRoot.warm-game .hud .resource.mother-resource{width:clamp(78px,calc((100cqw - 68px)/3),104px)!important;flex-basis:clamp(78px,calc((100cqw - 68px)/3),104px)!important;padding-inline:3px!important}
 #appRoot.warm-game .hud .resource>.mother-icon{width:16px!important;height:16px!important;flex-basis:16px!important}
 #appRoot.warm-game .hud .resource .resource-amounts{max-width:calc(100% - 18px)}
}
/* Use the compact reference HUD numerals rather than the wide card number face. */
#appRoot.warm-game .hud .resource b{font:850 13.5px/1.15 Arial,sans-serif!important;font-variant:normal!important;letter-spacing:0!important}
#appRoot.warm-game .hud .resource small{font:750 10.5px/1.15 Arial,sans-serif!important;font-variant:normal!important;letter-spacing:0!important}
#appRoot.warm-game .adventure-stats .power-inline{color:#786953!important;text-shadow:none!important}
@media(max-width:359px){#appRoot.warm-game .hud .resource b{font-size:12.5px!important}#appRoot.warm-game .hud .resource small{font-size:9.5px!important}}
/* The identity selector must accommodate two complete lines on small phones. */
#dialog.mother-modal #dialogBody .unit-assign-slots{height:auto!important;min-height:0!important;overflow:visible!important;align-items:stretch}
#dialog.mother-modal #dialogBody .unit-assign-slots>button{height:auto!important;min-height:78px!important;overflow:visible!important;padding:6px 3px!important;gap:3px}
#dialog.mother-modal #dialogBody .unit-assign-slots>button>span{display:block!important;height:auto!important;min-height:27.5px;max-height:none!important;max-width:100%;overflow:visible!important;white-space:normal!important;overflow-wrap:anywhere;font-size:11px!important;line-height:1.25!important}
#appRoot.warm-game .warm-castle-entry.mother-btn{width:100%;height:40px;min-height:40px;margin:0 0 13px;padding:4px 12px 7px;font-size:16px;gap:7px;border-radius:11px}
#appRoot.warm-game .warm-castle-entry>svg{width:24px;height:24px;flex:none}
/* Restore the reference's complete shop illustration treatment. */
#appRoot.warm-game .shop-art-halo{display:block!important;opacity:1!important;position:absolute;width:110px;height:73px;left:50%;top:8px;transform:translateX(-50%);border-radius:50%}
#appRoot.warm-game .shop-gem-piece,#appRoot.warm-game .shop-gem-piece :is(svg,img){width:52px!important;height:52px!important}
#appRoot.warm-game .shop-diamond-art--1 .shop-gem-piece--0,#appRoot.warm-game .shop-diamond-art--1 .shop-gem-piece--0 :is(svg,img){width:62px!important;height:62px!important}

/* The shop opens directly on its chest cards; section ribbons remain. */
#appRoot.warm-game[data-view=shop] #rhPageHeader{display:none!important}

/* Gemini's airy collection arrangement with R9's illustrated card/action details. */
#view.cards-view.warm-cards-view{display:block;padding:12px 12px 24px;background:#faf6eb!important;color:#332719}
#view.warm-cards-view .mother-deck-section.warm-deck-panel{margin:0 0 16px;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
#view.warm-cards-view .mother-cards-heading{display:flex;align-items:baseline;justify-content:space-between;gap:6px;margin:0 0 9px;padding:0;background:none;border:0;box-shadow:none}
#view.warm-cards-view .mother-cards-heading :is(h2,h3){margin:0;font:900 18px/1.3 var(--font-ui);color:#332719;text-shadow:none}
#view.warm-cards-view .mother-cards-heading small{font:800 12px/1.3 var(--font-num);color:#786953;text-align:right;white-space:nowrap}
#view.warm-cards-view .mother-deck-slots{gap:9px}
#view.warm-cards-view .mother-deck-slot{border:1.5px solid #7d7057;border-radius:12px;background:radial-gradient(ellipse at 50% 36%,#fffdf2b8,transparent 78%),var(--quality);box-shadow:inset 0 1.5px #fff9,0 2.5px #b7a784,0 5px 9px #4e3a1c13;color:#332719}
#view.warm-cards-view .mother-deck-portrait{height:64px;border:0;background:none}
#view.warm-cards-view .mother-deck-portrait img{width:62px;max-width:80%;height:55px;filter:drop-shadow(0 2px 2px #3c2c1940)}
#view.warm-cards-view .mother-deck-slot>b{padding:3px 2px 8px;background:none;font:900 13px/1.2 var(--font-ui);color:#332719}
#view.warm-cards-view .mother-deck-slot.is-empty{border:1.5px dashed #b8a585;background:linear-gradient(#ded2ba,#e8dec8);box-shadow:inset 0 2px 4px #5440221c,0 1px #fff9}
#view.warm-cards-view .mother-deck-slot.is-empty>b{color:#7d6e57}
#view.warm-cards-view .mother-deck-plus{height:64px;color:#8b7855}
#view.warm-cards-view .warm-card-level{position:absolute;left:4px;bottom:4px;z-index:4;display:inline-flex;align-items:center;justify-content:center;min-width:31px;height:20px;padding:2px 4px;border:1px solid #fff9;border-radius:6px;background:#4b4234dc;color:#fff;font:900 11.5px/1 var(--font-num);text-shadow:0 1px #281d1055;pointer-events:none}
#view.warm-cards-view .mother-deck-portrait .warm-card-level{height:18px;font-size:10.5px;min-width:28px;left:3px;bottom:2px}
#view.warm-cards-view .mother-unit-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px 9px}
#view.warm-cards-view .mother-unit-grid>.camp-unit-card{padding:6px;border:1.5px solid #b7a17e;border-radius:13px;background:linear-gradient(#fffef8,#f5e8ce);box-shadow:inset 0 1px #fff,0 3px #d5c1a0,0 5px 10px #4e3a1c0f;overflow:visible;min-width:0}
#view.warm-cards-view .mother-unit-grid .camp-unit-portrait{width:100%;aspect-ratio:1;height:auto;min-height:0;margin:0;border:1.25px solid #7d7057;border-radius:9px;background:radial-gradient(ellipse at 50% 35%,#ffffffa8 0%,#ffffff25 65%,transparent 82%),var(--quality);box-shadow:inset 0 1.5px #fff9,inset 0 -1.5px #0000000d,0 2px #9c8762;overflow:hidden}
#view.warm-cards-view .mother-unit-grid .camp-unit-portrait>img{width:84%;height:84%;object-fit:contain;filter:drop-shadow(0 2px 2px #2b180a40)}
#view.warm-cards-view .mother-unit-grid .camp-unit-body{display:flex;flex:1;flex-direction:column;align-items:stretch;gap:5px;margin:0;padding:7px 0 1px;background:none}
#view.warm-cards-view .mother-unit-grid .camp-unit-name{display:block;margin:0;font:900 14px/1.2 var(--font-ui);color:#332719;white-space:normal;text-shadow:none}
#view.warm-cards-view .camp-deployed-flag{right:4px;top:4px;width:22px;height:22px;border-width:1.25px;border-radius:5px;box-shadow:inset 0 1px #fff8,0 1px #6b431a44}
#view.warm-cards-view .mother-card-new{border-width:1.25px;font-size:10px;left:4px;top:4px}
#view.warm-cards-view .mother-unit-grid .camp-shard-row{height:18px;margin:0;width:100%;min-width:0}
#view.warm-cards-view .mother-unit-grid .camp-shard-meter{display:flex;align-items:center;justify-content:center;width:100%;height:18px;margin:0;padding:0;border:0;border-radius:999px;background:#82735e;box-shadow:inset 0 1px 2px #261a0c52,0 1px #fff8;overflow:hidden;min-width:0}
#view.warm-cards-view .mother-unit-grid .camp-shard-fill{border-radius:999px;box-shadow:inset 0 1px #fff6}
#view.warm-cards-view .mother-unit-grid .camp-shard-text{padding:0;font:900 12px/1 var(--font-num);color:#fff;text-shadow:0 1px 1.5px #20160aa6;white-space:nowrap}
#view.warm-cards-view .mother-unit-grid .camp-shard-row.has-long-count{height:29px}
#view.warm-cards-view .mother-unit-grid .has-long-count .camp-shard-meter{height:29px;border-radius:8px}
#view.warm-cards-view .mother-unit-grid .has-long-count .camp-shard-text{line-height:1.12;white-space:normal}
#view.warm-cards-view .mother-unit-grid .camp-card-upgrade-btn{width:100%;min-height:35px;height:35px;flex:none;margin:0;padding:2px 3px 4px;gap:3px;border:2px solid #111007;border-radius:9px;box-shadow:inset 0 1px #fff9,inset 0 -3px var(--btn-green-lip),0 1.5px #3a270c3d;display:flex;align-items:center;justify-content:center}
#view.warm-cards-view .mother-unit-grid .camp-card-upgrade-btn .up-txt{font:900 13.5px/1.15 var(--font-ui);color:#003804;text-shadow:none}
#view.warm-cards-view .mother-unit-grid .up-price{position:static;display:inline-flex;align-items:center;justify-content:center;gap:2px;min-width:0;width:auto;height:auto;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font:900 12.5px/1 var(--font-num);color:#003804;text-shadow:none;white-space:nowrap}
#view.warm-cards-view .mother-unit-grid .up-price svg{position:static;inset:auto;transform:none;width:16px;height:16px;flex:none}
#view.warm-cards-view .mother-unit-grid .camp-card-upgrade-btn.is-disabled{background:var(--btn-disabled-bg);box-shadow:inset 0 1px #ffffff24,inset 0 -3px var(--btn-disabled-lip),0 1.5px #3a270c26}
#view.warm-cards-view .mother-unit-grid .camp-card-upgrade-btn.is-disabled :is(.up-txt,.up-price){color:#d9e2ec;text-shadow:0 1px #1b2334}
#view.warm-cards-view .mother-unit-grid .camp-card-upgrade-btn.is-disabled .up-price.is-short{color:#ff9f9f}
#view.warm-cards-view .mother-unit-grid .camp-card-upgrade-btn.is-maxed{background:var(--btn-max-bg);box-shadow:inset 0 1px #c49d55,inset 0 -3px var(--btn-max-lip),0 1.5px #3a270c26}
#view.warm-cards-view .mother-unit-grid .camp-card-upgrade-btn.is-maxed .up-txt{color:var(--btn-max-text)}
#view.warm-cards-view .mother-unit-grid .camp-unit-card.is-locked{background:linear-gradient(#f6f2e8,#ece6d6);border-color:#c9bda5;box-shadow:inset 0 1px #fff9,0 2.5px #d1c5ae}
#view.warm-cards-view .mother-unit-grid .camp-unit-card.is-locked .camp-unit-portrait{background:linear-gradient(#efebe1,#ded7c7);border-color:#b8ae9b;box-shadow:inset 0 1px #fff,0 2px #b9ae96}
#view.warm-cards-view .mother-unit-grid .camp-unit-card.is-locked .camp-unit-portrait img{filter:grayscale(1) contrast(0);opacity:.48;mix-blend-mode:multiply}
#view.warm-cards-view .mother-unit-grid .camp-unit-card.is-locked .camp-unit-body{background:none;min-height:74px;justify-content:flex-start}
#view.warm-cards-view .mother-unit-grid .camp-unit-card.is-locked .camp-unit-name{color:#7a6c57;font-weight:800}
#view.warm-cards-view .mother-unit-grid .camp-unit-unlock-hint{margin:auto 0 4px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:#7a6c57;font:800 11.5px/1.4 var(--font-ui);white-space:normal}
#view.warm-cards-view .camp-lock-badge{left:4px;right:auto;bottom:4px;width:17px;height:19px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:#839170}
#view.warm-cards-view .camp-lock-badge svg{width:17px;height:19px}
/* Keep all six R9 building cards, reduce only line weight and the tray's darkness. */
#view.camp-view.seven-camp .buildings{background:#dfe7c6!important;padding:12px 12px 24px!important;gap:11px!important}
#view .buildings>.camp-building-card.warm-building-card{border:1.5px solid #6e5a3d!important;box-shadow:inset 0 1px #fff,inset 0 -3px #d8be8c,0 3px #6b4b2226!important}
#view .warm-building-card .camp-building-icon{border:1.25px solid #8b7657!important;box-shadow:inset 0 1px #fff8,0 1px #c5ac7833!important}
#view .warm-building-card .camp-building-benefit{border:1px solid #c3ab77!important;box-shadow:inset 0 1px #fff7!important}
#view .warm-building-card .mother-building-costs .orig-cost-chip{border:1.25px solid #8b7657!important;box-shadow:inset 0 -1px #dfc696!important}
#view .warm-building-card .mother-building-action{border-width:2px!important;border-color:#171208!important}
#view .warm-building-card .mother-build-progress{border-width:1.25px!important}
#view .warm-building-card .mother-building-ready{border-width:1.25px!important}
:lang(en) #view.warm-cards-view .mother-unit-grid .camp-unit-name{min-height:32px;display:flex;align-items:center;justify-content:center;font-size:12px;line-height:1.2}
:lang(en) #view.warm-cards-view .mother-unit-grid .camp-card-upgrade-btn{height:41px;min-height:41px;flex-direction:column;gap:1px;padding:2px 3px 5px}
:lang(en) #view.warm-cards-view .mother-unit-grid .camp-card-upgrade-btn .up-txt{font-size:12px}
:lang(en) #view.warm-cards-view .mother-unit-grid .up-price{font-size:12px}
@media(max-width:359px){
 #view.cards-view.warm-cards-view{padding-left:10px;padding-right:10px}
 #view.warm-cards-view .mother-unit-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 8px}
 #view.warm-cards-view .mother-unit-grid>.camp-unit-card{padding:5px}
 #view.warm-cards-view .mother-unit-grid .camp-unit-name{font-size:12.5px}
 #view.warm-cards-view .mother-unit-grid .camp-card-upgrade-btn{height:34px;min-height:34px;padding-inline:2px;gap:2px}
 #view.warm-cards-view .mother-unit-grid .camp-card-upgrade-btn .up-txt{font-size:12.5px}
 #view.warm-cards-view .mother-unit-grid .up-price{font-size:12px;gap:1px}
 #view.warm-cards-view .mother-unit-grid .up-price svg{width:14px;height:14px}
 #view.warm-cards-view .mother-deck-portrait{height:55px}
 #view.warm-cards-view .mother-deck-portrait img{width:50px;height:47px}
 #view.warm-cards-view .mother-deck-slot>b{font-size:11.5px}
 #view.warm-cards-view .mother-cards-heading :is(h2,h3){font-size:17px}
 #view.warm-cards-view .mother-cards-heading small{font-size:11.5px}
 #view .buildings>.warm-building-card{padding:8px!important}
}

/* Remove the obsolete R2 dark divider between the camp and building shelf. */
#appRoot.warm-game #view.seven-camp .buildings{border:0!important;border-top:0!important;box-shadow:none!important}
/* Keep the earlier comfortable card scale instead of stretching wide screens. */
#appRoot.warm-game #view.seven-camp .buildings{width:100%!important;max-width:390px!important;margin-left:auto!important;margin-right:auto!important}
#appRoot.warm-game #view.warm-cards-view .mother-deck-section,#appRoot.warm-game #view.warm-cards-view .mother-collection-section{width:100%;max-width:366px;margin-left:auto;margin-right:auto}
#appRoot.warm-game #view.warm-cards-view .mother-deck-slots{width:100%;max-width:338px;margin-left:auto;margin-right:auto}

/* Gemini reference framing, not a new movement algorithm. Keep the R9 input,
   board, ghost, keep-selection and battle controls intact. */
#appRoot.warm-game .scene-shell {
  position:relative;
  overflow:hidden;
  isolation:isolate;
  border:1px solid #c2ae8a!important;
  border-image:none!important;
  border-radius:17px!important;
  background:#dce8bb!important;
  box-shadow:inset 0 2px 5px #3a2a201f,inset 0 0 0 1px #fffcf066,0 2px #fffdf6e0,0 4px 12px #4e3a1c14!important;
}
#appRoot.warm-game .scene-shell::before,
#appRoot.warm-game .scene-shell::after{content:none!important;display:none!important}
#appRoot.warm-game .scene-shell>canvas{position:absolute;inset:0;width:100%;height:100%;display:block;transform:none!important;filter:none!important;border-radius:inherit}

/* The same native camp composition, 760:930, rather than R9's short crop. */
#appRoot.warm-game .camp-illustration.seven-map{
  position:relative;width:100%;max-width:100%;height:auto!important;
  min-height:430px!important;max-height:none!important;aspect-ratio:760/930;
  flex:none;margin:0 0 12px!important;border:0!important;border-radius:0!important;
  background:#dfe7c6!important;box-shadow:none!important;overflow:hidden;isolation:isolate;
}
#appRoot.warm-game .camp-illustration.seven-map>canvas{position:absolute;inset:0;width:100%;height:100%;border-radius:0!important;transform:none!important;filter:none!important}

/* Give the assembly scene the remaining height above the pinned controls. */
#appRoot.warm-game:has(>#view.forge-view)>#squadBar:not(.castle-command-bar){
  padding-bottom:3px!important;
}
#appRoot.warm-game:has(>#view.forge-view)>#squadBar:not(.castle-command-bar)>#squadSlots{
  padding-bottom:2px!important;
}
#appRoot.warm-game>#view:is(.forge-view,.departure-view)>:is(.forge-scene,.departure-scene){
  width:calc(100% - 16px);height:auto!important;max-height:none!important;
  margin:3px 8px 2px!important;
}
#appRoot.warm-game .forge-view>.forge-scene{
  min-height:150px!important;flex:1 1 0!important;
}
#appRoot.warm-game .departure-view>.departure-scene{
  min-height:180px!important;flex:1 0 180px!important;
}
#appRoot.warm-game .adventure-view>.adventure-scene{
  width:calc(100% - 28px);height:clamp(330px,51dvh,490px)!important;
  min-height:320px!important;max-height:none!important;flex:none!important;
  margin:8px 14px 0!important;border-radius:18px!important;
}
#appRoot.warm-game .launch-view>.scene-shell{
  width:calc(100% - 24px);height:auto!important;min-height:220px!important;
  max-height:320px!important;aspect-ratio:1.44/1;flex:0 1 auto!important;
  margin:0 12px!important;
}

/* Quiet brown stage plaques. Controls retain the root hand-drawn R9 button
   rules; this module never selects back, speed, recruit or upgrade buttons. */
#appRoot.warm-game .scene-tag,
#appRoot.warm-game .scene-foot>span,
#appRoot.warm-game .adventure-overlay>.day-label{
  background:linear-gradient(180deg,#6b5d42d9,#51452fd9)!important;
  border:1px solid #fff7dc55!important;border-radius:10px!important;
  box-shadow:inset 0 1px #ffffff26,0 2px 4px #31241426!important;
  color:#fffdf6!important;text-shadow:0 1px 1px #281a0b80!important;
}
#appRoot.warm-game .scene-head{left:10px;right:10px;top:10px}
#appRoot.warm-game .scene-foot{left:10px;bottom:9px}
#appRoot.warm-game .power-badge{
  background:linear-gradient(180deg,#6e5936f2,#4a3a23f2)!important;
  border:1px solid #c6a66e!important;border-radius:999px!important;
  box-shadow:inset 0 1px #fff8e638,0 2px 6px #1c120829!important;
}
#appRoot.warm-game .power-badge strong{color:#ffe896!important;text-shadow:0 1.5px 2px #180e04a6!important}
#appRoot.warm-game .scene-feedback{
  background:linear-gradient(90deg,#fffef7,#f9f4e8f2)!important;
  border-color:#45b03b!important;color:#23611b!important;
}
#appRoot.warm-game .scene-feedback small{background:#e3f7d8!important;color:#246b1b!important}
#appRoot.warm-game .scene-feedback:is(.upgrade,.is-upgrade){border-left-color:#8858d1!important;color:#593096!important}
#appRoot.warm-game .scene-feedback:is(.upgrade,.is-upgrade) small{background:#f1e6ff!important;color:#593096!important}
#appRoot.warm-game .scene-feedback:is(.is-combo,.is-elite,.is-high-rank){border-left-color:#db9118!important;background:linear-gradient(90deg,#fff6cc,#fbf6e6 88%)!important;color:#804908!important}
#appRoot.warm-game .adventure-stats{padding:10px 14px!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#786953!important}
#appRoot.warm-game .adventure-stats .power-inline b{color:#3f3323!important}
#appRoot.warm-game .adventure-stats .health-box{color:#789264!important}
#appRoot.warm-game .adventure-stats .health-track{background:#e3e7cd!important;border:0!important;box-shadow:inset 0 1px 2px #556a3122!important}
#appRoot.warm-game .adventure-view>.loot-panel,
#appRoot.warm-game .adventure-view>.journey-log{
  margin:0 14px 10px!important;background:linear-gradient(#fffefa,#faf6eb)!important;
  border:1px solid #d9c9ac!important;border-radius:14px!important;
  box-shadow:inset 0 1px #fff,0 3px #c7b89888!important;color:#3f3323!important;
}
#appRoot.warm-game .adventure-view :is(.loot-panel,.journey-log) h3{color:#3f3323!important;text-shadow:none!important}
#appRoot.warm-game .adventure-view .loot-panel h3 span{color:#82926a!important}
#appRoot.warm-game .adventure-view .journey-log :is(p,li){color:#786953!important;text-shadow:none!important}

@media(max-height:740px){
  #appRoot.warm-game .forge-view>.forge-scene{min-height:135px!important}
  #appRoot.warm-game .departure-view>.departure-scene{min-height:155px!important;flex-basis:155px!important}
}
@media(max-width:350px){
  #appRoot.warm-game .camp-illustration.seven-map{min-height:395px!important}
  #appRoot.warm-game .adventure-view>.adventure-scene{width:calc(100% - 20px);margin-inline:10px!important}
  #appRoot.warm-game .adventure-view>.loot-panel,
  #appRoot.warm-game .adventure-view>.journey-log{margin-inline:10px!important}
}
@media(max-height:600px){
  #appRoot.warm-game .forge-view>.forge-scene{min-height:95px!important}
  #appRoot.warm-game .departure-view>.departure-scene{min-height:115px!important;flex-basis:115px!important}
}

/* Scene-adjacent information uses the same warm paper as Gemini. R9 action
   controls (green CTA, cyan recovery, blue multiplier) are left untouched. */
#appRoot.warm-game .departure-view>.departure-controls{
  background:linear-gradient(180deg,#fff9e8,#f0e4c7)!important;
  border:1px solid #d3bd91!important;border-radius:14px!important;
  box-shadow:inset 0 1px #fff,0 3px #c8b38b99!important;color:#4a3518!important;
}
#appRoot.warm-game .departure-view .departure-energy{
  background:#e8edd7!important;border:1px solid #c6d0aa!important;
  box-shadow:inset 0 1px #fff9!important;color:#41682d!important;
}
#appRoot.warm-game .departure-view .departure-energy-status>span{color:#356c25!important;text-shadow:none!important}
#appRoot.warm-game .departure-view .departure-energy-status>span>i{background:#438f2c!important}
#appRoot.warm-game .departure-view .departure-energy.is-tired .departure-energy-status>span{color:#8d601a!important}
#appRoot.warm-game .departure-view .departure-energy.is-tired .departure-energy-status>span>i{background:#b68528!important}
#appRoot.warm-game .departure-view .departure-energy.is-low .departure-energy-status>span{color:#a13c2a!important}
#appRoot.warm-game .departure-view .departure-energy.is-low .departure-energy-status>span>i{background:#c65239!important}
#appRoot.warm-game .m9-factor-heading,
#appRoot.warm-game .m9-factor-heading>span{color:#4a3518!important;text-shadow:none!important}
#appRoot.warm-game .m9-factor-copy{color:#7a684a!important;text-shadow:none!important}
#appRoot.warm-game .forge-panel.recruit-panel-r5{
  background:linear-gradient(180deg,#f5eddc,#e8dbbd)!important;
  border-top:0!important;box-shadow:none!important;
  color:#4a3518!important;
}
#appRoot.warm-game .draft-panel{
  background:linear-gradient(180deg,#fff8e6fa,#eee1c2fa)!important;
  border-top:1px solid #cdbb94!important;box-shadow:inset 0 1px #fff9!important;
  color:#4a3518!important;
}
#appRoot.warm-game .forge-heading h2,
#appRoot.warm-game .draft-title h2{color:#4a3518!important;text-shadow:none!important}
#appRoot.warm-game .forge-heading p,
#appRoot.warm-game .draft-title .eyebrow,
#appRoot.warm-game .double-choice-progress{color:#897044!important;text-shadow:none!important}
#appRoot.warm-game .remaining{
  background:linear-gradient(#fff8d5,#f9e3a1)!important;border:1px solid #d3ae61!important;
  box-shadow:inset 0 1px #fff,0 2px #dfc680!important;color:#8e591c!important;
}
#appRoot.warm-game .remaining small{color:#92703d!important;text-shadow:none!important}
#appRoot.warm-game .remaining b{color:#a75e14!important;text-shadow:none!important}
/* Scene gutters must expose cream/green rather than an older navy view. */
#appRoot.warm-game #view:is(.forge-view,.departure-view,.adventure-view,.launch-view){background:linear-gradient(180deg,#faf6eb,#efe7d5)!important}
#appRoot.warm-game #view.seven-camp{background:#dfe7c6!important}
/* Warm expedition loot trays need ink-colored values as well as headings. */
#appRoot.warm-game #view.adventure-view .loot-panel .loot-value,#appRoot.warm-game #view.adventure-view .loot-panel .loot-value :is(b,strong,span){color:#4b3519!important;text-shadow:none!important}

/* Short confirmations keep a real message area, not a tiny one-line bubble. */
#dialog.mother-modal.r11-basic-dialog>#dialogBody.mother-body{min-height:190px;gap:12px}
#dialog.mother-modal.r11-basic-dialog #dialogBody>.r11-message-space{display:flex;align-items:center;justify-content:center;min-height:88px;margin:4px 0;padding:6px 4px;font-size:14px;line-height:1.6;text-align:center}
#dialog.mother-modal.r11-basic-dialog #dialogBody>.dialog-actions,#dialog.mother-modal.r11-basic-dialog #dialogBody>.mother-btn:last-child{margin-top:auto}
/* A title-less identity dialog has no ribbon-cast top strip. Keep its paper fold. */
#dialog.mother-modal.warm-no-title>#dialogBody.mother-body{background:linear-gradient(135deg,transparent 86%,#e4c888 86%),#ecd8a3!important;box-shadow:none!important}
/* Deeper parchment makes the pale product cards stand forward. */
#appRoot.warm-game[data-view=shop]{background:radial-gradient(ellipse at 35% 0,#f7e7bd55,transparent 68%),repeating-linear-gradient(0deg,#87652503 0 1px,transparent 1px 4px),#dfc484!important}
#appRoot.warm-game #view.shop-view.mother-view{background:transparent!important}
#appRoot.warm-game .shop-offer{border:2px solid #2c2217!important;box-shadow:inset 0 1px #fff9,inset 0 -3px #d8be8c,0 3px 0 #5e492d80,0 5px 7px #66472026!important}
#appRoot.warm-game .shop-offer--starter{border-color:#2c2217!important;box-shadow:inset 0 1px #fff4bd,inset 0 -3px #d2a33f,0 3px 0 #5e492d80,0 5px 7px #66472026!important}
#appRoot.warm-game .shop-offer:active{transform:translateY(1px);box-shadow:inset 0 1px #fff7,inset 0 -2px #d8be8c,0 2px 0 #5e492d80!important}
/* Toasts share the warm information palette wherever the active dialog hosts them. */
#toast.toast{background:#fff4d9f5!important;color:#4a3518!important;border:1.5px solid #9b7b43!important;box-shadow:inset 0 1px #fffaf0,0 3px 0 #9d7c4566,0 6px 14px #44301926!important;text-shadow:none!important;font-family:var(--font-ui)!important;font-weight:800}
/* Construction status sits on yellow paper, with the same readable brown ink. */
#dialog.mother-modal #dialogBody.mother-body .construction-big>span{color:#765122!important;font-size:14px!important;font-weight:800!important;text-shadow:none!important}

/* Warm castle preparation/round information. Board geometry and controls stay R10. */
#appRoot.warm-game #view.castle-view{
  background:linear-gradient(180deg,#faf6eb,#efe7d5)!important;
  color:#4a3518!important;
}
#appRoot.warm-game #view.castle-view .castle-challenge-heading,
#appRoot.warm-game #view.castle-view .castle-challenge-heading>b{
  color:#4a3518!important;text-shadow:none!important;
}
#appRoot.warm-game #view.castle-view .castle-challenge-heading small,
#appRoot.warm-game #view.castle-view .castle-challenge-heading>b>small,
#appRoot.warm-game #view.castle-view .castle-challenge-heading>span{
  color:#7e6235!important;text-shadow:none!important;font-weight:800;
}
#appRoot.warm-game #view.castle-view .castle-lower{
  background:linear-gradient(180deg,#f5eddc,#ecdfc1)!important;
  border:0!important;border-radius:12px;box-shadow:inset 0 1px #fff9,inset 0 0 0 1px #d3be93!important;
  color:#4a3518!important;
}
#appRoot.warm-game #view.castle-view .castle-forge-content{background:none!important;color:#4a3518!important}
#appRoot.warm-game #view.castle-view .castle-forge-heading h2{
  color:#4a3518!important;text-shadow:none!important;font-weight:900;
}
#appRoot.warm-game #view.castle-view .castle-choice-panel{
  background:linear-gradient(180deg,#fff8e6fa,#eee1c2fa)!important;
  color:#4a3518!important;box-shadow:inset 0 1px #fff9!important;
  border:0!important;border-radius:12px;
}
#appRoot.warm-game #view.castle-view .castle-choice-panel>h2{
  color:#4a3518!important;text-shadow:none!important;font-weight:900;
}
#appRoot.warm-game #view.castle-view .castle-stage-controls .castle-keep-count{
  color:#765122!important;text-shadow:none!important;font-family:var(--font-num)!important;font-weight:900;
}
/* Quiet field plaques use brown glass; blue/cyan action buttons remain untouched. */
#appRoot.warm-game #view.castle-view .castle-round-tag,
#appRoot.warm-game #view.castle-view .castle-battle-clock{
  background:linear-gradient(#6b5d42e6,#51452fe6)!important;
  border:1px solid #fff7dc55!important;border-radius:9px!important;
  color:#fffdf6!important;text-shadow:0 1px 1px #281a0b80!important;
  box-shadow:inset 0 1px #ffffff26,0 2px 4px #31241426!important;
}
#appRoot.warm-game #view.castle-view .castle-score-strip .castle-score{
  background:#f8eed3!important;border:1px solid #c9ad74!important;border-radius:10px!important;
  color:#4a3518!important;box-shadow:inset 0 1px #fff8!important;
}
#appRoot.warm-game #view.castle-view .castle-score-target,
#appRoot.warm-game #view.castle-view .castle-score-side small{
  color:#7e6235!important;text-shadow:none!important;font-weight:800;
}
#appRoot.warm-game #view.castle-view .castle-score-side b{
  color:#28703b!important;text-shadow:none!important;font-family:var(--font-num)!important;font-weight:900;
}
#appRoot.warm-game #view.castle-view .castle-score-side.enemy b{color:#ac493a!important}
#appRoot.warm-game #view.castle-view .castle-score-side i em{background:#e1d3b7!important;border-color:#bda780!important}
#appRoot.warm-game #view.castle-view .castle-score-side.ally i em.filled{background:#4d9a49!important;border-color:#367831!important}
#appRoot.warm-game #view.castle-view .castle-score-side.enemy i em.filled{background:#cf6b57!important;border-color:#aa4b3b!important}
#appRoot.warm-game #view.castle-view .castle-battle-numbers,
#appRoot.warm-game #view.castle-view .castle-battle-power{color:#7e6235!important;text-shadow:none!important}
#appRoot.warm-game #view.castle-view .castle-battle-numbers b,
#appRoot.warm-game #view.castle-view .castle-battle-power b{color:#28703b!important;text-shadow:none!important;font-family:var(--font-num)!important;font-weight:900}
#appRoot.warm-game #view.castle-view .castle-battle-numbers>span:last-child b,
#appRoot.warm-game #view.castle-view .castle-battle-power>span:last-child b{color:#ac493a!important}
#appRoot.warm-game #view.castle-view .castle-round-result{
  background:#f8eed3f2!important;border:1.5px solid #b49b63!important;border-radius:11px!important;
  color:#276837!important;box-shadow:inset 0 1px #fff9,0 3px 8px #34200e22!important;text-shadow:none!important;
}
#appRoot.warm-game #view.castle-view .castle-round-result.is-enemy{background:#f9e8d8f2!important;color:#a44d3b!important;border-color:#c5a07c!important}
#appRoot.warm-game #view.castle-view .castle-result{
  background:linear-gradient(#fff8e6,#ecdcba)!important;border:1.5px solid #b99a62!important;
  color:#4a3518!important;box-shadow:inset 0 1px #fff9,0 3px #d0ba8c!important;
}
#appRoot.warm-game #view.castle-view .castle-result :is(h2,.castle-rewards,.castle-rewards>span){color:#4a3518!important;text-shadow:none!important}
#appRoot.warm-game #view.castle-view .castle-result-title p,
#appRoot.warm-game #view.castle-view .castle-result-label,
#appRoot.warm-game #view.castle-view .castle-pending-note{color:#7e6235!important;text-shadow:none!important}

/* Fixed 44px end caps: the face can grow without widening the folds. */
.r11-ribbon{--r11-face:#0862ea;--r11-tail:#0756d4;--r11-fold:#034697;--r11-ink:#101017;position:relative!important;display:block!important;width:100%;height:51px!important;min-height:51px!important;aspect-ratio:auto!important;max-width:none!important;margin:0!important;overflow:visible!important;isolation:isolate;filter:none!important}
.r11-ribbon[data-ribbon-tone="orange"]{--r11-face:#ff7f00;--r11-tail:#df6b00;--r11-fold:#ab4f00}
.r11-ribbon[data-ribbon-tone="purple"]{--r11-face:#5400d6;--r11-tail:#4500b0;--r11-fold:#2e0074}
.r11-ribbon[data-ribbon-tone="red"]{--r11-face:#e82717;--r11-tail:#cb150d;--r11-fold:#981109}
.r11-ribbon>.r11-ribbon-middle{position:absolute!important;inset:0 43px!important;width:calc(100% - 86px)!important;height:51px!important;max-width:none!important;z-index:0;overflow:visible}
.r11-ribbon>.r11-ribbon-cap{position:absolute!important;top:0!important;width:44px!important;height:51px!important;max-width:none!important;z-index:1;overflow:visible}
.r11-ribbon>.r11-ribbon-cap-left{left:0!important}
.r11-ribbon>.r11-ribbon-cap-right{right:0!important;transform:scaleX(-1)!important}
.r11-ribbon>.rh-ribbon-title{position:absolute!important;inset:3px 40px auto!important;display:flex!important;align-items:center;justify-content:center;max-width:none!important;height:42px!important;margin:0!important;padding:0!important;transform:none!important;color:#fff!important;font-family:var(--font-ui)!important;font-size:clamp(17px,4.9vw,21px)!important;font-weight:900!important;line-height:1.08!important;letter-spacing:.3px!important;text-align:center;text-shadow:0 1.5px #092953b3!important;z-index:3;white-space:nowrap}
.r11-ribbon.r11-with-actor>.rh-ribbon-title{left:72px!important}
.r11-ribbon>.rh-ribbon-bust-mask{position:absolute!important;inset:-14px auto auto 15px!important;width:57px!important;height:63px!important;z-index:4;overflow:hidden;pointer-events:none}
.r11-ribbon>.rh-ribbon-bust-mask>img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:bottom!important;transform:translateY(3px)!important;filter:drop-shadow(0 1px 1px #0005)}
.m9-dialog-header .r11-ribbon>.rh-ribbon-title,.m9-report-header .r11-ribbon>.rh-ribbon-title{right:64px!important}
.m9-dialog-header .r11-ribbon.r11-with-actor>.rh-ribbon-title,.m9-report-header .r11-ribbon.r11-with-actor>.rh-ribbon-title{left:68px!important;right:62px!important}

/* The red X sits within the front strip; the broad hit target stays transparent. */
#dialog.mother-modal:not(.warm-no-title)>.close,#dialog.mother-modal:not(.warm-no-title)>.rh-modal-close-btn,.m9-report-modal>.rh-modal-close-btn{top:-11px!important;right:3px!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;max-width:34px!important;max-height:34px!important;border-width:2.2px!important;border-radius:9px!important;font-size:26px!important;box-shadow:inset 0 1.5px #ff7a70,inset 0 -2.5px #b81d13,0 1.5px 2px #0005!important;z-index:160!important}
#dialog.mother-modal:not(.warm-no-title)>.close::before,#dialog.mother-modal:not(.warm-no-title)>.rh-modal-close-btn::before,.m9-report-modal>.rh-modal-close-btn::before{content:"";position:absolute;inset:-5px;background:none;border:0}
#dialog[data-kind="chestrewards"]:not(.rh-unlock-playing) .m9-receipt .r11-ribbon>.rh-paper-reward-close{position:absolute!important;inset:7px 22px auto auto!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;max-width:34px!important;max-height:34px!important;padding:0!important;border:2.2px solid #101017!important;border-radius:9px!important;box-shadow:inset 0 1.5px #ff7a70,inset 0 -2.5px #b81d13,0 1.5px 2px #0005!important;line-height:1!important;font-size:26px!important;transform:none!important;z-index:160!important}
#dialog[data-kind="chestrewards"] .m9-receipt .r11-ribbon>.rh-ribbon-title{right:66px!important;left:42px!important}
.warm-section-ribbon>.r11-ribbon>.rh-ribbon-title{font-size:20px!important}

/* Victory reuses the same geometry rather than stretching a complete bitmap. */
.castle-victory-content h2.r11-victory-title{display:block!important;width:min(350px,100%)!important;height:51px!important;min-height:51px!important;margin:0 auto!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;overflow:visible!important}
.castle-victory-content h2.r11-victory-title::before,.castle-victory-content h2.r11-victory-title::after{display:none!important;content:none!important}
.castle-victory-content h2.r11-victory-title .rh-ribbon-title{font-size:clamp(21px,6vw,25px)!important}

/* A blue title and warm, quiet information plaques for first acquisitions. */
#dialog .rh-unlock-caption.r11-unlock-caption{display:block!important;width:min(362px,100%)!important;height:51px!important;min-height:51px!important;margin:0 auto 12px!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;text-shadow:none!important}
#dialog .rh-unlock-caption.r11-unlock-caption .rh-ribbon-title{font-size:22px!important}
#dialog .rh-unlock-name{display:flex!important;align-items:center;justify-content:center;position:relative;width:min(290px,88%)!important;min-height:49px!important;height:auto!important;margin:4px auto 7px!important;padding:8px 18px!important;background:#f7e6b7!important;border:2px solid #45371d!important;border-radius:9px!important;box-shadow:inset 0 0 0 2px #ffefc9,0 3px 0 #a17b3e!important;color:#5b3d1d!important;font-family:var(--font-ui)!important;font-size:24px!important;font-weight:900!important;line-height:1.2!important;text-shadow:none!important;transform:none!important;isolation:isolate}
#dialog .rh-unlock-name::before,#dialog .rh-unlock-name::after{display:none!important;content:none!important}
#dialog .rh-unlock-skill{display:flex!important;align-items:center;justify-content:center;width:min(300px,90%)!important;max-width:300px!important;min-height:38px!important;height:auto!important;margin:0 auto 7px!important;padding:7px 12px!important;background:#e6c98c!important;border:1px solid #856737!important;border-radius:7px!important;box-shadow:inset 0 1px #fff0c8!important;color:#4c351b!important;font-family:var(--font-ui)!important;font-size:14px!important;font-weight:800!important;line-height:1.4!important;text-shadow:none!important;transform:none!important}
#dialog .rh-unlock-skill:empty{display:none!important}
#dialog .rh-reveal-skip{border:2.5px solid #101017!important;border-radius:10px!important;background:var(--nav-navy-face,#004484)!important;box-shadow:inset 0 1.5px #ffffff70,inset 0 -3.5px var(--nav-navy-lip,#002b57),0 2px 0 #0007!important;color:#fff!important;font-family:var(--font-ui)!important;font-weight:900!important;text-shadow:0 1px #00203d!important;outline:none!important}
#dialog .rh-reveal-skip:active{transform:translateY(2px)!important;box-shadow:inset 0 1px #ffffff50,inset 0 -1.5px var(--nav-navy-lip,#002b57)!important}
@media(max-width:350px){
 .r11-ribbon>.rh-ribbon-title{font-size:17px!important}
 #dialog.mother-modal:not(.warm-no-title)>.close,#dialog.mother-modal:not(.warm-no-title)>.rh-modal-close-btn,.m9-report-modal>.rh-modal-close-btn{top:-10px!important;right:4px!important;width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;max-width:32px!important;max-height:32px!important;font-size:24px!important}
 #dialog[data-kind="chestrewards"]:not(.rh-unlock-playing) .m9-receipt .r11-ribbon>.rh-paper-reward-close{top:8px!important;width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;max-width:32px!important;max-height:32px!important;font-size:24px!important}
 #dialog .rh-unlock-caption.r11-unlock-caption .rh-ribbon-title{font-size:20px!important}
}

/* 1. Hide the rail, preserving the native scrolling and full content width. */
html,body,body *{scrollbar-width:none!important;scrollbar-gutter:auto!important;-ms-overflow-style:none!important}
*::-webkit-scrollbar{display:none!important;width:0!important;height:0!important;background:transparent!important}

/* 3. Map thumbnails scale with their windows rather than showing one corner. */
#dialog.mother-modal .route-choice .route-image{width:112px!important;height:74px!important;flex:0 0 112px!important;border-radius:9px;overflow:hidden!important}
#dialog.mother-modal .route-choice .route-image>img,#appRoot.warm-game .team-art>img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:center!important}
#dialog.mother-modal .route-choice{gap:8px!important}
#dialog.mother-modal .route-choice>span:nth-child(2){flex:1 1 auto;min-width:0}
#dialog.mother-modal .route-choice strong{white-space:normal;overflow-wrap:anywhere}
#dialog.mother-modal .route-choice .route-icon{width:24px!important;flex:0 0 24px!important;margin-left:auto!important;margin-right:0!important}

/* 4. The HUD floats above the scroll surface; initial content keeps its space.
 * A visible queue/header retains its own safety space, so the game board and
 * the existing 76px dock keep the same working area as R11. */
#appRoot.warm-game>.hud{position:absolute!important;inset:0 0 auto!important;height:calc(50px + env(safe-area-inset-top,0px))!important;min-height:50px!important;padding-top:calc(7px + env(safe-area-inset-top,0px))!important;pointer-events:none;isolation:isolate}
#appRoot.warm-game>.hud>*{pointer-events:auto}
#appRoot.warm-game:not(.camp-mode)>.hud::before{content:""!important;display:block!important;position:absolute;inset:0 0 -22px!important;z-index:-1;pointer-events:none;background:#faf6eb;mask-image:linear-gradient(180deg,#000 0%,#000 22%,#000b 52%,#0004 80%,transparent 100%);-webkit-mask-image:linear-gradient(180deg,#000 0%,#000 22%,#000b 52%,#0004 80%,transparent 100%)}
#appRoot.warm-game[data-view=shop]>.hud::before{background:radial-gradient(ellipse at 35% 0,#f7e7bd55,transparent 68%),repeating-linear-gradient(0deg,#87652503 0 1px,transparent 1px 4px),#dfc484;background-size:100% var(--game-h);background-position:0 0}
#appRoot.warm-game:not(.camp-mode)>#squadBar:not([hidden]){padding-top:55px!important}
#appRoot.warm-game:not(.camp-mode)>#squadBar[hidden]~#rhPageHeader:not([hidden]){margin-top:52px!important}
#appRoot.warm-game:not(.camp-mode)>#squadBar[hidden]~#rhPageHeader[hidden]+#view{padding-top:62px!important;scroll-padding-top:62px}
/* Fixed title strips keep their color; the fade ends above their front face. */
#appRoot.warm-game:not(.camp-mode):has(>#squadBar[hidden]):has(>#rhPageHeader:not([hidden]))>.hud::before{bottom:0!important}

/* 5. Original fitHud measures this actual, fixed-width inner row. */
#appRoot.warm-game .hud .resource .resource-amounts{flex:1 1 0!important;width:0!important;max-width:none!important;gap:1.5px!important;justify-content:flex-end!important}
#appRoot.warm-game .hud .resource small::before{content:none!important;display:none!important}
/* Desktop short windows can contain the same 320px game as a phone. Query
 * the game width, rather than only the browser width, for its inner type. */
@container game (max-width:359px){
 #appRoot.warm-game .hud{padding-inline:9px!important;gap:5px}
 #appRoot.warm-game #resources{gap:4px}
 #appRoot.warm-game .hud .resource.mother-resource{padding-inline:3px!important;gap:2px!important}
 #appRoot.warm-game .hud .resource>.mother-icon{width:16px!important;height:16px!important;flex-basis:16px!important}
 #appRoot.warm-game .hud .resource b{font-size:12.5px!important}
 #appRoot.warm-game .hud .resource small{font-size:9.5px!important}
}

@media(max-width:350px){
 #dialog.mother-modal .route-choice .route-image{width:96px!important;height:63.43px!important;flex-basis:96px!important}
 #dialog.mother-modal .route-choice{gap:7px!important}
 #dialog.mother-modal .route-choice strong{font-size:14px!important;line-height:1.3}
 #dialog.mother-modal .route-choice .route-icon{width:20px!important;flex-basis:20px!important}
}
/* Legacy short-window rules made views escape their fixed-height app. Keep the
 * existing dock in view, and let the content scroll within its available area. */
@media(max-height:600px){
 #appRoot.warm-game{overflow:hidden!important}
 #appRoot.warm-game>#view{flex:1 1 0!important;min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important}
 #appRoot.warm-game>#view.forge-view{display:flex!important}
 #appRoot.warm-game>#mainNav{position:relative!important;bottom:auto!important}
}
@media(min-width:650px) and (max-height:600px){
 #appRoot.warm-game{height:calc(100dvh - 36px)!important;min-height:0!important}
}

/* 02. Deployed cards own the drag; the collection still scrolls vertically. */
#appRoot.warm-game .mother-deck-slot{
  touch-action:none!important;
  user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;
}
#appRoot.warm-game .mother-deck-slot :is(img,svg){-webkit-user-drag:none;user-select:none;-webkit-user-select:none}
#appRoot.warm-game .mother-unit-grid [data-drag-unit]{
  touch-action:pan-y!important;
  user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;
}
#appRoot.warm-game .mother-unit-grid [data-drag-unit] :is(img,svg){-webkit-user-drag:none}

/* 06. The dialog wallet matches the already approved warm HUD treatment. */
#dialog.mother-modal>.modal-resource-wallet .context-gems{
  height:34px!important;min-height:34px!important;
  padding:4px 8px!important;gap:5px;
  border:1px solid #fffcf4ad!important;border-radius:10px!important;
  background:linear-gradient(180deg,#624f3885,#4e3d2b94)!important;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  box-shadow:inset 0 1px #ffffff6b,0 3px 9px #2a1e0e2e!important;
  color:#fff!important;font-weight:850!important;
  text-shadow:0 1px 2px #221608a8,0 0 4px #22160847;
}
#dialog.mother-modal>.modal-resource-wallet .context-gems b{
  color:#fff!important;font-size:17px!important;font-weight:850!important;
}
#dialog.mother-modal>.modal-resource-wallet .context-gems>span{
  color:#82f76e!important;font-size:17px!important;font-weight:900!important;
}

/* 07. Keep the 84% portrait safety margin; only the character and shadow move. */
#dialog.mother-modal .unit-detail-portrait{isolation:isolate}
#dialog.mother-modal .unit-detail-portrait::after{
  content:""!important;display:block!important;position:absolute;
  left:22%;right:22%;bottom:7px;height:7px;border-radius:50%;
  background:radial-gradient(ellipse at center,#2c1e0c42,transparent 74%);
  pointer-events:none;z-index:0;
  animation:r12-unit-popup-shadow 1.8s ease-in-out infinite!important;
}
#dialog.mother-modal .unit-detail-portrait img{
  position:relative;z-index:1;transform-origin:50% 78%;will-change:transform;
  filter:drop-shadow(0 3px 3px #24180a3d);
  animation:r12-unit-popup-lively 1.8s ease-in-out infinite!important;
}
@keyframes r12-unit-popup-lively{
  0%,100%{transform:translateY(3px) rotate(-3.8deg) scale(1.055,.935)}
  25%{transform:translateY(-2.5px) rotate(1.2deg) scale(.965,1.035)}
  50%{transform:translateY(3px) rotate(3.8deg) scale(1.055,.935)}
  75%{transform:translateY(-2.5px) rotate(-1.2deg) scale(.965,1.035)}
}
@keyframes r12-unit-popup-shadow{
  0%,50%,100%{transform:scaleX(1.08) scaleY(1);opacity:.92}
  25%,75%{transform:scaleX(.74) scaleY(.76);opacity:.46}
}

/* 08. Retain every drawn face/lip; add only short interaction transitions. */
#appRoot.warm-game :is(.mother-btn,.camp-card-upgrade-btn,.mother-building-action,.rh-btn-single),
#dialog :is(.mother-btn,.camp-card-upgrade-btn,.rh-btn-single,.rh-reveal-skip){
  transition:transform .1s ease-out,filter .12s ease-out,box-shadow .1s ease-out;
}
#appRoot.warm-game :is(.mother-btn,.camp-card-upgrade-btn,.mother-building-action,.rh-btn-single):active:not(:disabled):not([data-unavailable=true]):not([aria-disabled=true]):not(.is-disabled):not(.is-maxed),
#dialog :is(.mother-btn,.camp-card-upgrade-btn,.rh-btn-single,.rh-reveal-skip):active:not(:disabled):not([data-unavailable=true]):not([aria-disabled=true]):not(.is-disabled):not(.is-maxed){
  transform:translateY(2px) scale(.99)!important;
}
#appRoot.warm-game #mainNav>.camp-nav-tab{transition:color .15s ease-out}
#appRoot.warm-game #mainNav>.camp-nav-tab>:is(img,svg){
  transform:scale(1)!important;transform-origin:50% 50%;
  transition:transform .16s cubic-bezier(.2,.85,.3,1.2),filter .16s ease-out;
}
#appRoot.warm-game #mainNav>.camp-nav-tab>strong{
  transform:scale(1);transition:transform .16s ease-out,color .15s ease-out;
}
#appRoot.warm-game #mainNav>.camp-nav-tab.selected>:is(img,svg){transform:translateY(-2.5px) scale(1.1)!important}
#appRoot.warm-game #mainNav>.camp-nav-tab.selected>strong{transform:translateY(-1.5px) scale(1.03)}
#appRoot.warm-game #mainNav>.camp-nav-tab:active:not(:disabled)>:is(img,svg){transform:translateY(0) scale(.97)!important}
#appRoot.warm-game #helpButton{transition:transform .1s ease-out,filter .12s ease-out}
#appRoot.warm-game #helpButton:active:not(:disabled){transform:translateY(1.5px) scale(.96)!important}

/* 09. Reuse the original feedback clocks: arrive, hold, then fade away. */
#appRoot.warm-game #forgeHeading .scene-feedback{animation:feedback-pop 1.3s ease both!important}
#appRoot.warm-game #forgeHeading .scene-feedback.is-high-rank{animation:elite-feedback 1.15s ease both!important}

@media(prefers-reduced-motion:reduce){
  #dialog.mother-modal .unit-detail-portrait img{animation:none!important;transform:none!important;will-change:auto}
  #dialog.mother-modal .unit-detail-portrait::after{animation:none!important;transform:none!important;opacity:.68}
  #appRoot.warm-game :is(.mother-btn,.camp-card-upgrade-btn,.mother-building-action,.rh-btn-single),
  #dialog :is(.mother-btn,.camp-card-upgrade-btn,.rh-btn-single,.rh-reveal-skip),
  #appRoot.warm-game #mainNav>.camp-nav-tab,
  #appRoot.warm-game #mainNav>.camp-nav-tab>:is(img,svg,strong),
  #appRoot.warm-game #helpButton{transition:none!important}
  #appRoot.warm-game #mainNav>.camp-nav-tab>:is(img,svg,strong),
  #appRoot.warm-game #mainNav>.camp-nav-tab.selected>:is(img,svg,strong){transform:none!important}
  #appRoot.warm-game #forgeHeading .scene-feedback,
  #appRoot.warm-game #forgeHeading .scene-feedback.is-high-rank{animation:none!important}
}

/* The title joins the shelf; only untitled product gaps are tightened. */
#appRoot.warm-game .mother-chest-shelf{margin-bottom:0!important}
#appRoot.warm-game .r13-chest-title{display:block;grid-column:1/-1;width:100%;height:51px;margin:0 0 7px!important;padding:0!important;border:0;background:none;box-shadow:none}
#appRoot.warm-game .shop-front>.mother-chest-shelf+.shop-featured,
#appRoot.warm-game .shop-front>.mother-chest-shelf+.shop-offer--starter{margin-top:-11px}
#appRoot.warm-game .shop-front>.shop-featured+.shop-offer--starter,
#appRoot.warm-game .shop-front>.shop-offer--starter+.shop-featured{margin-top:-8px}
#appRoot.warm-game[data-view=shop]>.hud::before{bottom:-12px!important}

/* Card acquisitions sit over the previous scene, without the old yellow receipt
 * or sequential theatre. All earned cards share one scrollable, readable grid. */
#dialog[data-kind=chestrewards]{position:fixed!important;inset:0!important;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important}
#dialog[data-kind=chestrewards]::before,#dialog[data-kind=chestrewards]::after{display:none!important;content:none!important}
#dialog[data-kind=chestrewards]>#dialogBody{display:flex!important;align-items:stretch!important;justify-content:center!important;width:100%!important;height:100%!important;max-height:none!important;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;overflow:hidden!important}
#dialog[data-kind=chestrewards]>.close{display:none!important}
#dialog[data-kind=chestrewards] .r13-card-reward-stage{position:relative;display:flex;flex-direction:column;align-items:stretch;isolation:isolate;width:min(500px,100%);height:100%;max-height:none;min-height:0;margin:0 auto;padding:max(26px,env(safe-area-inset-top)) 18px max(22px,env(safe-area-inset-bottom));color:#fff;text-align:center;gap:0}
#dialog[data-kind=chestrewards] .r13-card-reward-stage::before{content:"";display:block;position:fixed;inset:0;width:auto;height:auto;transform:none;z-index:-2;pointer-events:none;background:radial-gradient(ellipse at 50% 42%,#112e425c,#07121bb8 75%)}
#dialog[data-kind=chestrewards] .r13-card-reward-stage::after{content:"";position:absolute;z-index:-1;pointer-events:none;inset:8% -50% 12%;background:repeating-conic-gradient(from -10deg at 50% 45%,#ffeab716 0 8deg,transparent 8deg 26deg);mask-image:radial-gradient(ellipse,#0008,transparent 64%);-webkit-mask-image:radial-gradient(ellipse,#0008,transparent 64%)}
/* R6 used this same pseudo-element as a filled parchment border-image. Clear
 * that frame explicitly so the scene, rather than a stretched panel, is behind
 * the individually sized cards. */
#dialog[data-kind=chestrewards] #dialogBody .r13-card-reward-stage{position:relative!important;inset:auto!important;max-width:500px!important;transform:none!important;filter:none!important;overflow:visible!important}
#dialog[data-kind=chestrewards] #dialogBody .r13-card-reward-stage::before{content:""!important;display:block!important;position:fixed!important;inset:0!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;transform:none!important;z-index:-2!important;pointer-events:none!important;border:0!important;border-image:none!important;border-radius:0!important;box-shadow:none!important;background:radial-gradient(ellipse at 50% 42%,#112e426e,#07121bcc 75%)!important;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);filter:none!important}
#dialog[data-kind=chestrewards] .r13-card-reward-stage>.rp-heading{display:block!important;position:relative!important;inset:auto!important;flex:none!important;width:100%!important;height:51px!important;min-height:51px!important;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;overflow:visible!important;z-index:4}
#dialog[data-kind=chestrewards] .r13-card-reward-stage>.rp-heading::before,#dialog[data-kind=chestrewards] .r13-card-reward-stage>.rp-heading::after{display:none!important;content:none!important}
#dialog[data-kind=chestrewards] .r13-card-reward-stage .r11-ribbon>.rh-ribbon-title{left:40px!important;right:62px!important;font-size:clamp(18px,5vw,23px)!important}
#dialog[data-kind=chestrewards] .r13-card-reward-stage .r13-reward-close{position:absolute!important;inset:7px 21px auto auto!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;max-width:34px!important;max-height:34px!important;padding:0!important;border:2px solid #101017!important;border-radius:9px!important;background:#ff3b30!important;box-shadow:inset 0 1.5px #ff7a70,inset 0 -2.5px #b81d13,0 1.5px 2px #0005!important;font:900 26px/1 var(--font-ui)!important;color:#fff!important;text-shadow:0 1px #0006!important;transform:none!important;display:grid!important;place-items:center;z-index:10}
#dialog[data-kind=chestrewards] .r13-reward-summary{flex:none;margin:13px 0 7px;padding:0 8px;font:800 14px/1.4 var(--font-ui);color:#fff5d9;text-shadow:0 1px 2px #0009}
#dialog[data-kind=chestrewards] .r13-card-reward-stage>.rp-results-scroll{display:block!important;position:relative;flex:1 1 0!important;min-height:0!important;max-height:none!important;width:100%!important;margin:0!important;padding:10px 4px 15px!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:none!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain}
#dialog[data-kind=chestrewards] .r13-card-reward-stage .rp-results-grid{display:grid!important;grid-template-columns:repeat(var(--rp-columns),minmax(0,1fr))!important;align-items:stretch!important;align-content:center!important;justify-content:center;gap:18px 12px!important;min-height:100%;width:100%!important;max-width:none!important;margin:0 auto!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
#dialog[data-kind=chestrewards] .r13-card-reward-stage .r13-reward-card{--r13-rarity:#527f3f;position:relative!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;width:100%!important;max-width:none!important;min-width:0!important;min-height:0!important;height:auto!important;margin:0!important;padding:5px!important;border:2px solid #241b13!important;border-radius:12px!important;background:linear-gradient(135deg,#fff2c6 0%,#edd29a 74%,#dcc089 100%)!important;box-shadow:inset 0 0 0 2px #fff3ce,inset 0 0 0 3px #c8ad73,0 4px 0 #6b522f,0 7px 10px #0006!important;overflow:visible!important;color:#49321d!important;transform-origin:50% 65%;text-shadow:none!important}
#dialog[data-kind=chestrewards] .r13-reward-card.rarity-rare{--r13-rarity:#237bb3}
#dialog[data-kind=chestrewards] .r13-reward-card.rarity-epic{--r13-rarity:#8452bb}
#dialog[data-kind=chestrewards] .r13-reward-rarity{display:block;position:relative;flex:none;align-self:center;max-width:100%;min-height:20px;padding:3px 8px;margin:-1px 0 1px;border-radius:0 0 7px 7px;background:var(--r13-rarity);border:1px solid #261c1477;color:#fff;font:900 11px/1.05 var(--font-ui);letter-spacing:.2px;text-shadow:0 1px #0005;z-index:2}
#dialog[data-kind=chestrewards] .r13-reward-card .rp-portrait{display:flex!important;align-items:center;justify-content:center;position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;aspect-ratio:1;max-height:none!important;padding:0!important;margin:0!important;border:0!important;border-radius:6px!important;background:radial-gradient(ellipse at 50% 55%,#fff8e3,#fff4ce00 75%)!important;box-shadow:none!important;overflow:visible!important;transform:none!important}
#dialog[data-kind=chestrewards] .r13-reward-card .rp-portrait-art{display:flex!important;align-items:center;justify-content:center;position:relative!important;inset:auto!important;width:88%!important;height:78%!important;align-self:flex-start;margin:2% 0 0!important;padding:0!important;z-index:1}
#dialog[data-kind=chestrewards] .r13-reward-card .rp-portrait-art img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;transform:none!important;filter:drop-shadow(0 3px 2px #6c4b3038)!important}
#dialog[data-kind=chestrewards] .r13-reward-card .rp-card-copy{display:flex!important;flex:1 1 auto;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px!important;position:relative!important;width:100%!important;min-width:0!important;margin:0!important;padding:2px 2px 7px!important;border:0!important;background:none!important;color:#49321d!important;overflow:visible!important}
#dialog[data-kind=chestrewards] .r13-reward-card .camp-unit-name{display:block;width:100%;min-height:1.2em;margin:0;padding:0;font:900 clamp(12px,3.5vw,17px)/1.2 var(--font-ui);color:#49321d!important;text-shadow:none!important;white-space:normal;overflow-wrap:anywhere}
#dialog[data-kind=chestrewards] .r13-reward-quantity{position:absolute!important;inset:auto 2px 0 auto!important;display:block;margin:0;padding:3px 5px;border:1px solid #9e7136;border-radius:7px;background:#ffedbb;font:900 clamp(17px,4.5vw,24px)/1.05 var(--font-num);color:#8f5010;text-shadow:0 1px #fff6d0;white-space:nowrap;z-index:3}
#dialog[data-kind=chestrewards] .r13-reward-status{display:grid;place-items:center;position:absolute;left:2px;bottom:1px;width:21px;height:21px;margin:0;padding:0;border:1.5px solid #438338;border-radius:50%;background:#c8ec9d;color:#2d6728;font:900 17px/1 var(--font-ui);text-shadow:none;z-index:3}
#dialog[data-kind=chestrewards] .r13-reward-status.is-ready{border-color:#73a04d;background:#d2eab1;color:#2d6728}
#dialog[data-kind=chestrewards] .r13-reward-card .r13-reward-new{display:grid!important;place-items:center;position:absolute!important;left:auto!important;right:-9px!important;top:27px!important;bottom:auto!important;inset-inline-start:auto!important;width:42px!important;height:32px!important;margin:0!important;padding:0!important;border:2px solid #402018!important;border-radius:9px!important;background:#f04430!important;box-shadow:inset 0 1px #ff9270,0 2px #962d1c!important;color:#fff25e!important;font:900 12px/1 var(--font-ui)!important;letter-spacing:-.4px;text-shadow:0 1px #9b2918!important;transform:rotate(10deg)!important;z-index:5!important}
#dialog[data-kind=chestrewards] .r13-card-reward-stage[data-reward-count="1"] .rp-results-grid{grid-template-columns:minmax(0,210px)!important;max-width:220px!important}
#dialog[data-kind=chestrewards] .r13-card-reward-stage[data-reward-count="1"] .r13-reward-rarity{font-size:14px;padding:5px 15px}
#dialog[data-kind=chestrewards] .r13-card-reward-stage[data-reward-count="1"] .camp-unit-name{font-size:23px}
#dialog[data-kind=chestrewards] .r13-card-reward-stage[data-reward-count="1"] .r13-reward-quantity{font-size:28px;padding:4px 8px}
#dialog[data-kind=chestrewards] .r13-card-reward-stage[data-reward-count="1"] .r13-reward-status{font-size:12px}
#dialog[data-kind=chestrewards] .r13-card-reward-stage>.rp-footer{display:flex!important;align-items:stretch;justify-content:center;position:relative!important;inset:auto!important;flex:none!important;gap:10px!important;width:100%!important;min-height:50px;margin:0!important;padding:13px 3px 0!important;border:0!important;background:none!important;box-shadow:none!important}
#dialog[data-kind=chestrewards] .r13-card-reward-stage>.rp-footer>.mother-btn{flex:1 1 0;min-width:0;width:0!important;max-width:none!important;height:50px!important;min-height:50px!important;margin:0!important;padding-inline:5px!important;font-size:17px!important}
#dialog[data-kind=chestrewards] .r13-card-reward-stage>.rp-footer>[hidden]{display:none!important}
#dialog[data-kind=chestrewards] .r13-card-reward-stage>.rp-opening{display:none!important}
#dialog[data-kind=chestrewards] .r13-card-reward-stage.is-animating .rp-card{animation:r13-card-acquired .4s var(--card-delay) cubic-bezier(.2,.85,.3,1.15) both!important}
@keyframes r13-card-acquired{0%{opacity:0;transform:translateY(24px) scale(.78) rotate(-3deg)}65%{opacity:1;transform:translateY(-3px) scale(1.025) rotate(0)}100%{opacity:1;transform:none}}
@media(max-width:350px){
 #dialog[data-kind=chestrewards] .r13-card-reward-stage{padding-inline:14px}
 #dialog[data-kind=chestrewards] .r13-card-reward-stage .rp-results-grid{gap:14px 8px!important}
 #dialog[data-kind=chestrewards] .r13-reward-card .r13-reward-new{width:35px!important;height:28px!important;right:-6px!important;font-size:10px!important}
 #dialog[data-kind=chestrewards] .r13-card-reward-stage .r13-reward-close{top:8px!important;width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;font-size:24px!important}
 #dialog[data-kind=chestrewards] .r13-reward-summary{font-size:12.5px;margin-top:10px}
}
@media(max-height:600px){
 #dialog[data-kind=chestrewards] .r13-card-reward-stage{padding-top:12px;padding-bottom:12px}
 #dialog[data-kind=chestrewards] .r13-card-reward-stage[data-reward-count="1"] .rp-results-grid{grid-template-columns:minmax(0,155px)!important}
 #dialog[data-kind=chestrewards] .r13-card-reward-stage[data-reward-count="1"] .camp-unit-name{font-size:18px}
 #dialog[data-kind=chestrewards] .r13-card-reward-stage[data-reward-count="1"] .r13-reward-quantity{font-size:25px}
 #dialog[data-kind=chestrewards] .r13-card-reward-stage>.rp-footer{padding-top:8px!important}
}
@media(prefers-reduced-motion:reduce){
 #dialog[data-kind=chestrewards] .r13-card-reward-stage.is-animating .rp-card{animation:none!important;opacity:1!important;transform:none!important}
}

/* Clear card progress: rounded inset track, colored fill, quiet highlight. */
#view.warm-cards-view .mother-unit-grid .camp-shard-meter{height:21px!important;border:1.5px solid #182b35!important;border-radius:7px!important;background:#294354!important;box-shadow:inset 0 2px 3px #10222b99,0 1px #fff9!important;isolation:isolate}
#view.warm-cards-view .mother-unit-grid .camp-shard-fill{border-radius:5px!important;background:linear-gradient(#75d8ff 0%,#32b6ed 48%,#1689c8 100%)!important;box-shadow:inset 0 1px #c3f0ff,inset 0 -2px #0976ad!important;transform-origin:left center;animation:w13-meter-settle .4s ease-out both}
#view.warm-cards-view .mother-unit-grid .camp-shard-fill:is(.can-upgrade,.max-gold){background:linear-gradient(#b3f18a,#72d24a 48%,#45ac2c)!important;box-shadow:inset 0 1px #e2ffc9,inset 0 -2px #29821e!important}
#view.warm-cards-view .mother-unit-grid .camp-shard-fill::after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 20%,#fff6 48%,transparent 75%);transform:translateX(-120%);animation:w13-meter-glint .65s .1s ease-out both;pointer-events:none}
#view.warm-cards-view .mother-unit-grid .camp-shard-text{font-size:12.5px!important;line-height:1.1!important;font-weight:850!important;text-shadow:0 1px 1px #18303b!important;color:#fff!important;z-index:3}
#view.warm-cards-view .mother-unit-grid .camp-shard-row{height:21px!important}
#view.warm-cards-view .mother-unit-grid .has-long-count .camp-shard-meter,#view.warm-cards-view .mother-unit-grid .camp-shard-row.has-long-count{height:29px!important}
@keyframes w13-meter-settle{from{transform:scaleX(var(--w13-progress-start,1));opacity:.85}to{transform:scaleX(1);opacity:1}}
@keyframes w13-meter-glint{to{transform:translateX(120%)}}

/* A selected slot becomes an explicit choice, while drag remains available. */
#view.warm-cards-view>.w13-deck-choice{position:sticky!important;top:0!important;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px;padding:9px 10px;background:#fff0b2;border:1.5px solid #8b6a25;border-radius:10px;box-shadow:inset 0 1px #fff7cf,0 3px #cdb16c;color:#4e3714}
.w13-deck-choice>div:first-child{min-width:0;flex:1}
.w13-deck-choice b{display:block;font-size:14px;line-height:1.4}
.w13-deck-choice small{display:block;font-size:11.5px;line-height:1.4;color:#816332;margin-top:2px}
.w13-choice-actions{display:flex;gap:5px;flex:none}
#appRoot .w13-small-action,#dialog .w13-small-action{width:auto!important;min-width:48px!important;height:32px!important;min-height:32px!important;padding:3px 8px 6px!important;font-size:12px!important;border-radius:8px!important;flex:none!important}
.w13-deck-result{margin:0 0 11px;padding:8px 10px;background:#e7f3d6;border:1px solid #adc589;border-radius:9px;color:#38652b;font-size:13px;font-weight:800;line-height:1.45}
#view.warm-cards-view .mother-deck-slot.is-selecting{outline:3px solid #f6c528;outline-offset:2px;box-shadow:inset 0 1px #fff,0 3px #b58e30,0 0 0 5px #fff3b4!important}
#view.warm-cards-view:has(.w13-deck-choice) .camp-unit-card:not(.is-locked) .camp-unit-portrait{border-color:#9d832b!important;box-shadow:inset 0 1px #fff9,0 2px #b49c4d!important}

/* Detail actions name the operation and keep the result visible in place. */
#dialog.mother-modal .w13-assignment{margin-top:10px;padding:9px;background:#e0c386;border:1px solid #b59a5c;border-radius:10px;color:#4a3518}
.w13-assignment>header{display:flex;justify-content:space-between;align-items:center;gap:6px}
.w13-assignment>header>b{font-size:14px;font-weight:900}
.w13-assignment>header>span{font-size:11.5px;color:#765627;font-weight:800}
.w13-assignment-tip,.w13-assignment-result{font-size:11.5px;line-height:1.4;margin:5px 0 8px!important;color:#765627}
.w13-assignment-result{padding:5px 7px;background:#e5f2d3;border:1px solid #a7be82;border-radius:6px;color:#35632a;font-weight:850}
.w13-assignment-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
#dialog .w13-assign-option{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;margin:0;padding:6px 3px 7px;background:#fff4d2;border:1.5px solid #69512b;border-radius:9px;box-shadow:inset 0 1px #fff,0 2.5px #9e7f43;color:#4e3618;line-height:1.15}
#dialog .w13-assign-option>b{font-size:11px;color:#806437}
#dialog .w13-assign-option strong{font-size:12px;color:#3e6729;font-weight:900}
.w13-assign-art{display:grid;place-items:center;height:34px;width:100%}
.w13-assign-art img,.w13-assign-art svg{display:block;width:35px!important;height:34px!important;object-fit:contain}
.w13-assign-name{display:block;min-width:0;width:100%;font-size:10.5px;font-weight:800;line-height:1.3;overflow-wrap:anywhere}
#dialog .w13-assign-option.selected{opacity:1;background:#cce9b3;border-color:#608144;box-shadow:inset 0 1px #efffdb,0 2.5px #81965d;cursor:default}
#dialog .w13-assign-option.selected strong{color:#41672d}
#dialog .w13-assignment>footer{display:flex;align-items:center;justify-content:space-between;gap:6px;padding-top:8px;margin:0}
.w13-assignment>footer>small{font-size:10.5px;line-height:1.4;color:#806437}

/* Unit growth is a focused full-screen ceremony, using the live growth model. */
#dialog[data-kind=unitupgrade][data-fullscreen=true]:not(.mother-modal){position:fixed!important;inset:0!important;margin:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;border:0!important;border-radius:0!important;padding:18px 16px!important;overflow:hidden!important;background:radial-gradient(ellipse at 50% 24%,#34586199,transparent 57%),#102b31d9!important;box-shadow:none!important;isolation:isolate}
#dialog[data-kind=unitupgrade][data-fullscreen=true]:not(.mother-modal)::before,#dialog[data-kind=unitupgrade][data-fullscreen=true]:not(.mother-modal)::after{content:none!important;display:none!important}
#dialog[data-kind=unitupgrade][data-fullscreen=true]:not(.mother-modal)>.close{display:none!important}
#dialog[data-kind=unitupgrade][data-fullscreen=true]:not(.mother-modal)>#dialogBody{display:flex!important;align-items:center;justify-content:center;width:100%!important;height:100%!important;max-height:none!important;min-height:0!important;overflow:hidden!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;color:#fff!important}
#dialog[data-kind=unitupgrade][data-fullscreen=true]:not(.mother-modal) .w13-unit-celebration{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:space-between!important;gap:8px;width:min(390px,100%)!important;height:100%!important;max-height:none!important;min-height:0!important;margin:0 auto!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;overflow:hidden!important;text-align:center;animation:w13-growth-arrive .42s ease-out both}
.w13-growth-header{position:relative;width:100%;height:51px;min-height:51px;flex:none;padding:0!important;margin:0!important}
#dialog[data-kind=unitupgrade][data-fullscreen=true]:not(.mother-modal) .w13-growth-header .rh-ribbon-title{right:40px!important;left:40px!important;font-size:23px!important}
.w13-growth-stage{position:relative;isolation:isolate;width:min(300px,100%);height:205px;min-height:150px;flex:1 1 205px;max-height:245px;display:grid;place-items:center}
.w13-growth-crest{position:absolute;inset:0;width:100%;height:100%;overflow:visible;z-index:1;filter:drop-shadow(0 3px 1px #07171a66);animation:w13-growth-medal .55s cubic-bezier(.2,.8,.3,1.15) both}
.w13-growth-hero{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:2;animation:w13-growth-hero .6s ease-out both}
.w13-growth-hero>img{position:absolute;left:10%;top:20%;display:block;width:80%!important;height:58%!important;max-width:none!important;object-fit:contain!important;filter:drop-shadow(0 3px 2px #33220d66)}
.w13-growth-rays{position:absolute;inset:-35%;z-index:0;border-radius:50%;background:repeating-conic-gradient(from 0deg,#fff3aa55 0deg 9deg,transparent 9deg 29deg);mask-image:radial-gradient(circle,#000 12%,#0009 35%,transparent 67%);animation:w13-growth-rays 2.4s ease-out both;pointer-events:none}
.w13-growth-glow{position:absolute;inset:0 -20% -15%;background:radial-gradient(ellipse,#ffe69b8c,transparent 65%);z-index:0;pointer-events:none}
.w13-growth-spark{position:absolute;z-index:4;color:#fff0ae;font-size:23px;text-shadow:0 0 7px #ffeb9b;animation:w13-growth-spark 1.1s ease-out both;pointer-events:none}
.w13-growth-spark.s1{left:11%;top:25%;animation-delay:.1s}.w13-growth-spark.s2{right:8%;top:47%;font-size:17px;animation-delay:.27s}.w13-growth-spark.s3{right:28%;top:3%;font-size:15px;animation-delay:.4s}
#dialog[data-kind=unitupgrade][data-fullscreen=true]:not(.mother-modal) .w13-growth-name{flex:none;margin:0!important;color:#fff8dc!important;font-size:23px!important;font-weight:900!important;line-height:1.2;text-shadow:0 2px #152323!important}
.w13-growth-level{display:flex;align-items:center;justify-content:center;gap:14px;flex:none;color:#fff3cd;font:900 19px/1 var(--font-num)}
.w13-growth-level small{font-size:17px;color:#d5e5df}.w13-growth-level i{font-size:22px;font-style:normal;color:#ffdc6c}.w13-growth-level>b{padding:5px 12px 7px;background:#82cf5a;border:2px solid #233d18;border-radius:9px;box-shadow:inset 0 1px #caffaf,inset 0 -3px #4a9633;color:#213d15;font-size:21px}
.w13-growth-paper{flex:0 1 auto;width:100%;min-height:0;overflow:auto;padding:10px;background:linear-gradient(135deg,transparent 88%,#e1c381 88%),#eedaaa;border:2px solid #2e2418;border-radius:13px;box-shadow:inset 0 0 0 3px #fff0c9,0 4px #8a6a36;color:#4a3518}
.w13-growth-power{display:grid;grid-template-columns:auto 1fr auto;gap:7px;align-items:center;padding:8px;background:#fff6df;border:1px solid #c4a974;border-radius:8px;font-family:var(--font-num)}
.w13-growth-power>span{font-size:12px;font-weight:900;color:#785a29}.w13-growth-power>div{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0}.w13-growth-power small{font-size:14px;color:#94784b}.w13-growth-power i{font-style:normal;color:#a38142}.w13-growth-power strong,.w13-growth-power strong b{font-size:24px!important;line-height:1!important;color:#4f3315!important;font-weight:900!important}.w13-growth-power>em{font-size:13px;font-style:normal;font-weight:900;color:#2c842c}
.w13-growth-stats{display:flex;flex-direction:column;gap:5px;margin-top:7px}
.w13-growth-stat{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:6px;align-items:center;padding:6px 7px;background:#dfc388;border:1px solid #c4a66b;border-radius:7px;color:#4d3719}
.w13-growth-stat>span{font-size:12px;font-weight:850;text-align:left}.w13-growth-stat>div{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px;font-family:var(--font-num)}.w13-growth-stat small{font-size:12px;color:#8b6c3e}.w13-growth-stat i{font-style:normal;color:#94713a}.w13-growth-stat strong,.w13-growth-stat strong b{font-size:15px!important;color:#3c5f22!important;font-weight:900!important}.w13-growth-stat>em{font-size:11.5px;font-style:normal;font-weight:900;color:#2a782d;text-align:right;max-width:85px;overflow-wrap:anywhere}
.w13-growth-rank{display:flex;justify-content:space-between;gap:8px;padding:7px 8px 0;margin-top:6px;border-top:1px solid #c1a169}.w13-growth-rank>span{font-size:12px;color:#785a29;font-weight:850}.w13-growth-rank>b{font-size:14px;color:#337028}.w13-growth-rank i{font-style:normal;color:#a18143}
.w13-growth-note{flex:none;margin:0!important;color:#d1ded6!important;font-size:11.5px!important;line-height:1.4!important}
#dialog[data-kind=unitupgrade][data-fullscreen=true]:not(.mother-modal) .w13-growth-actions{display:flex!important;flex:none;width:100%;gap:9px;margin:2px 0 0!important;padding:0!important;border:0!important;background:none!important}
#dialog[data-kind=unitupgrade][data-fullscreen=true]:not(.mother-modal) .w13-growth-actions>.mother-btn{flex:1 1 0!important;width:0!important;height:50px!important;min-height:50px!important;max-width:none!important;margin:0!important;font-size:17px!important;padding:5px 8px 8px!important}
@keyframes w13-growth-arrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes w13-growth-medal{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}
@keyframes w13-growth-hero{from{opacity:0;transform:translateY(12px) scale(.86)}to{opacity:1;transform:none}}
@keyframes w13-growth-rays{from{opacity:0;transform:rotate(-15deg) scale(.6)}to{opacity:.8;transform:rotate(15deg) scale(1)}}
@keyframes w13-growth-spark{0%{opacity:0;transform:scale(.3)}35%{opacity:1;transform:scale(1.1)}100%{opacity:0;transform:scale(.65)}}
@media(max-height:740px){#dialog[data-kind=unitupgrade][data-fullscreen=true]:not(.mother-modal){padding-top:12px!important;padding-bottom:14px!important}.w13-growth-stage{flex-basis:165px;max-height:190px;min-height:120px}.w13-unit-celebration{gap:6px!important}.w13-growth-paper{padding:8px}.w13-growth-power{padding:6px}.w13-growth-stat{padding-block:5px}.w13-growth-level>b{padding-block:4px 6px}.w13-growth-name{font-size:21px!important}}
@media(max-width:350px){.w13-deck-choice{padding:8px;gap:5px}.w13-deck-choice small{font-size:10.5px}.w13-deck-choice b{font-size:12.5px}#appRoot .w13-small-action,#dialog .w13-small-action{min-width:42px!important;padding-inline:5px!important;font-size:11px!important}.w13-assignment-slots{gap:5px}.w13-assign-name{font-size:10px}.w13-growth-power{grid-template-columns:auto 1fr auto;gap:5px}.w13-growth-power strong,.w13-growth-power strong b{font-size:21px!important}.w13-growth-stat{grid-template-columns:39px minmax(0,1fr) auto;gap:4px}.w13-growth-stat>span{font-size:11px}.w13-growth-stat>em{font-size:10.5px;max-width:70px}.w13-growth-stat strong,.w13-growth-stat strong b{font-size:13px!important}#dialog[data-kind=unitupgrade][data-fullscreen=true]:not(.mother-modal) .w13-growth-header .rh-ribbon-title{font-size:21px!important}}
@media(prefers-reduced-motion:reduce){#view.warm-cards-view .mother-unit-grid .camp-shard-fill,#view.warm-cards-view .mother-unit-grid .camp-shard-fill::after,.w13-unit-celebration,.w13-growth-crest,.w13-growth-hero,.w13-growth-rays,.w13-growth-spark{animation:none!important;transition:none!important}.w13-growth-spark{display:none!important}}

/* The same original victory medal and flags as the building ceremony. */
.w13-growth-crest>.w13-growth-badge{position:absolute!important;left:50%!important;top:0!important;width:auto!important;height:100%!important;max-width:90%!important;object-fit:contain!important;transform:translateX(-50%)!important;z-index:2}
.w13-growth-crest>.w13-growth-flag{position:absolute!important;left:1%!important;right:auto!important;top:9%!important;width:46%!important;height:80%!important;object-fit:contain!important;object-position:center top!important;z-index:1;transform:none!important}
.w13-growth-crest>.w13-growth-flag.is-right{left:auto!important;right:1%!important;transform:scaleX(-1)!important}
.w13-growth-check{position:absolute;left:50%;bottom:-5px;z-index:5;display:grid;place-items:center;width:34px;height:34px;transform:translateX(-50%);background:#4bdc44;border:2px solid #fff9b9;border-radius:50%;box-shadow:0 2px #38672b;color:white;font:900 24px/1 var(--font-ui);text-shadow:0 1px #238e2c}
.w13-growth-spotlight{position:absolute;inset:-40% -20% -95%;z-index:-1;background:linear-gradient(180deg,#8ed7ff99,#68c8ff55 58%,transparent 100%);clip-path:polygon(42% 0,58% 0,100% 100%,0 100%);pointer-events:none}

/* Legion paper and a flat trio of information plaques. */
#appRoot.warm-game[data-view=teams],#appRoot.warm-game[data-view=ended]{background:radial-gradient(ellipse at 35% 0,#f7e7bd55,transparent 68%),repeating-linear-gradient(0deg,#87652503 0 1px,transparent 1px 4px),#dfc484!important}
#appRoot.warm-game[data-view=teams]>.hud::before,#appRoot.warm-game[data-view=ended]>.hud::before{background:#dfc484!important}
#appRoot.warm-game #view.teams-view>.stats-row{gap:8px;margin:4px 0 13px!important}
#appRoot.warm-game #view.teams-view .stats-row>.stat{background:#b7dcef!important;border:1.5px solid #7b9eaf!important;border-radius:11px!important;box-shadow:none!important;min-height:81px;padding:11px 8px;gap:6px;cursor:default;transform:none!important}
#appRoot.warm-game #view.teams-view .stats-row>.stat:nth-child(2){background:#c1da9a!important;border-color:#8ca56c!important}
#appRoot.warm-game #view.teams-view .stats-row>.stat:nth-child(3){background:#cfbce5!important;border-color:#9f88b4!important}
#appRoot.warm-game #view.teams-view .stats-row>.stat :is(small,strong,b){color:#3f3726!important;text-shadow:none!important}
#appRoot.warm-game #view.teams-view .stats-row>.stat small{font-size:11px!important;font-weight:800!important}
#appRoot.warm-game #view.teams-view .stats-row>.stat strong{font-size:25px!important;line-height:1.1}

/* Clickable formation cards share the shop's drawn edge and lower lip.
   Latest user steering: four queue controls use yellow, the castle CTA green. */
#appRoot.warm-game #view.teams-view .empty-team:not(.has-report){background:#fff6d7!important;border:2px solid #3c2d18!important;border-radius:14px!important;box-shadow:inset 0 1px #fffdf3,inset 0 -3px #dfc484,0 3px 0 #765a2e80!important;margin-bottom:15px!important;padding:13px 15px;min-height:86px}
#appRoot.warm-game #view.teams-view .empty-team:not(.has-report)>span{background:#ffe89b!important;border:1.5px solid #8d682f!important;box-shadow:inset 0 1px #fff8d5,inset 0 -2px #d9b55f!important;color:#77521e!important;margin-right:8px}
#appRoot.warm-game #view.teams-view .empty-team.has-draft:not(.has-report){background:#ffe78e!important;box-shadow:inset 0 1px #fff6c1,inset 0 -3px #d6ac41,0 3px 0 #765a2e80!important}
#appRoot.warm-game #squadSlots>button:not(.locked){background:var(--btn-yellow-face)!important;border-color:#000!important;box-shadow:inset 0 1px #ffffff8c,inset 0 -3px var(--btn-yellow-lip)!important;color:var(--btn-yellow-navy-text)!important}
#appRoot.warm-game #squadSlots>button:not(.locked) :is(b,strong,small,span){color:var(--btn-yellow-navy-text)!important}
#appRoot.warm-game .warm-castle-entry.mother-btn{--mother-face:var(--btn-green-bg);--mother-lip:var(--btn-green-lip);--mother-ink:var(--btn-green-text);background:var(--btn-green-bg)!important;color:var(--btn-green-text)!important;box-shadow:inset 0 1px #ffffff8c,inset 0 -3.5px var(--btn-green-lip)!important}
#appRoot.warm-game #view.teams-view .team-card{border:2px solid #3c2d18!important;border-radius:14px!important;box-shadow:inset 0 1px #fff,inset 0 -3px #d6bf88,0 3px 0 #765a2e80!important;margin-bottom:15px;background:#fff9e8!important}
#appRoot.warm-game #view.teams-view .team-card .team-reward{background:#f0e2bd!important;border-top:1px solid #c9af75!important;padding:9px 12px;color:#62451f!important}
#appRoot.warm-game #view.teams-view .team-card .team-reward .loot-value{color:#62451f!important;text-shadow:none!important}
#appRoot.warm-game #view.teams-view .empty-team:not(.has-report):active{transform:translateY(2px);box-shadow:inset 0 1px #fffdf3,inset 0 -1px #dfc484,0 1px 0 #765a2e80!important}

/* Reports occupy everything beneath the live resource line. Queue refreshes
   cannot bring back the old formation strip; the close action stays Back. */
#appRoot.warm-game[data-view=ended]>:is(#squadBar,#rhPageHeader,#mainNav){display:none!important}
#appRoot.warm-game[data-view=ended]>#view.ended-view{display:flex!important;flex:1 1 0!important;flex-direction:column;min-height:0!important;padding:57px 10px 10px!important;overflow:hidden!important;background:transparent!important}
#appRoot.warm-game[data-view=ended] .m9-report-modal{display:flex;flex-direction:column;position:relative;flex:1 1 0;min-height:0;height:100%;width:100%;max-width:none;margin:0;padding:0 8px 8px;border:0;border-radius:0;box-shadow:none;background:none;overflow:visible}
#appRoot.warm-game[data-view=ended] .m9-report-header{display:block;position:relative;flex:0 0 51px;width:calc(100% + 16px)!important;height:51px;min-height:51px;margin:0 -8px -7px!important;padding:0!important;z-index:5}
#appRoot.warm-game[data-view=ended] .m9-report-modal>.rh-modal-close-btn{position:absolute!important;top:8px!important;right:23px!important;z-index:10!important}
#appRoot.warm-game[data-view=ended] .m9-report-body{flex:1 1 0;min-height:0;max-height:none;overflow-x:hidden;overflow-y:auto;padding:15px 10px 14px;background:linear-gradient(135deg,transparent 88%,#e4c888 88%),#ecd8a3;border:2px solid #ad8d4f;border-top:0;border-radius:0 0 13px 13px;box-shadow:inset 0 -3px #d0b57a;gap:10px;overscroll-behavior:contain}
#appRoot.warm-game[data-view=ended] .m9-report-body .m9-report-result{flex:none;width:100%;gap:7px!important;padding:13px 10px!important}
#appRoot.warm-game[data-view=ended] .m9-report-body .m9-report-resources{width:100%;padding:9px 8px;gap:9px}
#appRoot.warm-game[data-view=ended] .m9-report-body .m9-report-days{margin:1px 0}
#appRoot.warm-game[data-view=ended] .m9-report-body .m9-report-cards{padding:1px 0 7px;gap:10px}
#appRoot.warm-game[data-view=ended] .r13-report-amount{display:block;max-width:100%;line-height:1.25;white-space:normal;overflow-wrap:normal;word-break:normal;font-variant-numeric:tabular-nums}
#appRoot.warm-game[data-view=ended] .r13-report-amount.r13-long-amount{font-size:11px}
#appRoot.warm-game[data-view=ended] .m9-report-cards .r13-long-card-count>b{font-size:11px!important;letter-spacing:-.2px;padding-inline:3px;max-width:calc(100% + 6px);white-space:nowrap}
#appRoot.warm-game[data-view=ended] .m9-report-body .result-actions{flex:none;margin-top:auto;gap:9px;padding-top:2px}
#appRoot.warm-game[data-view=ended] .m9-report-body .result-actions>.mother-btn{height:49px;min-height:49px;font-size:17px}

/* Launch ceremony: an own-game hero crest, flags and a fixed-cap blue ribbon.
   The real launch canvas and its existing 3200ms progress remain unchanged. */
#appRoot.warm-game[data-view=launch]>:is(#squadBar,#rhPageHeader,#mainNav){display:none!important}
#appRoot.warm-game #view.r13-launch-view{display:flex!important;flex-direction:column;justify-content:flex-start!important;align-items:stretch;gap:12px;padding:64px 12px 18px!important;overflow:hidden!important;background:radial-gradient(ellipse at 50% 15%,#fff5cb,#f1e5c9 72%)!important}
#appRoot.warm-game .r13-launch-heading{position:relative;flex:none;text-align:center;margin:0;padding:0;z-index:2}
.r13-launch-emblem{position:relative;width:164px;height:84px;margin:0 auto -2px;isolation:isolate;animation:r13-launch-crest-in .48s cubic-bezier(.18,.8,.25,1.15) both}
.r13-launch-rays{position:absolute;inset:-36px -30px -15px;z-index:-2;border-radius:50%;background:repeating-conic-gradient(from 12deg,#f3c85b50 0 9deg,transparent 9deg 31deg);mask-image:radial-gradient(ellipse,#000a 12%,transparent 67%);pointer-events:none}
.r13-launch-medallion{position:absolute;left:44px;top:0;display:grid;place-items:center;width:76px;height:80px;padding:5px;border:3px solid #62411d;border-radius:20px;background:linear-gradient(135deg,#fff0a5,#ffc638 55%,#dfa328);box-shadow:inset 0 0 0 3px #fff2ae,0 3px 0 #9e6c24;z-index:2}
.r13-launch-medallion img{width:61px;height:66px;object-fit:contain;filter:drop-shadow(0 2px #62411d55)}
.r13-launch-flag{position:absolute;top:15px;display:block;width:62px;height:65px;z-index:0;filter:drop-shadow(0 2px #62411d66)}
.r13-launch-flag.is-left{left:8px;transform:rotate(-22deg)}
.r13-launch-flag.is-right{right:8px;transform:rotate(22deg) scaleX(-1)}
.r13-launch-flag>.mother-icon{width:100%;height:100%;object-fit:contain}
.r13-launch-ribbon{position:relative;width:100%;max-width:410px;height:51px;margin:0 auto;animation:r13-launch-ribbon-in .45s .12s cubic-bezier(.18,.8,.25,1.15) both;z-index:4}
.r13-launch-ribbon .rh-ribbon-title{font-size:clamp(21px,5.7vw,25px)!important;letter-spacing:1px!important}
.r13-launch-route{font-size:15px;font-weight:850;line-height:1.3;color:#76522a!important;text-shadow:none;margin:8px 0 0;animation:r13-launch-caption-in .35s .3s both}
#appRoot.warm-game #view.r13-launch-view>.r13-launch-scene{width:100%!important;min-height:160px!important;height:auto!important;max-height:none!important;flex:1 1 0!important;aspect-ratio:auto!important;margin:0!important;border-radius:17px!important;animation:r13-launch-caption-in .45s .26s both}
.r13-launch-scene .scene-head{top:9px}
.r13-launch-scene .scene-foot{display:none}
.r13-launch-summary{display:flex;align-items:center;justify-content:center;flex:none;gap:0;padding:10px 8px 12px;width:100%;background:#fff8df;border:2px solid #644c27;border-radius:13px;box-shadow:inset 0 1px #fffef5,inset 0 -3px #ddc68e,0 3px #ad8b49;animation:r13-launch-caption-in .45s .45s both}
.r13-launch-summary>div{flex:1;min-width:0;padding:0 8px;text-align:center}
.r13-launch-summary>div+div{border-left:1px solid #d3bc84}
.r13-launch-summary span{display:flex;align-items:center;justify-content:center;gap:5px;font-size:12px;font-weight:850;line-height:1.2;color:#886431}
.r13-launch-summary span>svg{width:20px;height:20px;flex:none;object-fit:contain}
.r13-launch-summary strong{display:block;margin-top:4px;font:900 29px/1 var(--font-num);font-variant-numeric:tabular-nums;color:#4a3217;text-shadow:0 1px #fff;overflow-wrap:anywhere}
.r13-launch-summary strong>small{font:850 13px/1 var(--font-ui);margin-left:2px;color:#886431;white-space:nowrap}
@keyframes r13-launch-crest-in{from{opacity:0;transform:translateY(9px) scale(.76)}to{opacity:1;transform:none}}
@keyframes r13-launch-ribbon-in{from{opacity:0;transform:translateY(7px) scale(.94)}to{opacity:1;transform:none}}
@keyframes r13-launch-caption-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@media(max-width:350px){
 #appRoot.warm-game #view.teams-view .stats-row>.stat{padding:10px 7px}
 #appRoot.warm-game #view.teams-view .stats-row>.stat strong{font-size:23px!important}
 #appRoot.warm-game[data-view=ended]>#view.ended-view{padding-inline:7px!important}
 #appRoot.warm-game[data-view=ended] .m9-report-body{padding-inline:8px}
 #appRoot.warm-game[data-view=ended] .m9-report-modal>.rh-modal-close-btn{top:9px!important;right:24px!important}
 .r13-launch-summary strong{font-size:26px}
}
@media(max-height:600px){
 #appRoot.warm-game #view.r13-launch-view{gap:9px;padding-top:56px!important;padding-bottom:10px!important}
 .r13-launch-emblem{height:58px;width:140px}
 .r13-launch-medallion{width:56px;height:58px;left:42px;padding:3px;border-radius:15px}
 .r13-launch-medallion img{width:45px;height:47px}
 .r13-launch-flag{top:7px;width:49px;height:50px}
 .r13-launch-flag.is-left{left:10px}.r13-launch-flag.is-right{right:10px}
 .r13-launch-route{font-size:13px;margin-top:4px}
 #appRoot.warm-game #view.r13-launch-view>.r13-launch-scene{min-height:115px!important}
 .r13-launch-summary{padding:7px 6px 9px}
 .r13-launch-summary strong{font-size:23px}
}
@media(prefers-reduced-motion:reduce){.r13-launch-emblem,.r13-launch-ribbon,.r13-launch-route,.r13-launch-summary,#appRoot.warm-game #view.r13-launch-view>.r13-launch-scene{animation:none!important}}

/* Camp gains use clear, unboxed lettering instead of heavy pill badges. */
#appRoot.warm-game .resource-delta{font-family:var(--font-ui)!important;font-size:14px!important;font-weight:800!important;line-height:1.1;border:0!important;border-radius:0!important;padding:0!important;background:none!important;box-shadow:none!important;color:#6df58f!important;-webkit-text-stroke:.65px #214c2d;text-shadow:0 1px 2px #122b1c}
#appRoot.warm-game .resource-delta.spend{color:#ffaaa0!important;-webkit-text-stroke:.65px #633b31}
/* New expedition destinations sit above the darker parchment inset. */
#dialog.mother-modal #dialogBody .route-choice{background:linear-gradient(#fff9e7,#f7eac9)!important;border:2px solid #33291c!important;border-radius:12px!important;box-shadow:inset 0 1px #fff,0 3px 0 #9e8152,0 5px 6px #42280e20!important;color:#4a3518!important;margin-bottom:5px}
#dialog.mother-modal #dialogBody .route-choice:active{transform:translateY(2px);box-shadow:inset 0 1px #fff,0 1px 0 #9e8152!important}
/* The original HUD remains in the camp; this live mirror sits in the modal's
   top layer so its values stay sharp above the unchanged ordinary backdrop. */
#dialog>.r13-building-hud{position:fixed;display:flex;align-items:flex-start;gap:6px;height:50px;box-sizing:border-box;z-index:175;pointer-events:none;color:#fff}
.r13-building-resource-group{display:flex;align-items:center;min-width:0;pointer-events:auto}
#dialog .r13-resource-chip{display:flex;flex:none;align-items:center;justify-content:flex-start;height:34px;min-height:34px;padding:4px 5px;box-sizing:border-box;border:1px solid #fffdf6a8!important;border-radius:999px!important;background:linear-gradient(#624f386b,#503f2c7a)!important;box-shadow:inset 0 1px #ffffff61,0 3px 9px #4432181c!important;backdrop-filter:blur(8px);color:#fff!important;overflow:visible;font-family:var(--font-num)!important;cursor:pointer}
#dialog .r13-resource-chip>:is(svg,img){width:18px;height:18px;object-fit:contain;flex:none;filter:drop-shadow(0 1px 1px #2a1a0a55)}
.r13-resource-amounts{display:flex;flex:1 1 0;min-width:0;width:0;align-items:baseline;justify-content:flex-end;gap:1.5px;white-space:nowrap}
#dialog .r13-resource-chip b{font-family:var(--font-num)!important;font-weight:850!important;line-height:1.15;color:#fff!important;text-shadow:0 1px 2px #36240ec2;letter-spacing:-.2px}
#dialog .r13-resource-chip small{font-family:var(--font-ui)!important;font-weight:750;line-height:1.15;color:#fffbf2eb!important;text-shadow:0 1px 1px #36240ea3}
#dialog .r13-resource-chip.is-full b{color:#ff4d3d!important}
#dialog .r13-building-settings{display:grid;place-items:center;flex:0 0 32px;width:32px;height:34px;margin-left:auto;padding:0;border:0!important;background:none!important;box-shadow:none!important;pointer-events:auto}
#dialog .r13-building-settings>:is(img,svg){width:32px;height:32px;object-fit:contain;filter:drop-shadow(0 2px 1px #38240d33)}
#dialog .r13-construction-with-wallet{display:grid!important;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;align-items:center}
#dialog .r13-construction-with-wallet>.build-countdown{grid-column:1;grid-row:1;display:flex!important;align-items:center;justify-content:center;min-width:0;gap:5px!important;line-height:1.2}
#dialog .r13-construction-with-wallet .build-countdown [data-timer]{font-size:27px!important;line-height:1.2}
#dialog .r13-construction-with-wallet>.build-countdown>.hourglass-icon{width:17px!important;height:25px!important;flex:none}
#dialog .r13-construction-with-wallet>span{position:static!important;inset:auto!important;transform:none!important;grid-column:1;grid-row:2;margin:0!important;line-height:1.2!important}
#dialog.r13-building-details #dialogWallet.r13-inline-wallet{position:static!important;inset:auto!important;transform:none!important;grid-column:2;grid-row:1 / span 2;margin:0!important;width:118px!important;height:34px!important;min-height:0!important;padding:0!important;z-index:auto}
#dialog.r13-building-details #dialogWallet.r13-inline-wallet .context-gems{display:flex!important;align-items:center;justify-content:center;width:118px!important;height:34px!important;min-height:34px!important;padding:4px 6px!important;gap:4px;border:1px solid #fffcf4ad!important;border-radius:10px!important;background:linear-gradient(#624f3885,#4e3d2b94)!important;box-shadow:inset 0 1px #ffffff6b,0 3px 9px #2a1e0e2e!important;backdrop-filter:blur(8px);color:#fff!important}
#dialog.r13-building-details #dialogWallet.r13-inline-wallet .context-gems b{color:#fff!important;font-size:16px!important;font-weight:850}
#dialog.r13-building-details #dialogWallet.r13-inline-wallet .context-gems>span{color:#82f76e!important;font-size:16px!important}
/* A building completion is a full celebration, with the original camp behind it. */
#dialog.r13-building-celebration[data-kind=buildingcomplete]{position:fixed!important;inset:0!important;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;margin:0!important;padding:0!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important;isolation:isolate}
#dialog.r13-building-celebration[data-kind=buildingcomplete]::before{content:""!important;display:block!important;position:fixed;inset:0;width:auto;height:auto;clip-path:none;background:radial-gradient(ellipse at 50% 28%,#20324499,#08131dcc 72%)!important;z-index:-1;pointer-events:none}
#dialog.r13-building-celebration[data-kind=buildingcomplete]>.close{display:none!important}
#dialog.r13-building-celebration[data-kind=buildingcomplete] #dialogBody{display:flex!important;align-items:center;justify-content:center;min-height:100%;width:100%;height:100%;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;margin:0!important;padding:20px 18px!important;background:none!important;border:0!important;box-shadow:none!important;color:#fff8da!important}
#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-building-stage{display:flex!important;flex-direction:column;align-items:center;gap:9px;width:min(370px,100%)!important;max-width:370px;min-height:0!important;max-height:100%!important;flex:none!important;padding:0!important;margin:auto!important;box-shadow:none!important;background:none!important;border:0!important;text-align:center}
#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-building-stage>header{width:100%;height:51px;min-height:51px;margin:0!important;padding:0!important;background:none!important}
#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-building-stage>.pf-stage{position:relative;display:grid;place-items:center;flex:0 0 auto!important;width:100%!important;height:205px!important;min-height:0!important;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;overflow:visible!important}
#dialog.r13-building-celebration[data-kind=buildingcomplete] .pf-rays{position:absolute;left:50%;top:50%;width:370px!important;height:370px!important;background:repeating-conic-gradient(from 0deg,#ffde8b3d 0deg 10deg,transparent 10deg 30deg)!important;mask-image:radial-gradient(circle,#000 12%,#0008 37%,transparent 68%);transform:translate(-50%,-50%);opacity:.8;z-index:-1}
.r13-building-medal{position:relative;width:178px;height:205px;isolation:isolate}
.r13-building-crest{position:absolute;inset:0;z-index:1}
.r13-building-crest>img{width:100%;height:100%;object-fit:contain}
.r13-building-flag{position:absolute;z-index:0;top:15px;width:118px;height:118px}
.r13-building-flag>img{width:100%;height:100%;object-fit:contain}
.r13-building-flag.is-left{left:-55px}
.r13-building-flag.is-right{right:-55px;transform:scaleX(-1)}
#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-celebrated-building{position:absolute!important;z-index:2;left:50%!important;top:48%!important;width:110px!important;height:122px!important;max-width:none!important;max-height:none!important;margin:0!important;object-fit:contain!important;transform:translate(-50%,-50%)!important;filter:drop-shadow(0 3px 1px #0006)}
.r13-building-check{position:absolute;z-index:3;bottom:-2px;left:calc(50% - 21px);display:grid;place-items:center;width:42px;height:42px;background:#43e650;border:2.5px solid #1d401e;border-radius:50%;box-shadow:inset 0 2px #b9ffc4,0 3px #184f24;color:white;font:900 29px/1 var(--font-ui);text-shadow:0 2px #195f2a}
.r13-building-count{position:absolute;right:-8px;bottom:15px;z-index:4;background:#fff1b1;border:2px solid #6b4d1b;border-radius:8px;padding:3px 6px;color:#5a3a15;font:900 20px var(--font-num)}
#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-building-stage>h3{color:#fff0bc!important;font-size:22px!important;font-weight:900;margin:0!important;text-shadow:0 2px #281a0a}
#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-building-stage>.pf-level{position:static!important;inset:auto!important;transform:none!important;animation:none!important;display:flex!important;align-items:center;justify-content:center;gap:12px;flex:none;margin:0!important;padding:5px 13px!important;background:#fff0c4!important;border:1.5px solid #b99958!important;border-radius:10px;color:#6e532d!important;font-family:var(--font-num)!important;font-size:22px!important}
#dialog.r13-building-celebration[data-kind=buildingcomplete] .pf-level small{font-size:18px!important}
#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-building-stage>.pf-gain-sequence{display:none!important}
#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-building-gains{display:block!important;width:100%!important;min-height:0;max-height:210px;overflow-y:auto!important;padding:9px!important;margin:0!important;background:#ecd8a3!important;border:2px solid #392b17!important;border-radius:12px!important;box-shadow:inset 0 1px #fff2c6,0 4px #84643b!important}
#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-building-gains>.r13-building-stat-group{display:block!important;width:100%!important;min-width:0;min-height:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
.r13-building-stat-group>h4{color:#5a3b16;margin:9px 0 5px;font-size:15px}
#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-building-gains .pf-stat{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:5px 7px;align-items:center;background:#fff7e4!important;border:1px solid #bba068!important;border-radius:8px!important;padding:8px!important;margin:5px 0!important;box-shadow:inset 0 1px #fff!important;font-size:14px!important;color:#5c4120!important;text-shadow:none!important}
#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-building-gains .pf-stat>span{grid-column:1;grid-row:1;color:#765936!important;font-size:13px!important;text-align:left}
#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-building-gains .pf-stat>div{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-column:1 / -1;grid-row:2;align-items:center;gap:7px;white-space:nowrap}
#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-building-gains .pf-stat>div>small{text-align:left}
#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-building-gains .pf-stat>div>strong{text-align:right}
#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-building-gains .pf-stat :is(small,i){color:#957a53!important;font-size:13px!important;font-style:normal;text-shadow:none!important}
#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-building-gains .pf-stat strong,#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-building-gains .pf-stat strong b{color:#226f2f!important;font-size:16px!important;font-weight:900;text-shadow:none!important}
#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-building-gains .pf-stat>em{grid-column:2;grid-row:1;color:#238337!important;font-size:12px!important;font-style:normal;font-weight:800}
#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-building-scroll-hint{position:sticky;top:-9px;z-index:2;margin:-3px 0 6px;padding:4px 0;background:#ecd8a3;color:#62461f!important;text-shadow:none!important;font-weight:750;font-size:12px;line-height:1.4;text-align:center}
.r13-building-unlocks{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px;color:#5c4120;font-size:13px}
.r13-building-unlocks>div{display:flex;align-items:center;gap:5px}
.r13-building-unlocks img{width:28px;height:28px;object-fit:contain}
#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-building-stage>footer{display:flex!important;flex:none;width:100%;gap:9px;margin:4px 0 0!important;padding:0!important}
#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-building-stage>footer>.mother-btn{width:100%;height:50px;min-height:50px}
#dialog.r13-building-celebration[data-kind=buildingcomplete] .pf-batch-list{display:flex;flex-direction:column;gap:5px;flex:none;width:100%;max-height:125px;overflow-y:auto!important;margin:0!important}
#dialog.r13-building-celebration[data-kind=buildingcomplete] .pf-batch-list>article{display:flex;align-items:center;justify-content:center;gap:9px;padding:5px!important;background:#fff0c5!important;border:1px solid #bd9d61!important;border-radius:8px!important}
#dialog.r13-building-celebration[data-kind=buildingcomplete] .pf-batch-list img{width:36px!important;height:36px!important;object-fit:contain}
#dialog.r13-building-celebration[data-kind=buildingcomplete] .pf-batch-list h3{font-size:14px!important;margin:0!important;color:#5e421e!important}
#dialog.r13-building-celebration[data-kind=buildingcomplete] .pf-batch-list strong{font-size:13px!important;color:#347338!important}
@media(max-height:740px){#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-building-stage>.pf-stage{height:165px!important}.r13-building-medal{width:145px;height:165px}#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-celebrated-building{width:91px!important;height:99px!important}.r13-building-flag{width:97px;height:97px}.r13-building-flag.is-left{left:-44px}.r13-building-flag.is-right{right:-44px}#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-building-gains{max-height:168px}}
@media(max-height:600px){#dialog.r13-building-celebration[data-kind=buildingcomplete] #dialogBody{padding:12px 16px!important;justify-content:flex-start!important}#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-building-stage{gap:6px;max-height:100%!important}#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-building-stage>.pf-stage{height:122px!important}.r13-building-medal{width:109px;height:122px}#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-celebrated-building{width:66px!important;height:73px!important}.r13-building-flag{width:75px;height:75px;top:7px}.r13-building-flag.is-left{left:-34px}.r13-building-flag.is-right{right:-34px}.r13-building-check{width:31px;height:31px;left:calc(50% - 15px);font-size:22px}#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-building-stage>h3{font-size:18px!important}#dialog.r13-building-celebration[data-kind=buildingcomplete] .r13-building-gains{max-height:135px;min-height:64px!important;flex:0 1 auto!important}}
@media(max-width:350px){#dialog .r13-construction-with-wallet .build-countdown [data-timer]{font-size:23px!important}#dialog.r13-building-details #dialogWallet.r13-inline-wallet,#dialog.r13-building-details #dialogWallet.r13-inline-wallet .context-gems{width:103px!important}}
@media(prefers-reduced-motion:reduce){#dialog.r13-building-celebration[data-kind=buildingcomplete] .pf-rays,#dialog.r13-building-celebration[data-kind=buildingcomplete] .pf-particles{animation:none!important}}

