    :root {
      color-scheme: dark;
      --bg: #070a09;
      --panel: rgba(12, 18, 17, .78);
      --panel-solid: #121817;
      --line: rgba(224, 236, 223, .16);
      --line-strong: rgba(224, 236, 223, .32);
      --text: #f4fbf1;
      --muted: #a7b6aa;
      --soft: #dcebdd;
      --green: #00d47c;
      --green-2: #009958;
      --amber: #f2ba5b;
      --red: #ff756f;
      --blue: #8dbdff;
      --shadow: 0 22px 70px rgba(0, 0, 0, .42);
      --radius: 8px;
      font-family: "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
    }

    * { box-sizing: border-box; }
    body {
      margin: 0;
      min-height: 100vh;
      color: var(--text);
      background:
        linear-gradient(180deg, rgba(4, 12, 10, .42), rgba(4, 10, 9, .72) 42%, rgba(3, 7, 7, .96)),
        url("delta-bg-v2.jpg") center top / cover fixed,
        var(--bg);
      letter-spacing: 0;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
      background-size: 48px 48px;
      mask-image: linear-gradient(180deg, rgba(0, 0, 0, .82), transparent 78%);
    }

    button, input, select, textarea {
      font: inherit;
      letter-spacing: 0;
    }

    button {
      border: 1px solid var(--line-strong);
      background: rgba(14, 22, 20, .82);
      color: var(--text);
      min-height: 42px;
      border-radius: 6px;
      padding: 0 14px;
      cursor: pointer;
      transition: border-color .16s ease, transform .16s ease, background .16s ease, box-shadow .16s ease;
    }

    button:hover {
      border-color: rgba(79, 224, 138, .66);
      background: rgba(29, 43, 39, .96);
      box-shadow: 0 0 0 3px rgba(83, 230, 141, .08);
    }

    button:disabled {
      cursor: not-allowed;
      opacity: .54;
      box-shadow: none;
    }

    button:active { transform: translateY(1px); }
    button.primary {
      border-color: rgba(79, 224, 138, .72);
      background: linear-gradient(180deg, rgba(69, 176, 111, .98), rgba(22, 103, 68, .98));
      color: #f7fff7;
      font-weight: 700;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 14px 32px rgba(14, 98, 58, .28);
    }

    button.ghost {
      background: transparent;
      min-height: 34px;
    }

    input, select, textarea {
      width: 100%;
      border: 1px solid var(--line);
      background: rgba(8, 12, 12, .72);
      color: var(--text);
      border-radius: 6px;
      padding: 10px 11px;
      outline: none;
    }

    input:focus, select:focus, textarea:focus {
      border-color: rgba(79, 224, 138, .74);
      box-shadow: 0 0 0 3px rgba(79, 224, 138, .1);
    }

    textarea {
      min-height: 108px;
      resize: vertical;
      line-height: 1.55;
    }

    .app {
      width: min(980px, calc(100% - 24px));
      margin: 0 auto;
      padding: 30px 0 34px;
      position: relative;
    }

    .topbar {
      position: relative;
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
      padding: 10px 0 16px;
      margin: 0;
      text-align: center;
      overflow: visible;
    }

    .topbar::after { display: none; }

    .brand,
    .actions {
      position: relative;
      z-index: 1;
    }

    .brand {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 14px;
      min-width: 0;
      flex: 1 1 auto;
      overflow: hidden;
      background: url("logo.png") left center / 119px auto no-repeat;
      padding-right: 76px;
    }

    h1 {
      margin: 0;
      font-size: clamp(22px, 3.4vw, 34px);
      line-height: 1.05;
      font-weight: 900;
      text-wrap: balance;
      text-shadow: 0 0 10px rgba(0, 0, 0, .8);
    }

    .sub {
      margin-top: 8px;
      color: #cbd8cd;
      font-size: 15px;
    }

    .actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .countdown-card {
      min-width: 188px;
      border: 1px solid rgba(255, 255, 255, .14);
      border-radius: 8px;
      padding: 9px 12px;
      background: rgba(18, 23, 24, .86);
      text-align: center;
      box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
    }

    .countdown-label {
      color: var(--muted);
      font-size: 11px;
    }

    .countdown-value {
      margin-top: 3px;
      color: var(--green);
      font-weight: 900;
      font-family: var(--mono);
      font-size: 18px;
    }

    .countdown-digits {
      display: flex;
      align-items: end;
      justify-content: center;
      gap: 5px;
      flex-wrap: wrap;
      margin-top: 5px;
    }

    .count-unit {
      display: inline-flex;
      align-items: end;
      gap: 2px;
    }

    .count-digit {
      min-width: 18px;
      height: 26px;
      display: inline-grid;
      place-items: center;
      border: 1px solid rgba(79, 224, 138, .35);
      border-radius: 5px;
      background:
        linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02)),
        rgba(5, 13, 11, .76);
      color: #dffff0;
      font-size: 16px;
      line-height: 1;
      box-shadow: inset 0 -10px 20px rgba(0, 0, 0, .2);
    }

    .count-digit.tick {
      animation: digit-pop .34s ease;
    }

    .count-label-mini {
      color: var(--muted);
      font-size: 10px;
      padding: 0 1px 3px;
    }

    @keyframes digit-pop {
      0% { transform: translateY(-5px); opacity: .35; }
      60% { transform: translateY(1px); opacity: 1; }
      100% { transform: translateY(0); }
    }

    .countdown-sub {
      width: 100%;
      margin-top: 6px;
      display: block;
      align-items: center;
      justify-content: center;
      gap: 7px;
      min-height: 14px;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      color: #9fb0a7;
      font-size: 10px;
      line-height: 1.3;
      text-align: center;
      white-space: nowrap;
      font-variant-numeric: tabular-nums;
    }

    .event-time {
      display: inline-block;
      min-width: 84px;
      color: #c6d5cd;
      font-family: var(--mono);
      font-size: 10px;
      font-weight: 800;
      text-align: left;
      letter-spacing: 0;
    }

    .status-strip {
      display: grid;
      grid-template-columns: 1.1fr .9fr .9fr;
      gap: 12px;
      margin-bottom: 14px;
    }

    .stat {
      border: 1px solid var(--line);
      background: rgba(10, 15, 14, .66);
      border-radius: var(--radius);
      padding: 13px 15px;
      box-shadow: var(--shadow);
      min-height: 72px;
      backdrop-filter: blur(12px);
    }

    .label {
      color: var(--muted);
      font-size: 12px;
      text-transform: uppercase;
      font-weight: 700;
    }

    .value {
      margin-top: 6px;
      font-size: 22px;
      font-weight: 800;
      overflow-wrap: anywhere;
    }

    .layout {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
      align-items: start;
    }

    .panel {
      border: 1px solid rgba(151, 190, 172, .22);
      background: rgba(4, 13, 11, .86);
      backdrop-filter: blur(14px);
      border-radius: var(--radius);
      box-shadow: 0 14px 38px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .04);
      overflow: hidden;
    }

    .panel-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      padding: 14px 16px;
      border-bottom: 1px solid rgba(151, 190, 172, .18);
      background: rgba(4, 12, 10, .7);
    }

    .panel-title {
      margin: 0;
      font-size: 17px;
      font-weight: 800;
    }

    .cards {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      padding: 12px;
    }

    .top-daily {
      margin-bottom: 14px;
    }

    .daily-panel .panel-head {
      padding: 12px 16px;
      border-bottom: 1px solid rgba(151, 190, 172, .18);
      background: rgba(4, 12, 10, .72);
    }

    .daily-panel .cards {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      padding: 14px;
    }

    .daily-map {
      --map-image: none;
      display: grid;
      gap: 8px;
      min-width: 0;
      min-height: 168px;
      padding: 14px;
      border: 1px solid rgba(79, 224, 138, .26);
      border-radius: 7px;
      overflow: hidden;
      background:
        linear-gradient(180deg, rgba(4, 10, 9, .36), rgba(4, 10, 9, .78)),
        var(--map-image) center / cover,
        #1c2523;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 10px 24px rgba(0, 0, 0, .18);
    }

    .daily-map-name {
      color: #dbe9df;
      text-align: left;
      font-size: 18px;
      font-weight: 900;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      text-shadow: 0 1px 8px rgba(0, 0, 0, .72);
    }

    .daily-code-box {
      min-height: 58px;
      padding: 10px 12px;
      display: flex;
      flex-wrap: nowrap;
      align-items: center;
      justify-content: center;
      gap: clamp(6px, 1vw, 10px);
      border: 1px solid rgba(79, 224, 138, .24);
      border-radius: 7px;
      background: rgba(4, 13, 11, .66);
      color: #f6fff7;
      font-size: clamp(24px, 3.7vw, 38px);
      font-weight: 900;
      font-family: var(--mono);
      letter-spacing: 0;
      box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
    }

    .daily-digit {
      display: inline-grid;
      place-items: center;
      width: clamp(34px, 5.2vw, 54px);
      height: clamp(44px, 6vw, 62px);
      border: 1px solid rgba(226, 255, 239, .35);
      border-radius: 7px;
      background:
        linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .035)),
        rgba(4, 12, 10, .58);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .18),
        0 10px 24px rgba(0, 0, 0, .18);
      text-shadow: 0 0 18px rgba(122, 255, 178, .28);
      font-variant-numeric: tabular-nums;
      line-height: 1;
    }

    .daily-copy-btn {
      min-height: 32px;
      border: 1px solid rgba(79, 224, 138, .28);
      border-radius: 6px;
      background: rgba(4, 13, 11, .58);
      color: #d7f5e0;
      font-size: 12px;
      font-weight: 700;
      padding: 0 10px;
      cursor: pointer;
      transition: border-color .16s ease, background .16s ease;
    }

    .daily-copy-btn:hover {
      border-color: rgba(79, 224, 138, .55);
      background: rgba(20, 60, 40, .48);
      color: #fff;
    }

    .daily-copy-btn:active {
      transform: translateY(1px);
    }

    .copy-all-daily {
      width: 100%;
      min-height: 44px;
      border: 1px solid rgba(226, 255, 239, .28);
      border-radius: 0;
      background:
        linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)),
        rgba(10, 18, 16, .5);
      color: #fff;
      font-size: 15px;
      font-weight: 800;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 -1px 0 rgba(255, 255, 255, .04);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      transition: border-color .16s ease, background .16s ease, transform .16s ease;
    }

    .copy-all-daily:hover {
      border-color: rgba(226, 255, 239, .46);
      background:
        linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06)),
        rgba(18, 34, 29, .58);
    }

    .copy-all-daily:active {
      transform: translateY(1px);
    }

    .card {
      --accent: var(--green);
      --map-image: none;
      border: 1px solid rgba(224, 236, 223, .14);
      border-radius: var(--radius);
      background:
        linear-gradient(90deg, rgba(5, 8, 8, .92), rgba(5, 8, 8, .46) 54%, rgba(5, 8, 8, .86)),
        linear-gradient(180deg, rgba(9, 13, 13, .12), rgba(9, 13, 13, .82) 70%),
        var(--map-image) center / cover,
        linear-gradient(180deg, rgba(21, 30, 28, .94), rgba(9, 13, 13, .96)),
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 46%);
      padding: 12px;
      min-height: 128px;
      position: relative;
      overflow: hidden;
      display: grid;
      grid-template-rows: auto 1fr auto auto;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
      transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
    }

    .card:nth-child(2) { --accent: var(--amber); }
    .card:nth-child(3) { --accent: var(--blue); }
    .card:nth-child(4) { --accent: #ef8a65; }
    .card:nth-child(5) { --accent: #9be07c; }
    .card:nth-child(6) { --accent: #c4a0ff; }

    .card:hover {
      transform: translateY(-2px);
      border-color: color-mix(in srgb, var(--accent) 48%, rgba(224, 236, 223, .18));
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 42px rgba(0, 0, 0, .28);
    }

    .card::before {
      content: "";
      position: absolute;
      inset: 0 0 auto;
      height: 3px;
      background: linear-gradient(90deg, var(--accent), transparent);
      opacity: .9;
    }

    .card::after {
      content: "";
      position: absolute;
      inset: auto -30px -52px auto;
      width: 128px;
      height: 128px;
      border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
      transform: rotate(34deg);
    }

    .card-top {
      display: flex;
      justify-content: space-between;
      align-items: start;
      gap: 10px;
      position: relative;
      z-index: 1;
    }

    .map-name {
      font-size: 17px;
      font-weight: 800;
    }

    .confidence {
      border: 1px solid color-mix(in srgb, var(--accent) 46%, rgba(255, 255, 255, .12));
      color: #f2fff4;
      background: color-mix(in srgb, var(--accent) 12%, rgba(5, 8, 8, .5));
      border-radius: 999px;
      padding: 4px 9px;
      font-size: 12px;
      white-space: nowrap;
    }

    .confidence.high { color: #dbffe8; border-color: rgba(79, 224, 138, .54); }
    .confidence.mid { color: #fff0c8; border-color: rgba(240, 186, 93, .54); }
    .confidence.low { color: #ffc9c6; border-color: rgba(255, 113, 107, .54); }

    .code {
      margin: 12px 0 8px;
      display: flex;
      gap: 7px;
      align-items: center;
      flex-wrap: wrap;
      font-size: clamp(24px, 3.2vw, 36px);
      font-weight: 900;
      line-height: 1;
      font-variant-numeric: tabular-nums;
      color: #f7fff7;
      text-shadow: 0 0 22px color-mix(in srgb, var(--accent) 28%, transparent);
      position: relative;
      z-index: 1;
    }

    .digit {
      display: inline-grid;
      place-items: center;
      width: clamp(30px, 4.2vw, 40px);
      height: clamp(38px, 5.2vw, 48px);
      border: 1px solid color-mix(in srgb, var(--accent) 42%, rgba(255, 255, 255, .12));
      border-radius: 7px;
      background:
        linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)),
        rgba(3, 8, 7, .52);
      box-shadow: inset 0 -12px 24px rgba(0, 0, 0, .2);
    }

    .code.pending {
      color: var(--muted);
      font-size: 22px;
    }

    .meta {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
      min-height: 24px;
      position: relative;
      z-index: 1;
    }

    .card-actions {
      display: flex;
      gap: 8px;
      margin-top: 8px;
      position: relative;
      z-index: 1;
    }

    .card-actions button {
      width: 100%;
      background: color-mix(in srgb, var(--accent) 10%, rgba(10, 16, 15, .86));
      border-color: color-mix(in srgb, var(--accent) 34%, rgba(255, 255, 255, .12));
      font-weight: 700;
    }

    .section-stack {
      display: grid;
      gap: 16px;
    }

    .loadout-sections {
      display: flex;
      flex-direction: column;
      gap: 14px;
      padding: 0 0 14px;
    }

    .loadout-section {
      display: grid;
      gap: 10px;
      padding: 2px 18px 0;
    }

    .loadout-section-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      min-height: 54px;
      padding: 13px 16px;
      border: 1px solid rgba(224, 236, 223, .12);
      border-radius: 6px;
      background:
        linear-gradient(90deg, rgba(79, 224, 138, .13), transparent 58%),
        rgba(8, 12, 12, .68);
      cursor: pointer;
    }

    .loadout-section-title {
      margin: 0;
      font-size: 16px;
      font-weight: 900;
      line-height: 1.25;
    }

    .loadout-section-note {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }

    .loadouts {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      padding: 0 0 10px;
    }

    .loadout-section.collapsed .loadouts {
      display: none;
    }

    .loadout-card {
      border: 1px solid rgba(184, 215, 198, .2);
      border-radius: 7px;
      background:
        linear-gradient(180deg, rgba(13, 25, 21, .96), rgba(6, 15, 13, .96)),
        rgba(4, 13, 11, .94);
      padding: 16px;
      min-height: 168px;
      display: grid;
      gap: 10px;
      align-content: start;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    }

    .loadout-card.compact-code .loadout-code {
      display: block;
    }

    .loadout-tools {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 10px;
      padding: 14px 12px 0;
    }

    .loadout-search {
      width: 100%;
      min-height: 42px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: rgba(8, 12, 12, .72);
      color: var(--text);
      padding: 0 13px;
      font-size: 14px;
      outline: 0;
    }

    .loadout-search:focus {
      border-color: rgba(79, 224, 138, .48);
      box-shadow: 0 0 0 3px rgba(79, 224, 138, .1);
    }

    .section-toggle {
      flex: 0 0 auto;
      min-height: 32px;
      padding: 0 12px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 800;
    }

    .loadout-name {
      font-size: 18px;
      font-weight: 900;
      color: #f1fff4;
      line-height: 1.25;
    }

    .loadout-note {
      color: #c9d5ce;
      font-size: 13px;
      line-height: 1.55;
    }

    .loadout-tags {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }

    .loadout-tags span {
      border: 1px solid rgba(234, 196, 91, .68);
      border-radius: 999px;
      padding: 3px 9px;
      color: #ffe5a2;
      background: rgba(116, 85, 20, .22);
      font-size: 11px;
      font-weight: 700;
    }

    .loadout-tags span:first-child {
      background: rgba(116, 85, 20, .22);
      color: #ffe5a2;
    }

    .loadout-tags span:nth-child(3) {
      background: rgba(116, 85, 20, .22);
      color: #ffe5a2;
    }

    .loadout-code {
      width: 100%;
      background: transparent;
      border: 0;
      border-radius: 0;
      color: #d7e4dc;
      padding: 0;
      font-size: 13px;
      line-height: 1.45;
      overflow-wrap: anywhere;
      min-height: 0;
      font-family: inherit;
    }

    .loadout-card button {
      width: 100%;
      margin-top: auto;
      min-height: 42px;
      border: 1px solid rgba(184, 215, 198, .32);
      border-radius: 6px;
      background: rgba(8, 18, 15, .52);
      color: #f3fff5;
      font-size: 14px;
      font-weight: 800;
      transition: .16s ease;
    }

    .loadout-card button:hover {
      border-color: rgba(79, 224, 138, .55);
      background: rgba(20, 80, 49, .36);
    }

    .loadout-tabs {
      display: none;
      gap: 10px;
      padding: 14px 12px 16px;
      overflow-x: auto;
      scrollbar-width: none;
      border-bottom: 1px solid var(--line);
      margin-bottom: 16px;
    }

    .loadout-tabs::-webkit-scrollbar {
      display: none;
    }

    .loadout-tab {
      flex: 0 0 auto;
      min-width: 112px;
      min-height: 36px;
      padding: 0 16px;
      border-radius: 999px;
      background: rgba(12, 17, 18, .92);
      color: var(--muted);
      border: 1px solid var(--line);
      box-shadow: none;
    }

    .loadout-tab.active {
      background: linear-gradient(135deg, var(--green), var(--green-2));
      color: #fff;
      border-color: transparent;
    }

    .side {
      display: contents;
    }

    .ranking-list {
      display: grid;
      gap: 8px;
      padding: 12px;
    }

    .rank-item {
      display: grid;
      grid-template-columns: 30px 1fr auto;
      align-items: center;
      gap: 9px;
      min-height: 58px;
      padding: 8px;
      border: 1px solid rgba(224, 236, 223, .1);
      border-radius: 7px;
      background:
        linear-gradient(90deg, rgba(64, 201, 140, .11), transparent 48%),
        rgba(8, 13, 13, .72);
    }

    .rank-item.disabled {
      opacity: .62;
    }

    .rank-no {
      width: 30px;
      height: 30px;
      display: grid;
      place-items: center;
      border-radius: 6px;
      background: rgba(220, 255, 231, .1);
      color: var(--green);
      font-weight: 900;
      font-size: 13px;
    }

    .rank-name {
      font-weight: 850;
      font-size: 13px;
      line-height: 1.25;
    }

    .rank-code {
      margin-top: 3px;
      color: var(--muted);
      font-family: var(--mono);
      font-size: 10px;
      line-height: 1.35;
      word-break: break-all;
    }

    .rank-item button {
      min-height: 30px;
      padding: 0 10px;
      font-size: 12px;
      font-weight: 800;
    }

    .red-atlas {
      grid-template-columns: 1fr;
      gap: 10px;
    }

    .red-atlas.collapsed {
      display: none;
    }

    .red-section {
      display: grid;
      gap: 10px;
    }

    .red-section.collapsed .red-section-grid {
      display: none;
    }

    .red-section-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      min-height: 46px;
      padding: 10px 12px;
      border: 1px solid rgba(255, 117, 111, .2);
      border-radius: 6px;
      background:
        linear-gradient(90deg, rgba(255, 117, 111, .16), transparent 58%),
        rgba(13, 10, 10, .72);
      cursor: pointer;
    }

    .red-section-title {
      font-weight: 900;
      font-size: 15px;
    }

    .red-section-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
      gap: 10px;
    }

    .atlas-head-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .red-item {
      min-height: 106px;
      padding: 12px;
      border: 1px solid rgba(255, 117, 111, .22);
      border-radius: 8px;
      background:
        linear-gradient(135deg, rgba(255, 117, 111, .15), transparent 52%),
        linear-gradient(180deg, rgba(22, 14, 14, .96), rgba(9, 12, 12, .96));
      display: grid;
      grid-template-columns: 54px 1fr;
      gap: 10px;
      align-items: center;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    }

    .red-item-img {
      width: 58px;
      height: 58px;
      border-radius: 7px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255, 210, 160, .24);
      color: #ffd9b5;
      background:
        radial-gradient(circle at 30% 20%, rgba(255, 219, 154, .3), transparent 34%),
        linear-gradient(145deg, rgba(145, 22, 27, .92), rgba(46, 8, 10, .96));
      font-size: 12px;
      font-weight: 900;
      text-align: center;
      line-height: 1.12;
      overflow: hidden;
    }

    .red-item-img img {
      display: block;
      width: 88%;
      height: 88%;
      object-fit: contain;
      object-position: center;
      transform: none;
    }

    .red-item-name {
      font-size: 14px;
      font-weight: 900;
      line-height: 1.25;
    }

    .red-item-note {
      margin-top: 5px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

    .red-item-tag {
      display: inline-flex;
      width: fit-content;
      margin-top: 8px;
      padding: 3px 8px;
      border-radius: 999px;
      background: rgba(255, 117, 111, .15);
      color: #ffb7b3;
      font-size: 11px;
      font-weight: 800;
    }

    .form {
      padding: 14px;
      display: grid;
      gap: 10px;
    }

    .row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .source-list, .history-list {
      padding: 12px 14px 14px;
      display: grid;
      gap: 10px;
      max-height: 468px;
      overflow: auto;
    }

    .source-item, .history-item {
      border: 1px solid var(--line);
      border-radius: 6px;
      padding: 11px;
      background: rgba(8, 12, 12, .42);
    }

    .source-item strong, .history-item strong {
      display: block;
      margin-bottom: 5px;
      overflow-wrap: anywhere;
    }

    .source-item p, .history-item p {
      margin: 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
      overflow-wrap: anywhere;
    }

    .toast {
      position: fixed;
      left: 50%;
      bottom: 18px;
      transform: translateX(-50%) translateY(16px);
      background: rgba(9, 14, 13, .94);
      color: var(--text);
      border: 1px solid rgba(79, 224, 138, .42);
      border-radius: 8px;
      padding: 10px 14px;
      opacity: 0;
      pointer-events: none;
      transition: .18s ease;
      box-shadow: var(--shadow);
      max-width: min(520px, calc(100% - 24px));
      text-align: center;
    }

    .toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    .empty {
      color: var(--muted);
      padding: 22px 16px;
      text-align: center;
    }

    .small {
      font-size: 12px;
      color: var(--muted);
    }

    .player-hidden {
      display: none !important;
    }

    @media (max-width: 900px) {
      .layout,
      .status-strip {
        grid-template-columns: 1fr;
      }

      .daily-panel .cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .actions {
        justify-content: stretch;
      }

      .actions button {
        flex: 1 1 150px;
      }

      .countdown-card {
        text-align: center;
      }
    }

    @media (max-width: 620px) {
      .app {
        width: min(100% - 20px, 1180px);
        padding-top: 14px;
      }

      .brand {
        align-items: center;
        background: none;
        padding-right: 0;
      }

      .daily-panel .panel-head {
        padding: 12px 100px 12px 16px;
        background:
          url("logo.png") right 12px center / 84px auto no-repeat,
          rgba(4, 12, 10, .72);
      }

      .cards,
      .row {
        grid-template-columns: 1fr;
      }

      .panel-head {
        align-items: flex-start;
        flex-direction: column;
      }

      .card-actions button {
        flex: 1;
      }

      .countdown-card {
        flex: 1 1 100%;
        min-width: 0;
        padding: 9px 10px 10px;
      }

      .countdown-digits {
        justify-content: center;
      }

      .countdown-sub {
        max-width: 100%;
        min-height: 13px;
        margin-top: 5px;
        font-size: 9px;
      }

      .event-time {
        min-width: 76px;
        font-size: 9px;
      }

      .daily-panel .cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 10px 8px 12px;
      }

      .daily-map {
        min-height: 118px;
        padding: 8px;
      }

      .daily-map-name {
        font-size: 13px;
      }

      .daily-code-box {
        min-height: 44px;
        padding: 6px 6px;
        gap: 3px;
        font-size: clamp(16px, 4.8vw, 22px);
      }

      .daily-copy-btn {
        min-height: 28px;
        font-size: 11px;
      }

      .daily-digit {
        width: clamp(16px, 4.2vw, 24px);
        height: 32px;
        border-radius: 5px;
      }

      .loadouts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 0 0 6px;
      }

      .loadout-section {
        padding: 2px 10px 0;
      }

      .loadout-section-head {
        min-height: 50px;
        padding: 11px 12px;
      }

      .loadout-card {
        min-height: 142px;
        padding: 10px 8px;
        gap: 7px;
      }

      .loadout-tags {
        gap: 4px;
      }

      .loadout-tags span {
        max-width: 100%;
        padding: 2px 6px;
        font-size: 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .loadout-tags span:nth-child(n+3) {
        display: none;
      }

      .loadout-name {
        font-size: 12px;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }

      .loadout-note {
        font-size: 10px;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }

      .loadout-code {
        font-size: 10px;
        line-height: 1.3;
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }

      .loadout-card button {
        min-height: 32px;
        border-radius: 5px;
        font-size: 11px;
      }
    }

    @media (max-width: 420px) {
      .daily-panel .cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .daily-code-box {
        padding: 4px 4px;
        gap: 2px;
      }

      .daily-digit {
        width: clamp(14px, 4vw, 20px);
        height: 28px;
      }

      .loadouts {
        gap: 6px;
      }

      .loadout-section {
        padding: 2px 8px 0;
      }

      .loadout-section-head {
        padding: 10px 11px;
      }

      .loadout-card {
        min-height: 132px;
        padding: 8px 6px;
      }

      .loadout-name {
        font-size: 11px;
      }

      .loadout-note,
      .loadout-code {
        font-size: 9px;
      }

      .loadout-card button {
        min-height: 30px;
        font-size: 10px;
      }
    }
