:root {
  color-scheme: light;
  --bg: #f5f7f6;
  --sidebar-bg: rgba(255, 255, 255, 0.88);
  --chat-bg: #f9fbfb;
  --panel: #ffffff;
  --panel-soft: #f9fbfb;
  --panel-strong: #eef4f2;
  --bubble-in-bg: #ffffff;
  --bubble-out-bg: #147d7e;
  --line: #dfe6e5;
  --line-strong: #cbd7d5;
  --text: #20282f;
  --text-strong: #111820;
  --muted: #697680;
  --muted-soft: #8a969e;
  --accent: #b74b37;
  --accent-strong: #7d2f23;
  --accent-soft: #fff0cf;
  --accent-tint: #fff6df;
  --gold: #b98516;
  --gold-soft: #fff3cf;
  --danger: #c94343;
  --danger-soft: #ffe8e8;
  --shadow: 0 16px 40px rgba(30, 50, 60, 0.08);
  --warm-bg: #5b2b18;
  --warm-bg-deep: #31170f;
  --warm-shell: #7a3d1d;
  --warm-shell-strong: #552819;
  --warm-line: #b57740;
  --warm-gold: #ffd66e;
  --warm-gold-deep: #b66b1f;
  --warm-cream: #fff0cf;
  --warm-cream-strong: #fff7df;
  --warm-cream-muted: rgba(255, 240, 207, 0.78);
  --warm-cream-soft: rgba(255, 240, 207, 0.14);
  --warm-glow: rgba(255, 214, 110, 0.2);
  --warm-glow-soft: rgba(255, 214, 110, 0.12);
  --warm-overlay: rgba(49, 23, 15, 0.28);
  --warm-overlay-soft: rgba(49, 23, 15, 0.16);
  --warm-shadow: rgba(27, 10, 5, 0.24);
  --royal: #2e219a;
  --window-scale: 1;
  --fs-10: 10px;
  --fs-11: 11px;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-15: 15px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-19: 19px;
  --fs-20: 20px;
  --fs-21: 21px;
  --fs-22: 22px;
  --fs-26: 26px;
  --fs-28: 28px;
  --fs-34: 34px;
  --sidebar-min: 360px;
  --sidebar-max: 420px;
  --topbar-min: 126px;
  --topbar-margin: 8px;
  --topbar-pad-y: 15px;
  --topbar-pad-x: 17px;
  --chat-header-min: 88px;
  --chat-pad-y: 14px;
  --chat-pad-x: 18px;
  --bulk-heading-width: 170px;
  --bulk-pad-y: 12px;
  --bulk-pad-x: 16px;
  --bulk-textarea-height: 60px;
  --bulk-time-width: 190px;
  --bulk-button-width: 104px;
  --control-height: 46px;
  --bot-card-min: 74px;
  --bot-card-pad: 8px;
  --bot-card-gap: 6px;
  --bot-rank-size: 32px;
  --bot-count-height: 36px;
  --list-tools-pad-y: 10px;
  --list-tools-pad-x: 12px;
  --messages-pad: 20px;
  --messages-workspace-pad-y: 16px;
  --messages-workspace-pad-x: 20px;
  --stage-pad: 22px;
  --workspace-hero-min: 112px;
  --workspace-hero-pad: 16px;
  --workspace-rank-min: 86px;
  --workspace-rank-pad-x: 14px;
  --workspace-rank-height: 48px;
  --summary-card-min: 76px;
  --customer-card-min: 96px;
  --customer-card-pad: 12px;
  --customer-grid-min: 190px;
  --ui-gap: 12px;
  --reply-height: 86px;
  --reply-button-width: 96px;
  --reply-pad-y: 12px;
  --reply-pad-x: 16px;
  --brand-mark-size: 48px;
  --icon-btn-size: 44px;
  --account-strip-min: 42px;
  --admin-width: 540px;
  --iphone-16-pro-width: 402px;
  --iphone-16-pro-height: 874px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 14%, var(--warm-glow), transparent 28%),
    linear-gradient(135deg, var(--warm-shell) 0%, var(--warm-bg) 46%, var(--warm-bg-deep) 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.app-splash {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #080807;
  opacity: 1;
  visibility: visible;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.app-splash.is-exiting {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-splash-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #080807;
}

.app-splash-skip {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  min-width: 48px;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(8, 8, 7, 0.34);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
}

body.splash-active {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app {
  font-size: var(--fs-13);
  display: grid;
  grid-template-columns: minmax(var(--sidebar-min), var(--sidebar-max)) minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
  background: var(--warm-overlay-soft);
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(20, 125, 126, 0.08), rgba(245, 247, 246, 0) 300px),
    var(--bg);
}

.login-card {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.login-brand {
  margin-bottom: 4px;
}

.login-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: var(--fs-13);
  font-weight: 700;
}

.login-card input {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: var(--panel-soft);
  outline: 0;
}

.login-card input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.login-card button,
.staff-form button,
.knowledge-form button,
.staff-actions button {
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.login-card button:disabled {
  opacity: 0.65;
  cursor: default;
}

.login-divider {
  position: relative;
  text-align: center;
  color: var(--muted);
  font-size: var(--fs-12);
}

.login-divider::before,
.login-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--line);
}

.login-divider::before {
  left: 0;
}

.login-divider::after {
  right: 0;
}

.whatsapp-login-btn {
  background: #25d366 !important;
  color: #fff !important;
}

.whatsapp-login-hint {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-13);
  line-height: 1.5;
}

.whatsapp-login-hint a {
  color: #128c7e;
  font-weight: 800;
}

.login-error {
  min-height: 20px;
  color: var(--danger);
  font-weight: 700;
}

.sidebar {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--warm-glow-soft), transparent 220px),
    linear-gradient(180deg, var(--warm-shell), var(--warm-bg-deep));
  border-right: 1px solid var(--warm-glow);
  display: flex;
  flex-direction: column;
  box-shadow: 14px 0 34px rgba(25, 10, 5, 0.28);
}

.topbar {
  min-height: var(--chat-header-min);
  padding: var(--topbar-pad-y) var(--topbar-pad-x);
  border-bottom: 1px solid var(--warm-glow);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
}

.chat-header {
  min-height: var(--chat-header-min);
  padding: var(--chat-pad-y) var(--chat-pad-x);
  border-bottom: 1px solid rgba(181, 119, 64, 0.24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  min-height: var(--topbar-min);
  margin: var(--topbar-margin) var(--topbar-margin) calc(var(--topbar-margin) - 2px);
  border: 1px solid var(--warm-glow);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 18%, var(--warm-glow), transparent 34%),
    linear-gradient(135deg, var(--warm-shell), var(--warm-bg));
  box-shadow: inset 0 1px 0 var(--warm-cream-soft), 0 16px 34px var(--warm-shadow);
}

.account-strip {
  min-height: var(--account-strip-min);
  padding: 0 18px;
  border-top: 1px solid var(--warm-glow-soft);
  border-bottom: 1px solid var(--warm-glow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--warm-cream-muted);
  background: var(--warm-overlay);
  font-size: var(--fs-12);
}

.account-strip button {
  border: 0;
  background: transparent;
  color: var(--warm-gold);
  cursor: pointer;
  font-weight: 800;
}

.top-actions,
.chat-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.top-actions {
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.topbar {
  flex-direction: column;
}

.topbar .brand {
  align-items: flex-start;
}

.topbar .brand h1 {
  white-space: nowrap;
}

.topbar .brand > div {
  min-width: 0;
}

.brand-mark {
  width: var(--brand-mark-size);
  height: var(--brand-mark-size);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.02)),
    url("/static/assets/mobile-sheep-avatar-4k.png") center / cover no-repeat;
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  font-weight: 800;
  flex: 0 0 auto;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 236, 246, 0.28),
    0 10px 24px rgba(20, 125, 126, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

.brand-ai,
.mobile-home-title,
.mobile-home-subtitle,
.mobile-title-grid {
  display: none;
}

.sidebar h1 {
  color: var(--warm-cream-strong);
}

.sidebar p {
  color: var(--warm-cream-muted);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  color: var(--text-strong);
  font-size: var(--fs-21);
  line-height: 1.2;
}

h2 {
  color: var(--text-strong);
  font-size: var(--fs-21);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

h3 {
  color: var(--text-strong);
  font-size: var(--fs-18);
  line-height: 1.3;
}

p {
  color: var(--muted);
  font-size: var(--fs-13);
  line-height: 1.45;
  margin-top: 5px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  margin-right: 7px;
  vertical-align: 1px;
  box-shadow: 0 0 0 4px rgba(185, 133, 22, 0.12);
}

.status-dot.online {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(20, 125, 126, 0.12);
}

.status-dot.error {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(201, 67, 67, 0.12);
}

.icon-btn {
  width: var(--icon-btn-size);
  height: var(--icon-btn-size);
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  box-shadow: 0 6px 18px rgba(25, 40, 45, 0.06);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.icon-btn:hover:not(:disabled) {
  background: var(--accent-tint);
  border-color: rgba(20, 125, 126, 0.3);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.icon-btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.fund-toggle-btn {
  font-size: var(--fs-13);
  letter-spacing: 1px;
  font-weight: 900;
}

.chat-actions .fund-toggle-btn.active {
  border-color: var(--warm-gold);
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: var(--warm-cream-strong);
}

.chat-more-menu {
  position: relative;
  flex: 0 0 auto;
}

.chat-more-summary {
  user-select: none;
}

.chat-more-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 12;
  min-width: 134px;
  padding: 8px;
  border: 1px solid var(--warm-glow);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  background: var(--warm-cream);
  box-shadow: 0 16px 34px rgba(27, 10, 5, 0.26);
}

.chat-more-popover .text-btn {
  width: 100%;
  justify-content: center;
  color: var(--warm-shell-strong);
  background: linear-gradient(180deg, var(--warm-cream-strong), var(--warm-gold));
}

.chat-more-popover .text-btn.danger {
  color: var(--danger);
  background: #fff7f5;
  border-color: rgba(201, 67, 67, 0.24);
}

.text-btn {
  height: var(--control-height);
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  padding: 0 12px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(25, 40, 45, 0.06);
}

.text-btn:hover:not(:disabled) {
  background: var(--accent-tint);
  border-color: rgba(20, 125, 126, 0.3);
  color: var(--accent-strong);
}

.topbar .text-btn,
.topbar .icon-btn,
.chat-actions .text-btn,
.chat-actions .icon-btn {
  border-color: var(--warm-glow);
  background: linear-gradient(180deg, var(--warm-cream), var(--warm-gold));
  color: var(--warm-shell-strong);
  box-shadow: 0 8px 18px var(--warm-shadow);
}

.topbar .text-btn:hover:not(:disabled),
.topbar .icon-btn:hover:not(:disabled),
.chat-actions .text-btn:hover:not(:disabled),
.chat-actions .icon-btn:hover:not(:disabled) {
  border-color: var(--warm-gold);
  background: linear-gradient(180deg, var(--warm-cream-strong), var(--warm-gold));
  color: var(--warm-shell-strong);
}

.color-chip-btn {
  font-size: 0;
}

.color-swatch {
  width: calc(var(--icon-btn-size) * 0.52);
  height: calc(var(--icon-btn-size) * 0.52);
  border-radius: 8px;
  background: var(--accent);
  border: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 5px 14px var(--warm-shadow);
  display: block;
}

.text-btn.danger:hover:not(:disabled) {
  background: var(--danger-soft);
  border-color: rgba(201, 67, 67, 0.3);
  color: var(--danger);
}

.admin-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 20;
  width: min(var(--admin-width), 100vw);
  height: 100vh;
  font-size: var(--fs-13);
  overflow: auto;
  border-left: 1px solid var(--line);
  background: var(--panel);
  box-shadow: -18px 0 48px rgba(25, 40, 45, 0.16);
}

.admin-panel header {
  min-height: 78px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.staff-form {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: var(--panel-soft);
}

.knowledge-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}

.data-feed-button {
  margin: 12px var(--topbar-margin);
  padding: 0;
  border: 1px solid rgba(255, 214, 110, 0.35);
  border-radius: 8px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 74%, white 8%), color-mix(in srgb, var(--accent) 94%, black 10%));
  color: #fff5df;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.data-feed-button summary,
.selection-disclosure summary,
.bulk-panel summary,
.chat-more-menu summary {
  list-style: none;
}

.data-feed-button summary::-webkit-details-marker,
.selection-disclosure summary::-webkit-details-marker,
.bulk-panel summary::-webkit-details-marker,
.chat-more-menu summary::-webkit-details-marker {
  display: none;
}

.tool-disclosure-summary {
  min-height: 54px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.disclosure-caret {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 245, 223, 0.9);
  font-size: var(--fs-18);
  font-weight: 900;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.16s ease, background 0.16s ease;
}

details[open] > summary .disclosure-caret {
  transform: rotate(90deg);
  background: rgba(255, 255, 255, 0.22);
}

.data-feed-button strong {
  display: block;
  font-size: var(--fs-18);
  line-height: 1.2;
}

.data-feed-button span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 245, 223, 0.78);
  font-size: var(--fs-12);
}

.data-feed-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0 12px 12px;
}

.data-feed-actions button {
  height: 38px;
  padding: 0 8px;
  border: 1px solid rgba(255, 245, 223, 0.35);
  border-radius: 8px;
  background: rgba(255, 245, 223, 0.14);
  color: #fff5df;
  font-size: var(--fs-12);
  white-space: nowrap;
}

.feed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

.mobile-personalize-panel {
  display: none;
}

.mobile-settings-grid {
  display: grid;
  gap: 14px;
}

.mobile-setting-row {
  display: grid;
  gap: 10px;
}

.mobile-swatch-row,
.mobile-font-row,
.mobile-font-style-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.mobile-swatch {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 245, 223, 0.22);
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.55), transparent 34%),
    var(--swatch);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 18px rgba(0, 0, 0, 0.18);
}

.mobile-swatch.selected,
.mobile-font-row button.selected {
  border-color: var(--warm-gold);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 0 0 3px rgba(255, 213, 111, 0.18),
    0 12px 22px rgba(0, 0, 0, 0.22);
}

.mobile-font-row button {
  min-width: 72px;
  height: 42px;
  border: 1px solid rgba(255, 245, 223, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--warm-cream-strong);
  font-weight: 800;
}

.mobile-font-style-row button {
  min-width: 76px;
  min-height: 66px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 245, 223, 0.22);
  border-radius: 16px;
  display: grid;
  gap: 3px;
  place-items: center;
  background:
    radial-gradient(circle at 30% 14%, rgba(255, 255, 255, 0.28), transparent 30%),
    rgba(255, 255, 255, 0.08);
  color: var(--warm-cream-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 18px rgba(0, 0, 0, 0.14);
}

.mobile-font-style-row button.selected {
  border-color: var(--warm-gold);
  background:
    radial-gradient(circle at 30% 14%, rgba(255, 255, 255, 0.32), transparent 30%),
    linear-gradient(180deg, rgba(255, 227, 143, 0.24), rgba(92, 28, 67, 0.38));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 0 3px rgba(255, 213, 111, 0.16),
    0 12px 22px rgba(0, 0, 0, 0.18);
}

.mobile-font-style-row span {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.mobile-font-style-row small {
  color: rgba(255, 248, 231, 0.72);
  font-size: 11px;
  font-weight: 800;
}

[data-mobile-title-font="round"] span {
  font-family: "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
}

[data-mobile-title-font="song"] span {
  font-family: "Songti SC", "STSong", serif;
}

[data-mobile-title-font="kai"] span {
  font-family: "Kaiti SC", "STKaiti", cursive;
}

[data-mobile-title-font="hei"] span {
  font-family: "Heiti SC", "STHeiti", "PingFang SC", sans-serif;
}

[data-mobile-title-font="flower"] span {
  font-family: "Snell Roundhand", "Kaiti SC", "STKaiti", cursive;
  font-style: italic;
}

[data-mobile-title-font="threed"] span {
  color: #ffe4a4;
  text-shadow: 0 2px 0 #7d3150, 0 5px 8px rgba(33, 5, 26, 0.42);
}

[data-mobile-title-font="metal"] span {
  color: #fff2b7;
  text-shadow: 0 1px 0 #ffffff, 0 2px 0 #c88f20, 0 4px 8px rgba(33, 5, 26, 0.34);
}

[data-mobile-title-font="neon"] span {
  color: #ffe6fb;
  text-shadow: 0 0 6px rgba(255, 169, 230, 0.9), 0 0 12px rgba(255, 205, 94, 0.48);
}

[data-mobile-title-font="seal"] span {
  color: #ffd9e8;
  font-family: "Songti SC", "STSong", serif;
  text-shadow: 0 2px 0 rgba(77, 16, 55, 0.6);
}

.feed-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.feed-card strong {
  display: block;
  color: var(--text-strong);
  font-size: var(--fs-16);
}

.feed-card span,
.feed-status {
  color: var(--muted);
  font-size: var(--fs-12);
  line-height: 1.4;
}

.feed-card input,
.feed-card select {
  min-width: 0;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--panel);
  color: var(--text);
  outline: 0;
}

.feed-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: var(--fs-12);
}

.feed-card button {
  min-height: 40px;
  padding: 0 12px;
}

.feed-inline {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 8px;
}

.knowledge-form input[type="file"] {
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--panel-soft);
}

.knowledge-form button {
  padding: 0 14px;
}

.section-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--fs-12);
}

.staff-form input {
  min-width: 0;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  outline: 0;
  background: var(--panel);
}

.staff-form button {
  grid-column: span 2;
}

.admin-section {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.staff-list,
.knowledge-list,
.audit-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.staff-row,
.knowledge-row,
.audit-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 12px;
}

.staff-row,
.knowledge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.staff-row strong,
.knowledge-row strong,
.audit-row strong {
  display: block;
  color: var(--text-strong);
  font-size: var(--fs-14);
  line-height: 1.35;
}

.staff-row span,
.knowledge-row span,
.knowledge-row time,
.audit-row span,
.audit-row time {
  color: var(--muted);
  font-size: var(--fs-12);
  line-height: 1.4;
}

.staff-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.staff-actions button {
  height: 34px;
  padding: 0 10px;
  background: var(--panel);
  color: var(--accent-strong);
  border: 1px solid var(--line);
}

.knowledge-row button {
  height: 34px;
  border: 1px solid rgba(201, 67, 67, 0.25);
  border-radius: 8px;
  background: var(--danger-soft);
  color: var(--danger);
  cursor: pointer;
  font-weight: 800;
  padding: 0 10px;
  flex: 0 0 auto;
}

.audit-row p {
  margin-top: 8px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.theme-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

.theme-panel label {
  color: var(--muted);
  font-size: var(--fs-12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.theme-panel input[type="color"] {
  width: 34px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
}

.theme-panel button {
  grid-column: 1 / -1;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.bot-panel {
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px 14px 14px;
  border-bottom: 1px solid var(--warm-glow-soft);
  background: var(--warm-overlay-soft);
  display: flex;
  flex-direction: column;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px 8px;
}

.panel-heading strong {
  color: var(--warm-cream-strong);
  font-size: var(--fs-14);
  line-height: 1.2;
}

.panel-heading span {
  color: var(--warm-gold);
  font-size: var(--fs-12);
  font-weight: 800;
}

.bot-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(var(--bot-card-min), auto);
  gap: var(--bot-card-gap);
}

.bot-card {
  min-width: 0;
  min-height: var(--bot-card-min);
  border: 1px solid var(--warm-line);
  border-radius: 8px;
  background-color: var(--warm-shell);
  background-image:
    linear-gradient(180deg, rgba(255, 245, 222, 0.18), rgba(42, 17, 9, 0.2)),
    linear-gradient(135deg, var(--warm-glow-soft), transparent 50%);
  color: var(--warm-cream-strong);
  padding: var(--bot-card-pad);
  display: grid;
  grid-template-columns: var(--bot-rank-size) minmax(0, 1fr) calc(var(--bot-count-height) + 8px);
  align-items: center;
  gap: var(--bot-card-gap);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 222, 0.2),
    inset 0 -1px 0 rgba(43, 16, 8, 0.2),
    0 12px 20px var(--warm-shadow);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.bot-card:hover,
.bot-card.active {
  border-color: var(--warm-gold);
  background-color: var(--warm-gold-deep);
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 222, 0.28),
    0 16px 30px var(--warm-shadow);
}

.bot-card:hover {
  transform: translateY(-1px);
}

.bot-rank {
  width: var(--bot-rank-size);
  height: var(--bot-rank-size);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--warm-gold), var(--warm-gold-deep));
  color: var(--warm-bg-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-18);
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.bot-card.active .bot-rank {
  background: linear-gradient(135deg, var(--warm-cream), var(--warm-gold));
  color: var(--warm-shell-strong);
}

.bot-body {
  min-width: 0;
  overflow: hidden;
}

.bot-menu-label {
  display: block;
  margin-bottom: 1px;
  color: var(--warm-gold);
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
}

.bot-name-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.bot-name-row strong {
  min-width: 0;
  color: var(--warm-cream-strong);
  font-size: 12px;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bot-state {
  height: 14px;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  flex: 0 0 auto;
}

.bot-state.online {
  background: var(--warm-cream-soft);
  color: var(--warm-cream);
}

.bot-state.offline {
  background: var(--danger-soft);
  color: var(--danger);
}

.bot-username,
.bot-empty {
  margin-top: 1px;
  color: var(--warm-cream-muted);
  font-size: 9px;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:root[data-window-size="compact"] .bot-username {
  display: none;
}

:root[data-window-size="compact"] .bot-menu-label {
  margin-bottom: 2px;
}

:root[data-window-size="compact"] .bot-stats {
  margin-top: 2px;
}

.bot-stats {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  color: var(--warm-cream-strong);
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
  overflow: hidden;
}

.bot-stats span {
  min-width: 0;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--warm-cream-soft);
  color: var(--warm-cream);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.bot-stats span:first-child {
  background: var(--warm-cream-soft);
  color: var(--warm-cream);
}

.bot-stats span:last-child {
  background: var(--warm-glow);
  color: var(--warm-gold);
}

.bot-count-pill {
  min-width: 0;
  height: var(--bot-count-height);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--warm-gold), var(--warm-gold-deep));
  color: var(--warm-bg-deep);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  font-weight: 900;
}

.bot-count-pill strong {
  color: inherit;
  font-size: var(--fs-16);
  line-height: 1;
}

.bot-count-pill span {
  font-size: 8px;
  line-height: 1;
  white-space: nowrap;
}

.bot-card.active .bot-count-pill {
  background: linear-gradient(180deg, var(--warm-cream), var(--warm-gold));
  color: var(--warm-shell-strong);
}

.bot-empty {
  margin: 0;
  padding: 12px;
  border: 1px dashed var(--warm-glow);
  border-radius: 8px;
  background: var(--warm-cream-soft);
  text-align: center;
}

.list-tools {
  display: none;
  padding: var(--list-tools-pad-y) var(--list-tools-pad-x) calc(var(--list-tools-pad-y) - 2px);
  border-bottom: 1px solid var(--warm-glow-soft);
  background: var(--warm-overlay-soft);
}

.search {
  height: 42px;
  border: 1px solid var(--warm-glow);
  border-radius: 8px;
  background: var(--warm-cream);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--muted-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search input::placeholder,
textarea::placeholder {
  color: var(--muted-soft);
}

.contact-count {
  margin-top: 10px;
  color: var(--warm-cream-muted);
  font-size: var(--fs-12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.selection-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--warm-cream-muted);
  font-size: var(--fs-12);
}

.selection-disclosure {
  margin-top: 8px;
  border: 1px solid var(--warm-glow-soft);
  border-radius: 8px;
  background: rgba(255, 240, 207, 0.08);
  overflow: hidden;
}

.selection-disclosure summary {
  min-height: 34px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  color: var(--warm-cream-muted);
  font-size: var(--fs-12);
  font-weight: 900;
}

.selection-disclosure .disclosure-caret {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: var(--fs-14);
}

.selection-disclosure .selection-tools {
  padding: 0 10px 10px;
}

.select-all {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.selection-tools button {
  border: 0;
  background: transparent;
  color: var(--warm-gold);
  cursor: pointer;
  font-size: var(--fs-12);
  font-weight: 800;
  padding: 4px 0;
}

input[type="checkbox"] {
  accent-color: var(--accent);
}

.contacts {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 10px 10px 18px;
  background: var(--warm-overlay-soft);
}

.contact-item {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  padding: 0 6px 0 4px;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.contact-item + .contact-item {
  margin-top: 4px;
}

.contact-item:hover {
  background: var(--warm-cream-soft);
  border-color: var(--warm-glow);
}

.contact-item.active {
  background: var(--warm-glow-soft);
  border-color: var(--warm-glow);
  box-shadow: 0 10px 28px var(--warm-shadow);
}

.contact-item.blocked {
  opacity: 0.68;
}

.contact-item.blocked .avatar,
.bot-customer-card.blocked .avatar {
  filter: grayscale(1);
}

.contact-check {
  width: 16px;
  height: 16px;
  margin: 0 auto;
}

.contact {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--warm-cream-strong);
  text-align: left;
  padding: 12px 6px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--warm-cream);
  color: var(--warm-shell-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  overflow: hidden;
}

.avatar-photo {
  background-color: var(--warm-cream);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: transparent;
}

.chat-avatar {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1px solid var(--warm-glow);
  box-shadow: 0 10px 24px var(--warm-shadow);
}

.contact-item.active .avatar {
  background: var(--warm-gold);
  color: var(--warm-shell-strong);
}

.contact-body {
  min-width: 0;
}

.contact-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--warm-cream-strong);
  font-weight: 800;
  line-height: 1.25;
}

.contact-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-12);
  font-weight: 800;
  flex: 0 0 auto;
}

.tag,
.bot-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: var(--fs-11);
  font-weight: 800;
  vertical-align: middle;
  white-space: nowrap;
}

.tag {
  background: var(--gold-soft);
  color: var(--gold);
}

.bot-tag {
  margin-right: 6px;
  background: var(--warm-cream-soft);
  color: var(--warm-gold);
}

.block-tag {
  margin-left: 6px;
  background: var(--danger-soft);
  color: var(--danger);
}

.contact-meta,
.contact-last {
  color: var(--warm-cream-muted);
  font-size: var(--fs-12);
  line-height: 1.35;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-last {
  color: var(--warm-cream);
}

.empty-list {
  margin: 16px 6px;
  padding: 26px 14px;
  border: 1px dashed var(--warm-glow);
  border-radius: 8px;
  color: var(--warm-cream-muted);
  text-align: center;
  background: var(--warm-cream-soft);
}

.chat {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 80% 10%, var(--warm-glow-soft), transparent 30%),
    linear-gradient(135deg, var(--warm-shell) 0%, var(--warm-bg) 38%, var(--warm-bg-deep) 100%);
}

.chat-header {
  background:
    linear-gradient(180deg, var(--warm-cream-soft), var(--warm-overlay-soft)),
    var(--warm-overlay);
}

.chat-header h2 {
  color: var(--warm-cream-strong);
}

.chat-header p {
  color: var(--warm-cream-muted);
}

.chat-header > div {
  min-width: 0;
}

.chat-title {
  flex: 1 1 auto;
  min-width: 0;
}

.back-btn {
  width: var(--icon-btn-size);
  height: var(--icon-btn-size);
  border: 1px solid var(--warm-glow);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--warm-cream), var(--warm-gold));
  color: var(--warm-shell-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-22);
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  flex: 0 0 auto;
  box-shadow: 0 8px 18px var(--warm-shadow);
}

.back-btn:hover {
  border-color: var(--warm-gold);
  background: linear-gradient(180deg, var(--warm-cream-strong), var(--warm-gold));
}

.portal-back-btn {
  display: none;
  width: auto;
  min-width: 74px;
  padding: 0 12px;
  font-size: var(--fs-14);
  gap: 4px;
}

.funds-panel {
  padding: 14px var(--bulk-pad-x);
  border-bottom: 1px solid var(--warm-glow);
  background: rgba(255, 240, 207, 0.08);
  display: grid;
  gap: 10px;
}

.funds-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.funds-heading strong {
  display: block;
  color: var(--warm-cream-strong);
  font-size: var(--fs-14);
  line-height: 1.2;
}

.funds-heading span {
  display: block;
  margin-top: 4px;
  color: var(--warm-cream-muted);
  font-size: var(--fs-12);
}

.funds-heading button,
.funds-actions button,
.player-lookup-head button,
.bonus-form button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: var(--warm-cream-strong);
  cursor: pointer;
  font-weight: 800;
  padding: 0 14px;
}

.funds-heading button:disabled,
.funds-actions button:disabled,
.player-lookup-head button:disabled,
.bonus-form button:disabled {
  opacity: 0.58;
  cursor: default;
}

.funds-grid,
.bonus-form {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) repeat(4, minmax(92px, 0.7fr)) minmax(150px, 1fr);
  gap: 8px;
  align-items: end;
}

.funds-grid label,
.bonus-form label {
  min-width: 0;
  display: grid;
  gap: 4px;
  color: var(--warm-cream-muted);
  font-size: var(--fs-11);
  font-weight: 800;
}

.funds-grid input,
.funds-grid select,
.bonus-form input,
.bonus-form select {
  min-width: 0;
  height: 38px;
  border: 1px solid var(--warm-glow);
  border-radius: 8px;
  background: var(--warm-cream);
  color: var(--warm-bg-deep);
  padding: 0 9px;
  outline: none;
}

.fund-note-field {
  grid-column: auto;
}

.funds-actions {
  display: flex;
  justify-content: flex-end;
}

.player-lookup {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 214, 110, 0.2);
  border-radius: 8px;
  background: rgba(31, 23, 15, 0.22);
  padding: 10px;
}

.player-lookup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.player-lookup-head strong,
.player-lookup-summary strong {
  display: block;
  color: var(--warm-cream-strong);
  font-size: var(--fs-13);
  line-height: 1.25;
}

.player-lookup-head span,
.player-lookup-summary span {
  display: block;
  margin-top: 4px;
  color: var(--warm-cream-muted);
  font-size: var(--fs-11);
  line-height: 1.35;
}

.player-lookup-controls {
  display: grid;
  grid-template-columns: minmax(90px, 0.45fr) minmax(150px, 1fr);
  gap: 8px;
}

.player-lookup-controls label {
  min-width: 0;
  display: grid;
  gap: 4px;
  color: var(--warm-cream-muted);
  font-size: var(--fs-11);
  font-weight: 800;
}

.player-lookup-controls input,
.player-lookup-controls select {
  min-width: 0;
  height: 38px;
  border: 1px solid var(--warm-glow);
  border-radius: 8px;
  background: var(--warm-cream);
  color: var(--warm-bg-deep);
  padding: 0 9px;
  outline: none;
}

.player-lookup-result {
  border: 1px dashed rgba(255, 214, 110, 0.22);
  border-radius: 8px;
  color: var(--warm-cream-muted);
  font-size: var(--fs-12);
  line-height: 1.35;
  padding: 10px;
}

.player-lookup-result.is-loading {
  color: var(--warm-cream-strong);
}

.player-lookup-result.is-found {
  border-style: solid;
  background: rgba(255, 240, 207, 0.1);
}

.player-lookup-result.is-alert {
  border-color: rgba(255, 90, 90, 0.72);
  background: rgba(126, 20, 20, 0.28);
  color: #ffe3dc;
}

.player-lookup-result.is-alert strong,
.player-lookup-result.is-alert span {
  display: block;
  color: #fff3ee;
}

.player-lookup-result.is-alert span {
  margin-top: 5px;
  font-size: var(--fs-11);
}

.player-lookup-details {
  margin-top: 8px;
}

.player-lookup-details summary {
  cursor: pointer;
  color: var(--warm-cream-strong);
  font-size: var(--fs-12);
  font-weight: 800;
}

.player-lookup-section {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 6px;
}

.player-lookup-section h4 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--warm-gold);
  font-size: var(--fs-12);
}

.player-lookup-row {
  min-width: 0;
  border: 1px solid rgba(255, 214, 110, 0.14);
  border-radius: 8px;
  background: rgba(255, 240, 207, 0.08);
  padding: 7px 8px;
}

.player-lookup-row span,
.player-lookup-row strong {
  display: block;
  overflow-wrap: anywhere;
}

.player-lookup-row span {
  color: var(--warm-cream-muted);
  font-size: var(--fs-10);
}

.player-lookup-row strong {
  margin-top: 3px;
  color: var(--warm-cream-strong);
  font-size: var(--fs-12);
  line-height: 1.25;
}

.bonus-form {
  grid-template-columns: minmax(90px, 0.7fr) minmax(92px, 0.7fr) minmax(130px, 0.8fr) minmax(150px, 1fr) auto;
}

.fund-request-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.fund-request-row,
.fund-empty,
.bonus-review-row {
  border: 1px solid rgba(255, 214, 110, 0.2);
  border-radius: 8px;
  background: rgba(255, 240, 207, 0.12);
  padding: 10px;
}

.fund-request-row strong,
.bonus-review-row strong {
  display: block;
  color: var(--warm-cream-strong);
  font-size: var(--fs-12);
  line-height: 1.3;
}

.fund-request-row span,
.fund-request-row time,
.fund-empty,
.bonus-review-row span,
.bonus-review-row time {
  display: block;
  margin-top: 4px;
  color: var(--warm-cream-muted);
  font-size: var(--fs-11);
  line-height: 1.35;
}

.bonus-review-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.bonus-review-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-color: var(--line);
  background: var(--panel-soft);
}

.bonus-review-row strong {
  color: var(--text-strong);
  font-size: var(--fs-14);
}

.bonus-review-row span,
.bonus-review-row time {
  color: var(--muted);
  font-size: var(--fs-12);
}

.bonus-review-row p {
  margin-top: 6px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.review-result {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.bulk-panel {
  padding: 0;
  border-bottom: 1px solid var(--warm-glow);
  background: var(--warm-overlay);
  display: block;
}

.bulk-summary {
  min-width: 0;
  min-height: 48px;
  padding: 0 var(--bulk-pad-x);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.bulk-heading {
  min-width: 0;
}

.bulk-heading strong {
  display: block;
  color: var(--warm-cream-strong);
  font-size: var(--fs-14);
  line-height: 1.2;
}

.bulk-heading span {
  display: block;
  margin-top: 4px;
  color: var(--warm-cream-muted);
  font-size: var(--fs-12);
}

.bulk-panel textarea {
  height: var(--bulk-textarea-height);
  background: var(--warm-cream);
  color: var(--warm-bg-deep);
  border-color: var(--warm-glow);
}

.bulk-body {
  padding: 0 var(--bulk-pad-x) var(--bulk-pad-y);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.bulk-actions {
  display: grid;
  grid-template-columns: var(--bulk-time-width) var(--bulk-button-width) var(--bulk-button-width);
  gap: 8px;
  align-items: center;
}

.bulk-actions input {
  min-width: 0;
  height: var(--control-height);
  border: 1px solid var(--warm-glow);
  border-radius: 8px;
  background: var(--warm-cream);
  color: var(--warm-bg-deep);
  padding: 0 10px;
  outline: none;
}

.bulk-actions button {
  min-width: 0;
  height: var(--control-height);
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: var(--warm-cream-strong);
  cursor: pointer;
  font-weight: 800;
}

.bulk-actions button:hover {
  background: var(--accent-strong);
}

.messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: var(--messages-pad);
  background:
    linear-gradient(180deg, var(--warm-cream-soft), var(--warm-overlay-soft)),
    radial-gradient(circle at 12px 12px, var(--warm-glow-soft) 1px, transparent 1px);
  background-size: auto, 24px 24px;
}

.messages.empty {
  color: var(--warm-cream-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.messages.bot-workspace {
  padding: var(--messages-workspace-pad-y) var(--messages-workspace-pad-x) var(--messages-pad);
}

.chat.creation-mode .bulk-panel,
.chat.creation-mode .reply {
  display: none;
}

.chat.creation-mode .chat-actions {
  visibility: hidden;
}

.messages.ai-creation-workspace {
  padding: 22px;
  display: block;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 213, 106, 0.22), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(255, 136, 167, 0.16), transparent 30%),
    linear-gradient(145deg, #7c2647 0%, #4a1834 46%, #241221 100%);
}

.ai-create-panel {
  min-height: 100%;
  border: 1px solid rgba(255, 240, 207, 0.2);
  border-radius: 8px;
  padding: 18px;
  color: var(--warm-cream-strong);
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(145deg, rgba(125, 32, 70, 0.84), rgba(43, 18, 43, 0.82) 52%, rgba(18, 48, 36, 0.72));
  background-size: 42px 42px, 42px 42px, auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 24px 58px rgba(27, 10, 5, 0.22);
}

.ai-create-hero {
  min-height: 184px;
  border: 1px solid rgba(255, 240, 207, 0.22);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 213, 106, 0.26), transparent 34%),
    linear-gradient(135deg, rgba(255, 213, 106, 0.18), rgba(255, 136, 167, 0.1)),
    rgba(24, 12, 23, 0.68);
}

.ai-create-hero::after {
  content: "CREATE";
  position: absolute;
  right: -34px;
  bottom: -14px;
  color: rgba(255, 255, 255, 0.07);
  font-size: clamp(48px, 9vw, 92px);
  line-height: 1;
  font-weight: 950;
  pointer-events: none;
}

.ai-create-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.ai-create-logo {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #211703;
  background: linear-gradient(145deg, #fff2ad, #ffbf28 70%, #c76e0a);
  font-size: var(--fs-22);
  font-weight: 950;
  box-shadow: 0 12px 34px rgba(255, 191, 40, 0.26);
}

.ai-create-brand span:not(.ai-create-logo) {
  color: var(--warm-gold);
  font-size: var(--fs-14);
  font-weight: 950;
}

.ai-create-brand h3 {
  margin: 3px 0 0;
  color: var(--warm-cream-strong);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
}

.ai-create-hero p {
  max-width: 52ch;
  margin: 0;
  color: var(--warm-cream-muted);
  font-size: var(--fs-16);
  line-height: 1.55;
  font-weight: 760;
  position: relative;
  z-index: 1;
}

.ai-create-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.ai-create-hero-tags span,
.ai-create-flow strong {
  color: #211703;
  background: linear-gradient(145deg, #fff1a8, #ffc13e 72%, #f09317);
}

.ai-create-hero-tags span {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-12);
  font-weight: 950;
}

.ai-create-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.ai-create-card {
  min-height: 172px;
  border: 1px solid rgba(255, 240, 207, 0.16);
  border-radius: 8px;
  padding: 14px;
  color: var(--warm-cream-strong);
  text-align: left;
  display: grid;
  align-content: start;
  gap: 10px;
  background:
    radial-gradient(circle at 84% 8%, rgba(255, 213, 106, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(21, 27, 30, 0.72);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.ai-create-card.copy {
  background:
    radial-gradient(circle at 84% 8%, rgba(255, 213, 106, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(126, 42, 64, 0.76), rgba(30, 18, 34, 0.72));
}

.ai-create-card.video {
  background:
    radial-gradient(circle at 84% 8%, rgba(255, 213, 106, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(80, 45, 28, 0.76), rgba(24, 39, 35, 0.74));
}

.ai-create-card.poster {
  background:
    radial-gradient(circle at 84% 8%, rgba(255, 213, 106, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(42, 63, 72, 0.76), rgba(30, 18, 34, 0.72));
}

.ai-create-card span {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #211703;
  background: linear-gradient(145deg, #fff1a8, #ffc13e 70%, #f09317);
  font-weight: 950;
  box-shadow: 0 12px 25px rgba(255, 193, 62, 0.18);
}

.ai-create-card strong {
  display: block;
  color: var(--warm-cream-strong);
  font-size: var(--fs-20);
  line-height: 1.2;
}

.ai-create-card small {
  color: rgba(255, 240, 207, 0.76);
  font-size: var(--fs-13);
  line-height: 1.5;
  font-weight: 760;
}

.ai-create-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.ai-create-flow div {
  border: 1px solid rgba(255, 240, 207, 0.15);
  border-radius: 8px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.ai-create-flow strong {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-12);
  font-weight: 950;
}

.ai-create-flow p {
  margin: 10px 0 0;
  color: var(--warm-cream-muted);
  font-size: var(--fs-14);
  line-height: 1.55;
  font-weight: 760;
}

.message-row {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  margin: 0 0 14px;
}

.message-row.out {
  flex-direction: row-reverse;
}

.message-row .bubble {
  margin: 0;
}

.message-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 8px;
  font-size: var(--fs-12);
}

.staff-avatar {
  background: linear-gradient(180deg, var(--warm-gold), var(--accent));
  color: var(--warm-shell-strong);
}

.bot-overview {
  display: grid;
  gap: var(--ui-gap);
  align-content: start;
}

.bot-stage {
  min-height: 100%;
  border: 1px solid var(--warm-glow-soft);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--warm-bg), var(--warm-bg-deep)),
    radial-gradient(circle at 50% 0%, var(--warm-glow-soft), transparent 38%);
  padding: var(--stage-pad);
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 222, 0.08),
    0 18px 40px var(--warm-shadow);
}

.bot-workspace-hero {
  height: var(--workspace-hero-min);
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--warm-glow);
  border-radius: 8px;
  background-color: var(--warm-shell);
  background-image:
    linear-gradient(135deg, var(--warm-glow), transparent 58%),
    linear-gradient(180deg, rgba(255, 245, 222, 0.12), rgba(42, 17, 9, 0.16));
  padding: var(--workspace-hero-pad);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--ui-gap);
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 222, 0.16),
    0 16px 34px var(--warm-shadow);
}

.workspace-rank {
  min-width: var(--workspace-rank-min);
  height: var(--workspace-rank-height);
  padding: 0 var(--workspace-rank-pad-x);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: var(--warm-cream-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-14);
  font-weight: 900;
  white-space: nowrap;
}

.workspace-title {
  min-width: 0;
}

.workspace-title h3 {
  color: var(--warm-cream-strong);
  overflow-wrap: anywhere;
}

.workspace-title p {
  color: var(--warm-cream-muted);
}

.workspace-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

:root[data-window-size="compact"] .workspace-badges {
  display: none;
}

:root[data-window-size="compact"] .bot-workspace-hero {
  grid-template-columns: auto minmax(0, 1fr);
}

:root[data-window-size="compact"] .workspace-title h3 {
  font-size: var(--fs-16);
  line-height: 1.18;
}

:root[data-window-size="compact"] .workspace-title p {
  margin-top: 3px;
  font-size: var(--fs-11);
  line-height: 1.28;
}

.workspace-badges span {
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--warm-cream-soft);
  color: var(--warm-gold);
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-12);
  font-weight: 900;
  border: 1px solid var(--warm-glow);
}

.bot-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px));
  gap: var(--ui-gap);
}

.bot-summary-grid > div {
  min-height: var(--summary-card-min);
  border: 1px solid var(--warm-glow);
  border-radius: 8px;
  background: var(--warm-cream);
  padding: 14px;
  box-shadow: 0 8px 22px var(--warm-shadow);
}

.bot-summary-grid strong {
  display: block;
  color: var(--text-strong);
  font-size: var(--fs-26);
  line-height: 1.1;
}

.bot-summary-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--fs-12);
  font-weight: 800;
}

.bot-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.bot-section-title strong {
  color: var(--warm-cream-strong);
  font-size: var(--fs-15);
}

.bot-section-title span {
  color: var(--warm-cream-muted);
  font-size: var(--fs-12);
  font-weight: 800;
}

.bot-customer-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--customer-grid-min), 1fr));
  gap: var(--ui-gap);
}

.bot-gallery {
  padding: 8px 0 4px;
}

.bot-customer-card {
  min-width: 0;
  min-height: var(--customer-card-min);
  border: 1px solid var(--warm-glow);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--warm-cream-strong), var(--warm-cream));
  color: var(--text);
  padding: var(--customer-card-pad);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 26px var(--warm-shadow);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.bot-customer-card:hover {
  border-color: var(--warm-gold);
  background: var(--warm-cream);
  transform: translateY(-1px);
}

.bot-customer-card.blocked {
  opacity: 0.72;
  border-color: rgba(201, 67, 67, 0.35);
}

.bot-customer-body,
.bot-customer-name,
.bot-customer-meta,
.bot-customer-last {
  min-width: 0;
  display: block;
}

.bot-customer-name {
  color: var(--text-strong);
  font-weight: 900;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bot-customer-meta,
.bot-customer-last {
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--fs-12);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bot-customer-last {
  color: #55616a;
}

.empty-state {
  max-width: 340px;
  text-align: center;
  padding: 24px;
}

.empty-state p {
  margin-top: 8px;
}

.messages .empty-state h3,
.bot-stage .empty-state h3 {
  color: var(--warm-cream-strong);
}

.messages .empty-state p,
.bot-stage .empty-state p {
  color: var(--warm-cream-muted);
}

.empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 8px;
  background: rgba(183, 75, 55, 0.34);
  color: var(--warm-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-22);
}

.bubble {
  position: relative;
  width: fit-content;
  min-width: 132px;
  max-width: min(680px, 78%);
  margin: 0 0 14px;
  padding: 12px 14px 10px;
  border-radius: 8px;
  line-height: 1.55;
  word-break: break-word;
  box-shadow: 0 8px 24px rgba(30, 48, 55, 0.07);
}

.bubble-text {
  display: block;
  white-space: pre-wrap;
}

.message-image-link {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.05);
}

.message-image {
  display: block;
  max-width: min(360px, 64vw);
  max-height: 360px;
  object-fit: contain;
}

.message-image-link + .bubble-text {
  margin-top: 9px;
}

.message-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-soft);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.bubble:hover .message-delete {
  opacity: 1;
}

.message-delete:hover {
  background: rgba(201, 67, 67, 0.12);
  color: var(--danger);
}

.bubble.out .message-delete {
  color: rgba(255, 255, 255, 0.72);
}

.bubble.out .message-delete:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.bubble.in {
  background: var(--bubble-in-bg);
  border: 1px solid var(--line);
  border-top-left-radius: 3px;
}

.bubble.out {
  background: var(--bubble-out-bg);
  color: #fff;
  border-top-right-radius: 3px;
  box-shadow: 0 10px 26px rgba(20, 125, 126, 0.18);
}

.bubble.out .time {
  color: rgba(255, 255, 255, 0.76);
}

.time {
  color: var(--muted-soft);
  font-size: var(--fs-11);
  line-height: 1.2;
  margin-top: 7px;
}

.reply {
  border-top: 1px solid var(--line);
  padding: var(--reply-pad-y) var(--reply-pad-x);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--reply-button-width);
  gap: var(--ui-gap);
  background: var(--warm-overlay);
  box-shadow: 0 -14px 34px var(--warm-shadow);
}

.reply-compose,
.reply-actions {
  min-width: 0;
}

.reply-compose {
  display: grid;
  gap: 8px;
}

.reply-actions {
  display: grid;
  grid-template-rows: 38px minmax(0, 1fr);
  gap: 8px;
}

.attach-image-btn {
  min-width: 0;
  height: 38px;
  border: 1px dashed var(--warm-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--warm-bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.attach-image-btn:hover {
  border-color: var(--warm-gold);
  background: var(--warm-cream);
  transform: translateY(-1px);
}

.reply-image-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 7px 9px 7px 11px;
  border: 1px solid var(--warm-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--warm-bg-deep);
  font-size: var(--fs-12);
  font-weight: 800;
}

.reply-image-preview[hidden] {
  display: none;
}

.reply-image-preview span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reply-image-preview button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: rgba(201, 67, 67, 0.12);
  color: var(--danger);
  font-weight: 900;
  cursor: pointer;
}

textarea {
  width: 100%;
  height: var(--reply-height);
  resize: none;
  border: 1px solid var(--line);
  background: var(--warm-cream);
  color: var(--warm-bg-deep);
  border-radius: 8px;
  padding: 13px 14px;
  outline: none;
  line-height: 1.45;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

textarea:focus {
  border-color: var(--warm-line);
  box-shadow: 0 0 0 4px var(--warm-glow-soft);
}

.reply-actions button {
  min-width: 0;
  height: var(--reply-height);
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--warm-cream-strong);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px var(--warm-shadow);
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.reply-actions button:hover:not(:disabled) {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px var(--warm-shadow);
}

button:disabled,
textarea:disabled {
  opacity: 0.54;
  cursor: not-allowed;
  box-shadow: none;
}

.app[data-app-section="landing"],
.app[data-app-section="tools-hub"],
.app[data-app-section="worldcup"],
.app[data-app-section="worldcup-agent"],
.app[data-app-section="game-radar"],
.app[data-app-section="bitcoin"],
.app[data-app-section="creation"],
.app[data-app-section="bot-maker"] {
  display: block;
  overflow: auto;
}

.app[data-app-section="landing"] .sidebar,
.app[data-app-section="landing"] .chat,
.app[data-app-section="landing"] .worldcup-panel,
.app[data-app-section="tools-hub"] .sidebar,
.app[data-app-section="tools-hub"] .chat,
.app[data-app-section="worldcup"] .sidebar,
.app[data-app-section="worldcup"] .chat,
.app[data-app-section="worldcup-agent"] .sidebar,
.app[data-app-section="worldcup-agent"] .chat,
.app[data-app-section="game-radar"] .sidebar,
.app[data-app-section="game-radar"] .chat,
.app[data-app-section="bitcoin"] .sidebar,
.app[data-app-section="bitcoin"] .chat,
.app[data-app-section="creation"] .sidebar,
.app[data-app-section="creation"] .chat,
.app[data-app-section="bot-maker"] .sidebar,
.app[data-app-section="bot-maker"] .chat {
  display: none;
}

.portal-screen {
  min-height: 100vh;
  padding: clamp(18px, 4vw, 46px);
  color: #fff8e7;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03)),
    linear-gradient(145deg, #c55b84 0%, #8b315e 42%, #35122f 100%);
}

.portal-shell {
  width: min(980px, 100%);
  min-height: calc(100vh - clamp(36px, 8vw, 92px));
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(255, 236, 246, 0.22);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(65, 17, 52, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -24px 42px rgba(29, 5, 22, 0.24),
    0 24px 56px rgba(21, 3, 18, 0.32);
  display: grid;
  align-content: center;
  gap: 26px;
}

.portal-hero {
  min-height: 210px;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid rgba(255, 236, 246, 0.22);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 213, 153, 0.24), rgba(181, 65, 111, 0.48));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -18px 28px rgba(77, 14, 53, 0.22),
    0 18px 30px rgba(44, 7, 35, 0.22);
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.portal-avatar {
  width: 154px;
  height: 154px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.02)),
    url("/static/assets/mobile-sheep-avatar-4k.png") center / cover no-repeat;
  box-shadow:
    0 0 0 1px rgba(255, 236, 246, 0.34),
    0 0 0 8px rgba(255, 236, 246, 0.08),
    0 18px 30px rgba(37, 5, 30, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.portal-kicker {
  display: inline-flex;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 240, 181, 0.32);
  border-radius: 999px;
  align-items: center;
  color: #ffe889;
  font-size: var(--fs-12);
  font-weight: 900;
}

.portal-hero h1 {
  margin-top: 12px;
  color: #fff8e7;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  text-shadow: 0 8px 24px rgba(37, 5, 30, 0.34);
}

.portal-hero p {
  max-width: 620px;
  color: rgba(255, 248, 231, 0.78);
  font-size: var(--fs-16);
  font-weight: 700;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.portal-card {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(255, 236, 246, 0.18);
  border-radius: 28px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 70px;
  gap: 16px;
  align-items: center;
  text-align: left;
  color: #fff8e7;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -12px 18px rgba(29, 5, 22, 0.2),
    0 14px 26px rgba(33, 5, 29, 0.22);
}

.portal-card-service {
  background:
    radial-gradient(circle at 18% 84%, rgba(93, 214, 230, 0.32), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(255, 221, 146, 0.28), transparent 34%),
    linear-gradient(145deg, #2d4350 0%, #563148 54%, #211f2d 100%);
}

.portal-card-worldcup {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 240, 169, 0.48), transparent 32%),
    radial-gradient(circle at 88% 78%, rgba(255, 196, 49, 0.34), transparent 36%),
    linear-gradient(145deg, #166b45 0%, #1f7f4d 46%, #d99516 100%);
  color: #fff8e7;
}

.portal-card-icon {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(44, 12, 37, 0.28);
  color: inherit;
  font-size: var(--fs-20);
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.portal-card-icon.role-icon {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 236, 190, 0.72);
  border-radius: 23px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -10px 14px rgba(31, 8, 19, 0.14),
    0 12px 20px rgba(34, 8, 23, 0.28);
}

.portal-card-icon.role-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 36%, rgba(0, 0, 0, 0.16)),
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.24), transparent 34%);
  pointer-events: none;
}

.role-icon-worldcup {
  background-image: url("/static/assets/sheep-role-worldcup-v1.png?v=1");
}

.role-icon-bitcoin {
  background-image: url("/static/assets/sheep-role-bitcoin-v1.png?v=1");
}

.role-icon-creation {
  background-image: url("/static/assets/sheep-role-creation-v1.png?v=1");
}

.role-icon-service {
  background-image: url("/static/assets/sheep-role-service-v2.png?v=1");
}

.role-icon-game-radar {
  background-image: url("/static/assets/sheep-role-game-radar-pgpg-v1.jpg?v=1");
}

.portal-card-bitcoin {
  background:
    radial-gradient(circle at 84% 8%, rgba(255, 232, 135, 0.34), transparent 36%),
    linear-gradient(180deg, #244b3d 0%, #14382f 52%, #4b2345 100%);
}

.portal-card-bitcoin .portal-card-icon {
  color: #2c1710;
}

.portal-card-creation {
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 213, 106, 0.3), transparent 34%),
    linear-gradient(145deg, #7c2647 0%, #4a1834 48%, #123024 100%);
}

.portal-card-creation .portal-card-icon {
  color: #2c1710;
}

.portal-card-body {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 78px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 248, 231, 0.13);
  border-radius: 20px;
  display: grid;
  gap: 6px;
  align-content: center;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -16px 26px rgba(20, 5, 18, 0.16);
}

.portal-card-body::before,
.portal-card-body::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.portal-card-body::after {
  z-index: -1;
}

.portal-card-body > * {
  position: relative;
  z-index: 1;
}

.portal-card-worldcup .portal-card-body::before {
  background:
    radial-gradient(circle at 78% 30%, rgba(255, 228, 99, 0.55), transparent 17%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    repeating-linear-gradient(90deg, rgba(30, 151, 82, 0.52) 0 34px, rgba(18, 103, 63, 0.52) 34px 68px),
    linear-gradient(145deg, rgba(27, 108, 61, 0.84), rgba(229, 159, 28, 0.42));
  background-size: auto, 42px 42px, 42px 42px, auto, auto;
  filter: blur(1.5px);
  transform: scale(1.05);
}

.portal-card-worldcup .portal-card-body::after {
  width: 132px;
  height: 72px;
  inset: auto 8px 5px auto;
  background:
    radial-gradient(circle at 18% 60%, #f8f5e7 0 7px, #1d1d1d 7px 8px, transparent 8.5px),
    radial-gradient(circle at 20% 60%, rgba(255, 255, 255, 0.72), transparent 15px),
    linear-gradient(115deg, transparent 0 29%, rgba(255, 255, 255, 0.52) 30% 32%, transparent 33% 100%),
    radial-gradient(ellipse at 77% 35%, #ffe386 0 18px, #c88818 19px 25px, transparent 26px),
    linear-gradient(180deg, transparent 0 48%, #f6c24a 49% 65%, transparent 66%),
    radial-gradient(ellipse at 77% 82%, #f8d66b 0 20px, transparent 21px);
  opacity: 0.78;
  filter: blur(0.2px);
}

.portal-card-bitcoin .portal-card-body::before {
  background:
    radial-gradient(circle at 86% 22%, rgba(255, 217, 88, 0.52), transparent 18%),
    linear-gradient(90deg, rgba(84, 238, 155, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 232, 137, 0.12) 1px, transparent 1px),
    linear-gradient(145deg, rgba(5, 34, 29, 0.9), rgba(70, 20, 49, 0.68)),
    url("/static/assets/bitcoin-contract-bg.png?v=1");
  background-size: auto, 34px 34px, 34px 34px, auto, cover;
  background-position: center;
  filter: blur(1.4px) saturate(1.12);
  transform: scale(1.07);
}

.portal-card-bitcoin .portal-card-body::after {
  width: 126px;
  height: 70px;
  inset: auto 0 6px auto;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(42, 214, 122, 0.6) 19% 21%, transparent 22% 100%),
    linear-gradient(145deg, transparent 0 42%, rgba(255, 232, 137, 0.5) 43% 45%, transparent 46% 100%),
    radial-gradient(circle at 75% 50%, rgba(255, 217, 88, 0.48) 0 25px, rgba(145, 76, 10, 0.28) 26px 36px, transparent 37px);
  opacity: 0.72;
}

.portal-card-creation .portal-card-body::before {
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 213, 106, 0.38), transparent 20%),
    linear-gradient(135deg, transparent 0 28%, rgba(255, 248, 231, 0.18) 29% 31%, transparent 32%),
    linear-gradient(145deg, rgba(106, 34, 67, 0.88), rgba(20, 54, 42, 0.64));
  filter: blur(1.5px);
  transform: scale(1.06);
}

.portal-card-creation .portal-card-body::after {
  width: 118px;
  height: 78px;
  inset: auto 10px 0 auto;
  border-radius: 12px;
  background:
    linear-gradient(145deg, transparent 0 37%, rgba(44, 23, 18, 0.5) 38% 41%, transparent 42%),
    linear-gradient(35deg, transparent 0 45%, rgba(44, 23, 18, 0.48) 46% 49%, transparent 50%),
    linear-gradient(135deg, #f4dfb7 0 48%, #8ed3ff 49% 62%, #ffb35e 63% 76%, #bd6cff 77% 100%);
  box-shadow: inset 0 0 0 4px rgba(66, 33, 22, 0.42);
  opacity: 0.72;
  transform: rotate(-6deg);
}

.portal-card-service .portal-card-body::before {
  background:
    radial-gradient(circle at 82% 18%, rgba(120, 226, 238, 0.44), transparent 22%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(145deg, rgba(24, 63, 72, 0.86), rgba(85, 48, 72, 0.72));
  background-size: auto, 40px 40px, 40px 40px, auto;
  filter: blur(1.4px);
  transform: scale(1.06);
}

.portal-card-service .portal-card-body::after {
  width: 120px;
  height: 76px;
  inset: auto 7px 0 auto;
  background:
    linear-gradient(180deg, #5cdbe6 0 7px, transparent 8px),
    linear-gradient(180deg, rgba(18, 29, 34, 0.86) 0 54px, transparent 55px),
    linear-gradient(180deg, transparent 0 55px, #cfc8a6 56px 61px, transparent 62px),
    radial-gradient(ellipse at 50% 70px, #cfc8a6 0 22px, transparent 23px);
  border-radius: 12px 12px 5px 5px;
  box-shadow: inset 0 0 0 4px rgba(223, 248, 255, 0.18);
  opacity: 0.76;
}

.portal-card strong {
  font-size: var(--fs-22);
  line-height: 1.08;
}

.portal-card small {
  color: currentColor;
  opacity: 0.72;
  font-size: var(--fs-13);
  font-weight: 800;
  line-height: 1.35;
}

.portal-card-action {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(47, 14, 39, 0.2);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 16px rgba(22, 4, 18, 0.18);
}

.portal-card-action::before,
.portal-card-action::after {
  content: "";
  position: absolute;
}

.portal-card-action-worldcup {
  background:
    radial-gradient(circle at 38% 22%, rgba(255, 255, 255, 0.58), transparent 20%),
    linear-gradient(180deg, #ffe687, #d89218);
}

.portal-card-action-worldcup::before {
  left: 50%;
  width: 22px;
  height: 24px;
  top: 8px;
  border-radius: 10px 10px 14px 14px;
  background:
    radial-gradient(circle at 50% 18%, #fff6b7 0 4px, transparent 5px),
    linear-gradient(180deg, #fff1a5, #c98212);
  box-shadow:
    -11px 3px 0 -7px #f1c04a,
    11px 3px 0 -7px #f1c04a,
    0 1px 0 rgba(90, 46, 0, 0.24);
  transform: translateX(-50%);
}

.portal-card-action-worldcup::after {
  left: 50%;
  width: 26px;
  height: 13px;
  bottom: 7px;
  border-radius: 4px 4px 8px 8px;
  background:
    linear-gradient(90deg, transparent 0 10px, #87520d 11px 15px, transparent 16px),
    linear-gradient(180deg, transparent 0 5px, #ffdc66 6px 13px);
  transform: translateX(-50%);
}

.portal-card-action-bitcoin {
  color: #5c3207;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 255, 255, 0.62), transparent 22%),
    radial-gradient(circle, #ffe893 0 50%, #d9951d 51% 70%, #7a4308 71% 100%);
}

.portal-card-action-bitcoin::before {
  content: "BTC";
  position: relative;
  color: #5a3005;
  text-shadow: 0 1px 0 rgba(255, 248, 205, 0.62);
}

.portal-card-action-bitcoin::after {
  inset: 8px;
  border: 2px solid rgba(116, 65, 8, 0.38);
  border-radius: 50%;
}

.portal-card-action-creation {
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255, 248, 231, 0.22), transparent),
    #5a314c;
}

.portal-card-action-creation::before {
  left: 50%;
  width: 26px;
  height: 22px;
  top: 9px;
  border-radius: 5px;
  background:
    linear-gradient(135deg, #fff0c2 0 50%, #86cfff 51% 66%, #f49b45 67% 100%);
  box-shadow: 0 0 0 3px rgba(42, 23, 18, 0.38);
  transform: translateX(-50%) rotate(-5deg);
}

.portal-card-action-creation::after {
  left: 50%;
  width: 24px;
  height: 14px;
  bottom: 7px;
  background:
    linear-gradient(120deg, transparent 0 43%, #d1a265 44% 54%, transparent 55%),
    linear-gradient(60deg, transparent 0 43%, #d1a265 44% 54%, transparent 55%);
  transform: translateX(-50%);
}

.portal-card-action-service {
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent),
    #314553;
}

.portal-card-action-service::before {
  left: 50%;
  width: 29px;
  height: 20px;
  top: 10px;
  border-radius: 5px;
  background:
    linear-gradient(180deg, #87eff5 0 5px, #172b34 6px 100%);
  box-shadow: 0 0 0 3px rgba(224, 248, 255, 0.28);
  transform: translateX(-50%);
}

.portal-card-action-service::after {
  left: 50%;
  width: 24px;
  height: 10px;
  bottom: 8px;
  background:
    linear-gradient(90deg, transparent 0 9px, #d7cfaa 10px 14px, transparent 15px),
    linear-gradient(180deg, transparent 0 6px, #d7cfaa 7px 10px);
  transform: translateX(-50%);
}

.portal-card {
  background: #1f1724;
}

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

.portal-card::before {
  z-index: 0;
  background-image: var(--portal-card-scene);
  background-position: center;
  background-size: cover;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.01);
}

.portal-card::after {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(9, 7, 12, 0.58), rgba(12, 8, 14, 0.28) 42%, rgba(12, 8, 14, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.22));
}

.portal-card > * {
  position: relative;
  z-index: 1;
}

.portal-card-worldcup {
  --portal-card-scene: url("/static/assets/portal-card-worldcup-3d-v1.png");
  background: #1b3325;
  color: #fff8e7;
}

.portal-card-bitcoin {
  --portal-card-scene: url("/static/assets/portal-card-bitcoin-3d-v1.png");
  background: #14231e;
}

.portal-card-creation {
  --portal-card-scene: url("/static/assets/portal-card-creation-3d-v1.png");
  background: #31201f;
}

.portal-card-service {
  --portal-card-scene: url("/static/assets/portal-card-service-3d-v1.png");
  background: #172536;
  display: none;
}

.portal-card-game-radar {
  --portal-card-scene: url("/static/game-radar/images/game-covers/pg-mahjong-ways-2-hero.jpg");
  background: #171a43;
}

.portal-card-body {
  background:
    linear-gradient(180deg, rgba(12, 11, 15, 0.58), rgba(12, 11, 15, 0.34));
  border-color: rgba(255, 248, 231, 0.24);
  backdrop-filter: blur(8px);
}

.portal-card-body::before,
.portal-card-body::after {
  content: none;
}

.portal-card strong,
.portal-card small {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.56);
}

.portal-card small {
  opacity: 0.84;
}

.portal-card-action {
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255, 248, 231, 0.48);
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.42), transparent 25%),
    linear-gradient(180deg, rgba(255, 248, 231, 0.16), rgba(0, 0, 0, 0.22)),
    rgba(11, 10, 17, 0.72);
  backdrop-filter: blur(8px);
  overflow: visible;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -10px 16px rgba(0, 0, 0, 0.16),
    0 12px 20px rgba(0, 0, 0, 0.28);
}

.portal-card-action::before {
  content: "";
  position: absolute;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  inset: -4px;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background-image: var(--portal-action-icon);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: none;
  color: transparent;
  filter: drop-shadow(0 9px 12px rgba(0, 0, 0, 0.42));
  transform: none;
}

.portal-card-action::after {
  content: none;
}

.portal-card-action-worldcup {
  --portal-action-icon: url("/static/assets/portal-action-worldcup-v1.png");
  border-radius: 18px;
}

.portal-card-action-worldcup::before {
  inset: -8px 6px -6px;
  transform: scale(1.28);
}

.portal-card-action-bitcoin {
  --portal-action-icon: url("/static/assets/portal-action-bitcoin-v1.png");
  border-radius: 50%;
}

.portal-card-action-bitcoin::before {
  inset: -4px;
}

.portal-card-action-creation {
  --portal-action-icon: url("/static/assets/portal-action-creation-v1.png");
  border-radius: 16px;
}

.portal-card-action-creation::before {
  inset: -8px -2px -8px;
  transform: scale(1.16);
}

.portal-card-action-service {
  --portal-action-icon: url("/static/assets/portal-action-service-v1.png");
  border-radius: 16px;
}

.portal-card-action-service::before {
  inset: -7px -4px -5px;
  transform: scale(1.12);
}

.portal-card-action-game-radar {
  --portal-action-icon: url("/static/assets/portal-action-game-radar-fa-cai-v1.png?v=1");
  border-radius: 18px;
}

.portal-card-action-game-radar::before {
  inset: -6px;
  transform: scale(1.04);
}

.game-radar-panel {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: max(14px, env(safe-area-inset-top)) 14px max(30px, env(safe-area-inset-bottom));
  color: #f8fbff;
  overflow: hidden auto;
  background:
    radial-gradient(circle at 18% 8%, rgba(115, 128, 255, 0.48), transparent 18rem),
    radial-gradient(circle at 92% 6%, rgba(255, 120, 210, 0.34), transparent 16rem),
    linear-gradient(180deg, #161041 0%, #10183c 42%, #071126 100%);
}

.game-radar-panel::before,
.game-radar-panel::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  filter: blur(1px);
}

.game-radar-panel::before {
  width: 138px;
  height: 138px;
  border-radius: 46% 54% 60% 40%;
  left: max(12px, calc(50% - 250px));
  top: 72px;
  background: radial-gradient(circle at 35% 32%, #ffffff, #88d7ff 16%, #5a4bff 46%, rgba(90, 75, 255, 0) 68%);
}

.game-radar-panel::after {
  width: 156px;
  height: 156px;
  border-radius: 999px;
  right: max(-42px, calc(50% - 250px));
  top: 220px;
  border: 22px solid rgba(255, 143, 227, 0.22);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.24), 0 0 38px rgba(255, 77, 213, 0.18);
}

.game-radar-view {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  margin: 0 auto;
}

.game-radar-series-view {
  padding-top: 10px;
}

.game-radar-home-back,
.game-radar-detail-back {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
}

.game-radar-home-back {
  position: fixed;
  z-index: 10;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, calc(50% - 210px));
  width: 42px;
  height: 42px;
  border-radius: 18px;
  font-size: 30px;
  line-height: 1;
}

.game-radar-detail-back {
  width: fit-content;
  min-height: 42px;
  margin: 2px 0 12px;
  padding: 0 14px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 900;
}

.game-radar-series-grid {
  display: grid;
  gap: 16px;
}

.game-radar-loading-card {
  min-height: 160px;
  padding: 22px;
  border-radius: 34px;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(18, 25, 56, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.game-radar-loading-card strong {
  font-size: 19px;
}

.game-radar-loading-card span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
}

.game-radar-series-card {
  position: relative;
  min-height: 172px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 38px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 10px 14px;
  overflow: hidden;
  text-align: left;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(33, 42, 84, 0.86), rgba(18, 26, 58, 0.8));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.game-radar-series-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(8, 13, 38, 0.62) 0%, rgba(8, 13, 38, 0.34) 44%, rgba(8, 13, 38, 0.08) 100%),
    linear-gradient(180deg, rgba(8, 13, 38, 0) 0%, rgba(8, 13, 38, 0.24) 100%),
    radial-gradient(circle at 14% 35%, rgba(124, 190, 255, 0.08), transparent 22rem);
  pointer-events: none;
}

.game-radar-series-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.96;
  filter: saturate(1.38) contrast(1.2) brightness(1.08);
  transform: scale(1.04);
}

.game-radar-series-card > *:not(.game-radar-series-bg) {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.62), 0 0 22px rgba(0, 0, 0, 0.34);
}

.game-radar-series-icon {
  grid-row: 1 / 3;
  width: 74px;
  height: 74px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff6c7;
  font-size: 22px;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.game-radar-series-icon img {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
}

.game-radar-series-title {
  display: grid;
  gap: 0;
  align-self: end;
}

.game-radar-series-title strong {
  color: #fff6c7;
  font-size: 42px;
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.game-radar-series-title small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 800;
}

.game-radar-series-reco {
  grid-column: 2 / 3;
  margin: 0;
  padding: 10px 12px;
  border-radius: 22px;
  display: grid;
  gap: 4px;
  background: rgba(7, 11, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.game-radar-series-reco b {
  color: #ffffff;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-radar-series-reco em {
  color: #ffe89a;
  font-size: 16px;
  font-style: normal;
  font-weight: 950;
}

.game-radar-series-top {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.game-radar-series-top i {
  min-width: 0;
  padding: 7px 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(7, 11, 32, 0.82);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-radar-detail {
  display: grid;
  gap: 12px;
}

.game-radar-main-reco,
.game-radar-top-panel,
.game-radar-burst-guide {
  border-radius: 34px;
  overflow: hidden;
  background: rgba(18, 25, 56, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.game-radar-reco-cover {
  position: relative;
  height: 200px;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 28%, rgba(255, 255, 255, 0.32), transparent 16%),
    radial-gradient(circle at 75% 22%, rgba(255, 122, 217, 0.44), transparent 30%),
    linear-gradient(135deg, rgba(86, 77, 255, 0.74), rgba(255, 122, 217, 0.42), rgba(124, 201, 255, 0.3));
}

.game-radar-reco-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  filter: saturate(1.04) contrast(1.02) brightness(0.9);
}

.game-radar-reco-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 30, 0.08), rgba(6, 10, 30, 0.42));
}

.game-radar-reco-provider,
.game-radar-reco-icon {
  position: absolute;
  z-index: 2;
}

.game-radar-reco-provider {
  top: 14px;
  left: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(4, 7, 27, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 1000;
}

.game-radar-reco-icon {
  right: 16px;
  top: 18px;
  width: 82px;
  height: 82px;
  border-radius: 25px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 24px;
  font-weight: 950;
  box-shadow: inset 0 1px 16px rgba(255, 255, 255, 0.18), 0 14px 30px rgba(0, 0, 0, 0.25);
}

.game-radar-reco-icon img {
  width: 100%;
  height: 100%;
  border-radius: 23px;
  object-fit: cover;
}

.game-radar-reco-body {
  padding: 18px;
}

.game-radar-label,
.game-radar-main-burst,
.game-radar-top-badge,
.game-radar-burst-tag {
  width: fit-content;
  border-radius: 999px;
  font-weight: 950;
}

.game-radar-label {
  display: inline-flex;
  padding: 7px 11px;
  color: #130820;
  background: linear-gradient(135deg, #fff3a8, #ff8ce6 58%, #82e9ff);
  font-size: 12px;
}

.game-radar-reco-body h2 {
  margin: 12px 0 2px;
  color: #ffffff;
  font-size: 34px;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.game-radar-reco-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 16px;
  line-height: 1.48;
}

.game-radar-star-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  color: #ffeaa3;
  font-weight: 950;
}

.game-radar-star-line b {
  font-size: 22px;
}

.game-radar-main-burst {
  margin: -2px 0 12px;
  padding: 9px 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.game-radar-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.game-radar-metrics div,
.game-radar-why,
.game-radar-formula div,
.game-radar-ranges div {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: rgba(7, 12, 36, 0.72);
}

.game-radar-metrics div {
  padding: 10px 7px;
}

.game-radar-metrics span,
.game-radar-metrics small {
  display: block;
  color: rgba(226, 232, 240, 0.58);
  font-size: 11px;
}

.game-radar-metrics strong {
  display: block;
  margin: 4px 0 2px;
  color: #ffffff;
  font-size: 17px;
}

.game-radar-why {
  margin-top: 13px;
  padding: 13px;
}

.game-radar-why strong,
.game-radar-burst-guide strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-weight: 950;
}

.game-radar-why ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(238, 243, 255, 0.78);
  font-size: 12px;
  line-height: 1.55;
}

.game-radar-burst-guide {
  margin-top: 14px;
  padding: 14px;
}

.game-radar-burst-head {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: center;
}

.game-radar-burst-big {
  width: 76px;
  height: 76px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 1000;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.game-radar-burst-guide p {
  margin: 0;
  color: rgba(238, 243, 255, 0.78);
  font-size: 12px;
  line-height: 1.55;
}

.game-radar-burst-guide p b {
  color: #fff0a8;
}

.game-radar-formula {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 13px;
}

.game-radar-formula div,
.game-radar-ranges div {
  min-height: 58px;
  padding: 9px 7px;
}

.game-radar-formula b,
.game-radar-ranges b,
.game-radar-formula span,
.game-radar-ranges span {
  display: block;
}

.game-radar-formula b {
  color: #ffeaa3;
  font-size: 18px;
}

.game-radar-formula span,
.game-radar-ranges span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
}

.game-radar-ranges {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.game-radar-ranges div {
  min-height: 54px;
  background: rgba(7, 12, 36, 0.78);
  color: #ffffff;
}

.game-radar-ranges b {
  font-size: 11px;
}

.game-radar-note {
  margin-top: 11px !important;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.game-radar-top-panel {
  padding: 13px;
}

.game-radar-panel-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.game-radar-panel-title span {
  width: 34px;
  height: 34px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #170923;
  background: linear-gradient(135deg, #fff3a8, #ff8ce6 56%, #80e6ff);
  font-weight: 1000;
}

.game-radar-panel-title h2 {
  margin: 0;
  color: #ffffff;
  font-size: 17px;
  font-weight: 950;
}

.game-radar-top-list {
  display: grid;
  gap: 12px;
}

.game-radar-top-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: rgba(10, 16, 42, 0.78);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.game-radar-top-face {
  position: relative;
  width: 100%;
  min-height: 188px;
  border: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.game-radar-top-card.is-main .game-radar-top-face {
  min-height: 232px;
}

.game-radar-top-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02) brightness(0.88);
}

.game-radar-top-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 8, 28, 0.08) 0%, rgba(4, 8, 28, 0.42) 42%, rgba(4, 8, 28, 0.92) 100%);
}

.game-radar-top-content {
  position: absolute;
  inset: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding-top: 42px;
  text-align: center;
}

.game-radar-top-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  pointer-events: none;
}

.game-radar-top-badge,
.game-radar-burst-tag {
  min-height: 30px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-weight: 1000;
  line-height: 1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.game-radar-top-badge {
  color: #170923;
  background: linear-gradient(135deg, #fff3a8, #ff8ce6 56%, #80e6ff);
}

.game-radar-burst-tag {
  max-width: calc(100% - 76px);
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-radar-top-title {
  margin: auto 0;
  align-self: center;
  max-width: 100%;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  outline: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none;
  transform: translateY(-4px);
}

.game-radar-top-card h3 {
  margin: 0;
  color: #fff8d6;
  font-size: 28px;
  font-weight: 1000;
  line-height: 1.08;
  text-align: center;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, #ffffff 0%, #fff3b8 36%, #ffc85b 70%, #ff8f30 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45),
    0 2px 0 rgba(122, 61, 8, 0.42),
    0 4px 0 rgba(65, 28, 5, 0.34),
    0 8px 18px rgba(0, 0, 0, 0.72),
    0 0 28px rgba(255, 205, 85, 0.32);
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.42));
}

.game-radar-top-card.is-main h3 {
  font-size: 34px;
}

.game-radar-top-card small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.72);
}

.game-radar-stars {
  color: #ffeaa3;
  font-weight: 1000;
  text-align: center;
  letter-spacing: 0.06em;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18),
    0 3px 10px rgba(0, 0, 0, 0.68),
    0 0 18px rgba(255, 221, 120, 0.36);
}

.game-radar-top-bottom {
  display: grid;
  justify-items: start;
  gap: 8px;
  text-align: left;
}

.game-radar-top-content p {
  margin: 0;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(4, 8, 28, 0.76);
  font-size: 12px;
  line-height: 1.45;
}

.game-radar-top-more {
  width: fit-content;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #170923;
  background: linear-gradient(135deg, #fff3a8, #ff8ce6 58%, #80e6ff);
  font-size: 11px;
  font-weight: 1000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.game-radar-top-detail {
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  overflow: hidden;
  padding: 0 14px;
  border-top: 1px solid transparent;
  background:
    radial-gradient(circle at 12% 0%, rgba(128, 230, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(4, 8, 28, 0.12), rgba(4, 8, 28, 0.72));
  transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.22s ease, padding 0.22s ease, border-color 0.22s ease;
}

.game-radar-top-card.is-open .game-radar-top-detail {
  max-height: 520px;
  opacity: 1;
  transform: translateY(0);
  padding: 14px;
  border-top-color: rgba(255, 255, 255, 0.14);
}

.game-radar-top-detail-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.game-radar-top-detail-icon {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff3a8;
  font-weight: 1000;
}

.game-radar-top-detail-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-radar-top-detail-head strong {
  display: block;
  color: #ffffff;
  font-size: 15px;
  font-weight: 1000;
}

.game-radar-top-detail-head small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 850;
}

.game-radar-top-detail p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  line-height: 1.58;
}

.game-radar-top-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.game-radar-top-detail-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 850;
}

.game-radar-top-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.game-radar-top-detail-grid div {
  min-width: 0;
  padding: 9px 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.game-radar-top-detail-grid b,
.game-radar-top-detail-grid span {
  display: block;
  min-width: 0;
}

.game-radar-top-detail-grid b {
  color: #fff3a8;
  font-size: 13px;
  font-weight: 1000;
}

.game-radar-top-detail-grid span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 850;
}

.game-radar-panel .level-s,
.game-radar-main-burst.level-s,
.game-radar-burst-tag.level-s,
.game-radar-burst-big.level-s {
  color: #18051f !important;
  background: linear-gradient(135deg, #fff7b7, #ff4bd1 52%, #56e8ff);
}

.game-radar-panel .level-a,
.game-radar-main-burst.level-a,
.game-radar-burst-tag.level-a,
.game-radar-burst-big.level-a {
  color: #061826 !important;
  background: linear-gradient(135deg, #e9fff7, #62ffd6 48%, #7bbcff);
}

.game-radar-panel .level-b,
.game-radar-main-burst.level-b,
.game-radar-burst-tag.level-b,
.game-radar-burst-big.level-b {
  color: #201006 !important;
  background: linear-gradient(135deg, #fff0a8, #ffb45d);
}

.game-radar-panel .level-c,
.game-radar-main-burst.level-c,
.game-radar-burst-tag.level-c,
.game-radar-burst-big.level-c {
  color: rgba(255, 255, 255, 0.9) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
}

.game-radar-panel .level-d,
.game-radar-main-burst.level-d,
.game-radar-burst-tag.level-d,
.game-radar-burst-big.level-d {
  color: rgba(255, 255, 255, 0.9) !important;
  background: linear-gradient(135deg, rgba(255, 84, 125, 0.42), rgba(255, 255, 255, 0.08));
}

@media (max-width: 380px) {
  .game-radar-panel {
    padding-left: 10px;
    padding-right: 10px;
  }

  .game-radar-series-card {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 15px;
    border-radius: 32px;
  }

  .game-radar-series-icon {
    width: 68px;
    height: 68px;
  }

  .game-radar-series-title strong {
    font-size: 38px;
  }

  .game-radar-metrics,
  .game-radar-formula {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-radar-burst-head {
    grid-template-columns: 1fr;
  }

  .game-radar-burst-big {
    width: 100%;
    height: 54px;
    border-radius: 18px;
  }

  .game-radar-ranges {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-radar-top-card h3 {
    font-size: 26px;
  }

  .game-radar-top-card.is-main h3 {
    font-size: 32px;
  }
}

.creation-panel {
  min-height: 100vh;
  padding: clamp(16px, 3vw, 32px);
  color: var(--warm-cream-strong);
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 213, 106, 0.24), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(255, 147, 92, 0.18), transparent 32%),
    linear-gradient(145deg, #8a3149 0%, #5a2230 48%, #4c2317 100%);
}

.creation-shell {
  width: min(1180px, 100%);
  min-height: calc(100vh - clamp(32px, 6vw, 64px));
  margin: 0 auto;
  display: grid;
  align-content: center;
  gap: 14px;
}

.creation-menu {
  width: min(720px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(255, 240, 207, 0.2);
  border-radius: 8px;
  padding: clamp(18px, 4vw, 34px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(145deg, rgba(142, 54, 54, 0.86), rgba(88, 35, 39, 0.84) 52%, rgba(91, 42, 26, 0.76));
  background-size: 42px 42px, 42px 42px, auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 24px 58px rgba(27, 10, 5, 0.22);
}

.creation-menu-head {
  display: grid;
  gap: 8px;
  margin-bottom: clamp(12px, 3vw, 20px);
}

.creation-menu-head span {
  color: var(--warm-gold);
  font-size: var(--fs-13);
  font-weight: 950;
}

.creation-menu-head h2 {
  margin: 0;
  color: var(--warm-cream-strong);
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.05;
}

.creation-tool-back {
  width: max-content;
  min-height: 38px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 226, 142, 0.35);
  border-radius: 8px;
  padding: 8px 13px;
  color: #2a1705;
  background: linear-gradient(145deg, #fff0a5, #ffc247 72%, #ef941f);
  font-size: var(--fs-14);
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(255, 182, 55, 0.14);
}

.creation-tool-back[hidden] {
  display: none;
}

.creation-menu.is-tool-page .creation-menu-head,
.creation-menu.is-tool-page .creation-season-art,
.creation-menu.is-tool-page .creation-action-grid {
  display: none;
}

.creation-menu.is-tool-page .creation-tool-panels {
  margin-top: 0;
}

.creation-season-art {
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 158px;
  margin-bottom: clamp(14px, 3vw, 22px);
  border: 1px solid rgba(255, 242, 217, 0.28);
  border-radius: 8px;
  background-image:
    linear-gradient(180deg, rgba(255, 241, 215, 0.08), rgba(84, 33, 24, 0.08)),
    url("/static/assets/sheep-seasons-creation-center-v1.png?v=1");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 38px rgba(45, 18, 9, 0.24);
  overflow: hidden;
}

.creation-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 16px);
}

.creation-action-button {
  position: relative;
  isolation: isolate;
  min-height: 0;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 240, 207, 0.16);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--warm-cream-strong);
  text-align: center;
  font-size: var(--fs-22);
  font-weight: 950;
  text-shadow: 0 2px 10px rgba(32, 10, 6, 0.5);
  cursor: pointer;
  background:
    radial-gradient(circle at 84% 8%, rgba(255, 213, 106, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(21, 27, 30, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 38px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.creation-action-button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(72, 24, 14, 0.54), rgba(41, 12, 11, 0.72)),
    url("/static/assets/sheep-seasons-creation-center-v1.png?v=1");
  background-size: 385% auto;
  background-repeat: no-repeat;
  opacity: 0.42;
  pointer-events: none;
  filter: saturate(1.08) contrast(1.03);
}

.creation-action-button::before {
  content: attr(data-mark);
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #211703;
  background: linear-gradient(145deg, #fff1a8, #ffc13e 70%, #f09317);
  font-size: var(--fs-20);
  font-weight: 950;
  box-shadow: 0 12px 25px rgba(255, 193, 62, 0.18);
}

.creation-action-button span {
  position: relative;
  z-index: 1;
}

.creation-action-button.video {
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 221, 124, 0.34), transparent 38%),
    linear-gradient(145deg, rgba(176, 82, 29, 0.9), rgba(92, 42, 22, 0.84));
}

.creation-action-button.video::after {
  background-position: 1% center;
}

.creation-action-button.copy {
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 224, 134, 0.32), transparent 38%),
    linear-gradient(145deg, rgba(176, 66, 72, 0.9), rgba(94, 36, 43, 0.84));
}

.creation-action-button.copy::after {
  background-position: 34% center;
}

.creation-action-button.poster {
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 231, 146, 0.36), transparent 38%),
    linear-gradient(145deg, rgba(181, 113, 34, 0.9), rgba(92, 50, 24, 0.84));
}

.creation-action-button.poster::after {
  background-position: 66% center;
}

.creation-action-button.qa {
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 210, 134, 0.32), transparent 38%),
    linear-gradient(145deg, rgba(151, 62, 91, 0.9), rgba(80, 34, 45, 0.84));
}

.creation-action-button.qa::after {
  background-position: 99% center;
}

.creation-action-button.is-active {
  border-color: rgba(255, 226, 142, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 0 2px rgba(255, 205, 91, 0.18),
    0 18px 42px rgba(30, 9, 5, 0.28);
}

.creation-tool-panels {
  margin-top: clamp(14px, 3vw, 22px);
}

.creation-tool-panel[hidden] {
  display: none;
}

.creation-tool-panel {
  --tool-sheep-position: 50% center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 235, 194, 0.18);
  border-radius: 8px;
  padding: clamp(14px, 3vw, 22px);
  color: var(--warm-cream-strong);
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 205, 91, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(97, 32, 27, 0.78), rgba(63, 22, 24, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.creation-tool-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(145deg, rgba(80, 28, 24, 0.58), rgba(45, 16, 16, 0.78)),
    url("/static/assets/sheep-seasons-creation-center-v1.png?v=1");
  background-size: 385% auto;
  background-position: var(--tool-sheep-position);
  background-repeat: no-repeat;
  opacity: 0.56;
  filter: saturate(1.08) contrast(1.04);
  pointer-events: none;
}

.creation-tool-panel > * {
  position: relative;
  z-index: 1;
}

#creationToolVideo {
  --tool-sheep-position: 1% center;
}

#creationToolVideo .creation-tool-head {
  margin-bottom: 8px;
}

#creationToolVideo .creation-step-stack {
  gap: 8px;
}

#creationToolVideo .creation-step-box {
  gap: 6px;
  padding: 7px 9px;
}

#creationToolVideo .creation-step-title {
  font-size: var(--fs-14);
  line-height: 1.05;
}

#creationToolVideo .creation-field {
  gap: 4px;
}

#creationToolVideo .creation-field input {
  min-height: 34px;
  padding: 7px 9px;
}

#creationToolVideo .creation-inline-button,
#creationToolVideo .creation-source-tabs button,
#creationToolVideo .creation-duration-options button,
#creationToolVideo .creation-upload-button {
  min-height: 34px;
  padding: 7px 9px;
  font-size: var(--fs-13);
}

#creationToolVideo .creation-style-box {
  min-height: 0;
}

#creationToolVideo .creation-source-box {
  gap: 5px;
}

#creationToolVideo .creation-duration-box {
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: end;
}

#creationToolVideo .creation-duration-box .creation-step-title {
  grid-column: 1 / -1;
}

#creationToolVideo .creation-duration-box .creation-inline-button {
  width: 100%;
}

#creationToolVideo .creation-result-box {
  min-height: 154px;
  align-content: start;
}

#creationToolVideo .creation-video-output {
  min-height: 108px;
  display: grid;
  align-items: center;
}

#creationToolPpt {
  --tool-sheep-position: 34% center;
}

#creationToolPoster {
  --tool-sheep-position: 66% center;
}

#creationToolQa {
  --tool-sheep-position: 99% center;
}

.creation-tool-head {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.creation-tool-head span {
  color: #ffd97b;
  font-size: var(--fs-12);
  font-weight: 950;
}

.creation-tool-head h3 {
  margin: 0;
  font-size: var(--fs-24);
  line-height: 1.1;
}

.creation-step-stack {
  display: grid;
  gap: 10px;
}

.creation-step-box {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 238, 203, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 246, 221, 0.08);
}

.creation-step-title {
  color: #ffe39b;
  font-size: var(--fs-15);
  font-weight: 950;
}

.creation-field {
  display: grid;
  gap: 7px;
  font-size: var(--fs-13);
  font-weight: 900;
}

.creation-field input,
.creation-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 235, 194, 0.22);
  border-radius: 8px;
  padding: 11px 12px;
  color: #fff8e7;
  background: rgba(28, 11, 10, 0.42);
  font: inherit;
  outline: none;
  resize: vertical;
}

.creation-field input::placeholder,
.creation-field textarea::placeholder {
  color: rgba(255, 248, 231, 0.58);
}

.creation-inline-button,
.creation-image-modes button,
.creation-style-strip button,
.creation-source-tabs button,
.creation-duration-options button,
.creation-upload-button,
.creation-poster-sample {
  min-height: 42px;
  border: 1px solid rgba(255, 224, 142, 0.34);
  border-radius: 8px;
  padding: 10px 12px;
  color: #2a1705;
  background: linear-gradient(145deg, #fff0a5, #ffc247 72%, #ef941f);
  font-size: var(--fs-14);
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(255, 182, 55, 0.14);
}

.creation-style-box {
  gap: 8px;
}

.creation-style-strip {
  display: flex;
  gap: 7px;
  margin: 0 -2px;
  padding: 0 2px 2px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.creation-style-strip button {
  flex: 0 0 auto;
  min-width: 62px;
  min-height: 30px;
  padding: 6px 8px;
  font-size: var(--fs-12);
  color: rgba(255, 248, 231, 0.92);
  background: rgba(255, 246, 221, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.creation-style-strip button.is-active {
  color: #281807;
  border-color: rgba(255, 237, 154, 0.72);
  background: linear-gradient(145deg, #fff0a5, #ffc247 72%, #ef941f);
  box-shadow:
    0 12px 26px rgba(255, 182, 55, 0.14),
    0 0 0 2px rgba(255, 208, 91, 0.15);
}

.creation-source-tabs,
.creation-duration-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.creation-duration-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.creation-source-hint {
  margin: 0;
  color: rgba(255, 248, 231, 0.78);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.creation-reference-upload {
  display: grid;
  gap: 8px;
}

.creation-reference-upload[hidden],
.creation-field[hidden] {
  display: none;
}

.creation-source-tabs button,
.creation-duration-options button {
  color: rgba(255, 248, 231, 0.92);
  background: rgba(255, 246, 221, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.creation-source-tabs button.is-active,
.creation-duration-options button.is-active {
  color: #281807;
  border-color: rgba(255, 237, 154, 0.72);
  background: linear-gradient(145deg, #fff0a5, #ffc247 72%, #ef941f);
  box-shadow:
    0 12px 26px rgba(255, 182, 55, 0.14),
    0 0 0 2px rgba(255, 208, 91, 0.15);
}

.creation-reference-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.creation-upload-button {
  width: max-content;
  display: inline-grid;
  place-items: center;
}

.creation-reference-preview {
  min-height: 84px;
  border: 1px dashed rgba(255, 235, 194, 0.28);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: rgba(255, 248, 231, 0.78);
  background:
    linear-gradient(145deg, rgba(255, 246, 221, 0.08), rgba(255, 246, 221, 0.03));
  background-size: cover;
  background-position: center;
  font-size: var(--fs-13);
  font-weight: 900;
  text-align: center;
  overflow: hidden;
}

.creation-output,
.creation-pet-preview {
  min-height: 62px;
  border-radius: 8px;
  padding: 11px 12px;
  color: rgba(255, 248, 231, 0.9);
  background: rgba(27, 10, 8, 0.34);
  font-size: var(--fs-13);
  line-height: 1.55;
  white-space: pre-line;
}

.creation-video-output {
  white-space: normal;
}

.creation-video-card {
  display: grid;
  gap: 10px;
}

.creation-video-card video {
  width: min(100%, 330px);
  max-height: min(58vh, 420px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border: 1px solid rgba(255, 237, 196, 0.24);
  border-radius: 8px;
  display: block;
  background: rgba(24, 8, 7, 0.5);
  box-shadow: 0 18px 34px rgba(20, 7, 4, 0.26);
}

.creation-video-meta {
  display: grid;
  gap: 8px;
}

.creation-video-meta strong {
  color: #ffe39b;
  font-size: var(--fs-15);
}

.creation-video-meta p {
  max-height: 150px;
  margin: 0;
  overflow: auto;
  color: rgba(255, 248, 231, 0.9);
  white-space: pre-line;
}

.creation-video-meta a {
  width: max-content;
  border: 1px solid rgba(255, 224, 142, 0.38);
  border-radius: 8px;
  padding: 8px 12px;
  color: #281807;
  background: linear-gradient(145deg, #fff0a5, #ffc247 72%, #ef941f);
  font-weight: 950;
  text-decoration: none;
}

.creation-image-modes,
.creation-ppt-outline,
.creation-poster-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.creation-ppt-outline span {
  min-height: 42px;
  border: 1px solid rgba(255, 238, 203, 0.16);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: rgba(255, 248, 231, 0.92);
  background: rgba(255, 246, 221, 0.08);
  font-size: var(--fs-13);
  font-weight: 900;
  text-align: center;
}

.creation-poster-sample {
  min-height: 76px;
  color: #fff8e7;
  text-shadow: 0 2px 10px rgba(31, 10, 5, 0.5);
}

.creation-poster-sample.sample-bet {
  background: linear-gradient(145deg, #a84d28, #511b16);
}

.creation-poster-sample.sample-match {
  background: linear-gradient(145deg, #b8732d, #5a2f18);
}

.creation-poster-sample.sample-esport {
  background: linear-gradient(145deg, #a23f59, #512031);
}

.creation-poster-sample.sample-vip {
  background: linear-gradient(145deg, #c18b35, #5b3516);
}

.worldcup-panel {
  min-height: 100vh;
  padding: clamp(16px, 3vw, 32px);
  color: #fff8e7;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 205, 91, 0.2), rgba(255, 205, 91, 0) 38%),
    linear-gradient(180deg, rgba(46, 12, 33, 0.38), rgba(13, 48, 31, 0.74)),
    linear-gradient(145deg, rgba(138, 42, 77, 0.2) 0%, rgba(18, 82, 49, 0.4) 56%, rgba(8, 43, 28, 0.76) 100%),
    url("/static/assets/worldcup-hero-mobile.webp?v=1"),
    url("/static/assets/worldcup-field-loop-green.webp?v=1"),
    linear-gradient(180deg, #3a112d 0%, #0b3322 62%, #062418 100%);
  background-size: auto, auto, auto, min(100%, 520px) auto, min(100%, 560px) auto, cover;
  background-position: center top, center top, center top, center top, center 560px, center top;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat-y, no-repeat;
}

.bitcoin-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  padding: clamp(16px, 3vw, 32px);
  color: #fff8e7;
  background:
    linear-gradient(180deg, rgba(1, 12, 10, 0.16), rgba(2, 13, 12, 0.82)),
    radial-gradient(circle at 80% 8%, rgba(255, 214, 101, 0.46), rgba(255, 214, 101, 0) 34%),
    radial-gradient(circle at 14% 18%, rgba(46, 193, 117, 0.44), rgba(46, 193, 117, 0) 34%),
    linear-gradient(90deg, rgba(43, 208, 119, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 232, 137, 0.07) 1px, transparent 1px),
    linear-gradient(145deg, rgba(5, 35, 27, 0.36), rgba(62, 18, 45, 0.54)),
    url("/static/assets/bitcoin-contract-bg.png?v=1"),
    linear-gradient(145deg, #061812 0%, #0b3026 44%, #4b1834 100%);
  background-size: auto, auto, auto, 76px 76px, 76px 76px, auto, cover, cover;
  background-position: center top, center top, center top, center top, center top, center top, center top, center top;
  background-attachment: fixed, fixed, fixed, fixed, fixed, fixed, fixed, fixed;
}

.bitcoin-panel::before {
  content: "BTC";
  position: fixed;
  z-index: 0;
  top: clamp(88px, 14vh, 150px);
  right: max(-180px, -12vw);
  width: min(78vw, 720px);
  aspect-ratio: 1 / 1;
  border: 10px solid rgba(255, 229, 133, 0.28);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255, 248, 205, 0.58);
  font-size: clamp(74px, 13vw, 150px);
  font-weight: 950;
  letter-spacing: 0;
  text-shadow:
    0 3px 0 rgba(91, 48, 0, 0.52),
    0 14px 32px rgba(255, 195, 47, 0.28);
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 248, 183, 0.9), rgba(255, 216, 91, 0.56) 18%, transparent 19%),
    radial-gradient(circle at center, transparent 0 44%, rgba(255, 235, 154, 0.2) 45% 48%, transparent 49%),
    radial-gradient(circle at center, rgba(255, 197, 51, 0.62) 0 54%, rgba(155, 88, 8, 0.48) 55% 69%, rgba(255, 213, 91, 0.34) 70% 74%, rgba(82, 43, 0, 0.44) 75% 100%);
  box-shadow:
    inset 0 0 0 18px rgba(255, 244, 173, 0.12),
    inset 0 0 70px rgba(88, 40, 0, 0.38),
    0 0 84px rgba(255, 185, 44, 0.22);
  opacity: 0.56;
  pointer-events: none;
  transform: rotate(-9deg);
}

.bitcoin-panel > * {
  position: relative;
  z-index: 1;
}

.bitcoin-header {
  width: min(1180px, 100%);
  margin: 0 auto 18px;
  padding: 18px;
  border: 1px solid rgba(255, 236, 246, 0.18);
  border-radius: 26px;
  background:
    linear-gradient(115deg, rgba(255, 226, 116, 0.22), transparent 36%),
    radial-gradient(circle at 85% 0%, rgba(255, 232, 135, 0.36), transparent 32%),
    linear-gradient(180deg, rgba(8, 45, 35, 0.8), rgba(34, 17, 34, 0.68));
  backdrop-filter: blur(14px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(230px, 0.5fr);
  gap: 18px;
  align-items: start;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 16px 30px rgba(33, 5, 29, 0.22);
}

.bitcoin-header-copy span,
.bitcoin-section-title span {
  color: rgba(255, 248, 231, 0.72);
  font-size: var(--fs-12);
  font-weight: 850;
}

.bitcoin-header-copy > span {
  color: #ffe889;
  font-weight: 950;
}

.bitcoin-header-copy h2 {
  margin-top: 4px;
  color: #fff8e7;
  font-size: clamp(28px, 4vw, 48px);
}

.bitcoin-header-copy p {
  max-width: 660px;
  color: rgba(255, 248, 231, 0.74);
  font-weight: 700;
}

.bitcoin-price-card {
  min-height: 132px;
  border: 1px solid rgba(255, 240, 181, 0.22);
  border-radius: 22px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 232, 135, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(9, 29, 24, 0.78);
  position: relative;
  overflow: hidden;
}

.bitcoin-price-card::after {
  content: "";
  position: absolute;
  inset: auto 14px 12px 14px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2bd077, #ffe889, #f0a91b);
  opacity: 0.78;
}

.bitcoin-price-card small,
.bitcoin-price-card span {
  display: block;
  color: rgba(255, 248, 231, 0.68);
  font-size: var(--fs-12);
  font-weight: 850;
}

.bitcoin-price-card strong {
  display: block;
  margin: 9px 0 8px;
  color: #ffe889;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.15;
}

.bitcoin-layout {
  width: min(1180px, 100%);
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.5fr);
  gap: 16px;
  align-items: start;
}

.bitcoin-left,
.bitcoin-main {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.bitcoin-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bitcoin-mark-spotlight,
.bitcoin-prediction-card,
.bitcoin-metrics article,
.bitcoin-warning,
.bitcoin-agent-detail,
.bitcoin-strategy-main,
.bitcoin-rule-grid article,
.bitcoin-source-note {
  border: 1px solid rgba(255, 236, 246, 0.13);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(8, 26, 24, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.bitcoin-mark-spotlight {
  min-height: 128px;
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 7px;
  border-color: rgba(255, 232, 137, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 232, 137, 0.26), rgba(240, 169, 27, 0.08) 42%, rgba(10, 31, 27, 0.82)),
    rgba(10, 31, 27, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 16px 30px rgba(240, 169, 27, 0.15);
}

.bitcoin-mark-spotlight span {
  color: #ffe889;
  font-size: var(--fs-13);
  font-weight: 950;
}

.bitcoin-mark-spotlight strong {
  color: #fff8e7;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: 0;
}

.bitcoin-mark-spotlight small {
  color: rgba(255, 248, 231, 0.68);
  font-size: var(--fs-12);
  font-weight: 850;
}

.bitcoin-prediction-card {
  min-height: 126px;
  padding: 16px;
  display: grid;
  align-content: center;
  gap: 8px;
  border-color: rgba(43, 208, 119, 0.32);
  background:
    linear-gradient(135deg, rgba(43, 208, 119, 0.24), rgba(255, 232, 137, 0.1) 46%, rgba(39, 15, 35, 0.76)),
    rgba(9, 31, 26, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 14px 26px rgba(43, 208, 119, 0.12);
}

.bitcoin-prediction-card span {
  color: #8ef2b6;
  font-size: var(--fs-13);
  font-weight: 950;
}

.bitcoin-prediction-card strong {
  color: #fff8e7;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.06;
}

.bitcoin-prediction-card div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.bitcoin-prediction-card small {
  color: rgba(255, 248, 231, 0.72);
  font-size: var(--fs-12);
  font-weight: 850;
}

.bitcoin-metrics article {
  min-height: 88px;
  padding: 13px;
  display: grid;
  align-content: center;
  gap: 8px;
}

.bitcoin-metrics span,
.bitcoin-warning strong,
.bitcoin-agent-detail span,
.bitcoin-strategy-main span,
.bitcoin-rule-grid span {
  color: #ffe889;
  font-size: var(--fs-12);
  font-weight: 950;
}

.bitcoin-metrics strong {
  color: #fff8e7;
  font-size: var(--fs-16);
}

.bitcoin-warning {
  padding: 14px;
}

.bitcoin-refresh {
  min-height: 50px;
  border: 1px solid rgba(255, 240, 181, 0.34);
  border-radius: 18px;
  color: #211407;
  background: linear-gradient(180deg, #ffe887, #f0a91b);
  font-size: var(--fs-15);
  font-weight: 950;
  box-shadow: 0 12px 22px rgba(9, 11, 10, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.bitcoin-refresh:disabled {
  opacity: 0.68;
}

.bitcoin-live-updated,
.bitcoin-source-note {
  color: rgba(255, 248, 231, 0.72);
  font-size: var(--fs-12);
  font-weight: 820;
  line-height: 1.45;
}

.bitcoin-source-note {
  padding: 13px;
}

.bitcoin-warning p,
.bitcoin-agent-detail p,
.bitcoin-agent-detail small,
.bitcoin-strategy-main p {
  margin: 7px 0 0;
  color: rgba(255, 248, 231, 0.76);
  font-size: var(--fs-13);
  line-height: 1.55;
  font-weight: 760;
}

.bitcoin-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.bitcoin-section-title strong {
  display: block;
  color: #fff8e7;
  font-size: var(--fs-22);
  line-height: 1.15;
}

.bitcoin-agent-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.bitcoin-agent-card {
  min-height: 118px;
  border: 1px solid rgba(255, 236, 246, 0.13);
  border-radius: 20px;
  padding: 12px;
  color: #fff8e7;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(7, 36, 28, 0.78);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 6px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.bitcoin-agent-card:active {
  transform: scale(0.98);
}

.bitcoin-agent-card.active {
  color: #281304;
  background: linear-gradient(180deg, #ffe887, #f6a914);
  border-color: rgba(255, 240, 181, 0.46);
}

.bitcoin-agent-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 2px;
  border: 1px solid rgba(255, 232, 135, 0.28);
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #191006;
  background: linear-gradient(180deg, #fff0a3, #e6a016);
  font-size: var(--fs-14);
  font-style: normal;
  font-weight: 1000;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

.bitcoin-agent-card.active .bitcoin-agent-icon {
  color: #fff8e7;
  background: linear-gradient(180deg, #163829, #38172b);
  border-color: rgba(40, 19, 4, 0.18);
}

.bitcoin-agent-card span {
  color: currentColor;
  opacity: 0.68;
  font-size: var(--fs-11);
  font-weight: 900;
}

.bitcoin-agent-card strong {
  font-size: var(--fs-15);
  line-height: 1.15;
}

.bitcoin-agent-card em {
  color: currentColor;
  opacity: 0.86;
  font-size: var(--fs-11);
  font-style: normal;
  font-weight: 900;
}

.bitcoin-agent-detail {
  padding: 15px;
}

.bitcoin-agent-detail strong {
  display: block;
  color: #fff8e7;
  font-size: var(--fs-20);
}

.bitcoin-timeframes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.bitcoin-timeframes button {
  min-height: 48px;
  border: 1px solid rgba(255, 236, 246, 0.13);
  border-radius: 16px;
  color: #fff8e7;
  background: rgba(43, 13, 37, 0.5);
  font-weight: 950;
}

.bitcoin-timeframes button.active {
  color: #281304;
  background: linear-gradient(180deg, #ffe887, #f6a914);
  border-color: rgba(255, 240, 181, 0.46);
}

.bitcoin-strategy {
  display: grid;
  gap: 10px;
}

.bitcoin-strategy-main {
  padding: 16px;
}

.bitcoin-strategy-main strong {
  display: block;
  margin-top: 6px;
  color: #fff8e7;
  font-size: var(--fs-22);
  line-height: 1.18;
}

.bitcoin-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.bitcoin-rule-grid article {
  min-height: 118px;
  padding: 13px;
}

.bitcoin-rule-grid strong {
  display: block;
  margin-top: 7px;
  color: rgba(255, 248, 231, 0.84);
  font-size: var(--fs-14);
  line-height: 1.45;
}

.worldcup-header {
  width: min(1180px, 100%);
  margin: 0 auto 18px;
  padding: 18px;
  border: 1px solid rgba(255, 236, 246, 0.18);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(53, 13, 39, 0.72), rgba(64, 17, 52, 0.54)),
    url("/static/assets/worldcup-hero-mobile.webp?v=1");
  background-size: auto, 100% auto;
  background-position: center, center top;
  background-repeat: no-repeat;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 16px 30px rgba(33, 5, 29, 0.22);
  overflow: hidden;
  position: relative;
}

.worldcup-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 214, 101, 0.18), rgba(255, 214, 101, 0) 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
}

.worldcup-header > * {
  position: relative;
  z-index: 1;
}

.worldcup-header-copy {
  min-width: 0;
}

.worldcup-back {
  height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(255, 240, 181, 0.32);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffe887, #f6a914);
  color: #281304;
  font-weight: 900;
  cursor: pointer;
}

.worldcup-header span {
  color: #ffe889;
  font-size: var(--fs-12);
  font-weight: 900;
}

.worldcup-header h2 {
  margin-top: 4px;
  color: #fff8e7;
  font-size: clamp(28px, 4vw, 48px);
}

.worldcup-header p {
  color: rgba(255, 248, 231, 0.74);
  font-weight: 700;
}

.agent-grid.worldcup-header-agents {
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.worldcup-agent-strip {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  order: 3;
  margin-top: 4px;
}

.worldcup-agent-strip .worldcup-section-title {
  padding: 12px 14px;
}

.worldcup-board,
.analysis-console {
  width: min(1180px, 100%);
  margin: 0 auto 18px;
}

.worldcup-layout {
  width: min(1180px, 100%);
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.55fr);
  gap: 16px;
  align-items: start;
}

.worldcup-left,
.worldcup-main {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.group-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.group-nav button {
  min-height: 42px;
  border: 1px solid rgba(255, 236, 246, 0.15);
  border-radius: 16px;
  background: rgba(76, 24, 58, 0.56);
  color: rgba(255, 248, 231, 0.72);
  cursor: pointer;
  font-weight: 900;
}

.group-nav button.active {
  border-color: rgba(255, 240, 181, 0.42);
  background: linear-gradient(180deg, #ffe887, #f6a914);
  color: #281304;
}

.group-nav button.expanded {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 22px rgba(246, 169, 20, 0.2);
}

.group-nav button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.group-schedule {
  border: 1px solid rgba(255, 240, 181, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 232, 135, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(67, 18, 51, 0.78);
  padding: 12px;
  display: grid;
  gap: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 24px rgba(33, 5, 29, 0.2);
}

.group-schedule[hidden] {
  display: none;
}

.group-schedule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.daily-date-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff8e7;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.daily-date-toggle em {
  color: rgba(255, 248, 231, 0.72);
  font-size: var(--fs-12);
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.daily-date-toggle em::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  display: inline-block;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.daily-date-toggle[aria-expanded="true"] em::after {
  transform: translateY(2px) rotate(225deg);
}

.group-schedule-head span {
  min-width: 44px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe887, #f6a914);
  color: #281304;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-12);
  font-weight: 950;
}

.daily-schedule-head span {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #ffe889;
  display: inline;
  font-size: var(--fs-13);
}

.group-schedule-head strong {
  color: #fff8e7;
  font-size: var(--fs-22);
  line-height: 1.08;
}

.group-schedule-list {
  display: grid;
  gap: 8px;
}

.daily-schedule {
  gap: 10px;
  margin-top: 0;
}

.daily-schedule-note {
  margin: 0;
  color: rgba(255, 248, 231, 0.72);
  font-size: var(--fs-12);
  font-weight: 800;
  line-height: 1.45;
}

.daily-date-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.daily-date-fold {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.26s ease, opacity 0.18s ease;
}

.daily-date-fold.expanded {
  max-height: 620px;
  opacity: 1;
}

.daily-date-chip {
  min-height: 58px;
  border: 1px solid rgba(255, 236, 246, 0.14);
  border-radius: 16px;
  background: rgba(48, 12, 39, 0.36);
  color: #fff8e7;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 8px 6px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.daily-date-chip.selected {
  border-color: rgba(255, 240, 181, 0.5);
  background: linear-gradient(180deg, #ffe887, #f6a914);
  color: #281304;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    0 12px 22px rgba(246, 169, 20, 0.2);
}

.daily-date-chip.active:not(.selected) {
  border-color: rgba(255, 240, 181, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 232, 135, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(48, 12, 39, 0.44);
  color: #ffe889;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 16px rgba(33, 5, 29, 0.16);
}

.daily-date-chip span {
  font-size: var(--fs-13);
  font-weight: 950;
  line-height: 1.1;
}

.daily-date-chip small {
  color: currentColor;
  font-size: var(--fs-10);
  font-weight: 950;
  opacity: 0.72;
}

.daily-selected-day {
  display: grid;
  gap: 9px;
  padding-top: 2px;
}

.daily-selected-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #fff8e7;
}

.daily-selected-head strong {
  color: #ffe889;
  font-size: var(--fs-22);
  line-height: 1.08;
}

.daily-selected-head span {
  color: rgba(255, 248, 231, 0.72);
  font-size: var(--fs-12);
  font-weight: 900;
}

.daily-day-list {
  display: grid;
  gap: 10px;
}

.daily-day {
  border: 1px solid rgba(255, 236, 246, 0.12);
  border-radius: 18px;
  background: rgba(48, 12, 39, 0.3);
  overflow: hidden;
}

.daily-day.active,
.daily-day.expanded {
  border-color: rgba(255, 240, 181, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 232, 135, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(48, 12, 39, 0.38);
}

.daily-day-toggle {
  width: 100%;
  min-height: 60px;
  border: 0;
  background: transparent;
  color: #fff8e7;
  display: grid;
  grid-template-columns: minmax(84px, 0.9fr) minmax(0, 1fr) 46px;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}

.daily-day-toggle span {
  color: #ffe889;
  font-size: var(--fs-15);
  font-weight: 950;
}

.daily-day-toggle strong {
  color: #fff8e7;
  font-size: var(--fs-15);
}

.daily-day-toggle small {
  min-height: 30px;
  border-radius: 999px;
  background: rgba(255, 232, 135, 0.16);
  color: #ffe889;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-11);
  font-weight: 950;
}

.daily-fixture-list {
  padding: 0 10px 10px;
}

.group-fixture-row {
  min-height: 64px;
  border: 1px solid rgba(255, 236, 246, 0.13);
  border-radius: 16px;
  background: rgba(8, 32, 24, 0.7);
  color: #fff8e7;
  cursor: pointer;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 7px 11px;
  align-items: center;
  padding: 10px 12px;
  text-align: left;
}

.group-fixture-row.active {
  border-color: rgba(255, 240, 181, 0.44);
  background: rgba(112, 35, 82, 0.68);
}

.group-fixture-row.readonly {
  cursor: default;
  opacity: 0.82;
}

.group-fixture-row > span {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 232, 135, 0.13);
  color: #ffe889;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-11);
  font-weight: 950;
  grid-row: span 2;
}

.group-fixture-row strong {
  min-width: 0;
  color: #fff8e7;
  font-size: var(--fs-16);
  line-height: 1.25;
}

.daily-fixture-row small {
  color: rgba(255, 248, 231, 0.62);
  font-size: var(--fs-12);
  font-weight: 760;
  line-height: 1.35;
}

.match-title,
.team-name-line,
.match-team-name {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.match-title {
  flex-wrap: wrap;
  row-gap: 4px;
}

.match-team-name {
  max-width: 100%;
}

.match-vs {
  color: rgba(255, 248, 231, 0.56);
  font-size: 0.72em;
  font-weight: 950;
  text-transform: uppercase;
}

.prediction-result-badge,
.prediction-result-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 232, 135, 0.72);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.38), transparent 32%),
    linear-gradient(135deg, #ff3b30 0%, #d92323 46%, #ffbf38 100%);
  color: #fff8e7;
  text-shadow: 0 1px 2px rgba(92, 8, 8, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 7px 14px rgba(173, 20, 20, 0.28);
  font-style: normal;
  font-weight: 1000;
  letter-spacing: 0.04em;
}

.prediction-result-badge {
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  gap: 3px;
  font-size: var(--fs-12);
  line-height: 1;
}

.prediction-result-inline {
  padding: 2px 8px;
  gap: 3px;
  font-size: var(--fs-11);
}

.prediction-result-badge.miss,
.prediction-result-inline.miss {
  border-color: rgba(210, 244, 255, 0.78);
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.5), transparent 32%),
    linear-gradient(135deg, #e9fbff 0%, #8fd5ff 52%, #4d97db 100%);
  color: #09233c;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 7px 14px rgba(33, 102, 157, 0.24);
}

.team-flag {
  width: 1.7em;
  min-width: 1.7em;
  height: 1.7em;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.26em;
  line-height: 1;
  background:
    radial-gradient(circle at 45% 35%, rgba(255, 255, 255, 0.22), transparent 42%),
    rgba(255, 248, 231, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 231, 0.18),
    0 4px 9px rgba(28, 5, 22, 0.36);
  filter: drop-shadow(0 2px 4px rgba(28, 5, 22, 0.32));
}

.group-fixture-row small {
  min-width: 0;
  color: rgba(255, 248, 231, 0.66);
  font-size: var(--fs-11);
  font-weight: 800;
}

.worldcup-group-overview,
.worldcup-sources,
.worldcup-section-title {
  border: 1px solid rgba(255, 236, 246, 0.17);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    rgba(77, 24, 58, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 14px 26px rgba(33, 5, 29, 0.22);
}

.worldcup-group-overview {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.overview-head span {
  color: #ffe889;
  font-size: var(--fs-12);
  font-weight: 900;
}

.overview-head strong {
  display: block;
  margin-top: 6px;
  color: #fff8e7;
  font-size: var(--fs-22);
}

.overview-head p {
  color: rgba(255, 248, 231, 0.74);
  font-weight: 700;
}

.team-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.team-chip-grid article {
  min-height: 108px;
  padding: 12px;
  border: 1px solid rgba(255, 236, 246, 0.13);
  border-radius: 18px;
  background: rgba(48, 12, 39, 0.34);
  display: grid;
  gap: 4px;
}

.team-chip-grid article > span,
.projection-list b {
  color: #ffe889;
  font-size: var(--fs-12);
  font-weight: 950;
}

.team-chip-grid strong {
  color: #fff8e7;
  font-size: var(--fs-18);
}

.team-chip-grid small,
.team-chip-grid em,
.projection-list small,
.logic-list li {
  color: rgba(255, 248, 231, 0.72);
  font-size: var(--fs-12);
  font-style: normal;
  font-weight: 700;
  line-height: 1.45;
}

.projection-list,
.logic-list {
  display: grid;
  gap: 10px;
}

.projection-list > strong,
.logic-list > strong,
.worldcup-sources > strong,
.worldcup-section-title strong {
  color: #fff8e7;
  font-size: var(--fs-16);
  line-height: 1.2;
}

.projection-list > div {
  padding: 10px 0;
  border-top: 1px solid rgba(255, 236, 246, 0.12);
  display: grid;
  grid-template-columns: 68px 70px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.projection-list span {
  color: #fff8e7;
  font-weight: 900;
}

.projection-list .team-name-line {
  align-items: flex-start;
  line-height: 1.25;
}

.logic-list ol {
  margin: 0;
  padding-left: 20px;
}

.logic-list li + li {
  margin-top: 8px;
}

.worldcup-sources {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.worldcup-sources a {
  padding: 10px 12px;
  border: 1px solid rgba(255, 236, 246, 0.12);
  border-radius: 16px;
  background: rgba(48, 12, 39, 0.3);
  color: #fff8e7;
  text-decoration: none;
  display: grid;
  gap: 4px;
}

.worldcup-sources a span {
  font-weight: 900;
}

.worldcup-sources a small,
.worldcup-sources p,
.worldcup-section-title span {
  color: rgba(255, 248, 231, 0.68);
  font-size: var(--fs-12);
  line-height: 1.45;
  font-weight: 700;
}

.worldcup-section-title {
  padding: 14px 16px;
}

.worldcup-section-title strong,
.worldcup-section-title span {
  display: block;
}

.worldcup-section-title span {
  margin-top: 4px;
}

.worldcup-match-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.worldcup-match-card {
  min-height: 104px;
  padding: 14px;
  border: 1px solid rgba(255, 236, 246, 0.15);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(76, 24, 58, 0.72);
  color: #fff8e7;
  text-align: left;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 22px rgba(33, 5, 29, 0.18);
}

.worldcup-match-card.active {
  border-color: rgba(255, 240, 181, 0.44);
  background:
    linear-gradient(180deg, rgba(255, 232, 135, 0.24), rgba(246, 169, 20, 0.1)),
    rgba(76, 24, 58, 0.8);
}

.worldcup-match-card > span,
.worldcup-match-card > small {
  color: rgba(255, 248, 231, 0.68);
  font-size: var(--fs-12);
  font-weight: 800;
}

.worldcup-match-card strong {
  display: block;
  margin: 8px 0;
  color: #fff8e7;
  font-size: var(--fs-18);
  line-height: 1.2;
}

.worldcup-board {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.4fr);
  gap: 16px;
}

.worldcup-command,
.agent-card,
.analysis-console,
.analysis-report {
  border: 1px solid rgba(255, 236, 246, 0.17);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    rgba(77, 24, 58, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 14px 26px rgba(33, 5, 29, 0.22);
}

.worldcup-command {
  min-height: 100%;
  padding: 22px;
  border-radius: 28px;
  display: grid;
  align-content: space-between;
  gap: 20px;
}

.command-badge {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffe887, #f6a914);
  color: #281304;
  font-size: var(--fs-14);
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54), 0 14px 24px rgba(33, 5, 29, 0.2);
}

.worldcup-command h3 {
  color: #fff8e7;
  font-size: var(--fs-26);
}

.worldcup-command p,
.agent-card p {
  color: rgba(255, 248, 231, 0.74);
  font-weight: 700;
}

.command-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.command-stats span {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(48, 12, 39, 0.38);
  color: rgba(255, 248, 231, 0.74);
  font-weight: 900;
}

.command-stats strong {
  color: #ffe889;
  font-size: var(--fs-20);
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.agent-card {
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(255, 236, 246, 0.17);
  border-radius: 24px;
  color: #fff8e7;
  font: inherit;
  text-align: left;
  display: grid;
  align-content: start;
  gap: 9px;
  cursor: pointer;
}

button.agent-card {
  appearance: none;
}

.agent-card span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(44, 12, 37, 0.34);
  color: #ffe889;
  font-size: var(--fs-12);
  font-weight: 950;
}

.agent-card .agent-icon {
  font-size: 20px;
}

.agent-card em {
  color: rgba(255, 232, 137, 0.78);
  font-size: var(--fs-10);
  font-style: normal;
  font-weight: 950;
}

.agent-card strong {
  color: #fff8e7;
  font-size: var(--fs-18);
  line-height: 1.14;
}

.agent-card p {
  margin-top: 0;
  font-size: var(--fs-12);
  line-height: 1.45;
}

.agent-card small {
  color: rgba(255, 248, 231, 0.56);
  font-size: var(--fs-11);
  font-weight: 800;
  line-height: 1.35;
}

.worldcup-header-agents .agent-card {
  min-height: 86px;
  padding: 10px 7px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 232, 137, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(55, 14, 43, 0.48);
  align-content: center;
  justify-items: center;
  gap: 5px;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 18px rgba(33, 5, 29, 0.18);
}

.worldcup-header-agents .agent-card:nth-child(1) {
  border-color: rgba(255, 232, 137, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 232, 137, 0.32), rgba(246, 169, 20, 0.1)),
    rgba(55, 14, 43, 0.62);
}

.worldcup-header-agents .agent-card:focus-visible {
  outline: 2px solid rgba(255, 232, 137, 0.86);
  outline-offset: 2px;
}

.worldcup-header-agents .agent-card .agent-icon {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 10px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 232, 137, 0.24), rgba(255, 232, 137, 0)),
    rgba(44, 12, 37, 0.42);
  font-size: 16px;
  line-height: 1;
}

.worldcup-header-agents .agent-card em {
  color: #ffe889;
  font-size: 8px;
  line-height: 1;
}

.worldcup-header-agents .agent-card strong {
  min-height: 26px;
  display: grid;
  place-items: center;
  color: #fff8e7;
  font-size: 11px;
  line-height: 1.18;
}

.worldcup-header-agents .agent-card small {
  color: rgba(255, 248, 231, 0.66);
  font-size: 9px;
  line-height: 1.2;
}

.worldcup-agent-panel {
  display: grid;
  align-items: start;
}

.worldcup-agent-detail {
  width: min(720px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.agent-detail-body {
  display: grid;
  gap: 14px;
}

.agent-detail-hero,
.agent-detail-card {
  border: 1px solid rgba(255, 236, 246, 0.17);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    rgba(77, 24, 58, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 14px 26px rgba(33, 5, 29, 0.22);
}

.agent-detail-hero {
  min-height: 190px;
  padding: 22px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.agent-detail-icon {
  width: 90px;
  height: 90px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #ffe887, #f6a914);
  color: #281304;
  font-size: 44px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.54),
    0 16px 28px rgba(33, 5, 29, 0.24);
}

.agent-detail-hero em,
.agent-detail-card span {
  color: #ffe889;
  font-size: var(--fs-12);
  font-style: normal;
  font-weight: 950;
}

.agent-detail-hero h2 {
  margin-top: 6px;
  color: #fff8e7;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.05;
}

.agent-detail-hero p,
.agent-detail-card p {
  margin-top: 8px;
  color: rgba(255, 248, 231, 0.78);
  font-size: var(--fs-16);
  font-weight: 800;
  line-height: 1.48;
}

.agent-detail-card {
  padding: 18px;
}

.agent-check-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.agent-check-grid strong {
  min-height: 48px;
  padding: 0 12px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(48, 12, 39, 0.38);
  color: #fff8e7;
  font-size: var(--fs-13);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.agent-detail-primary {
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffe887, #f6a914);
  color: #281304;
  font-size: var(--fs-16);
  font-weight: 950;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.54),
    0 16px 28px rgba(33, 5, 29, 0.24);
}

.analysis-console {
  border-radius: 28px;
  padding: 18px;
}

.analysis-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.analysis-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 248, 231, 0.78);
  font-size: var(--fs-12);
  font-weight: 900;
}

.analysis-form input {
  min-width: 0;
  height: 46px;
  border: 1px solid rgba(255, 236, 246, 0.18);
  border-radius: 16px;
  padding: 0 14px;
  background: rgba(32, 8, 27, 0.46);
  color: #fff8e7;
  outline: 0;
}

.analysis-form input::placeholder {
  color: rgba(255, 248, 231, 0.44);
}

.analysis-question {
  grid-column: 1 / -2;
}

.analysis-form button {
  min-height: 46px;
  align-self: end;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffe887, #f6a914);
  color: #281304;
  font-weight: 950;
  cursor: pointer;
}

.analysis-output {
  margin-top: 0;
}

.analysis-details-output {
  display: grid;
}

.analysis-empty,
.analysis-report {
  min-height: 120px;
  border-radius: 22px;
  padding: 18px;
}

.analysis-empty {
  border: 1px dashed rgba(255, 236, 246, 0.22);
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(255, 248, 231, 0.72);
}

.analysis-empty strong {
  color: #fff8e7;
  font-size: var(--fs-18);
}

.analysis-empty span {
  margin-top: 6px;
  font-size: var(--fs-13);
  font-weight: 700;
}

.analysis-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 8px;
}

.analysis-report-head > div > span {
  color: rgba(255, 248, 231, 0.68);
  font-size: var(--fs-12);
  font-weight: 900;
}

.analysis-report-head strong {
  display: block;
  margin-top: 4px;
  color: #fff8e7;
  font-size: var(--fs-28);
  line-height: 1.08;
}

.analysis-report-head em {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: linear-gradient(180deg, #ffe887, #f6a914);
  color: #281304;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.analysis-report-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.score-focus-section {
  grid-column: 1 / -1;
}

.score-first-report {
  display: grid;
  gap: 10px;
  min-height: 0;
  padding: 0;
}


.prediction-streak-badge {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 232, 135, 0.62);
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(135deg, #ff3b30 0%, #d92323 45%, #ffbf38 100%);
  color: #fff8e7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 10px 20px rgba(173, 20, 20, 0.28);
  text-shadow: 0 1px 2px rgba(92, 8, 8, 0.5);
}

.prediction-streak-badge .streak-flag,
.prediction-streak-badge em {
  font-style: normal;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(92, 8, 8, 0.35));
}

.prediction-streak-badge .streak-flag {
  font-size: var(--fs-15);
}

.prediction-streak-badge b {
  font-size: var(--fs-13);
  line-height: 1;
  font-weight: 1000;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.prediction-streak-badge em {
  font-size: var(--fs-13);
  font-weight: 1000;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.next-match-hero {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(130, 255, 182, 0.42);
  background:
    radial-gradient(circle at 12% 18%, rgba(130, 255, 182, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(21, 94, 56, 0.92), rgba(9, 42, 31, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 26px rgba(2, 45, 28, 0.26);
}

.next-match-hero > span {
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #82ffb6, #30d17a);
  color: #062b18;
  font-size: var(--fs-11);
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.next-match-hero .match-title {
  color: #fff8e7;
  font-size: var(--fs-28);
  line-height: 1.12;
  font-weight: 1000;
}

.next-match-hero em,
.score-stance-chip {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff0a8, #ffbd2e);
  color: #281304;
  font-size: var(--fs-14);
  line-height: 1;
  font-style: normal;
  font-weight: 1000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.next-match-hero small {
  color: rgba(255, 248, 231, 0.76);
  font-size: var(--fs-13);
  font-weight: 850;
}

.score-first-report .score-focus-section {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.score-focus-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.score-first-report .analysis-report-head {
  order: 2;
}

.score-match-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 232, 135, 0.34);
  background:
    linear-gradient(180deg, rgba(118, 34, 83, 0.82), rgba(11, 43, 31, 0.78)),
    rgba(78, 24, 57, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 20px rgba(33, 5, 29, 0.16);
}

.score-match-head .match-title {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #fff8e7;
  font-size: var(--fs-26);
  line-height: 1.18;
  font-weight: 950;
}

.score-match-head .team-flag {
  width: 1.72em;
  min-width: 1.72em;
  height: 1.72em;
  font-size: 1.34em;
}

.score-match-head .match-vs {
  min-width: 36px;
  min-height: 36px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffe887, #f6a914);
  color: #281304;
  font-size: 0.6em;
  box-shadow: 0 8px 18px rgba(33, 5, 29, 0.18);
}

.score-match-head em {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: linear-gradient(180deg, #ffe887, #f6a914);
  color: #281304;
  font-size: var(--fs-12);
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.match-after-score {
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 22px;
  border: 1px solid rgba(255, 232, 135, 0.34);
  background:
    linear-gradient(180deg, rgba(118, 34, 83, 0.78), rgba(20, 77, 50, 0.74)),
    rgba(48, 12, 39, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 12px 22px rgba(33, 5, 29, 0.18);
}

.match-after-score .match-title {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: start;
  gap: 7px;
  font-size: var(--fs-34);
}

.match-after-score .match-team-name {
  width: fit-content;
  min-width: 164px;
  min-height: 78px;
  padding: 8px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 232, 135, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(16, 65, 42, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
  gap: 6px;
}

.match-after-score .team-flag {
  width: 1.74em;
  min-width: 1.74em;
  height: 1.74em;
  font-size: 1.18em;
}

.match-after-score .match-vs {
  min-width: 40px;
  min-height: 40px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  background: linear-gradient(180deg, #ffe887, #f6a914);
  color: #281304;
  font-size: 0.62em;
  box-shadow: 0 8px 18px rgba(33, 5, 29, 0.18);
}

.match-after-score em {
  justify-self: end;
  margin-top: -50px;
}

.match-after-score > div > span {
  display: block;
  margin-top: 8px;
  font-size: var(--fs-13);
  color: rgba(255, 248, 231, 0.78);
}

.report-detail-stack {
  display: grid;
  gap: 12px;
}

.report-detail-stack .logic-section {
  grid-row: auto;
}

.report-detail-stack .direction-grid {
  margin-top: 12px;
}

.direction-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.direction-grid section {
  min-height: 102px;
  padding: 14px;
  border: 1px solid rgba(255, 236, 246, 0.13);
  border-radius: 18px;
  background: rgba(48, 12, 39, 0.34);
}

.score-pick-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.score-pick-grid div {
  min-height: 138px;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffe887, #f6a914);
  color: #281304;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46), 0 12px 22px rgba(33, 5, 29, 0.18);
}

.score-pick-grid span {
  display: block;
  font-size: var(--fs-12);
  font-weight: 900;
  opacity: 0.76;
}

.score-pick-grid strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(44px, 7vw, 68px);
  line-height: 1;
}

.betting-market-card {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 232, 135, 0.32);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 232, 135, 0.16), rgba(217, 35, 35, 0.14)),
    rgba(48, 12, 39, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 14px 26px rgba(33, 5, 29, 0.18);
}

.betting-card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.betting-card-head span {
  color: #ffe889;
  font-size: var(--fs-13);
  font-weight: 950;
}

.betting-card-head strong {
  color: rgba(255, 248, 231, 0.78);
  font-size: var(--fs-12);
  font-weight: 900;
  text-align: right;
}

.betting-market-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.betting-market-item {
  min-height: 0;
  padding: 12px;
  border-radius: 17px;
  border: 1px solid rgba(255, 248, 231, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(20, 77, 50, 0.58);
}

.betting-market-item em,
.betting-market-item b,
.betting-market-item small {
  display: block;
}

.betting-market-item em {
  color: #ffe889;
  font-size: var(--fs-11);
  font-style: normal;
  font-weight: 950;
}

.betting-market-item b {
  margin-top: 7px;
  color: #281304;
  font-size: var(--fs-18);
  line-height: 1.18;
}

.betting-market-item .market-prediction-main {
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff0a8, #ffbd2e);
  color: #281304;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.market-meta-row {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.market-meta-row span,
.market-score-reference {
  display: block;
  border-radius: 12px;
  padding: 7px 8px;
  background: rgba(48, 12, 39, 0.52);
  border: 1px solid rgba(255, 248, 231, 0.1);
  color: rgba(255, 248, 231, 0.84);
  font-size: var(--fs-12);
  line-height: 1.25;
  font-weight: 900;
}

.market-score-reference {
  margin-top: 7px;
}

.market-confidence {
  color: #ffe889 !important;
}

.betting-market-item small {
  margin-top: 7px;
  color: rgba(255, 248, 231, 0.68);
  font-size: var(--fs-12);
  font-weight: 820;
  line-height: 1.42;
}

.market-reason i {
  color: #ffe889;
  font-style: normal;
  font-weight: 950;
}

.betting-market-card p {
  margin: 10px 0 0;
  color: rgba(255, 248, 231, 0.72);
  font-size: var(--fs-11);
  font-weight: 850;
  line-height: 1.45;
}

.analysis-report section {
  min-height: 116px;
  padding: 14px;
  border: 1px solid rgba(255, 236, 246, 0.13);
  border-radius: 18px;
  background: rgba(48, 12, 39, 0.34);
}

.analysis-report h4 {
  margin: 0 0 8px;
  color: #ffe889;
  font-size: var(--fs-14);
}

.live-analysis-status {
  display: none !important;
  margin-bottom: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 236, 246, 0.13);
  border-radius: 16px;
  background: rgba(48, 12, 39, 0.34);
  display: grid;
  gap: 4px;
}

.live-analysis-status span {
  color: #ffe889;
  font-size: var(--fs-11);
  font-weight: 950;
}

.live-analysis-status strong {
  color: rgba(255, 248, 231, 0.82);
  font-size: var(--fs-13);
  line-height: 1.4;
}

.live-analysis-status small {
  color: rgba(255, 248, 231, 0.68);
  font-size: var(--fs-11);
  font-weight: 850;
  line-height: 1.4;
}

.live-analysis-status.ready {
  border-color: rgba(255, 240, 181, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 232, 135, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(48, 12, 39, 0.42);
}

.live-analysis-status.base {
  border-style: dashed;
}

.analysis-report p,
.analysis-report li {
  color: rgba(255, 248, 231, 0.78);
  font-size: var(--fs-13);
  font-weight: 700;
  line-height: 1.55;
}

.analysis-report ul {
  margin: 0;
  padding-left: 18px;
}

.analysis-report ol {
  margin: 0;
  padding-left: 20px;
}

.logic-section {
  grid-row: span 2;
}

.agent-finding-list {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.agent-finding-list h4 {
  grid-column: 1 / -1;
  margin: 0;
  color: #ffe889;
  font-size: var(--fs-15);
}

.agent-finding-list > div {
  padding: 12px;
  border: 1px solid rgba(255, 236, 246, 0.12);
  border-radius: 16px;
  background: rgba(48, 12, 39, 0.3);
}

.agent-finding-list strong {
  color: #fff8e7;
  font-size: var(--fs-13);
}

.agent-finding-list p {
  margin-top: 6px;
  color: rgba(255, 248, 231, 0.7);
  font-size: var(--fs-12);
}

.report-sources {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 236, 246, 0.13);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.report-sources h4 {
  flex: 0 0 100%;
  margin: 0;
  color: #ffe889;
  font-size: var(--fs-14);
}

.report-sources a {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 236, 246, 0.13);
  border-radius: 999px;
  color: rgba(255, 248, 231, 0.78);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: var(--fs-12);
  font-weight: 800;
}

.copy-line {
  color: #fff8e7 !important;
  font-size: var(--fs-15) !important;
}

.worldcup-match-picker {
  border: 1px solid rgba(255, 236, 246, 0.17);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    rgba(77, 24, 58, 0.74);
  padding: 14px;
  display: grid;
  gap: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 14px 26px rgba(33, 5, 29, 0.2);
}

.picker-head span,
.selected-match-summary > span {
  color: #ffe889;
  font-size: var(--fs-12);
  font-weight: 950;
}

.picker-head strong,
.selected-match-summary strong {
  display: block;
  margin-top: 4px;
  color: #fff8e7;
  font-size: var(--fs-18);
  line-height: 1.2;
}

.picker-controls {
  display: grid;
  grid-template-columns: minmax(120px, 0.72fr) minmax(0, 1.28fr);
  gap: 10px;
}

.picker-controls label {
  display: grid;
  gap: 6px;
  color: rgba(255, 248, 231, 0.72);
  font-size: var(--fs-12);
  font-weight: 900;
}

.picker-controls select {
  min-width: 0;
  height: 44px;
  border: 1px solid rgba(255, 236, 246, 0.18);
  border-radius: 14px;
  background: rgba(42, 10, 35, 0.62);
  color: #fff8e7;
  padding: 0 12px;
  outline: none;
  font-weight: 900;
}

.selected-match-summary {
  min-height: 62px;
  padding: 12px;
  border: 1px solid rgba(255, 240, 181, 0.22);
  border-radius: 18px;
  background: rgba(48, 12, 39, 0.34);
}

.selected-match-summary small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 248, 231, 0.66);
  font-size: var(--fs-12);
  font-weight: 800;
  line-height: 1.35;
}

.selected-match-summary .match-title,
.analysis-report-head .match-title,
.worldcup-match-card .match-title {
  display: inline-flex;
}

.app[data-app-section="worldcup"] .agent-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.app[data-app-section="worldcup"] .agent-card {
  min-height: 92px;
  padding: 9px 7px;
  border-radius: 16px;
  justify-items: center;
  align-content: start;
  text-align: center;
  gap: 6px;
}

.app[data-app-section="worldcup"] .agent-card span {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  font-size: var(--fs-10);
}

.app[data-app-section="worldcup"] .agent-card strong {
  font-size: var(--fs-12);
  line-height: 1.18;
}

.app[data-app-section="worldcup"] .agent-card small {
  font-size: var(--fs-10);
  line-height: 1.25;
}

.direction-grid.compact {
  margin-top: 0;
  margin-bottom: 12px;
}

.direction-grid.compact div {
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(255, 236, 246, 0.12);
  border-radius: 16px;
  background: rgba(48, 12, 39, 0.32);
}

.direction-grid.compact span {
  color: #ffe889;
  font-size: var(--fs-12);
  font-weight: 950;
}

.direction-grid.compact p {
  margin-top: 6px;
}

.buy-logic-section {
  grid-row: span 2;
}

.app[data-force-mobile="true"][data-app-section="worldcup"],
.app[data-force-mobile="true"][data-app-section="worldcup-agent"],
.app[data-force-mobile="true"][data-app-section="game-radar"] {
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  border-left: 1px solid rgba(255, 240, 207, 0.18);
  border-right: 1px solid rgba(255, 240, 207, 0.18);
  box-shadow: 0 0 60px rgba(39, 8, 29, 0.42);
}

.app[data-force-mobile="true"] .worldcup-panel,
.app[data-force-mobile="true"] .game-radar-panel {
  min-height: 100dvh;
  padding: 10px;
}

.app[data-force-mobile="true"] .worldcup-header {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 22px;
  grid-template-columns: 1fr;
  gap: 10px;
}

.app[data-force-mobile="true"] .worldcup-back {
  width: fit-content;
  height: 40px;
  border-radius: 14px;
}

.app[data-force-mobile="true"] .worldcup-header h2 {
  font-size: 28px;
}

.app[data-force-mobile="true"] .worldcup-board,
.app[data-force-mobile="true"] .worldcup-layout {
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.app[data-force-mobile="true"] .worldcup-main {
  order: 1;
}

.app[data-force-mobile="true"] .worldcup-left {
  order: 2;
}

.app[data-force-mobile="true"] .analysis-output {
  order: 1;
}

.app[data-force-mobile="true"] .daily-schedule {
  order: 2;
}

.app[data-force-mobile="true"] .worldcup-agent-strip {
  order: 5;
}

.app[data-force-mobile="true"] .worldcup-match-picker {
  order: 3;
}

.app[data-force-mobile="true"] .analysis-details-output {
  order: 4;
}

.app[data-force-mobile="true"] .worldcup-section-title {
  order: 4;
}

.app[data-force-mobile="true"] .agent-grid {
  order: 5;
}

.app[data-force-mobile="true"] .worldcup-match-shortcuts,
.app[data-force-mobile="true"] .worldcup-match-list {
  order: 6;
}

.app[data-force-mobile="true"] .group-nav {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app[data-force-mobile="true"] .team-chip-grid,
.app[data-force-mobile="true"] .worldcup-match-list,
.app[data-force-mobile="true"] .direction-grid,
.app[data-force-mobile="true"] .analysis-report-grid,
.app[data-force-mobile="true"] .agent-finding-list {
  grid-template-columns: 1fr;
}

.app[data-force-mobile="true"] .projection-list > div {
  grid-template-columns: 62px 64px minmax(0, 1fr);
}

.app[data-force-mobile="true"] .worldcup-command {
  min-height: 0;
  border-radius: 24px;
}

.app[data-force-mobile="true"] .command-badge {
  width: 68px;
  height: 68px;
  border-radius: 22px;
}

.app[data-force-mobile="true"] .command-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.app[data-force-mobile="true"] .picker-controls,
.app[data-force-mobile="true"] .analysis-report-grid,
.app[data-force-mobile="true"] .direction-grid.compact {
  grid-template-columns: 1fr;
}

.app[data-force-mobile="true"] .agent-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.app[data-force-mobile="true"] .agent-card {
  min-height: 88px;
  padding: 8px 5px;
}

.app[data-force-mobile="true"] .agent-grid.worldcup-header-agents {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.app[data-force-mobile="true"] .worldcup-header-agents .agent-card {
  min-height: 92px;
  padding: 7px 4px;
  border-radius: 15px;
}

.app[data-force-mobile="true"] .worldcup-header-agents .agent-card .agent-icon {
  width: 26px;
  height: 26px;
  min-height: 26px;
  font-size: 15px;
}

.app[data-force-mobile="true"] .worldcup-header-agents .agent-card em {
  font-size: 8px;
}

.app[data-force-mobile="true"] .worldcup-header-agents .agent-card strong {
  min-height: 24px;
  font-size: 10px;
}

.app[data-force-mobile="true"] .worldcup-header-agents .agent-card small {
  font-size: 8px;
}

.app[data-force-mobile="true"] .worldcup-agent-detail {
  gap: 12px;
}

.app[data-force-mobile="true"] .agent-detail-body {
  gap: 12px;
}

.app[data-force-mobile="true"] .agent-detail-hero {
  min-height: 0;
  padding: 16px;
  border-radius: 24px;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
}

.app[data-force-mobile="true"] .agent-detail-icon {
  width: 74px;
  height: 74px;
  border-radius: 23px;
  font-size: 34px;
}

.app[data-force-mobile="true"] .agent-detail-hero h2 {
  font-size: 28px;
}

.app[data-force-mobile="true"] .agent-detail-hero p,
.app[data-force-mobile="true"] .agent-detail-card p {
  font-size: 14px;
}

.app[data-force-mobile="true"] .agent-detail-card {
  padding: 15px;
  border-radius: 22px;
}

.app[data-force-mobile="true"] .agent-check-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 1280px) {
  .ai-create-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .funds-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .player-lookup-controls {
    grid-template-columns: minmax(92px, 0.45fr) minmax(140px, 1fr);
  }

  .bonus-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bonus-form button {
    grid-column: 1 / -1;
  }

  .bulk-panel {
    align-items: stretch;
  }

  .bulk-body {
    grid-template-columns: 1fr;
  }

  .bulk-actions {
    grid-template-columns: minmax(0, 1fr) var(--bulk-button-width) var(--bulk-button-width);
  }
}

@media (max-width: 520px) {
  body {
    overflow: hidden;
  }

  .app {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .app[data-mobile-view="landing"] {
    width: min(100vw, var(--iphone-16-pro-width));
    height: min(100dvh, var(--iphone-16-pro-height));
    min-height: 0;
    margin: 0 auto;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .topbar,
  .chat-header {
    min-height: 72px;
    padding: 14px 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  h1,
  h2 {
    font-size: var(--fs-18);
  }

  .list-tools {
    padding: 10px 12px;
  }

  .contacts {
    padding: 8px;
  }

  .chat {
    min-height: 0;
  }

  .funds-panel {
    padding: 12px;
  }

  .funds-grid,
  .player-lookup-controls,
  .bonus-form {
    grid-template-columns: 1fr 1fr;
  }

  .funds-actions button,
  .bonus-form button {
    width: 100%;
  }

  .bulk-panel {
    padding: 0;
  }

  .bulk-summary {
    padding: 0 12px;
  }

  .bulk-body {
    padding: 0 12px 12px;
  }

  .bulk-actions {
    grid-template-columns: 1fr 82px 82px;
  }

  .messages {
    padding: 16px 12px;
  }

  .messages.ai-creation-workspace {
    padding: 12px;
  }

  .ai-create-panel {
    min-height: auto;
    padding: 12px;
  }

  .ai-create-grid,
  .ai-create-flow {
    grid-template-columns: 1fr;
  }

  .ai-create-card {
    min-height: 132px;
  }

  .bubble {
    max-width: 86%;
  }

  .reply {
    grid-template-columns: minmax(0, 1fr) 78px;
    padding: 12px;
  }

  textarea,
  .reply-actions button {
    height: 80px;
  }

  .portal-screen,
  .worldcup-panel,
  .game-radar-panel,
  .bitcoin-panel,
  .creation-panel {
    min-height: 100dvh;
    padding: 10px;
  }

  .portal-screen {
    height: 100%;
    min-height: 0;
    padding: 0;
    background:
      radial-gradient(circle at 50% -8%, rgba(255, 231, 141, 0.24), transparent 34%),
      linear-gradient(180deg, #431233 0%, #872b5d 38%, #301026 100%);
  }

  .bitcoin-panel {
    background-attachment: scroll, scroll, scroll, scroll, scroll, scroll;
    background-size: auto, auto, auto, auto, auto 100%, cover;
    background-position: center top, center top, center top, center top, center top, center top;
  }

  .portal-shell {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    align-content: start;
    gap: 16px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%),
      rgba(39, 7, 32, 0.24);
    box-shadow: none;
    grid-template-rows: auto minmax(0, 1fr);
  }

  @media (min-width: 403px) {
    .app[data-mobile-view="landing"] {
      border-radius: 36px;
      box-shadow:
        0 0 0 1px rgba(255, 240, 207, 0.18),
        0 24px 60px rgba(24, 5, 19, 0.36);
    }
  }

  .portal-hero {
    min-height: 116px;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 13px;
    padding: 12px;
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(255, 227, 164, 0.16), rgba(117, 31, 80, 0.5)),
      rgba(69, 14, 54, 0.54);
  }

  .portal-avatar {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    box-shadow:
      0 0 0 1px rgba(255, 236, 246, 0.3),
      0 10px 20px rgba(37, 5, 30, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.58);
  }

  .portal-kicker {
    min-height: 24px;
    padding: 0;
    border: 0;
    color: #ffe889;
    background: transparent;
    font-size: var(--fs-11);
  }

  .portal-hero h1 {
    margin-top: 4px;
    font-size: 28px;
    line-height: 1.05;
  }

  .portal-hero p {
    margin-top: 4px;
    font-size: var(--fs-13);
    line-height: 1.25;
    opacity: 0.76;
  }

  .portal-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    height: 100%;
    grid-template-rows: repeat(5, minmax(104px, 1fr));
  }

  .portal-card {
    height: 100%;
    min-height: 112px;
    padding: 13px;
    grid-template-columns: 62px minmax(0, 1fr) 66px;
    border-radius: 22px;
    gap: 12px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.24),
      0 10px 20px rgba(28, 4, 23, 0.2);
  }

  .portal-card-icon {
    width: 62px;
    height: 62px;
    border-radius: 17px;
    font-size: var(--fs-14);
  }

  .portal-card-icon.role-icon {
    border-radius: 18px;
  }

  .portal-card strong {
    font-size: var(--fs-19);
  }

  .portal-card-body {
    min-height: 72px;
    padding: 10px 11px;
    border-radius: 18px;
  }

  .portal-card small {
    font-size: var(--fs-12);
    line-height: 1.2;
  }

  .portal-card-action {
    width: 64px;
    height: 64px;
  }

  .portal-card-action-worldcup::before {
    inset: -8px 6px -6px;
  }

  .portal-card-action-bitcoin::before {
    inset: -4px;
  }

  .portal-card-action-creation::before {
    inset: -8px -2px -8px;
  }

  .portal-card-action-service::before {
    inset: -7px -4px -5px;
  }

  .portal-card-action-game-radar::before {
    inset: -7px;
  }

  .portal-card-worldcup .portal-card-body::after,
  .portal-card-game-radar .portal-card-body::after,
  .portal-card-bitcoin .portal-card-body::after,
  .portal-card-creation .portal-card-body::after,
  .portal-card-service .portal-card-body::after {
    transform: scale(0.86);
    transform-origin: right bottom;
  }

  .creation-shell {
    min-height: calc(100dvh - 20px);
    align-content: start;
    gap: 10px;
  }

  .creation-menu {
    padding: 16px;
  }

  .creation-menu-head {
    margin-bottom: 10px;
    gap: 5px;
  }

  .creation-menu-head h2 {
    font-size: 30px;
  }

  .creation-season-art {
    min-height: 172px;
    margin-bottom: 12px;
    background-position: center;
  }

  .creation-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .creation-action-button {
    min-height: 0;
    aspect-ratio: 1 / 1;
    padding: 13px;
    gap: 10px;
    font-size: var(--fs-19);
  }

  .creation-action-button::before {
    width: 46px;
    height: 46px;
    font-size: var(--fs-16);
  }

  .bitcoin-header {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 24px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bitcoin-panel::before {
    top: 112px;
    right: -122px;
    width: 500px;
    color: rgba(255, 250, 214, 0.76);
    font-size: 92px;
    opacity: 0.7;
  }

  .bitcoin-header-copy h2 {
    font-size: 32px;
    line-height: 1.06;
  }

  .bitcoin-header-copy p {
    font-size: var(--fs-13);
    line-height: 1.4;
  }

  .bitcoin-price-card {
    min-height: 0;
    padding: 13px;
    border-radius: 18px;
  }

  .bitcoin-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .bitcoin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .bitcoin-mark-spotlight {
    min-height: 112px;
    padding: 15px;
    border-radius: 19px;
  }

  .bitcoin-prediction-card {
    min-height: 120px;
    padding: 14px;
    border-radius: 19px;
  }

  .bitcoin-mark-spotlight strong {
    font-size: 34px;
  }

  .bitcoin-prediction-card strong {
    font-size: 30px;
  }

  .bitcoin-metrics article {
    min-height: 78px;
    border-radius: 17px;
    padding: 10px;
  }

  .bitcoin-agent-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .bitcoin-agent-card {
    min-height: 122px;
    padding: 10px 7px;
    border-radius: 18px;
  }

  .bitcoin-agent-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
  }

  .bitcoin-agent-card strong {
    font-size: var(--fs-13);
  }

  .bitcoin-agent-card span,
  .bitcoin-agent-card em {
    font-size: 10px;
  }

  .bitcoin-timeframes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  .bitcoin-timeframes button {
    min-height: 44px;
    border-radius: 14px;
    font-size: var(--fs-12);
  }

  .bitcoin-rule-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .bitcoin-rule-grid article {
    min-height: 0;
    padding: 12px;
    border-radius: 18px;
  }

  .worldcup-header {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 22px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .worldcup-back {
    width: fit-content;
    height: 40px;
    border-radius: 14px;
  }

  .worldcup-header h2 {
    font-size: 28px;
  }

  .worldcup-board {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .worldcup-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .worldcup-main {
    order: 1;
  }

  .worldcup-left {
    order: 2;
  }

  .analysis-output {
    order: 1;
  }

  .daily-schedule {
    order: 2;
  }

  .worldcup-match-picker {
    order: 3;
  }

  .analysis-details-output {
    order: 4;
  }

  .worldcup-section-title {
    order: 5;
  }

  .agent-grid {
    order: 6;
  }

  .worldcup-match-shortcuts,
  .worldcup-match-list {
    order: 7;
  }

  .group-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-chip-grid,
  .worldcup-match-list,
  .direction-grid,
  .analysis-report-grid,
  .agent-finding-list {
    grid-template-columns: 1fr;
  }

  .projection-list > div {
    grid-template-columns: 62px 64px minmax(0, 1fr);
  }

  .worldcup-command {
    min-height: 0;
    border-radius: 24px;
  }

  .command-badge {
    width: 68px;
    height: 68px;
    border-radius: 22px;
  }

  .command-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .command-stats span {
    min-height: 58px;
    padding: 8px;
    border-radius: 16px;
    display: grid;
    justify-items: center;
    text-align: center;
    font-size: var(--fs-11);
  }

  .agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .agent-grid.worldcup-header-agents {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .agent-card {
    min-height: 134px;
    padding: 13px;
    border-radius: 22px;
  }

  .worldcup-header-agents .agent-card {
    min-height: 76px;
    padding: 7px 4px;
    border-radius: 15px;
  }

  .worldcup-header-agents .agent-card span {
    padding: 3px 4px;
    font-size: 8px;
  }

  .worldcup-header-agents .agent-card strong {
    min-height: 28px;
    font-size: 10px;
  }

  .worldcup-header-agents .agent-card small {
    font-size: 8px;
  }

  .analysis-console {
    padding: 12px;
    border-radius: 24px;
  }

  .analysis-form {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .analysis-question,
  .analysis-form button {
    grid-column: 1 / -1;
  }

  .analysis-report-grid {
    grid-template-columns: 1fr;
  }

  .score-pick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .score-pick-grid div {
    min-height: 112px;
    padding: 14px 10px;
  }

  .app[data-mobile-view="home"] .sidebar {
    position: relative;
    display: grid;
    grid-template-rows: minmax(196px, auto) minmax(92px, auto) minmax(0, 1fr);
    gap: 12px;
    height: 100dvh;
    width: 100vw;
    padding: 14px 24px 0;
    border: 0;
    background:
      radial-gradient(circle at 20% 0%, rgba(255, 205, 219, 0.4), transparent 32%),
      radial-gradient(circle at 78% 12%, rgba(255, 226, 139, 0.2), transparent 26%),
      linear-gradient(180deg, #bb5878 0%, #93345f 38%, #4b173c 100%);
    color: var(--mobile-text-color);
    overflow: hidden;
  }

  .app[data-mobile-view="home"] .sidebar::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 236, 246, 0.24);
    border-radius: 34px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.03)),
      rgba(91, 25, 69, 0.28);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.26),
      inset 0 -18px 32px rgba(29, 5, 22, 0.28),
      0 22px 46px rgba(21, 3, 18, 0.34);
    pointer-events: none;
  }

  .app[data-mobile-view="home"] .sidebar > * {
    position: relative;
    z-index: 1;
  }

  .app[data-mobile-view="home"] .account-strip,
  .app[data-mobile-view="home"] .theme-panel,
  .app[data-mobile-view="home"] .list-tools,
  .app[data-mobile-view="home"] #contacts,
  .app[data-mobile-view="home"] .panel-heading,
  .app[data-mobile-view="home"] .chat {
    display: none;
  }

  .app[data-mobile-view="home"] .topbar {
    min-height: 196px;
    padding: 14px 12px;
    border: 1px solid rgba(255, 236, 246, 0.26);
    border-radius: 30px;
    display: grid;
    align-items: center;
    background:
      radial-gradient(circle at 50% 8%, rgba(255, 231, 176, 0.28), transparent 34%),
      linear-gradient(180deg, rgba(255, 193, 167, 0.32), rgba(173, 58, 107, 0.54));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.32),
      inset 0 -18px 28px rgba(77, 14, 53, 0.26),
      0 18px 30px rgba(44, 7, 35, 0.25);
  }

  .app[data-mobile-view="home"] .topbar .brand {
    width: 100%;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    text-align: center;
    gap: 18px;
  }

  .app[data-mobile-view="home"] .topbar .brand > div:not(.brand-mark):not(.mobile-title-grid) {
    display: none;
  }

  .app[data-mobile-view="home"] .topbar .top-actions {
    display: none;
  }

  .app[data-mobile-view="home"] .brand-mark {
    width: 132px;
    max-width: none;
    height: 132px;
    border-radius: 30px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.02)),
      url("/static/assets/mobile-sheep-avatar-4k.png") center / cover no-repeat;
    color: transparent;
    font-size: 0;
    box-shadow:
      0 0 0 1px rgba(255, 236, 246, 0.34),
      0 0 0 8px rgba(255, 236, 246, 0.08),
      0 18px 30px rgba(37, 5, 30, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.62);
    overflow: hidden;
  }

  .app[data-mobile-view="home"] .brand-kf,
  .app[data-mobile-view="home"] .brand-ai {
    display: none;
  }

  .app[data-mobile-view="home"] .mobile-title-grid {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    grid-template-columns: repeat(2, 50px);
    grid-template-rows: repeat(2, 50px);
    gap: 9px;
    align-items: stretch;
    justify-content: center;
    padding: 9px;
    border: 1px solid rgba(255, 236, 246, 0.18);
    border-radius: 24px;
    background:
      radial-gradient(circle at 24% 10%, rgba(255, 255, 255, 0.22), transparent 34%),
      linear-gradient(180deg, rgba(255, 222, 232, 0.18), rgba(71, 16, 53, 0.22));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      inset 0 -14px 22px rgba(45, 6, 35, 0.16),
      0 14px 24px rgba(38, 5, 30, 0.18);
  }

  .app[data-mobile-view="home"] .mobile-title-grid span {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 237, 180, 0.22);
    border-radius: 15px;
    display: grid;
    place-items: center;
    background:
      radial-gradient(circle at 28% 16%, rgba(255, 255, 255, 0.42), transparent 28%),
      radial-gradient(circle at 78% 86%, rgba(255, 205, 94, 0.16), transparent 38%),
      linear-gradient(180deg, rgba(255, 244, 223, 0.24), rgba(92, 28, 67, 0.46));
    color: #fff7e4;
    font-size: var(--fs-22);
    font-weight: 900;
    line-height: 1;
    text-shadow:
      0 1px 0 rgba(255, 242, 190, 0.35),
      0 3px 10px rgba(37, 5, 30, 0.42);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.34),
      inset 0 -9px 16px rgba(37, 5, 30, 0.2),
      0 8px 14px rgba(37, 5, 30, 0.16);
  }

  :root[data-mobile-title-font="round"] .app[data-mobile-view="home"] .mobile-title-grid span {
    font-family: "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
  }

  :root[data-mobile-title-font="song"] .app[data-mobile-view="home"] .mobile-title-grid span {
    font-family: "Songti SC", "STSong", serif;
  }

  :root[data-mobile-title-font="kai"] .app[data-mobile-view="home"] .mobile-title-grid span {
    font-family: "Kaiti SC", "STKaiti", cursive;
  }

  :root[data-mobile-title-font="hei"] .app[data-mobile-view="home"] .mobile-title-grid span {
    font-family: "Heiti SC", "STHeiti", "PingFang SC", sans-serif;
  }

  :root[data-mobile-title-font="flower"] .app[data-mobile-view="home"] .mobile-title-grid span {
    font-family: "Snell Roundhand", "Kaiti SC", "STKaiti", cursive;
    font-style: italic;
    color: #fff0f8;
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.38),
      0 0 8px rgba(255, 181, 224, 0.58),
      0 4px 12px rgba(37, 5, 30, 0.38);
  }

  :root[data-mobile-title-font="threed"] .app[data-mobile-view="home"] .mobile-title-grid span {
    color: #ffe1a0;
    text-shadow:
      0 1px 0 #fff6d7,
      0 2px 0 #bd7b2a,
      0 4px 0 #7d3150,
      0 8px 12px rgba(33, 5, 26, 0.44);
  }

  :root[data-mobile-title-font="metal"] .app[data-mobile-view="home"] .mobile-title-grid span {
    color: #fff3b6;
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.78),
      0 2px 0 rgba(223, 162, 45, 0.9),
      0 4px 10px rgba(33, 5, 26, 0.38);
  }

  :root[data-mobile-title-font="neon"] .app[data-mobile-view="home"] .mobile-title-grid span {
    color: #ffe9fb;
    text-shadow:
      0 0 5px rgba(255, 255, 255, 0.9),
      0 0 12px rgba(255, 170, 230, 0.82),
      0 0 22px rgba(255, 205, 94, 0.52);
  }

  :root[data-mobile-title-font="seal"] .app[data-mobile-view="home"] .mobile-title-grid span {
    border-color: rgba(255, 218, 144, 0.42);
    color: #ffd9e8;
    font-family: "Songti SC", "STSong", serif;
    text-shadow:
      0 2px 0 rgba(77, 16, 55, 0.7),
      0 4px 10px rgba(33, 5, 26, 0.34);
  }

  .app[data-mobile-view="home"] .topbar h1,
  .app[data-mobile-view="home"] .topbar p {
    display: none;
  }

  .app[data-mobile-view="home"] .desktop-feed-title,
  .app[data-mobile-view="home"] .desktop-feed-subtitle {
    display: none;
  }

  .app[data-mobile-view="home"] .mobile-home-title,
  .app[data-mobile-view="home"] .mobile-home-subtitle {
    display: block;
  }

  .app[data-mobile-view="home"] .data-feed-button {
    min-height: 0;
    margin: 0;
    padding: 0 54px 0 86px;
    border: 1px solid rgba(255, 240, 181, 0.48);
    border-radius: 28px;
    display: grid;
    align-items: center;
    align-content: center;
    cursor: pointer;
    background:
      radial-gradient(circle at 18% 15%, rgba(255, 255, 255, 0.56), transparent 28%),
      linear-gradient(180deg, #ffe887 0%, #ffbf23 52%, #f29a07 100%);
    color: #2a1606;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.68),
      inset 0 -10px 18px rgba(155, 84, 0, 0.22),
      0 14px 24px rgba(47, 7, 36, 0.28);
    overflow: hidden;
    position: relative;
  }

  .app[data-mobile-view="home"] .tool-disclosure-summary {
    min-height: 0;
    padding: 0;
    display: block;
  }

  .app[data-mobile-view="home"] .data-feed-button .disclosure-caret {
    display: none;
  }

  .app[data-mobile-view="home"] .data-feed-button::before {
    content: "⌂";
    position: absolute;
    left: 17px;
    top: 50%;
    width: 56px;
    height: 56px;
    transform: translateY(-50%);
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(74, 31, 52, 0.2);
    color: #fff8de;
    font-size: var(--fs-22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }

  .app[data-mobile-view="home"] .data-feed-button::after {
    content: "1";
    position: absolute;
    right: 17px;
    top: 50%;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(91, 38, 69, 0.18);
    color: #2a1606;
    font-size: var(--fs-12);
    font-weight: 900;
  }

  .app[data-mobile-view="home"] .data-feed-button strong {
    color: #201103;
    font-size: var(--fs-26);
    font-weight: 900;
    line-height: 1.05;
  }

  .app[data-mobile-view="home"] .data-feed-button span {
    margin-top: 6px;
    color: rgba(55, 27, 4, 0.68);
    font-size: var(--fs-13);
    font-weight: 800;
  }

  .app[data-mobile-view="home"] .data-feed-actions {
    display: none;
  }

  .app[data-mobile-view="home"] .bot-panel {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: hidden;
  }

  .app[data-mobile-view="home"] .bot-list {
    display: grid;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    align-content: stretch;
    height: 100%;
    gap: 12px;
    overflow-y: auto;
    padding: 0;
  }

  .app[data-mobile-view="home"] .bot-card {
    width: 100%;
    min-height: 0;
    height: 100%;
    padding: 12px 16px;
    grid-template-columns: 58px minmax(0, 1fr) 38px;
    gap: 12px;
    border: 1px solid rgba(255, 236, 246, 0.16);
    border-radius: 26px;
    background-color: rgba(92, 31, 67, 0.76);
    background-image:
      radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.24), transparent 26%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(25, 5, 21, 0.08) 52%, rgba(0, 0, 0, 0.22));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.28),
      inset 0 -12px 18px rgba(29, 5, 22, 0.22),
      0 13px 23px rgba(33, 5, 29, 0.25);
  }

  .app[data-mobile-view="home"] .bot-rank {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background:
      radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.24), transparent 28%),
      rgba(44, 12, 37, 0.36);
    color: rgba(255, 248, 231, 0.94);
    font-size: var(--fs-18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  .app[data-mobile-view="home"] .bot-count-pill {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    padding: 0;
    background: rgba(47, 14, 39, 0.26);
    color: #130910;
  }

  .app[data-mobile-view="home"] .bot-count-pill span {
    display: none;
  }

  .app[data-mobile-view="home"] .bot-count-pill strong {
    color: #130910;
    font-size: var(--fs-13);
  }

  .app[data-mobile-view="home"] .bot-name-row {
    justify-content: flex-start;
    gap: 8px;
  }

  .app[data-mobile-view="home"] .bot-name-row strong {
    color: var(--mobile-text-color);
    font-size: var(--fs-22);
    font-weight: 900;
    line-height: 1.08;
    text-shadow: 0 2px 12px rgba(35, 4, 28, 0.34);
  }

  .app[data-mobile-view="home"] .bot-menu-label,
  .app[data-mobile-view="home"] .bot-username,
  .app[data-mobile-view="home"] .bot-stats,
  .app[data-mobile-view="home"] .bot-state {
    color: rgba(255, 248, 231, 0.76);
    font-size: var(--fs-12);
    font-weight: 800;
  }

  .app[data-mobile-view="customer-list"] .sidebar {
    display: flex;
    height: 100dvh;
    min-height: 0;
    border: 0;
    background:
      radial-gradient(circle at 18% 0%, rgba(255, 216, 133, 0.2), transparent 34%),
      linear-gradient(180deg, #421432 0%, #7e2b58 42%, #2a0f24 100%);
    color: var(--mobile-text-color);
  }

  .app[data-mobile-view="customer-list"] .chat,
  .app[data-mobile-view="customer-list"] .admin-panel,
  .app[data-mobile-view="customer-list"] .account-strip,
  .app[data-mobile-view="customer-list"] .theme-panel,
  .app[data-mobile-view="customer-list"] #dataFeedButton,
  .app[data-mobile-view="customer-list"] #botsPanel,
  .app[data-mobile-view="customer-list"] .selection-tools,
  .app[data-mobile-view="customer-list"] #selectedCount,
  .app[data-mobile-view="customer-list"] #adminBtn,
  .app[data-mobile-view="customer-list"] #themeBtn {
    display: none;
  }

  .app[data-mobile-view="customer-list"] .topbar {
    min-height: 78px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 236, 246, 0.14);
    background: rgba(45, 9, 35, 0.72);
    backdrop-filter: blur(16px);
  }

  .app[data-mobile-view="customer-list"] .topbar .brand {
    align-items: center;
  }

  .app[data-mobile-view="customer-list"] .brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .app[data-mobile-view="customer-list"] .topbar h1 {
    display: block;
    color: var(--mobile-text-color);
    font-size: var(--fs-20);
  }

  .app[data-mobile-view="customer-list"] .topbar p {
    color: rgba(255, 248, 231, 0.72);
  }

  .app[data-mobile-view="customer-list"] .mobile-title-grid {
    display: none;
  }

  .app[data-mobile-view="customer-list"] .top-actions {
    margin-top: 10px;
    gap: 8px;
  }

  .app[data-mobile-view="customer-list"] .list-tools {
    display: block;
    padding: 12px 14px 10px;
    border-bottom: 1px solid rgba(255, 236, 246, 0.12);
    background: rgba(55, 14, 44, 0.52);
  }

  .app[data-mobile-view="customer-list"] .search {
    height: 44px;
    border-color: rgba(255, 236, 246, 0.18);
    border-radius: 14px;
    background: rgba(31, 8, 26, 0.46);
    color: rgba(255, 248, 231, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .app[data-mobile-view="customer-list"] .search input {
    color: var(--mobile-text-color);
  }

  .app[data-mobile-view="customer-list"] .contact-count {
    color: rgba(255, 248, 231, 0.72);
  }

  .app[data-mobile-view="customer-list"] #contacts {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    padding: 8px 10px 18px;
    background: rgba(25, 5, 21, 0.22);
  }

  .app[data-mobile-view="customer-list"] .contact-item {
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 236, 246, 0.1);
    border-radius: 0;
    padding: 0;
  }

  .app[data-mobile-view="customer-list"] .contact-check {
    display: none;
  }

  .app[data-mobile-view="customer-list"] .contact {
    min-height: 74px;
    border-radius: 18px;
    padding: 10px 12px;
    color: var(--mobile-text-color);
  }

  .app[data-mobile-view="customer-list"] .contact-item.active .contact,
  .app[data-mobile-view="customer-list"] .contact:hover {
    background: rgba(255, 236, 246, 0.12);
  }

  .app[data-mobile-view="customer-list"] .contact-title {
    color: var(--mobile-text-color);
  }

  .app[data-mobile-view="customer-list"] .contact-meta,
  .app[data-mobile-view="customer-list"] .contact-last {
    color: rgba(255, 248, 231, 0.66);
  }

  .app[data-mobile-view="customers"] .sidebar,
  .app[data-mobile-view="chat"] .sidebar,
  .app[data-mobile-view="datafeed"] .sidebar {
    display: none;
  }

  .app[data-mobile-view="customers"] .chat,
  .app[data-mobile-view="chat"] .chat {
    display: flex;
    height: 100dvh;
    min-height: 0;
    border: 0;
  }

  .app[data-mobile-view="customers"] .bulk-panel,
  .app[data-mobile-view="chat"] .bulk-panel,
  .app[data-mobile-view="customers"] .funds-panel,
  .app[data-mobile-view="chat"] .funds-panel,
  .app[data-mobile-view="customers"] .chat-actions,
  .app[data-mobile-view="chat"] .chat-actions {
    display: none;
  }

  .app[data-mobile-view="customers"] .chat-header,
  .app[data-mobile-view="chat"] .chat-header {
    min-height: 56px;
    padding: 8px 12px;
    background: var(--warm-bg-deep);
    border-bottom: 1px solid var(--warm-glow-soft);
  }

  .app[data-mobile-view="customers"] .back-btn,
  .app[data-mobile-view="chat"] .back-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
  }

  .app[data-mobile-view="customers"] .portal-back-btn,
  .app[data-mobile-view="chat"] .portal-back-btn {
    display: inline-flex;
    width: auto;
    min-width: 74px;
    padding: 0 12px;
    font-size: var(--fs-14);
  }

  .app[data-mobile-view="chat"] .portal-back-btn {
    display: none;
  }

  .app[data-mobile-view="customers"] .chat-title h2,
  .app[data-mobile-view="chat"] .chat-title h2 {
    font-size: var(--fs-16);
    line-height: 1.2;
  }

  .app[data-mobile-view="customers"] .chat-title p,
  .app[data-mobile-view="chat"] .chat-title p {
    margin-top: 2px;
    font-size: var(--fs-11);
  }

  .app[data-mobile-view="customers"] .messages {
    padding: 0;
    background: var(--warm-bg-deep);
  }

  .app[data-mobile-view="customers"] .messages.bot-workspace {
    padding: 0;
  }

  .app[data-mobile-view="customers"] .bot-stage {
    min-height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .app[data-mobile-view="customers"] .bot-overview {
    display: block;
  }

  .app[data-mobile-view="customers"] .bot-workspace-hero,
  .app[data-mobile-view="customers"] .bot-summary-grid,
  .app[data-mobile-view="customers"] .bot-section-title {
    display: none;
  }

  .app[data-mobile-view="customers"] .bot-customer-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .app[data-mobile-view="customers"] .bot-gallery {
    padding: 0;
  }

  .app[data-mobile-view="customers"] .bot-customer-card {
    min-height: 72px;
    border-width: 0 0 1px;
    border-color: var(--warm-glow-soft);
    border-radius: 0;
    background: var(--warm-bg);
    color: var(--warm-cream-strong);
    box-shadow: none;
    padding: 10px 12px;
  }

  .app[data-mobile-view="customers"] .bot-customer-card .avatar {
    width: 40px;
    height: 40px;
  }

  .app[data-mobile-view="customers"] .bot-customer-name {
    color: var(--warm-cream-strong);
  }

  .app[data-mobile-view="customers"] .bot-customer-meta,
  .app[data-mobile-view="customers"] .bot-customer-last {
    margin-top: 3px;
    color: var(--warm-cream-muted);
    font-size: var(--fs-11);
  }

  .app[data-mobile-view="customers"] .reply {
    display: none;
  }

  .app[data-mobile-view="chat"] .messages {
    padding: 12px;
  }

  .app[data-mobile-view="chat"] .reply {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70px;
    gap: 8px;
    padding: 10px 12px;
  }

  .app[data-mobile-view="chat"] textarea,
  .app[data-mobile-view="chat"] .reply-actions button {
    height: 58px;
  }

  .app[data-mobile-view="chat"] .bubble {
    max-width: 86%;
    margin-bottom: 10px;
    padding: 10px 12px 8px;
  }

  .app[data-mobile-view="datafeed"] .chat {
    display: none;
  }

  .app[data-mobile-view="datafeed"] .admin-panel {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    border: 0;
    box-shadow: none;
    background:
      radial-gradient(circle at 20% 0%, rgba(255, 205, 219, 0.32), transparent 34%),
      linear-gradient(180deg, #bb5878 0%, #87315b 42%, #401335 100%);
    color: var(--mobile-text-color);
    overflow-y: auto;
  }

  .app[data-mobile-view="datafeed"] .admin-panel header {
    position: sticky;
    top: 0;
    z-index: 4;
    min-height: 62px;
    padding: 10px 14px;
    background: rgba(45, 9, 35, 0.7);
    border-bottom: 1px solid rgba(255, 236, 246, 0.14);
    backdrop-filter: blur(14px);
  }

  .app[data-mobile-view="datafeed"] .admin-panel header h2 {
    font-size: 0;
  }

  .app[data-mobile-view="datafeed"] .admin-panel header h2::after {
    content: "首页";
    color: var(--mobile-text-color);
    font-size: var(--fs-18);
    font-weight: 900;
  }

  .app[data-mobile-view="datafeed"] .admin-panel header p,
  .app[data-mobile-view="datafeed"] .staff-form,
  .app[data-mobile-view="datafeed"] .admin-section:not(#dataFeedPanel):not(#mobilePersonalizePanel) {
    display: none;
  }

  .app[data-mobile-view="datafeed"] #dataFeedPanel,
  .app[data-mobile-view="datafeed"] #mobilePersonalizePanel {
    display: block;
    margin: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 236, 246, 0.16);
    border-radius: 22px;
    background:
      radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.18), transparent 26%),
      rgba(92, 31, 67, 0.72);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.24),
      0 16px 28px rgba(33, 5, 29, 0.24);
  }

  .app[data-mobile-view="datafeed"] #dataFeedPanel h3,
  .app[data-mobile-view="datafeed"] #mobilePersonalizePanel h3 {
    color: var(--mobile-text-color);
    font-size: var(--fs-20);
    font-weight: 900;
  }

  .app[data-mobile-view="datafeed"] .feed-card {
    border-color: rgba(255, 236, 246, 0.16);
    border-radius: 20px;
    background: rgba(48, 12, 39, 0.38);
    color: var(--mobile-text-color);
  }

  .app[data-mobile-view="datafeed"] .feed-card strong,
  .app[data-mobile-view="datafeed"] .mobile-setting-row strong {
    color: var(--mobile-text-color);
    font-size: var(--fs-16);
  }

  .app[data-mobile-view="datafeed"] .feed-card span,
  .app[data-mobile-view="datafeed"] .feed-status {
    color: rgba(255, 248, 231, 0.72);
  }

  .app[data-mobile-view="datafeed"] .feed-card input,
  .app[data-mobile-view="datafeed"] .feed-card select {
    border-color: rgba(255, 236, 246, 0.16);
    background: rgba(32, 8, 27, 0.46);
    color: var(--mobile-text-color);
  }

  .app[data-mobile-view="datafeed"] .feed-card button,
  .app[data-mobile-view="datafeed"] .mobile-font-row button {
    border-color: rgba(255, 240, 181, 0.38);
    background: linear-gradient(180deg, #ffe887, #f6a914);
    color: #281304;
    font-weight: 900;
  }

  .app[data-mobile-view="datafeed"] .mobile-settings-grid {
    margin-top: 14px;
  }
}

@media (max-width: 460px) {
  .theme-panel {
    grid-template-columns: 1fr;
  }

  .top-actions,
  .chat-actions {
    gap: 6px;
  }

  .text-btn {
    padding: 0 9px;
  }

  .bulk-actions {
    grid-template-columns: 1fr;
  }

  .funds-grid,
  .bonus-form,
  .bonus-review-row {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 10px;
  }

  .contact-item {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .avatar {
    width: 38px;
    height: 38px;
  }

  .reply {
    grid-template-columns: 1fr;
  }

  textarea {
    height: 70px;
  }

  .reply-actions button {
    width: 100%;
    height: 44px;
  }
}

/* 强制隐藏实时研判复盘卡片，避免占用世界杯主预测页面位置。 */
.live-analysis-status {
  display: none !important;
}


/* 世界杯赛事与智能分析团队默认折叠 */
.worldcup-fold-card{
  display:block;
  border:1px solid rgba(255,240,181,.24);
  border-radius:22px;
  background:linear-gradient(180deg,rgba(255,232,135,.10),rgba(255,255,255,.035)),rgba(67,18,51,.68);
  overflow:hidden;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 12px 22px rgba(33,5,29,.16);
}
.worldcup-fold-card > summary{
  list-style:none;
  cursor:pointer;
  min-height:58px;
  padding:13px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:#fff8e7;
  background:rgba(255,232,137,.08);
}
.worldcup-fold-card > summary::-webkit-details-marker{display:none;}
.worldcup-fold-card > summary::after{
  content:"展开";
  flex:0 0 auto;
  border-radius:999px;
  padding:6px 10px;
  color:#281304;
  background:linear-gradient(180deg,#ffe887,#f6a914);
  font-size:var(--fs-12);
  font-weight:950;
}
.worldcup-fold-card[open] > summary::after{content:"收起";}
.worldcup-fold-summary strong{
  display:block;
  color:#ffe889;
  font-size:var(--fs-22);
  line-height:1.08;
}
.worldcup-fold-summary span{
  display:block;
  margin-top:4px;
  color:rgba(255,248,231,.72);
  font-size:var(--fs-12);
  font-weight:900;
  line-height:1.35;
}
.worldcup-fold-body{
  padding:12px;
  display:grid;
  gap:10px;
}
.worldcup-agent-strip .worldcup-fold-card{width:100%;}
.worldcup-agent-strip .worldcup-fold-body{padding-top:10px;}
.worldcup-schedule-fixtures-fold{margin-top:2px;}
.worldcup-fold-card:not([open]) > :not(summary){display:none!important;}
.realtime-summary-copy{min-width:0;display:grid;gap:3px;}
.worldcup-fold-summary .realtime-summary-refresh{flex:0 0 auto;margin-left:auto;}


/* 世界杯预测仓实时卡片 */
.worldcup-realtime-panel{display:grid;gap:10px;}
.realtime-prediction-board{display:grid;gap:10px;color:#fff8e7;}
.realtime-head,.realtime-result,.realtime-list span,.realtime-notes em,.realtime-empty{border:1px solid rgba(255,240,181,.18);border-radius:16px;background:rgba(48,12,39,.44);padding:10px;}
.realtime-head{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.realtime-head strong,.realtime-score-grid strong{color:#ffe889;font-weight:950;}
.realtime-head span,.realtime-main span,.realtime-prediction-board small{color:rgba(255,248,231,.68);font-size:var(--fs-12);font-weight:900;}
.realtime-refresh-btn{border:0;border-radius:999px;padding:8px 11px;background:linear-gradient(180deg,#ffe887,#f6a914);color:#351804;font-size:var(--fs-12);font-weight:950;white-space:nowrap;cursor:pointer;box-shadow:0 8px 18px rgba(255,174,38,.16);}
.realtime-refresh-btn:disabled{opacity:.62;cursor:wait;}
.realtime-main{border-radius:18px;padding:12px;color:#281304;background:linear-gradient(180deg,#ffe887,#f6a914);display:grid;gap:4px;}
.realtime-main b{font-size:var(--fs-24);font-weight:950;}.realtime-main em,.realtime-notes em{font-style:normal;font-weight:900;}
.realtime-result{color:#bfe9ff;border-color:rgba(143,213,255,.36);}
.realtime-score-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
.realtime-score-grid div{border-radius:16px;padding:10px 6px;text-align:center;background:rgba(67,18,51,.58);}
.realtime-score-grid span{display:block;color:rgba(255,248,231,.68);font-size:var(--fs-11);font-weight:900;}.realtime-score-grid strong{font-size:var(--fs-24);}
.realtime-prediction-board p{margin:0;color:rgba(255,248,231,.82);line-height:1.5;font-weight:800;}
.realtime-list,.realtime-notes{display:grid;gap:6px;}.realtime-list span,.realtime-notes em,.realtime-empty{color:rgba(255,248,231,.78);font-size:var(--fs-12);line-height:1.35;}
@media(max-width:720px){.realtime-score-grid{grid-template-columns:1fr;}.realtime-head{align-items:flex-start;flex-wrap:wrap;}.realtime-refresh-btn{width:100%;}}

/* 世界杯：每个智能体的真实采集结果 */
.agent-findings-fold{margin-top:12px;}
.agent-findings-fold > summary b{color:#ffe889;font-size:var(--fs-18);font-weight:950;}
.agent-findings-fold > summary span{color:rgba(255,248,231,.68);font-size:var(--fs-12);font-weight:900;}
.agent-finding-list{padding:12px;display:grid;gap:10px;}
.agent-finding-list article{border:1px solid rgba(255,240,181,.18);border-radius:16px;background:rgba(48,12,39,.44);padding:10px;display:grid;gap:6px;}
.agent-finding-list strong{color:#ffe889;font-weight:950;}
.agent-finding-list p{margin:0;color:rgba(255,248,231,.84);font-size:var(--fs-13);line-height:1.45;font-weight:800;}
.agent-finding-list small{color:rgba(255,248,231,.58);font-size:var(--fs-11);font-weight:850;line-height:1.35;}

/* 实时预测：赛中当前比分 + 下一步买法，不改赛前主预测 */
.realtime-score-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.realtime-score-compare div{border:1px solid rgba(255,240,181,.18);border-radius:16px;background:rgba(48,12,39,.44);padding:10px;display:grid;gap:4px;}
.realtime-score-compare span,.realtime-score-compare em{color:rgba(255,248,231,.68);font-size:var(--fs-12);font-weight:900;font-style:normal;}
.realtime-score-compare strong{color:#ffe889;font-size:var(--fs-24);font-weight:950;}
.realtime-buy-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.realtime-buy-list article{border:1px solid rgba(255,240,181,.18);border-radius:16px;background:rgba(48,12,39,.44);padding:10px;display:grid;gap:4px;}
.realtime-buy-list strong{color:#ffe889;font-weight:950;}.realtime-buy-list span{color:#fff8e7;font-weight:950;}.realtime-buy-list small{color:rgba(255,248,231,.66);font-size:var(--fs-11);font-weight:850;line-height:1.35;}
@media(max-width:720px){.realtime-score-compare,.realtime-buy-list{grid-template-columns:1fr;}}
.realtime-context{border-radius:16px;padding:10px 12px;background:rgba(255,232,137,.14);border:1px solid rgba(255,232,137,.28);color:#ffe889;font-weight:950;line-height:1.35;}
.realtime-buy-list article.hot{border-color:rgba(255,232,137,.72);background:linear-gradient(180deg,rgba(255,232,137,.18),rgba(48,12,39,.54));box-shadow:0 10px 22px rgba(255,174,38,.12);}
.realtime-buy-list article.hot::before{content:"主推";width:max-content;border-radius:999px;padding:3px 8px;background:#ffe889;color:#351804;font-size:11px;font-weight:950;}
.realtime-score-push{border-radius:18px;padding:12px;background:linear-gradient(180deg,rgba(143,213,255,.18),rgba(48,12,39,.50));border:1px solid rgba(143,213,255,.42);display:grid;gap:6px;}
.realtime-score-push span{color:#bfe9ff;font-size:var(--fs-12);font-weight:950;}
.realtime-score-push strong{color:#fff8e7;font-size:var(--fs-20);font-weight:950;line-height:1.25;}
.realtime-score-push em{font-style:normal;color:#ffe889;font-weight:950;line-height:1.35;}
.realtime-score-push small{color:rgba(255,248,231,.70);font-size:var(--fs-12);font-weight:850;line-height:1.35;}
.realtime-score-push-options{display:flex;gap:6px;flex-wrap:wrap;}
.realtime-score-push-options span{border-radius:999px;padding:5px 8px;background:rgba(255,248,231,.10);color:#fff8e7;font-size:var(--fs-11);font-weight:900;}
.realtime-score-push-options b{color:#ffe889;}
.real-live-score-card{border-radius:22px;padding:14px;background:radial-gradient(circle at 14% 18%,rgba(129,239,245,.34),transparent 34%),linear-gradient(135deg,rgba(18,88,101,.88),rgba(47,13,51,.82));border:1px solid rgba(129,239,245,.58);box-shadow:0 16px 34px rgba(6,21,32,.28),inset 0 1px 0 rgba(255,255,255,.18);display:grid;gap:6px;animation:realScorePop .42s cubic-bezier(.2,1.4,.3,1) both;}
.real-live-score-card span{color:#bff8ff;font-size:var(--fs-12);font-weight:950;letter-spacing:.04em;}
.real-live-score-card strong{color:#fff8e7;font-size:clamp(32px,7vw,var(--fs-42));font-weight:1000;line-height:1;}
.real-live-score-card em{font-style:normal;color:#ffe889;font-size:var(--fs-14);font-weight:950;}
.real-live-score-card small{color:rgba(255,248,231,.72);font-size:var(--fs-12);font-weight:850;line-height:1.35;}
@keyframes realScorePop{from{opacity:0;transform:translateY(-8px) scale(.96);}to{opacity:1;transform:translateY(0) scale(1);}}
.live-video-card{position:fixed;top:max(12px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:min(720px,calc(100vw - 20px));height:33dvh;min-height:220px;max-height:390px;z-index:9997;border-radius:24px;padding:10px;background:linear-gradient(160deg,rgba(10,21,30,.96),rgba(47,13,51,.94));border:1px solid rgba(129,239,245,.62);box-shadow:0 24px 60px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.16);display:grid;grid-template-rows:auto 1fr auto;gap:8px;animation:realScorePop .42s cubic-bezier(.2,1.4,.3,1) both;}
.live-video-head{display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:center;}
.live-video-head span{color:#bff8ff;font-size:var(--fs-11);font-weight:950;letter-spacing:.04em;}
.live-video-head strong{grid-column:1/2;color:#fff8e7;font-size:var(--fs-16);font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.live-video-head em{grid-row:1/3;grid-column:2/3;font-style:normal;color:#ffe889;font-size:var(--fs-12);font-weight:950;align-self:center;}
.live-video-frame{min-height:0;border-radius:18px;overflow:hidden;background:#050b10;border:1px solid rgba(255,255,255,.10);}
.live-video-frame iframe,.live-video-frame video{width:100%;height:100%;border:0;display:block;background:#000;object-fit:cover;}
.live-video-card small{color:rgba(255,248,231,.68);font-size:var(--fs-11);font-weight:850;line-height:1.25;}
.live-video-link-panel{height:100%;display:grid;place-items:center;text-align:center;gap:8px;padding:12px;background:radial-gradient(circle at 50% 20%,rgba(129,239,245,.18),transparent 38%),linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02));}
.live-video-link-panel b{color:#fff8e7;font-size:var(--fs-18);font-weight:950;}
.live-video-link-panel span{color:rgba(255,248,231,.72);font-size:var(--fs-12);font-weight:850;}
.live-video-link-panel a{border-radius:999px;padding:10px 16px;background:linear-gradient(135deg,#fff1a8,#ffc13e);color:#211703;font-weight:950;text-decoration:none;}
@media(max-width:720px){.live-video-card{width:calc(100vw - 16px);height:33dvh;min-height:210px;border-radius:20px}.live-video-head strong{font-size:var(--fs-14);}.live-video-head em{font-size:var(--fs-11);}}

/* v100/v104：直播卡片按手机三分之一高度显示，并允许按住上下拖动 */
.live-video-card{
  position:fixed!important;
  top:auto!important;
  left:50%!important;
  right:auto!important;
  bottom:env(safe-area-inset-bottom,0px)!important;
  transform:translate3d(-50%,0,0)!important;
  width:min(430px,calc(100vw - 8px))!important;
  height:calc(100dvh / 3)!important;
  min-height:calc(100dvh / 3)!important;
  max-height:calc(100dvh / 3)!important;
  margin:0!important;
  z-index:2147483000!important;
  border-radius:22px 22px 0 0!important;
  box-sizing:border-box!important;
}
.live-video-frame{min-height:0!important;height:100%!important;}
@media(max-width:430px){
  .live-video-card{
    width:100vw!important;
    height:calc(100dvh / 3)!important;
    min-height:calc(100dvh / 3)!important;
    max-height:calc(100dvh / 3)!important;
    border-radius:20px 20px 0 0!important;
  }
}

/* v104：直播卡片可按住上下拖动，只允许竖向移动 */
.live-video-card{
  --live-video-y: 0px;
  transform:translate3d(-50%,var(--live-video-y),0)!important;
  grid-template-rows:auto auto 1fr auto!important;
  touch-action:none!important;
  cursor:grab!important;
  user-select:none!important;
  -webkit-user-select:none!important;
}
.live-video-card.dragging{cursor:grabbing!important;}
.live-video-head{cursor:grab!important;}
.live-video-drag-hint{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  width:fit-content;
  max-width:100%;
  border-radius:999px;
  padding:3px 8px;
  color:#dffcff;
  background:rgba(95,236,255,.16);
  border:1px solid rgba(169,250,255,.34);
  font-size:10px;
  line-height:1.1;
  font-weight:950;
  letter-spacing:.02em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14);
}
.live-video-link-panel a,
.live-video-frame iframe,
.live-video-frame video{touch-action:auto!important;}


/* server-live-bottom-v123：直播框放底部，占屏幕三分之一，画面铺满框架 */
.live-video-card{top:auto!important;bottom:env(safe-area-inset-bottom,0px)!important;height:calc(100dvh / 3)!important;min-height:calc(100dvh / 3)!important;max-height:calc(100dvh / 3)!important;--live-video-y:0px;transform:translate3d(-50%,var(--live-video-y),0)!important;touch-action:none!important;cursor:grab!important;border-radius:22px 22px 0 0!important;}
.live-video-frame iframe,.live-video-frame video{object-fit:cover!important;}
.live-video-card.dragging{cursor:grabbing!important;}
.live-video-head,.live-video-drag-hint{cursor:grab!important;}


/* 修复实时预测折叠卡：移动端刷新按钮不能把摘要文字挤成竖排 */
#worldCupRealtimePredictionFold > summary,.worldcup-fold-summary{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:nowrap!important;}
#worldCupRealtimePredictionFold .realtime-summary-copy,.worldcup-fold-summary .realtime-summary-copy{flex:1 1 auto!important;width:auto!important;min-width:0!important;max-width:calc(100% - 82px)!important;display:grid!important;gap:3px!important;}
#worldCupRealtimePredictionFold .realtime-summary-copy strong,#worldCupRealtimePredictionFold .realtime-summary-copy span,.worldcup-fold-summary .realtime-summary-copy strong,.worldcup-fold-summary .realtime-summary-copy span{display:block!important;width:auto!important;min-width:0!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;writing-mode:horizontal-tb!important;line-height:1.35!important;}
#worldCupRealtimePredictionFold .realtime-summary-refresh,.worldcup-fold-summary .realtime-summary-refresh{flex:0 0 auto!important;width:auto!important;min-width:64px!important;max-width:96px!important;margin-left:auto!important;padding-left:12px!important;padding-right:12px!important;}


/* v120：直播框单手上下拖动条；按右侧拇指条拖，不影响视频播放 */
.live-video-card{position:fixed!important;touch-action:none!important;}
.live-video-drag-rail{
  position:absolute;
  right:6px;
  top:38%;
  transform:translateY(-50%);
  width:42px;
  height:min(160px,42%);
  border-radius:999px;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#08131a;
  background:linear-gradient(180deg,#fff6b8,#66ecff);
  border:1px solid rgba(255,255,255,.86);
  box-shadow:0 12px 28px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.55);
  font-size:20px;
  font-weight:1000;
  cursor:grab;
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
}
.live-video-card.dragging .live-video-drag-rail{cursor:grabbing;filter:brightness(1.08);}
@media(max-width:520px){.live-video-drag-rail{right:4px;width:38px;height:min(150px,45%);top:42%;}}

/* v223：是你的羊手机端入口贴满屏幕宽度，功能名片/推荐区跟十方AI一样满宽 */
@media (max-width: 520px) {
  .app[data-mobile-view="landing"] {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .app[data-mobile-view="landing"] .portal-screen {
    width: 100vw !important;
    min-height: 100dvh !important;
    padding: 0 !important;
  }

  .app[data-mobile-view="landing"] .portal-shell {
    width: 100vw !important;
    min-height: 100dvh !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .app[data-mobile-view="landing"] .portal-grid {
    justify-items: stretch !important;
  }

  .app[data-mobile-view="landing"] .portal-card,
  .app[data-mobile-view="landing"] .portal-hero {
    width: 100% !important;
    max-width: none !important;
    justify-self: stretch !important;
  }
}

/* v224：BTC合约 100x 模拟盘 + K线 + 智能仓推荐 */
.bitcoin-sim-stage,
.bitcoin-order-section {
  width: min(1180px, 100%);
  margin: 0 auto 14px;
}

.bitcoin-sim-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(260px, 0.72fr);
  gap: 14px;
  align-items: stretch;
}

.bitcoin-kline-card,
.bitcoin-sim-card,
.bitcoin-sim-empty,
.bitcoin-order-card {
  border: 1px solid rgba(255, 240, 181, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(5, 22, 20, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 32px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.bitcoin-kline-card {
  min-height: min(34dvh, 340px);
  padding: 14px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
}

.bitcoin-kline-head,
.bitcoin-sim-head,
.bitcoin-order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.bitcoin-kline-head span,
.bitcoin-sim-head span,
.bitcoin-smart-position span,
.bitcoin-order-top span {
  display: block;
  color: rgba(255, 248, 231, 0.66);
  font-size: var(--fs-12);
  font-weight: 900;
}

.bitcoin-kline-head strong,
.bitcoin-sim-head strong {
  display: block;
  margin-top: 4px;
  color: #ffe889;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
}

.bitcoin-kline-head small {
  color: rgba(255, 248, 231, 0.58);
  font-size: var(--fs-11);
  font-weight: 850;
  text-align: right;
}

.bitcoin-kline-chart {
  position: relative;
  min-height: 220px;
  height: clamp(220px, 32dvh, 315px);
  padding: 10px 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(255, 232, 137, 0.12), transparent 30%),
    rgba(0, 12, 12, 0.55);
  background-size: 46px 46px, 46px 46px, auto, auto;
  display: flex;
  align-items: stretch;
  gap: 4px;
  overflow: hidden;
}

.bitcoin-kline-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 24%, rgba(255,255,255,0.08) 25%, transparent 26%, transparent 49%, rgba(255,255,255,0.08) 50%, transparent 51%, transparent 74%, rgba(255,255,255,0.08) 75%, transparent 76%);
  opacity: 0.38;
}

.bitcoin-candle {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 4px;
  max-width: 16px;
  height: 100%;
  opacity: 0;
  animation: btcCandleIn 520ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay);
}

.bitcoin-candle::before,
.bitcoin-candle i {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: block;
}

.bitcoin-candle::before {
  bottom: var(--wick-bottom);
  width: 2px;
  height: var(--wick-height);
  border-radius: 999px;
  background: currentColor;
  opacity: 0.74;
}

.bitcoin-candle i {
  bottom: var(--body-bottom);
  width: min(100%, 13px);
  height: var(--body-height);
  min-height: 7px;
  border-radius: 4px;
  background: currentColor;
  box-shadow: 0 0 13px currentColor;
}

.bitcoin-candle.up { color: #29e38b; }
.bitcoin-candle.down { color: #ff6675; }

.bitcoin-kline-watermark {
  position: absolute;
  right: 12px;
  bottom: 8px;
  color: rgba(255, 248, 231, 0.26);
  font-size: var(--fs-11);
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.bitcoin-sim-card {
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.bitcoin-sim-head b,
.bitcoin-order-top b {
  min-width: 54px;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 999px;
  color: #1c1004;
  background: linear-gradient(180deg, #ffe887, #f0a91b);
  display: grid;
  place-items: center;
  font-size: var(--fs-15);
  font-weight: 1000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 10px 18px rgba(240,169,27,0.18);
}

.bitcoin-sim-input {
  display: grid;
  gap: 7px;
}

.bitcoin-sim-input span {
  color: rgba(255, 248, 231, 0.74);
  font-size: var(--fs-12);
  font-weight: 900;
}

.bitcoin-sim-input input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255, 240, 181, 0.22);
  border-radius: 17px;
  padding: 0 14px;
  color: #fff8e7;
  background: rgba(2, 14, 13, 0.66);
  font-size: var(--fs-20);
  font-weight: 950;
  outline: none;
}

.bitcoin-sim-input input:focus {
  border-color: rgba(255, 232, 137, 0.7);
}

.bitcoin-mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  background: rgba(0,0,0,0.22);
}

.bitcoin-mode-toggle button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  color: rgba(255, 248, 231, 0.72);
  background: transparent;
  font-weight: 950;
}

.bitcoin-mode-toggle button.active {
  color: #241204;
  background: linear-gradient(180deg, #ffe887, #f0a91b);
}

.bitcoin-smart-position {
  border: 1px solid rgba(43, 208, 119, 0.24);
  border-radius: 20px;
  padding: 13px;
  background:
    linear-gradient(135deg, rgba(43, 208, 119, 0.14), rgba(255, 232, 137, 0.07)),
    rgba(0, 18, 15, 0.54);
  display: grid;
  gap: 8px;
}

.bitcoin-smart-position strong {
  color: #fff8e7;
  font-size: var(--fs-22);
  line-height: 1.08;
}

.bitcoin-smart-position p {
  margin: 0;
  color: rgba(255, 248, 231, 0.72);
  font-size: var(--fs-12);
  font-weight: 780;
  line-height: 1.45;
}

.bitcoin-smart-grid,
.bitcoin-order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.bitcoin-smart-grid small,
.bitcoin-order-grid small {
  min-height: 28px;
  padding: 7px 8px;
  border-radius: 10px;
  color: rgba(255, 248, 231, 0.78);
  background: rgba(255,255,255,0.06);
  font-size: var(--fs-11);
  font-weight: 850;
}

.bitcoin-side-long { color: #29e38b !important; }
.bitcoin-side-short { color: #ff6675 !important; }
.bitcoin-side-neutral { color: #ffe889 !important; }

.bitcoin-sim-buy {
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  color: #201004;
  background: linear-gradient(180deg, #ffe887, #f0a91b);
  font-size: var(--fs-16);
  font-weight: 1000;
  box-shadow: 0 14px 24px rgba(240,169,27,0.22), inset 0 1px 0 rgba(255,255,255,0.55);
}

.bitcoin-sim-buy:active,
.bitcoin-mode-toggle button:active {
  transform: scale(0.98);
}

.bitcoin-sim-orders {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.bitcoin-sim-empty,
.bitcoin-order-card {
  padding: 14px;
}

.bitcoin-sim-empty {
  display: grid;
  gap: 5px;
}

.bitcoin-sim-empty strong,
.bitcoin-order-card strong {
  color: #fff8e7;
  font-size: var(--fs-18);
  line-height: 1.2;
}

.bitcoin-sim-empty span {
  color: rgba(255, 248, 231, 0.68);
  font-size: var(--fs-12);
  font-weight: 850;
}

.bitcoin-order-card {
  display: grid;
  gap: 9px;
  border-color: rgba(255, 240, 181, 0.2);
}

.bitcoin-order-card.long { border-color: rgba(41, 227, 139, 0.36); }
.bitcoin-order-card.short { border-color: rgba(255, 102, 117, 0.36); }
.bitcoin-order-card.neutral { border-color: rgba(255, 232, 137, 0.3); }

@keyframes btcCandleIn {
  from { opacity: 0; transform: translateY(14px) scaleY(0.82); }
  to { opacity: 1; transform: translateY(0) scaleY(1); }
}

@media (max-width: 760px) {
  .bitcoin-panel {
    padding: 10px 2px 18px;
  }

  .bitcoin-header,
  .bitcoin-sim-stage,
  .bitcoin-order-section,
  .bitcoin-layout {
    width: calc(100vw - 4px);
    max-width: 100%;
  }

  .bitcoin-header {
    margin-bottom: 8px;
    padding: 12px;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .bitcoin-header-copy h2 {
    font-size: 29px;
    line-height: 1.06;
  }

  .bitcoin-header-copy p {
    font-size: var(--fs-12);
    line-height: 1.35;
  }

  .bitcoin-price-card {
    min-height: 0;
    padding: 12px;
  }

  .bitcoin-sim-stage {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 10px;
  }

  .bitcoin-kline-card {
    min-height: 33dvh;
    padding: 12px;
    border-radius: 22px;
  }

  .bitcoin-kline-chart {
    height: calc(33dvh - 66px);
    min-height: 205px;
    gap: 3px;
  }

  .bitcoin-kline-head strong {
    font-size: 25px;
  }

  .bitcoin-sim-card {
    border-radius: 22px;
    padding: 13px;
  }

  .bitcoin-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .bitcoin-agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .bitcoin-agent-card {
    min-height: 112px;
  }

  .bitcoin-rule-grid {
    grid-template-columns: 1fr;
  }
}

/* v227：比特币智能仓去掉大标题，K线图直接置顶，价格指标紧跟K线 */
.app[data-app-section="bitcoin"] > .topbar,
.app[data-mobile-view="bitcoin"] > .topbar {
  display: none !important;
}

.bitcoin-header {
  display: none !important;
}

.bitcoin-panel {
  padding-top: 4px !important;
}

.bitcoin-sim-stage {
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, .72fr) !important;
  grid-template-rows: auto auto;
  align-items: stretch;
}

.bitcoin-kline-card {
  grid-column: 1;
  grid-row: 1;
}

.bitcoin-market-dock {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bitcoin-sim-card {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.bitcoin-market-dock article {
  min-height: 78px;
  border: 1px solid rgba(255, 240, 181, .16);
  border-radius: 18px;
  padding: 10px;
  display: grid;
  align-content: center;
  gap: 5px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.085), rgba(255,255,255,.025)),
    rgba(4, 23, 21, .72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 10px 20px rgba(0,0,0,.16);
  backdrop-filter: blur(14px);
}

.bitcoin-market-dock article.is-main {
  border-color: rgba(255, 232, 137, .36);
  background:
    linear-gradient(135deg, rgba(255,232,137,.22), rgba(43,208,119,.10)),
    rgba(4, 23, 21, .76);
}

.bitcoin-market-dock span {
  color: rgba(255, 248, 231, .64);
  font-size: var(--fs-11);
  font-weight: 950;
}

.bitcoin-market-dock strong {
  color: #fff8e7;
  font-size: var(--fs-15);
  line-height: 1.12;
}

.bitcoin-market-dock article.is-main strong {
  color: #ffe889;
  font-size: clamp(20px, 3vw, 28px);
}

.bitcoin-market-dock small {
  color: rgba(255, 248, 231, .56);
  font-size: 10px;
  font-weight: 820;
  line-height: 1.22;
}

.bitcoin-kline-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
}

.bitcoin-compact-back {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 240, 181, .28);
  border-radius: 14px;
  color: #201004;
  background: linear-gradient(180deg, #ffe887, #f0a91b);
  font-size: 26px;
  line-height: 1;
  font-weight: 1000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.46), 0 10px 18px rgba(0,0,0,.2);
}

.bitcoin-mark-spotlight,
.bitcoin-prediction-card,
.bitcoin-metrics {
  display: none !important;
}

.bitcoin-source-note::after {
  content: " 当前为模拟智能仓；真实交易 API 接入前不会真实下单。";
}

@media (max-width: 760px) {
  .bitcoin-panel {
    padding: 2px 2px 18px !important;
  }

  .bitcoin-sim-stage {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto;
    gap: 8px !important;
    margin-top: 0 !important;
  }

  .bitcoin-kline-card,
  .bitcoin-market-dock,
  .bitcoin-sim-card {
    grid-column: auto;
    grid-row: auto;
  }

  .bitcoin-kline-card { order: 1; }
  .bitcoin-market-dock { order: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bitcoin-sim-card { order: 3; }

  .bitcoin-kline-card {
    min-height: 34dvh !important;
    border-radius: 20px;
  }

  .bitcoin-kline-chart {
    min-height: 220px !important;
    height: calc(34dvh - 58px) !important;
  }

  .bitcoin-kline-head {
    align-items: flex-start;
  }

  .bitcoin-kline-head small {
    display: none;
  }

  .bitcoin-market-dock article {
    min-height: 72px;
    border-radius: 16px;
    padding: 9px;
  }
}



/* v228/v30：BTC行情改成细条列表，模拟盈亏记录放在自动按钮下方 */
.bitcoin-market-dock {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 6px !important;
  padding: 8px 10px !important;
  border-radius: 18px !important;
}
.bitcoin-market-dock .bitcoin-market-row,
.bitcoin-market-dock article {
  min-height: 30px !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  background: linear-gradient(90deg, rgba(255,255,255,.10), rgba(255,255,255,.035)) !important;
  border: 1px solid rgba(255, 232, 148, .16) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16) !important;
}
.bitcoin-market-dock .bitcoin-market-row span,
.bitcoin-market-dock article span {
  color: rgba(255, 248, 231, .66) !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  letter-spacing: .02em !important;
  white-space: nowrap !important;
}
.bitcoin-market-dock .bitcoin-market-row strong,
.bitcoin-market-dock article strong {
  color: #ffe889 !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  text-align: right !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.bitcoin-market-dock article small { display: none !important; }
.bitcoin-sim-pnl-panel {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 232, 137, .18);
  border-radius: 18px;
  background: rgba(0, 15, 13, .34);
}
.bitcoin-sim-pnl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.bitcoin-sim-pnl-head strong {
  color: #fff8e7;
  font-size: 13px;
  font-weight: 950;
}
.bitcoin-sim-pnl-head span {
  color: rgba(255, 248, 231, .52);
  font-size: 10px;
  font-weight: 850;
  text-align: right;
}
.bitcoin-sim-orders {
  display: grid;
  gap: 8px;
}
.bitcoin-sim-empty {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  color: rgba(255,248,231,.72);
  font-size: 11px;
  font-weight: 820;
}
.bitcoin-sim-empty strong { color: #ffe889; font-size: 13px; }
.bitcoin-sim-empty small { color: rgba(255,248,231,.56); }
.bitcoin-order-card {
  gap: 7px !important;
  padding: 10px !important;
}
.bitcoin-order-card.profit { border-color: rgba(41, 227, 139, .48) !important; }
.bitcoin-order-card.loss { border-color: rgba(255, 102, 117, .52) !important; }
.bitcoin-order-pnl-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 13px;
  background: rgba(255,255,255,.07);
}
.bitcoin-order-pnl-line strong,
.bitcoin-order-pnl-line em,
.bitcoin-order-pnl-line small {
  margin: 0;
  font-style: normal;
  line-height: 1.1;
  white-space: nowrap;
}
.bitcoin-order-pnl-line strong { font-size: 13px; font-weight: 950; }
.bitcoin-order-pnl-line em { text-align: center; font-size: 18px; font-weight: 1000; }
.bitcoin-order-pnl-line small { color: rgba(255,248,231,.66); font-size: 11px; font-weight: 900; }
.bitcoin-order-pnl-line.profit { color: #8ef2b6; background: rgba(41, 227, 139, .12); }
.bitcoin-order-pnl-line.loss { color: #ff9aa6; background: rgba(255, 102, 117, .13); }
.bitcoin-order-pnl-line.even { color: #ffe889; background: rgba(255, 232, 137, .10); }
.bitcoin-order-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.bitcoin-order-grid.compact small { min-height: 24px; padding: 6px 7px; font-size: 10.5px; }
@media (max-width: 430px) {
  .bitcoin-market-dock { gap: 5px !important; padding: 7px 8px !important; }
  .bitcoin-market-dock .bitcoin-market-row,
  .bitcoin-market-dock article { min-height: 28px !important; padding: 5px 9px !important; }
  .bitcoin-sim-pnl-head { align-items: flex-start; }
  .bitcoin-order-pnl-line { grid-template-columns: auto minmax(0, 1fr); }
  .bitcoin-order-pnl-line small { grid-column: 1 / -1; }
}

/* v229：手机端入口隐藏大标题 + 底部每日推荐滚动卡片 */
.entry-game-reco {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  align-items: stretch;
  gap: 10px;
  margin-top: 12px;
  min-height: 266px;
  padding: 14px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 223, 153, 0.28);
  background:
    radial-gradient(circle at 50% -18%, rgba(255, 234, 150, 0.24), transparent 42%),
    linear-gradient(135deg, rgba(96, 21, 68, 0.76), rgba(45, 6, 37, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -18px 28px rgba(28, 3, 24, 0.22),
    0 14px 26px rgba(24, 3, 18, 0.26);
  contain: layout style paint;
}

.entry-game-reco::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-conic-gradient(from 12deg at 50% 62%, rgba(255, 222, 139, 0.12) 0 2deg, transparent 2deg 18deg),
    radial-gradient(circle at 50% 60%, transparent 0 34%, rgba(255, 222, 139, 0.12) 35% 36%, transparent 37% 58%, rgba(255, 222, 139, 0.08) 59% 60%, transparent 61%);
  opacity: 0.62;
  pointer-events: none;
}

.entry-game-reco::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.34), rgba(255,255,255,.06) 38%, transparent 56%),
    radial-gradient(circle at 18% 14%, rgba(255,255,255,.30), transparent 24%);
  opacity: 0.52;
  mix-blend-mode: screen;
}

.entry-game-reco-head,
.entry-game-orbit,
.entry-game-reco-copy,
.entry-game-reco-meta {
  position: relative;
  z-index: 1;
}

.entry-game-reco-head {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0 72px;
  text-align: center;
}

.entry-game-reco-head span {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #271504;
  background: linear-gradient(180deg, #fff1a6, #d89a22);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.26);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1.15;
  white-space: nowrap;
}

.entry-game-reco-head strong {
  color: #fff3bf;
  font-size: 24px;
  line-height: 1.08;
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
  letter-spacing: -0.03em;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.38);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.entry-game-orbit {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  height: 196px;
  margin: 0;
  touch-action: pan-y;
}

.entry-reco-orb {
  position: absolute;
  top: 126px;
  left: 0;
  width: 68px;
  height: 68px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 239, 177, 0.42);
  border-radius: 18px;
  background: rgba(56, 9, 43, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 10px 18px rgba(0, 0, 0, 0.30);
  cursor: pointer;
  opacity: 0.74;
  transform: translate3d(0, 0, 0) scale(0.86);
  transition:
    transform 0.74s cubic-bezier(0.16, 1, 0.3, 1),
    left 0.74s cubic-bezier(0.16, 1, 0.3, 1),
    top 0.74s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.74s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.74s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease,
    filter 0.3s ease;
  will-change: transform;
  backdrop-filter: blur(14px) saturate(1.22);
  -webkit-backdrop-filter: blur(14px) saturate(1.22);
}

.entry-reco-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  display: block;
}

.entry-reco-orb.is-main img {
  object-position: center;
  transform: scale(1.01);
}

.entry-reco-orb.is-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 0 54%, rgba(0, 0, 0, 0.30));
  pointer-events: none;
}

.entry-reco-orb::after {
  content: attr(data-entry-reco-orbit-provider);
  position: absolute;
  z-index: 2;
  right: 5px;
  bottom: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #271504;
  background: linear-gradient(180deg, #fff1a6, #d89a22);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.30);
}

.entry-reco-orb.is-main {
  left: 0;
  top: 0;
  width: 100%;
  height: 196px;
  border-radius: 26px;
  z-index: 5;
  opacity: 1;
  filter: saturate(1.1) brightness(1.08);
  transform: translate3d(0, 0, 0) scale(1);
}

.entry-reco-orb.is-left {
  left: -10px;
  top: 132px;
  z-index: 4;
  transform: translate3d(0, 0, 0) scale(0.86) rotate(-3deg);
}

.entry-reco-orb.is-right {
  left: calc(100% - 58px);
  top: 132px;
  z-index: 4;
  transform: translate3d(0, 0, 0) scale(0.86) rotate(3deg);
}

.entry-reco-orb:focus-visible {
  outline: 2px solid #fff1a6;
  outline-offset: 3px;
}

.entry-game-reco-copy {
  display: none;
}

.entry-game-reco-meta {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 5;
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
}

.entry-reco-rotation-note {
  display: none !important;
}

.entry-game-reco-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  color: rgba(255, 247, 218, 0.92);
  background: rgba(42, 5, 32, 0.62);
  border: 1px solid rgba(255, 240, 181, 0.22);
  font-size: 10px;
  font-weight: 900;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (prefers-reduced-motion: reduce) {
  .entry-reco-orb {
    transition: none;
    will-change: auto;
  }
}

@media (max-width: 520px) {
  .app[data-mobile-view="landing"] .portal-shell {
    height: 100dvh !important;
    overflow-y: auto !important;
    gap: 10px !important;
    grid-template-rows: auto auto auto !important;
    padding-top: max(10px, env(safe-area-inset-top)) !important;
    padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
  }

  .app[data-mobile-view="landing"] .portal-hero {
    min-height: 78px !important;
    grid-template-columns: 58px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 10px !important;
    border-radius: 20px !important;
  }

  .app[data-mobile-view="landing"] .portal-avatar {
    width: 58px !important;
    height: 58px !important;
    border-radius: 18px !important;
  }

  .app[data-mobile-view="landing"] .portal-hero h1 {
    display: none !important;
  }

  .app[data-mobile-view="landing"] .portal-hero p {
    margin-top: 3px !important;
    font-size: 12px !important;
  }

  .app[data-mobile-view="landing"] .portal-grid {
    height: auto !important;
    grid-template-rows: none !important;
    gap: 8px !important;
  }

  .app[data-mobile-view="landing"] .portal-card {
    height: auto !important;
    min-height: 78px !important;
    grid-template-columns: 54px minmax(0, 1fr) 48px !important;
    gap: 9px !important;
    padding: 9px !important;
    border-radius: 20px !important;
  }

  .app[data-mobile-view="landing"] .portal-card-icon {
    width: 54px !important;
    height: 54px !important;
    border-radius: 16px !important;
  }

  .app[data-mobile-view="landing"] .portal-card-body {
    min-height: 52px !important;
    padding: 8px 9px !important;
    border-radius: 16px !important;
  }

  .app[data-mobile-view="landing"] .portal-card strong {
    font-size: 17px !important;
  }

  .app[data-mobile-view="landing"] .portal-card small {
    font-size: 11px !important;
  }

  .app[data-mobile-view="landing"] .portal-card-action {
    width: 48px !important;
    height: 48px !important;
  }

  .app[data-mobile-view="landing"] .entry-game-reco {
    min-height: 250px;
    padding: 12px;
    border-radius: 24px;
    gap: 9px;
    margin-top: 0;
  }

  .app[data-mobile-view="landing"] .entry-game-reco-head {
    min-height: 42px;
    padding: 0 62px;
  }

  .app[data-mobile-view="landing"] .entry-game-reco-head span {
    min-width: 52px;
    padding: 5px 7px;
    font-size: 10px;
  }

  .app[data-mobile-view="landing"] .entry-game-reco-head strong {
    font-size: 22px;
    line-height: 1.08;
  }

  .app[data-mobile-view="landing"] .entry-game-orbit {
    height: 184px;
  }

  .app[data-mobile-view="landing"] .entry-reco-orb {
    width: 62px;
    height: 62px;
    top: 120px;
    border-radius: 18px;
  }

  .app[data-mobile-view="landing"] .entry-reco-orb.is-main {
    left: 0;
    width: 100%;
    height: 184px;
    border-radius: 24px;
  }

  .app[data-mobile-view="landing"] .entry-reco-orb.is-left {
    left: -10px;
    top: 126px;
  }

  .app[data-mobile-view="landing"] .entry-reco-orb.is-right {
    left: calc(100% - 52px);
    top: 126px;
  }

  .app[data-mobile-view="landing"] .entry-game-reco-meta {
    left: 20px;
    bottom: 18px;
  }

  .app[data-mobile-view="landing"] .entry-game-reco-meta span {
    font-size: 10px;
    padding: 5px 7px;
  }
}

/* v229b：推荐卡片右上角补“今日推荐”标识 */
.entry-game-reco-head::after {
  content: "今日推荐";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 5px 8px;
  border-radius: 999px;
  color: rgba(255, 247, 218, 0.94);
  background: rgba(42, 5, 32, 0.62);
  border: 1px solid rgba(255, 240, 181, 0.22);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.22);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 1.15;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 520px) {
  .app[data-mobile-view="landing"] .entry-game-reco-head::after {
    min-width: 52px;
    padding: 5px 7px;
    font-size: 10px;
  }
}


/* v230：手机端入口页把今日推荐卡提到最上面，并隐藏“是你的羊 APP”头图区域 */
@media (max-width: 520px) {
  .app[data-mobile-view="landing"] .portal-shell {
    grid-template-rows: auto auto !important;
    align-content: start !important;
    gap: 10px !important;
    padding-top: max(8px, env(safe-area-inset-top)) !important;
  }

  .app[data-mobile-view="landing"] .portal-hero {
    display: none !important;
  }

  .app[data-mobile-view="landing"] .entry-game-reco {
    order: -2 !important;
    width: 100% !important;
    max-width: none !important;
    justify-self: stretch !important;
    margin: 0 !important;
  }

  .app[data-mobile-view="landing"] .portal-grid {
    order: 1 !important;
  }
}


/* v231：是你的羊首页今日推荐改成十方AI同款自动轮播大图卡 */
.entry-game-reco {
  border-color: rgba(247, 207, 111, 0.42) !important;
  background:
    radial-gradient(circle at 50% -18%, rgba(255, 244, 190, 0.26), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04) 46%, rgba(4, 18, 19, 0.68)),
    rgba(4, 31, 25, 0.70) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -18px 28px rgba(2, 18, 16, 0.26),
    0 14px 26px rgba(0, 0, 0, 0.28) !important;
}

.entry-game-reco::before {
  background:
    repeating-conic-gradient(from 12deg at 50% 62%, rgba(247, 207, 111, 0.12) 0 2deg, transparent 2deg 18deg),
    radial-gradient(circle at 50% 60%, transparent 0 34%, rgba(247, 207, 111, 0.12) 35% 36%, transparent 37% 58%, rgba(247, 207, 111, 0.08) 59% 60%, transparent 61%) !important;
}

.entry-reco-orb {
  background: rgba(2, 18, 16, 0.64) !important;
  border-color: rgba(255, 244, 203, 0.38) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -14px 24px rgba(2, 18, 16, 0.24),
    0 14px 30px rgba(0, 0, 0, 0.28) !important;
}

.entry-game-reco-meta span,
.entry-game-reco-head::after {
  color: rgba(255, 247, 218, 0.94) !important;
  background: rgba(2, 16, 15, 0.62) !important;
  border-color: rgba(255, 240, 181, 0.22) !important;
}

.entry-game-reco-head span,
.entry-reco-orb::after {
  color: #271504 !important;
  background: linear-gradient(180deg, #fff1a6, #d89a22) !important;
}

.entry-reco-orb.is-main {
  filter: saturate(1.10) brightness(1.08) !important;
}

@media (max-width: 520px) {
  .app[data-mobile-view="landing"] .entry-game-reco {
    min-height: 250px !important;
    padding: 12px !important;
    border-radius: 24px !important;
    gap: 9px !important;
  }

  .app[data-mobile-view="landing"] .entry-game-orbit {
    height: 184px !important;
  }

  .app[data-mobile-view="landing"] .entry-reco-orb.is-main {
    height: 184px !important;
    border-radius: 24px !important;
  }
}


/* v232：修复手机端推荐轮播主图被 top:120px 挤到下方，只露半截的问题 */
@media (max-width: 520px) {
  .app[data-mobile-view="landing"] .entry-reco-orb.is-main {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 184px !important;
  }

  .app[data-mobile-view="landing"] .entry-reco-orb.is-main img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    transform: scale(1.01) !important;
  }
}


/* v234：客服系统入口提到第一张功能卡，并做醒目边框 */
#enterCustomerBtn.portal-card-service {
  border-color: rgba(255, 240, 181, 0.48) !important;
}
#enterCustomerBtn.portal-card-service .portal-card-body strong::after {
  content: " 已放出";
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #271504;
  background: linear-gradient(180deg, #fff1a6, #d89a22);
  font-size: 10px;
  font-weight: 950;
  vertical-align: middle;
}


/* v235：客服入口之前被旧样式 display:none，强制恢复显示并固定第一位 */
#enterCustomerBtn.portal-card-service {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  order: -10 !important;
}

.app[data-mobile-view="landing"] #enterCustomerBtn.portal-card-service {
  display: grid !important;
  min-height: 78px !important;
}


/* v236：客服入口放回功能列表最下面，但保持可显示，可滑动到底部找到 */
#enterCustomerBtn.portal-card-service {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  order: 20 !important;
}

.app[data-mobile-view="landing"] #enterCustomerBtn.portal-card-service {
  display: grid !important;
  min-height: 78px !important;
}


/* v289：首页推荐轮播接入 PG/PP/JDB/FC Top3，共 12 张中文游戏图 */
.entry-reco-orb.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 1 !important;
  transform: translate3d(0, 0, 0) scale(0.72) !important;
}

.entry-game-reco[data-entry-reco-total="12"] .entry-game-reco-head::after {
  content: "十二款轮播";
}

/* v239：BTC 合约 K 线行情条只外露三个价格，同一行紧凑展示，其余信息折叠 */
.bitcoin-market-dock {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 5px !important;
  padding: 5px 7px !important;
}
.bitcoin-market-price-strip {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 5px !important;
  width: 100% !important;
}
.bitcoin-market-price-strip .bitcoin-market-row-price {
  min-height: 38px !important;
  border-radius: 13px !important;
  padding: 5px 6px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-content: center !important;
  justify-items: center !important;
  gap: 2px !important;
  text-align: center !important;
  border: 1px solid rgba(255, 232, 137, 0.30) !important;
  background: linear-gradient(180deg, rgba(255, 232, 137, 0.16), rgba(13, 42, 35, 0.78)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 6px 14px rgba(0,0,0,0.16) !important;
}
.bitcoin-market-price-strip .bitcoin-market-row-price.is-main {
  border-color: rgba(98, 226, 143, 0.55) !important;
  background: linear-gradient(180deg, rgba(98, 226, 143, 0.22), rgba(16, 48, 37, 0.88)) !important;
}
.bitcoin-market-price-strip .bitcoin-market-row-price span {
  width: auto !important;
  min-width: 0 !important;
  color: rgba(255,248,231,0.74) !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
}
.bitcoin-market-price-strip .bitcoin-market-row-price strong {
  color: #ffe889 !important;
  font-size: clamp(13px, 3.55vw, 18px) !important;
  line-height: 1 !important;
  font-weight: 1000 !important;
  white-space: nowrap !important;
  letter-spacing: -0.04em !important;
  text-shadow: 0 2px 12px rgba(255, 210, 86, 0.22) !important;
}
.bitcoin-market-extra-fold {
  border: 1px solid rgba(255, 232, 137, 0.12) !important;
  border-radius: 12px !important;
  background: rgba(4, 22, 20, 0.36) !important;
  overflow: hidden !important;
}
.bitcoin-market-extra-fold > summary {
  list-style: none !important;
  cursor: pointer !important;
  padding: 5px 8px !important;
  color: rgba(255,248,231,0.62) !important;
  font-size: 10px !important;
  line-height: 1.1 !important;
  font-weight: 950 !important;
  text-align: center !important;
}
.bitcoin-market-extra-fold > summary::-webkit-details-marker { display: none !important; }
.bitcoin-market-extra-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 5px !important;
  padding: 0 7px 7px !important;
}
.bitcoin-market-extra-grid .bitcoin-market-row-extra {
  min-height: 26px !important;
  border-radius: 999px !important;
  padding: 4px 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.bitcoin-market-extra-grid .bitcoin-market-row-extra span,
.bitcoin-market-extra-grid .bitcoin-market-row-extra strong {
  font-size: 10px !important;
  letter-spacing: 0 !important;
}
@media (max-width: 430px) {
  .bitcoin-market-price-strip { gap: 4px !important; }
  .bitcoin-market-price-strip .bitcoin-market-row-price { min-height: 36px !important; padding: 5px 4px !important; }
  .bitcoin-market-price-strip .bitcoin-market-row-price strong { font-size: clamp(12px, 3.35vw, 16px) !important; }
}

/* v240：BTC服务器智能仓执行结果提示 */
.bitcoin-order-events {
  margin: 6px 0 0 !important;
  padding: 6px 8px !important;
  border-radius: 12px !important;
  background: rgba(4, 22, 20, 0.45) !important;
  color: rgba(255, 248, 231, 0.76) !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
  font-weight: 850 !important;
}
.bitcoin-sim-buy:disabled {
  opacity: 0.72 !important;
  cursor: wait !important;
  filter: saturate(0.82) !important;
}

/* v246：飞机机器人制作中心（免费版），科技名片风，按飞机用户隔离 */
.portal-card-bot-maker {
  background:
    radial-gradient(circle at 18% 12%, rgba(129, 239, 245, 0.34), transparent 34%),
    radial-gradient(circle at 86% 78%, rgba(255, 232, 137, 0.30), transparent 34%),
    linear-gradient(145deg, #243b76 0%, #73316a 52%, #261a3f 100%);
}
.role-icon-bot-maker {
  color: #fff4c9;
  font-size: 34px !important;
}
.bot-maker-panel {
  min-height: 100vh;
  padding: clamp(14px, 3vw, 34px);
  color: #fff8e7;
  background:
    radial-gradient(circle at 12% 8%, rgba(125, 240, 255, 0.20), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(255, 216, 107, 0.18), transparent 26%),
    radial-gradient(circle at 70% 92%, rgba(164, 92, 255, 0.22), transparent 34%),
    linear-gradient(145deg, #130d2b 0%, #2b1746 44%, #120a20 100%);
  position: relative;
  overflow: hidden;
}
.bot-maker-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 82%);
}
.bot-maker-shell {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.bot-maker-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  align-items: stretch;
}
.bot-maker-id-card,
.bot-maker-signal-card,
.bot-maker-form,
.bot-maker-result {
  border: 1px solid rgba(191, 241, 255, 0.20);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.045)),
    rgba(18, 9, 31, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    0 20px 58px rgba(4, 0, 18, 0.36);
  backdrop-filter: blur(16px);
}
.bot-maker-id-card {
  min-height: 178px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.bot-maker-id-card::after {
  content: "";
  position: absolute;
  right: -54px;
  top: -54px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  border: 1px solid rgba(255,232,137,.24);
  box-shadow: 0 0 50px rgba(128,240,255,.18);
}
.bot-maker-kicker,
.bot-maker-signal-card span,
.bot-maker-section-label,
.bot-maker-result-head span {
  color: #91f6ff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.bot-maker-id-card h2 { margin: 10px 0; color: #fff6d6; font-size: clamp(28px, 6vw, 48px); line-height: 1.06; letter-spacing: -.04em; }
.bot-maker-id-card p { max-width: 720px; margin: 0; color: rgba(255,248,231,.80); font-weight: 850; line-height: 1.7; }
.bot-maker-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bot-maker-chip-row span {
  padding: 8px 10px;
  border: 1px solid rgba(145,246,255,.24);
  border-radius: 999px;
  color: #fff8e7;
  background: rgba(145,246,255,.08);
  font-size: 12px;
  font-weight: 950;
}
.bot-maker-signal-card {
  padding: 18px;
  display: grid;
  align-content: space-between;
  min-height: 236px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 28% 18%, rgba(145,246,255,.24), transparent 32%),
    linear-gradient(145deg, rgba(255,232,137,.14), rgba(255,255,255,.05)),
    rgba(18, 9, 31, 0.78);
}
.bot-maker-signal-card strong {
  color: #ffe889;
  font-size: 22px;
  line-height: 1.18;
}
.bot-maker-signal-card small {
  color: rgba(255,248,231,.72);
  font-weight: 850;
}
.bot-maker-orbit-stage {
  position: relative;
  min-height: 132px;
  margin: -4px 0 10px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 52% 52%, rgba(145,246,255,.18), transparent 24%),
    radial-gradient(circle at 78% 22%, rgba(255,232,137,.16), transparent 18%),
    linear-gradient(145deg, rgba(145,246,255,.08), rgba(255,255,255,.02));
  overflow: hidden;
}
.bot-maker-orbit-stage i,
.bot-maker-orbit-stage b,
.bot-maker-orbit-stage span { display: block; }
.bot-maker-orbit-ring {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 168px;
  height: 74px;
  border: 1px solid rgba(145,246,255,.28);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  box-shadow: 0 0 26px rgba(145,246,255,.12);
}
.bot-maker-orbit-ring.ring-two {
  width: 214px;
  height: 98px;
  border-color: rgba(255,232,137,.20);
  transform: translate(-50%, -50%) rotate(24deg);
}
.bot-maker-star {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #91f6ff;
  box-shadow: 0 0 14px rgba(145,246,255,.78);
}
.bot-maker-star.star-one { left: 18%; top: 22%; }
.bot-maker-star.star-two { right: 18%; top: 36%; background: #ffe889; box-shadow: 0 0 14px rgba(255,232,137,.78); }
.bot-maker-star.star-three { left: 72%; bottom: 18%; width: 4px; height: 4px; }
.bot-maker-spaceship {
  position: absolute;
  right: 22px;
  top: 22px;
  width: 62px;
  height: 34px;
  border-radius: 70% 35% 70% 35%;
  background: linear-gradient(135deg, #fdf8d8, #91f6ff 52%, #5a6cff);
  transform: rotate(-18deg);
  box-shadow: 0 12px 28px rgba(0,0,0,.24), 0 0 22px rgba(145,246,255,.32);
}
.bot-maker-spaceship::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 17px;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(145,246,255,.92));
}
.ship-window {
  position: absolute;
  right: 14px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #111831;
  border: 2px solid rgba(255,255,255,.82);
}
.ship-wing {
  position: absolute;
  left: 16px;
  width: 22px;
  height: 12px;
  background: linear-gradient(135deg, #ffe889, #d48a38);
  clip-path: polygon(0 0, 100% 42%, 18% 100%);
}
.ship-wing.wing-left { top: -4px; transform: rotate(-8deg); }
.ship-wing.wing-right { bottom: -5px; transform: scaleY(-1) rotate(-8deg); }
.ship-flame {
  position: absolute;
  left: -14px;
  top: 12px;
  width: 18px;
  height: 10px;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(90deg, rgba(255,107,74,.95), rgba(255,232,137,.82), transparent);
  filter: blur(.2px);
}
.bot-maker-robot {
  position: absolute;
  left: 22px;
  bottom: 12px;
  width: 74px;
  height: 92px;
}
.robot-antenna {
  position: absolute;
  left: 34px;
  top: 0;
  width: 2px;
  height: 15px;
  background: #91f6ff;
}
.robot-antenna::after {
  content: "";
  position: absolute;
  left: -5px;
  top: -8px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ffe889;
  box-shadow: 0 0 18px rgba(255,232,137,.75);
}
.robot-head {
  position: absolute;
  left: 10px;
  top: 14px;
  width: 54px;
  height: 42px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fdf8d8, #91f6ff 64%, #6574ff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 10px 24px rgba(0,0,0,.22);
}
.robot-head b {
  position: absolute;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #111831;
  box-shadow: 0 0 10px rgba(17,24,49,.55);
}
.robot-head b:first-child { left: 14px; }
.robot-head b:last-child { right: 14px; }
.robot-body {
  position: absolute;
  left: 16px;
  top: 58px;
  width: 42px;
  height: 30px;
  border-radius: 14px 14px 18px 18px;
  background: linear-gradient(145deg, rgba(145,246,255,.95), rgba(255,232,137,.88));
}
.robot-body::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 10px;
  width: 14px;
  height: 5px;
  border-radius: 999px;
  background: rgba(17,24,49,.55);
}
.robot-arm {
  position: absolute;
  top: 64px;
  width: 14px;
  height: 22px;
  border-radius: 999px;
  background: rgba(145,246,255,.75);
}
.robot-arm.arm-left { left: 2px; transform: rotate(18deg); }
.robot-arm.arm-right { right: 2px; transform: rotate(-18deg); }
@media (prefers-reduced-motion: no-preference) {
  .bot-maker-spaceship { animation: botShipDrift 4.8s ease-in-out infinite; }
  .bot-maker-robot { animation: botRobotFloat 3.8s ease-in-out infinite; }
  .bot-maker-star { animation: botStarPulse 2.8s ease-in-out infinite; }
}
@keyframes botShipDrift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-18deg); }
  50% { transform: translate3d(-10px, 8px, 0) rotate(-12deg); }
}
@keyframes botRobotFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}
@keyframes botStarPulse {
  0%, 100% { opacity: .48; transform: scale(.86); }
  50% { opacity: 1; transform: scale(1.18); }
}
.bot-maker-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr); gap: 16px; }
.bot-maker-form,
.bot-maker-result { padding: 18px; display: grid; gap: 13px; align-content: start; }
.bot-maker-section-label { margin-top: 2px; }
.bot-maker-form .creation-field input,
.bot-maker-form .creation-field textarea,
.bot-maker-form .creation-field select {
  width: 100%;
  border: 1px solid rgba(145, 246, 255, 0.20);
  border-radius: 16px;
  padding: 13px 14px;
  color: #fff8e7;
  background: rgba(10, 7, 20, 0.62);
  outline: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.bot-maker-form .creation-field input:focus,
.bot-maker-form .creation-field textarea:focus,
.bot-maker-form .creation-field select:focus {
  border-color: rgba(255,232,137,.62);
  box-shadow: 0 0 0 3px rgba(255,232,137,.10), inset 0 1px 0 rgba(255,255,255,.12);
}
.bot-maker-result-head {
  display: grid;
  gap: 4px;
}
.bot-maker-result-head strong {
  color: #fff6d6;
  font-size: 18px;
  letter-spacing: -.02em;
}
.bot-maker-result .creation-output {
  border: 1px solid rgba(255,232,137,.18);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255,232,137,.10), rgba(145,246,255,.05)),
    rgba(10,7,20,.48);
  color: rgba(255,248,231,.84);
}
.bot-maker-plan strong { display: block; margin-bottom: 8px; white-space: pre-line; }
.bot-maker-plan ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.bot-maker-projects { display: grid; gap: 8px; }
.bot-maker-project-card {
  padding: 12px;
  border: 1px solid rgba(145,246,255,.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}
.bot-maker-project-card strong,
.bot-maker-project-card span,
.bot-maker-project-card p { display: block; margin: 0; }
.bot-maker-project-card strong { color: #ffe889; font-weight: 950; }
.bot-maker-project-card span { margin-top: 4px; color: rgba(255,248,231,.62); font-size: 12px; font-weight: 850; }
.bot-maker-project-card p { margin-top: 5px; color: rgba(255,248,231,.78); font-size: 12px; }
@media (max-width: 720px) {
  .bot-maker-panel { padding: 10px; }
  .bot-maker-hero { grid-template-columns: 1fr; }
  .bot-maker-grid { grid-template-columns: 1fr; }
  .bot-maker-id-card,
  .bot-maker-signal-card,
  .bot-maker-form,
  .bot-maker-result { border-radius: 24px; }
  .bot-maker-signal-card { min-height: 230px; }
}
/* v249：机器人制作中心蓝图框架背景，去卡通化 */
.bot-maker-blueprint-stage {
  position: relative;
  min-height: 150px;
  margin: -4px 0 12px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(145,246,255,.16);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='180' viewBox='0 0 320 180' fill='none'%3E%3Cpath d='M62 136h196' stroke='%2391F6FF' stroke-opacity='.25'/%3E%3Cpath d='M160 24v132M92 60h136M82 102h156' stroke='%2391F6FF' stroke-opacity='.18'/%3E%3Crect x='118' y='42' width='84' height='62' rx='16' stroke='%2391F6FF' stroke-opacity='.72' stroke-width='2'/%3E%3Cpath d='M132 104h56v34c0 8-6 14-14 14h-28c-8 0-14-6-14-14v-34Z' stroke='%23FFE889' stroke-opacity='.70' stroke-width='2'/%3E%3Ccircle cx='143' cy='72' r='6' fill='%2391F6FF' fill-opacity='.82'/%3E%3Ccircle cx='177' cy='72' r='6' fill='%2391F6FF' fill-opacity='.82'/%3E%3Cpath d='M150 88h20' stroke='%23FFE889' stroke-opacity='.76' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M118 122H88M202 122h30M160 42V20M160 20l-12-10M160 20l12-10' stroke='%2391F6FF' stroke-opacity='.52' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='88' cy='122' r='4' fill='%23FFE889' fill-opacity='.80'/%3E%3Ccircle cx='232' cy='122' r='4' fill='%23FFE889' fill-opacity='.80'/%3E%3C/svg%3E"),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    radial-gradient(circle at 55% 45%, rgba(145,246,255,.18), transparent 42%),
    rgba(6,10,24,.42);
  background-repeat: no-repeat, repeat, repeat, no-repeat, no-repeat;
  background-size: 100% 100%, 28px 28px, 28px 28px, auto, auto;
  background-position: center, center, center, center, center;
}
.blueprint-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 48%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(145,246,255,.72), transparent);
  box-shadow: 0 0 18px rgba(145,246,255,.45);
}
.blueprint-node {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #91f6ff;
  box-shadow: 0 0 16px rgba(145,246,255,.68);
}
.blueprint-node.node-a { left: 18px; top: 22px; }
.blueprint-node.node-b { right: 28px; top: 42px; background: #ffe889; box-shadow: 0 0 16px rgba(255,232,137,.62); }
.blueprint-node.node-c { right: 70px; bottom: 22px; }
.bot-maker-field {
  position: relative;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(145,246,255,.16);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
    rgba(8, 8, 22, .34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.bot-maker-field > span,
.bot-maker-field input,
.bot-maker-field textarea,
.bot-maker-field select {
  position: relative;
  z-index: 2;
}
.bot-maker-field::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .26;
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 132px 100px;
  filter: drop-shadow(0 0 10px rgba(145,246,255,.18));
}
.bot-maker-field::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 42%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(145,246,255,.08));
}
.bot-maker-field-api::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='120' viewBox='0 0 150 120' fill='none'%3E%3Cpath d='M92 16c22 12 34 31 39 56-25-5-44-17-56-39 3-7 9-14 17-17Z' stroke='%2391F6FF' stroke-width='3'/%3E%3Ccircle cx='101' cy='46' r='11' stroke='%23FFE889' stroke-width='3'/%3E%3Cpath d='M74 66 55 85M69 51 39 54M95 77l-3 30M58 83l-26 5 5-26' stroke='%2391F6FF' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M50 93c-11 5-20 4-28 13 9-3 17-1 24-7' stroke='%23FFB36B' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.bot-maker-field-type::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='120' viewBox='0 0 150 120' fill='none'%3E%3Crect x='43' y='23' width='64' height='50' rx='14' stroke='%2391F6FF' stroke-width='3'/%3E%3Ccircle cx='62' cy='48' r='6' fill='%2391F6FF'/%3E%3Ccircle cx='88' cy='48' r='6' fill='%2391F6FF'/%3E%3Cpath d='M66 62h18' stroke='%23FFE889' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M75 23V8M75 8l-8 8M75 8l8 8M43 83h64M54 73v20M96 73v20M31 49h12M107 49h12' stroke='%2391F6FF' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}
.bot-maker-field-requirement::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='120' viewBox='0 0 150 120' fill='none'%3E%3Cpath d='M22 28h34v20h38v20h34M22 92h28V72h36V40h42' stroke='%2391F6FF' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='22' cy='28' r='5' fill='%23FFE889'/%3E%3Ccircle cx='128' cy='68' r='5' fill='%2391F6FF'/%3E%3Ccircle cx='22' cy='92' r='5' fill='%2391F6FF'/%3E%3Ccircle cx='128' cy='40' r='5' fill='%23FFE889'/%3E%3C/svg%3E");
}
.bot-maker-field-welcome::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='120' viewBox='0 0 150 120' fill='none'%3E%3Crect x='24' y='28' width='102' height='54' rx='14' stroke='%2391F6FF' stroke-width='3'/%3E%3Cpath d='M58 82 43 101V82M45 47h60M45 63h42' stroke='%23FFE889' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}
.bot-maker-field-menu::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='120' viewBox='0 0 150 120' fill='none'%3E%3Crect x='30' y='25' width='38' height='28' rx='8' stroke='%2391F6FF' stroke-width='3'/%3E%3Crect x='82' y='25' width='38' height='28' rx='8' stroke='%23FFE889' stroke-width='3'/%3E%3Crect x='30' y='67' width='38' height='28' rx='8' stroke='%23FFE889' stroke-width='3'/%3E%3Crect x='82' y='67' width='38' height='28' rx='8' stroke='%2391F6FF' stroke-width='3'/%3E%3C/svg%3E");
}
.bot-maker-field-reply::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='120' viewBox='0 0 150 120' fill='none'%3E%3Cpath d='M30 38h70l18 20-18 20H30' stroke='%2391F6FF' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M47 58h54M58 78l-22 18M58 38 36 20' stroke='%23FFE889' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}
.bot-maker-field-persona::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='120' viewBox='0 0 150 120' fill='none'%3E%3Ccircle cx='44' cy='40' r='9' stroke='%2391F6FF' stroke-width='3'/%3E%3Ccircle cx='94' cy='34' r='9' stroke='%23FFE889' stroke-width='3'/%3E%3Ccircle cx='74' cy='78' r='11' stroke='%2391F6FF' stroke-width='3'/%3E%3Ccircle cx='116' cy='78' r='7' fill='%23FFE889' fill-opacity='.9'/%3E%3Cpath d='M53 39h32M49 48l18 22M84 76h25M91 42 80 68' stroke='%2391F6FF' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}
@media (max-width: 720px) {
  .bot-maker-field::before { background-size: 118px 92px; opacity: .22; }
}
/* v250：接入 GPT 生成的大图背景，火箭/机器人按框架裁切 */
.bot-maker-panel {
  --bot-maker-tech-bg: url("/static/assets/bot-maker-tech-blueprint-v1.webp");
  background:
    linear-gradient(180deg, rgba(10,7,24,.72), rgba(20,10,36,.88)),
    var(--bot-maker-tech-bg),
    radial-gradient(circle at 12% 8%, rgba(125,240,255,.20), transparent 28%),
    linear-gradient(145deg, #100d27 0%, #2a1746 48%, #0e0a1c 100%);
  background-size: cover, cover, auto, auto;
  background-position: center, center top, center, center;
  background-attachment: scroll, scroll, scroll, scroll;
}
.bot-maker-id-card {
  background:
    linear-gradient(145deg, rgba(12,15,36,.88), rgba(24,14,42,.74)),
    var(--bot-maker-tech-bg);
  background-size: cover, 135% auto;
  background-position: center, center 10%;
}
.bot-maker-blueprint-stage {
  min-height: 230px;
  border-color: rgba(145,246,255,.22);
  background:
    linear-gradient(180deg, rgba(7,10,26,.42), rgba(7,10,26,.78)),
    var(--bot-maker-tech-bg);
  background-size: cover, 100% auto;
  background-position: center, center 18%;
}
.bot-maker-field {
  background:
    linear-gradient(145deg, rgba(14,18,42,.84), rgba(24,14,42,.70)),
    var(--bot-maker-tech-bg);
  background-size: auto, 360px auto;
  background-repeat: no-repeat;
  background-position: center, right -90px top -80px;
}
.bot-maker-field::before {
  inset: 0;
  width: auto;
  opacity: .42;
  filter: saturate(1.08) contrast(1.08);
  mix-blend-mode: screen;
  background-image: var(--bot-maker-tech-bg) !important;
  background-repeat: no-repeat !important;
  background-size: 245px auto !important;
  background-position: right -34px center !important;
}
.bot-maker-field::after {
  width: 56%;
  background: linear-gradient(90deg, transparent, rgba(5,8,24,.12), rgba(5,8,24,.72));
}
.bot-maker-field-api::before {
  background-position: right -34px bottom -118px !important;
  opacity: .52;
}
.bot-maker-field-type::before {
  background-position: right -30px top -68px !important;
  opacity: .48;
}
.bot-maker-field-requirement::before { background-position: right -46px top -22px !important; }
.bot-maker-field-welcome::before { background-position: right -60px top -130px !important; }
.bot-maker-field-menu::before { background-position: right -60px bottom -44px !important; }
.bot-maker-field-reply::before { background-position: right -70px center !important; }
.bot-maker-field-persona::before { background-position: right -36px top -84px !important; }
.bot-maker-form .creation-field input,
.bot-maker-form .creation-field textarea,
.bot-maker-form .creation-field select,
.bot-maker-form input,
.bot-maker-form textarea,
.bot-maker-form select {
  background: rgba(8, 8, 24, .78) !important;
  backdrop-filter: blur(8px);
}
/* v251：字段对应专用 GPT 裁切图 */
.bot-maker-field-api::before {
  background-image: url("/static/assets/bot-maker-field-rocket-v1.webp") !important;
  background-size: 112px auto !important;
  background-position: right 14px center !important;
  opacity: .78 !important;
}
.bot-maker-field-api {
  background:
    linear-gradient(145deg, rgba(14,18,42,.78), rgba(24,14,42,.64)),
    url("/static/assets/bot-maker-field-rocket-v1.webp") !important;
  background-size: auto, 128px auto !important;
  background-position: center, right 8px center !important;
  background-repeat: no-repeat !important;
}
.bot-maker-field-type::before {
  background-image: url("/static/assets/bot-maker-field-robot-v1.webp") !important;
  background-size: 142px auto !important;
  background-position: right -8px center !important;
  opacity: .62 !important;
}
.bot-maker-field-type {
  background:
    linear-gradient(145deg, rgba(14,18,42,.78), rgba(24,14,42,.64)),
    url("/static/assets/bot-maker-field-robot-v1.webp") !important;
  background-size: auto, 166px auto !important;
  background-position: center, right -20px center !important;
  background-repeat: no-repeat !important;
}
/* v252：字段背景缩放为完整可识别火箭/机器人 */
.bot-maker-field-api::before {
  background-image: url("/static/assets/bot-maker-field-rocket-v1.webp") !important;
  background-size: 58px auto !important;
  background-position: right 24px center !important;
  opacity: .86 !important;
}
.bot-maker-field-api {
  background:
    linear-gradient(145deg, rgba(14,18,42,.78), rgba(24,14,42,.64)),
    url("/static/assets/bot-maker-field-rocket-v1.webp") !important;
  background-size: auto, 70px auto !important;
  background-position: center, right 18px center !important;
  background-repeat: no-repeat !important;
}
.bot-maker-field-type::before {
  background-image: url("/static/assets/bot-maker-field-robot-v1.webp") !important;
  background-size: 92px auto !important;
  background-position: right 16px center !important;
  opacity: .66 !important;
}
.bot-maker-field-type {
  background:
    linear-gradient(145deg, rgba(14,18,42,.78), rgba(24,14,42,.64)),
    url("/static/assets/bot-maker-field-robot-v1.webp") !important;
  background-size: auto, 108px auto !important;
  background-position: center, right 4px center !important;
  background-repeat: no-repeat !important;
}
/* v253：把 GPT 火箭/机器人直接放入对应输入框内部 */
#botMakerToken {
  padding-right: 86px !important;
  background:
    linear-gradient(90deg, rgba(8,8,24,.88), rgba(8,8,24,.70)),
    url("/static/assets/bot-maker-field-rocket-v1.webp") !important;
  background-repeat: no-repeat !important;
  background-size: auto, 54px auto !important;
  background-position: center, right 16px center !important;
}
#botMakerType {
  padding-right: 104px !important;
  background:
    linear-gradient(90deg, rgba(8,8,24,.88), rgba(8,8,24,.70)),
    url("/static/assets/bot-maker-field-robot-v1.webp") !important;
  background-repeat: no-repeat !important;
  background-size: auto, 80px auto !important;
  background-position: center, right 16px center !important;
}
/* v254：火箭/机器人作为框架内完整浮层显示 */
.bot-maker-field-api::after {
  content: "" !important;
  position: absolute !important;
  right: 18px !important;
  top: 26px !important;
  width: 58px !important;
  height: 76px !important;
  z-index: 3 !important;
  pointer-events: none !important;
  opacity: .58 !important;
  mix-blend-mode: screen !important;
  background: url("/static/assets/bot-maker-field-rocket-v1.webp") center / contain no-repeat !important;
  filter: drop-shadow(0 0 12px rgba(145,246,255,.42));
}
.bot-maker-field-type::after {
  content: "" !important;
  position: absolute !important;
  right: 28px !important;
  top: 26px !important;
  width: 78px !important;
  height: 78px !important;
  z-index: 3 !important;
  pointer-events: none !important;
  opacity: .46 !important;
  mix-blend-mode: screen !important;
  background: url("/static/assets/bot-maker-field-robot-v1.webp") center / contain no-repeat !important;
  filter: drop-shadow(0 0 12px rgba(145,246,255,.34));
}
/* v255：使用 GPT 专门生成的清晰火箭/机器人图标 */
#botMakerToken,
#botMakerType {
  background: rgba(8, 8, 24, .82) !important;
}
.bot-maker-field-api {
  background:
    linear-gradient(145deg, rgba(14,18,42,.78), rgba(24,14,42,.64)),
    url("/static/assets/bot-maker-gpt-rocket-icon-v1.webp") !important;
  background-size: auto, 92px auto !important;
  background-position: center, right 12px center !important;
  background-repeat: no-repeat !important;
}
.bot-maker-field-api::after {
  background: url("/static/assets/bot-maker-gpt-rocket-icon-v1.webp") center / contain no-repeat !important;
  width: 60px !important;
  height: 86px !important;
  right: 20px !important;
  top: 18px !important;
  opacity: .62 !important;
}
.bot-maker-field-type {
  background:
    linear-gradient(145deg, rgba(14,18,42,.78), rgba(24,14,42,.64)),
    url("/static/assets/bot-maker-gpt-robot-icon-v1.webp") !important;
  background-size: auto, 118px auto !important;
  background-position: center, right -2px center !important;
  background-repeat: no-repeat !important;
}
.bot-maker-field-type::after {
  background: url("/static/assets/bot-maker-gpt-robot-icon-v1.webp") center / contain no-repeat !important;
  width: 82px !important;
  height: 82px !important;
  right: 18px !important;
  top: 24px !important;
  opacity: .48 !important;
}
/* v256：机器人制作说明改成三步教程 */
.bot-maker-guide-steps {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.bot-maker-guide-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(145,246,255,.18);
  border-radius: 14px;
  background: rgba(8, 12, 30, .46);
}
.bot-maker-guide-steps b {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #07101f;
  background: linear-gradient(135deg, #91f6ff, #ffe889);
  font-size: 13px;
  font-weight: 1000;
}
.bot-maker-guide-steps span,
.bot-maker-guide-steps small {
  grid-column: 2;
  display: block;
}
.bot-maker-guide-steps span {
  color: #fff6d6;
  font-size: 13px;
  font-weight: 1000;
}
.bot-maker-guide-steps small {
  margin-top: 2px;
  color: rgba(255,248,231,.66);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

/* v257：把使用说明嵌入上方科技蓝图空白框，不再单独生成一块 */
.bot-maker-blueprint-stage {
  min-height: 300px;
}
.bot-maker-guide-overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  padding: 12px;
  border: 1px solid rgba(145,246,255,.26);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(6,10,24,.74), rgba(18,12,34,.58)),
    linear-gradient(90deg, rgba(145,246,255,.10), transparent 42%, rgba(246,212,126,.08));
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 14px 30px rgba(0,0,0,.24);
}
.bot-maker-guide-overlay::before,
.bot-maker-guide-overlay::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  pointer-events: none;
}
.bot-maker-guide-overlay::before {
  left: 8px;
  top: 8px;
  border-left: 2px solid rgba(145,246,255,.72);
  border-top: 2px solid rgba(145,246,255,.72);
  border-radius: 10px 0 0 0;
}
.bot-maker-guide-overlay::after {
  right: 8px;
  bottom: 8px;
  border-right: 2px solid rgba(246,212,126,.64);
  border-bottom: 2px solid rgba(246,212,126,.64);
  border-radius: 0 0 10px 0;
}
.bot-maker-guide-overlay > span {
  position: relative;
  color: #91f6ff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .18em;
}
.bot-maker-guide-overlay > strong {
  position: relative;
  display: block;
  margin-top: 4px;
  color: #fff6d6;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.bot-maker-guide-overlay .bot-maker-guide-steps {
  position: relative;
  margin-top: 9px;
  gap: 6px;
}
.bot-maker-guide-overlay .bot-maker-guide-steps li {
  grid-template-columns: 24px minmax(0, 1fr);
  padding: 7px 8px;
  border-radius: 12px;
  background: rgba(8,12,30,.42);
}
.bot-maker-guide-overlay .bot-maker-guide-steps b {
  width: 24px;
  height: 24px;
  font-size: 12px;
}
.bot-maker-guide-overlay .bot-maker-guide-steps span {
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.25;
}

/* v259：机器人制作入口按钮跟上方火箭/机器人图标做成同一系列 */
#enterBotMakerBtn.portal-card-bot-maker {
  --portal-card-scene: url("/static/assets/bot-maker-tech-blueprint-v1.webp");
  border-color: rgba(145,246,255,.32);
  background: #090d21;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    inset 0 -14px 22px rgba(5,8,24,.30),
    0 18px 34px rgba(3,8,28,.32);
}
#enterBotMakerBtn.portal-card-bot-maker::before {
  background-image:
    linear-gradient(90deg, rgba(7,10,24,.72), rgba(7,10,24,.30) 46%, rgba(7,10,24,.10)),
    var(--portal-card-scene);
  background-size: auto, cover;
  background-position: center, center 34%;
  filter: saturate(1.12) contrast(1.08);
}
#enterBotMakerBtn.portal-card-bot-maker::after {
  background:
    radial-gradient(circle at 18% 22%, rgba(145,246,255,.30), transparent 28%),
    radial-gradient(circle at 88% 76%, rgba(255,232,137,.24), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.24));
}
#enterBotMakerBtn .role-icon-bot-maker {
  font-size: 0 !important;
  color: transparent;
  border-color: rgba(145,246,255,.60);
  background-image:
    linear-gradient(180deg, rgba(5,8,22,.12), rgba(5,8,22,.34)),
    url("/static/assets/bot-maker-gpt-robot-icon-v1.webp");
  background-size: auto, 162% auto;
  background-position: center, center 45%;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.48),
    inset 0 -10px 18px rgba(5,8,24,.36),
    0 0 22px rgba(145,246,255,.20),
    0 12px 20px rgba(0,0,0,.30);
}
#enterBotMakerBtn .role-icon-bot-maker::before {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 8px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(145,246,255,.95), rgba(255,232,137,.82), transparent);
  box-shadow: 0 0 12px rgba(145,246,255,.52);
  z-index: 1;
}
#enterBotMakerBtn .portal-card-body {
  border-color: rgba(145,246,255,.28);
  background:
    linear-gradient(180deg, rgba(8,12,30,.72), rgba(8,12,30,.44)),
    linear-gradient(90deg, rgba(145,246,255,.10), transparent 54%, rgba(255,232,137,.08));
}
#enterBotMakerBtn .portal-card-body::before {
  content: "";
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(145,246,255,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145,246,255,.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .34;
  filter: none;
  transform: none;
}
#enterBotMakerBtn .portal-card-body::after {
  content: "";
  width: 104px;
  height: 78px;
  inset: auto 4px -10px auto;
  z-index: -1;
  background: url("/static/assets/bot-maker-gpt-robot-icon-v1.webp") center / cover no-repeat;
  opacity: .20;
  filter: saturate(1.2);
}
#enterBotMakerBtn .portal-card-action-bot-maker {
  border-radius: 18px;
  border-color: rgba(145,246,255,.58);
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), transparent),
    url("/static/assets/bot-maker-gpt-rocket-icon-v1.webp") center 44% / 128% auto no-repeat,
    rgba(6,10,24,.82);
  overflow: hidden;
}
#enterBotMakerBtn .portal-card-action-bot-maker::before {
  content: "";
  inset: auto 12px 6px 12px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,232,137,.95), rgba(255,137,53,.16) 70%, transparent);
  filter: blur(2px);
  transform: none;
}
#enterBotMakerBtn .portal-card-action-bot-maker::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(145,246,255,.26);
  border-radius: 14px;
}

/* v260：入口左侧图标改成首页同系列科技机器羊 */
#enterBotMakerBtn .role-icon-bot-maker {
  background-image: url("/static/assets/bot-maker-tech-sheep-series-v1.webp") !important;
  background-size: cover !important;
  background-position: center !important;
  border-color: rgba(255,236,190,.72);
}
#enterBotMakerBtn .role-icon-bot-maker::before {
  content: none !important;
}
#enterBotMakerBtn .portal-card-body::after {
  background: url("/static/assets/bot-maker-tech-sheep-series-v1.webp") center / cover no-repeat;
  opacity: .16;
}


/* v261：机器人制作中心极简版：少解释、少框、只保留 API / 类型 / 要求 */
.bot-maker-panel {
  padding: clamp(10px, 2.8vw, 22px) !important;
  background:
    radial-gradient(circle at 50% -10%, rgba(145,246,255,.24), transparent 34%),
    radial-gradient(circle at 100% 20%, rgba(255,232,137,.14), transparent 28%),
    linear-gradient(180deg, #100b22 0%, #1b1135 58%, #090713 100%) !important;
}
.bot-maker-panel::before { opacity: .18 !important; }
.bot-maker-shell { width: min(860px, 100%) !important; gap: 12px !important; }
.bot-maker-hero { grid-template-columns: 1fr !important; gap: 0 !important; }
.bot-maker-signal-card { display: none !important; }
.bot-maker-id-card {
  min-height: 0 !important;
  padding: 18px !important;
  border-radius: 24px !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.04)),
    rgba(18,9,31,.76) !important;
}
.bot-maker-id-card::after { width: 120px !important; height: 120px !important; right: -44px !important; top: -44px !important; opacity: .7 !important; }
.bot-maker-kicker { font-size: 10px !important; letter-spacing: .13em !important; color: rgba(145,246,255,.82) !important; }
.bot-maker-id-card h2 { margin: 6px 0 0 !important; font-size: clamp(25px, 6vw, 38px) !important; line-height: 1.03 !important; }
.bot-maker-chip-row { margin-top: 12px !important; gap: 7px !important; }
.bot-maker-chip-row span { padding: 6px 9px !important; font-size: 11px !important; background: rgba(145,246,255,.07) !important; }
.bot-maker-grid { grid-template-columns: minmax(0, 1.1fr) minmax(260px, .75fr) !important; gap: 12px !important; margin-top: 12px !important; }
.bot-maker-form,
.bot-maker-result { padding: 14px !important; gap: 10px !important; border-radius: 22px !important; }
.bot-maker-section-label { display: none !important; }
.bot-maker-field { padding: 10px !important; border-radius: 18px !important; background: rgba(8,8,22,.45) !important; }
.bot-maker-field::before,
.bot-maker-field::after { display: none !important; }
.bot-maker-field > span { font-size: 12px !important; color: rgba(255,248,231,.78) !important; }
.bot-maker-field-welcome,
.bot-maker-field-menu,
.bot-maker-field-reply,
.bot-maker-field-persona { display: none !important; }
.bot-maker-form .creation-field input,
.bot-maker-form .creation-field textarea,
.bot-maker-form .creation-field select,
.bot-maker-form input,
.bot-maker-form textarea,
.bot-maker-form select {
  min-height: 44px !important;
  border-radius: 14px !important;
  padding: 12px 13px !important;
  background: rgba(5,8,24,.68) !important;
}
.bot-maker-form textarea { min-height: 78px !important; }
#botMakerGenerateBtn,
.bot-maker-form button {
  min-height: 46px !important;
  border-radius: 16px !important;
  font-size: 15px !important;
  background: linear-gradient(135deg, #ffe889, #d48a38) !important;
}
.bot-maker-result-head { gap: 2px !important; }
.bot-maker-result-head span { display: none !important; }
.bot-maker-result-head strong { font-size: 16px !important; }
.bot-maker-result .creation-output,
.bot-maker-output,
.bot-maker-projects { min-height: 54px !important; border-radius: 16px !important; padding: 12px !important; line-height: 1.45 !important; }
.bot-maker-plan ul { gap: 4px !important; }
.bot-maker-plan li:nth-child(n+4) { display: none !important; }
.bot-maker-project-card { border-radius: 16px !important; padding: 10px !important; }
@media (max-width: 720px) {
  .bot-maker-panel { padding: 10px !important; }
  .bot-maker-grid { grid-template-columns: 1fr !important; }
  .bot-maker-id-card,
  .bot-maker-form,
  .bot-maker-result { border-radius: 22px !important; }
}


/* v262：靓号钱包本地版入口 */
.portal-card-wallet-vanity {
  background:
    radial-gradient(circle at 18% 20%, rgba(87,228,255,.32), transparent 34%),
    radial-gradient(circle at 92% 82%, rgba(99,255,196,.24), transparent 36%),
    linear-gradient(135deg, rgba(7, 55, 76, .96), rgba(10, 104, 84, .84)) !important;
  border-color: rgba(99,255,196,.26) !important;
}
.role-icon-wallet-vanity {
  display: grid;
  place-items: center;
  color: #63ffc4 !important;
  font-size: 34px !important;
  font-weight: 1000;
  text-shadow: 0 0 18px rgba(99,255,196,.55);
  background: radial-gradient(circle at 35% 20%, rgba(99,255,196,.24), transparent 42%), rgba(3, 21, 31, .62) !important;
}
.portal-card-action-wallet-vanity::before { content: "›"; }


/* v266：靓号钱包入口对齐是你的羊功能卡片同系列 */
.portal-card-wallet-vanity {
  --portal-card-scene: url("/static/assets/portal-card-wallet-tron-v1.svg?v=1");
  --portal-action-icon: url("/static/assets/portal-action-wallet-tron-v1.svg?v=1");
  background: #122f2b !important;
  color: #fff8e7 !important;
  border-color: rgba(255, 236, 190, 0.24) !important;
}
.role-icon-wallet-vanity {
  background-image: url("/static/assets/sheep-role-wallet-tron-v1.svg?v=1") !important;
  background-size: cover !important;
  background-position: center !important;
  color: transparent !important;
  font-size: 0 !important;
  text-shadow: none !important;
}
.portal-card-wallet-vanity .portal-card-body {
  background: linear-gradient(180deg, rgba(12, 11, 15, 0.58), rgba(12, 11, 15, 0.34)) !important;
  border-color: rgba(255, 248, 231, 0.24) !important;
}
.portal-card-action-wallet-vanity {
  --portal-action-icon: url("/static/assets/portal-action-wallet-tron-v1.svg?v=1");
  border-radius: 16px !important;
}
.portal-card-action-wallet-vanity::before {
  content: "" !important;
  inset: -7px !important;
  background-image: var(--portal-action-icon) !important;
  background-position: center !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  transform: scale(1.10) !important;
  filter: drop-shadow(0 9px 12px rgba(0,0,0,.42)) !important;
}


/* v272：靓号钱包入口固定世界杯下面第二位，并强化高级玻璃质感 */
.portal-card-worldcup { order: 1; }
.portal-card-wallet-vanity { order: 2; }
.portal-card-game-radar { order: 3; }
.portal-card-bitcoin { order: 4; }
.portal-card-creation { order: 5; }
.portal-card-bot-maker { order: 6; }
.portal-card-service { order: 7; }
.portal-card-wallet-vanity {
  min-height: 138px;
  border: 1px solid rgba(193, 255, 239, .46) !important;
  background: rgba(3, 24, 26, .74) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34),
    inset 0 -28px 48px rgba(0,8,12,.28),
    0 18px 42px rgba(0,0,0,.32),
    0 0 34px rgba(99,255,196,.16) !important;
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
}
.portal-card-wallet-vanity::before {
  opacity: .90 !important;
  filter: saturate(1.18) contrast(1.08) brightness(1.03) !important;
  transform: scale(1.035) !important;
}
.portal-card-wallet-vanity::after {
  background:
    linear-gradient(118deg, rgba(255,255,255,.18), rgba(255,255,255,.045) 34%, rgba(99,255,196,.12) 100%),
    radial-gradient(circle at 16% 18%, rgba(87,228,255,.36), transparent 34%),
    radial-gradient(circle at 88% 76%, rgba(255,211,107,.26), transparent 36%),
    linear-gradient(90deg, rgba(2,13,16,.72), rgba(2,22,22,.38) 52%, rgba(2,13,16,.22)) !important;
}
.portal-card-wallet-vanity .portal-card-body {
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(2,18,22,.42)) !important;
  border: 1px solid rgba(214,255,244,.24) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22) !important;
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
}
.portal-card-wallet-vanity .portal-card-body strong {
  color: #edfff9 !important;
  text-shadow: 0 0 16px rgba(99,255,196,.28);
}
.portal-card-wallet-vanity .portal-card-body small { color: rgba(235,255,249,.78) !important; opacity: 1 !important; }
.portal-card-wallet-vanity .role-icon-wallet-vanity,
.portal-card-wallet-vanity .portal-card-action-wallet-vanity {
  border-color: rgba(193,255,239,.46) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 12px 28px rgba(0,0,0,.30) !important;
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
}
.app[data-mobile-view="landing"] .portal-card-wallet-vanity { min-height: 86px !important; }

/* v230：BTC自动托管动态委托单 + K线实时标记价 */
.bitcoin-kline-price-line {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: var(--price-bottom);
  z-index: 5;
  border-top: 1px dashed rgba(255, 102, 117, 0.66);
  transform: translateY(50%);
  pointer-events: none;
}
.bitcoin-kline-price-line.up { border-top-color: rgba(41, 227, 139, 0.68); }
.bitcoin-kline-price-line b {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff8e7;
  background: rgba(255, 102, 117, 0.92);
  box-shadow: 0 0 18px rgba(255, 102, 117, 0.24);
  font-size: 10px;
  line-height: 1;
  font-weight: 1000;
}
.bitcoin-kline-price-line.up b {
  background: rgba(41, 185, 112, 0.92);
  box-shadow: 0 0 18px rgba(41, 227, 139, 0.24);
}
.bitcoin-candle.live i {
  animation: btcLiveCandlePulse 1.2s ease-in-out infinite;
}
@keyframes btcLiveCandlePulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.45); box-shadow: 0 0 20px currentColor; }
}
.bitcoin-sim-card {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 232, 137, .13), transparent 34%),
    linear-gradient(145deg, rgba(39, 38, 43, .96), rgba(20, 22, 26, .94)) !important;
}
.bitcoin-order-card {
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
    rgba(36, 36, 42, .92) !important;
  border-radius: 22px !important;
}
.bitcoin-order-top span i {
  display: inline-flex;
  margin-right: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #201004;
  background: linear-gradient(180deg, #fff1a6, #e6a42b);
  font-style: normal;
  font-weight: 1000;
}
.bitcoin-order-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.07);
}
.bitcoin-order-main div {
  display: grid;
  gap: 4px;
}
.bitcoin-order-main span,
.bitcoin-order-main small,
.bitcoin-order-main em {
  color: rgba(255,248,231,.66);
  font-size: 11px;
  line-height: 1.15;
  font-weight: 900;
  font-style: normal;
}
.bitcoin-order-main strong {
  color: #fff8e7;
  font-size: clamp(24px, 6vw, 34px) !important;
  line-height: 1 !important;
  font-weight: 1000 !important;
  letter-spacing: -0.04em;
}
.bitcoin-order-main.profit {
  background: linear-gradient(135deg, rgba(41, 227, 139, .18), rgba(255,255,255,.055));
}
.bitcoin-order-main.profit strong,
.bitcoin-order-main.profit em { color: #6ff0a5; }
.bitcoin-order-main.loss {
  background: linear-gradient(135deg, rgba(255, 102, 117, .20), rgba(255,255,255,.055));
}
.bitcoin-order-main.loss strong,
.bitcoin-order-main.loss em { color: #ff8e9c; }
.bitcoin-order-main.even strong,
.bitcoin-order-main.even em { color: #ffe889; }
.bitcoin-sim-buy {
  background: linear-gradient(180deg, #4c96ff, #2f7df0) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 24px rgba(47,125,240,.26), inset 0 1px 0 rgba(255,255,255,.38) !important;
}
@media (max-width: 430px) {
  .bitcoin-order-main { grid-template-columns: 1fr; align-items: start; }
  .bitcoin-order-main em { justify-self: start; }
  .bitcoin-kline-price-line b { font-size: 9px; padding: 3px 6px; }
}

/* v231：5分钟托管周期补齐 */
.bitcoin-timeframes { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
@media (max-width: 760px) {
  .bitcoin-timeframes { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 5px !important; }
  .bitcoin-timeframes button { min-height: 40px !important; padding-inline: 4px !important; font-size: 11px !important; }
}

/* v232：自动托管改到 K线图下方 */
.bitcoin-sim-stage {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: stretch !important;
}
.bitcoin-kline-card {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: grid !important;
  grid-template-rows: auto minmax(220px, 1fr) auto !important;
}
.bitcoin-sim-card-under-chart {
  margin-top: 12px !important;
}
.bitcoin-market-dock {
  grid-column: 1 !important;
  grid-row: 2 !important;
}
.bitcoin-sim-card:not(.bitcoin-sim-card-under-chart) {
  grid-column: auto !important;
  grid-row: auto !important;
}
@media (min-width: 761px) {
  .bitcoin-sim-card-under-chart {
    grid-template-columns: minmax(240px, .42fr) minmax(0, .58fr) !important;
    align-items: start !important;
  }
  .bitcoin-sim-card-under-chart .bitcoin-sim-head,
  .bitcoin-sim-card-under-chart .bitcoin-sim-input,
  .bitcoin-sim-card-under-chart .bitcoin-mode-toggle,
  .bitcoin-sim-card-under-chart .bitcoin-smart-position,
  .bitcoin-sim-card-under-chart .bitcoin-sim-buy {
    grid-column: 1 !important;
  }
  .bitcoin-sim-card-under-chart .bitcoin-sim-pnl-panel {
    grid-column: 2 !important;
    grid-row: 1 / span 5 !important;
    margin-top: 0 !important;
    min-height: 100% !important;
  }
}
@media (max-width: 760px) {
  .bitcoin-kline-card { order: 1 !important; }
  .bitcoin-market-dock { order: 2 !important; }
  .bitcoin-sim-card-under-chart { order: initial !important; margin-top: 10px !important; }
}


/* v233：智能学习升级模块 */
.bitcoin-learning-upgrade {
  display: grid;
  gap: 9px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(98, 255, 186, .30);
  background:
    radial-gradient(circle at 15% 0%, rgba(98,255,186,.18), transparent 42%),
    linear-gradient(145deg, rgba(11, 45, 35, .86), rgba(12, 17, 21, .92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 12px 26px rgba(0,0,0,.20);
}
.bitcoin-learning-title,
.bitcoin-learning-upgrade > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.bitcoin-learning-title span,
.bitcoin-learning-upgrade > div:first-child span {
  color: rgba(223, 255, 239, .72);
  font-size: 11px;
  font-weight: 950;
}
.bitcoin-learning-title strong,
.bitcoin-learning-upgrade > div:first-child strong {
  color: #8dffbf;
  font-size: 14px;
  font-weight: 1000;
}
.bitcoin-learning-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.08);
}
.bitcoin-learning-meter i {
  display: block;
  height: 100%;
  width: 8%;
  border-radius: inherit;
  background: linear-gradient(90deg, #32dd8d, #ffe26d);
  box-shadow: 0 0 18px rgba(50,221,141,.36);
}
.bitcoin-learning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.bitcoin-learning-grid small,
.bitcoin-learning-upgrade > small {
  display: block;
  padding: 7px 8px;
  border-radius: 12px;
  color: rgba(255, 250, 231, .82);
  background: rgba(255,255,255,.075);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}
.bitcoin-learning-upgrade p,
.bitcoin-learning-upgrade em {
  margin: 0;
  color: rgba(255, 250, 231, .74);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 850;
  font-style: normal;
}
.bitcoin-learning-upgrade p { color: #fff0a3; }
.bitcoin-sim-card-under-chart .bitcoin-learning-upgrade { grid-column: 1 !important; }
@media (max-width: 760px) {
  .bitcoin-learning-grid { grid-template-columns: 1fr 1fr; }
  .bitcoin-sim-card-under-chart .bitcoin-learning-upgrade { grid-column: auto !important; }
}

/* v282：客服、机器人制作、AI创作、靓号钱包合并到一个二级工具中心 */
.portal-card-tools-hub {
  --portal-card-scene: url("/static/assets/portal-card-creation-3d-v1.png");
  background: #28203b;
  border-color: rgba(255, 226, 143, .42);
}

.portal-card-tools-hub::after {
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 226, 143, .26), transparent 30%),
    linear-gradient(90deg, rgba(24, 12, 35, .74), rgba(48, 25, 61, .38) 50%, rgba(20, 12, 30, .20));
}

.role-icon-tools-hub {
  color: #fff0b4 !important;
  background: linear-gradient(145deg, rgba(255, 226, 143, .24), rgba(88, 48, 116, .52)) !important;
  border: 1px solid rgba(255, 236, 181, .50) !important;
  font-size: 23px !important;
  letter-spacing: -.04em;
}

.role-icon-tools-hub::before,
.role-icon-tools-hub::after {
  content: none !important;
}

.portal-card-action-tools-hub {
  border-radius: 20px;
  border-color: rgba(255, 236, 181, .52);
}

.portal-card-action-tools-hub::before {
  content: "✦";
  inset: 0;
  display: grid;
  place-items: center;
  background: none;
  color: #ffe889;
  font-size: 34px;
  line-height: 1;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .44));
}

.tools-hub-panel {
  min-height: 100vh;
  padding: clamp(18px, 4vw, 46px);
  overflow: hidden auto;
  color: #fff8e7;
  background:
    radial-gradient(circle at 50% -8%, rgba(255, 226, 143, .20), transparent 34%),
    linear-gradient(145deg, #35162f 0%, #643154 48%, #1b1629 100%);
}

.tools-hub-shell {
  width: min(980px, 100%);
  min-height: calc(100vh - clamp(36px, 8vw, 92px));
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(255, 236, 246, .22);
  border-radius: 34px;
  display: grid;
  align-content: center;
  gap: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)),
    rgba(31, 16, 40, .58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 24px 56px rgba(14, 5, 20, .34);
}

.tools-hub-back {
  justify-self: start;
}

.tools-hub-hero {
  padding: 20px 22px;
  border: 1px solid rgba(255, 236, 181, .24);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 226, 143, .14), rgba(121, 58, 101, .32));
}

.tools-hub-hero span {
  color: #ffe889;
  font-size: 12px;
  font-weight: 950;
}

.tools-hub-hero h2 {
  margin: 6px 0 0;
  color: #fff8e7;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.tools-hub-hero p {
  margin: 8px 0 0;
  color: rgba(255, 248, 231, .76);
  font-size: 14px;
  font-weight: 800;
}

.tools-hub-grid #enterCustomerBtn { order: 1 !important; }
.tools-hub-grid #enterBotMakerBtn { order: 2 !important; }
.tools-hub-grid #enterCreationBtn { order: 3 !important; }
.tools-hub-grid #enterWalletVanityBtn { order: 4 !important; }
.tools-hub-grid #enterCustomerBtn.portal-card-service { display: grid !important; }

@media (max-width: 520px) {
  .app[data-mobile-view="landing"] .portal-grid {
    grid-template-rows: repeat(4, minmax(104px, 1fr));
  }

  .app[data-mobile-view="tools-hub"] {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden auto !important;
  }

  .tools-hub-panel {
    width: 100vw;
    min-height: 100dvh;
    padding: 0;
  }

  .tools-hub-shell {
    width: 100%;
    min-height: 100dvh;
    padding: max(14px, env(safe-area-inset-top)) 10px max(18px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    align-content: start;
    gap: 12px;
    box-shadow: none;
  }

  .tools-hub-hero {
    padding: 14px 15px;
    border-radius: 22px;
  }

  .tools-hub-hero h2 { font-size: 28px; }
  .tools-hub-hero p { font-size: 12px; }

  .tools-hub-grid {
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, minmax(104px, auto));
    gap: 10px;
  }

  .tools-hub-grid .portal-card {
    min-height: 104px;
  }

  .app[data-mobile-view="tools-hub"] #enterCustomerBtn.portal-card-service {
    min-height: 104px !important;
  }
}

/* v283：主页与工具中心延续开场保时捷画面，去掉紫色底 */
body {
  background: #0b0c0e;
}

.portal-screen,
.tools-hub-panel {
  background:
    linear-gradient(180deg, rgba(5, 6, 8, .28) 0%, rgba(8, 9, 11, .48) 52%, rgba(7, 8, 10, .76) 100%),
    radial-gradient(circle at 82% 32%, rgba(224, 177, 141, .18), transparent 34%),
    url("/static/assets/splash/sheep-opening-v1-poster.jpg?v=283") center top / cover no-repeat;
  background-color: #0b0c0e;
  background-attachment: fixed;
}

.portal-shell,
.tools-hub-shell {
  border-color: rgba(224, 232, 236, .22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .095), rgba(255, 255, 255, .025)),
    rgba(8, 10, 13, .58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .20),
    inset 0 -26px 44px rgba(0, 0, 0, .30),
    0 24px 60px rgba(0, 0, 0, .42);
  backdrop-filter: blur(15px) saturate(.88);
  -webkit-backdrop-filter: blur(15px) saturate(.88);
}

.portal-hero,
.tools-hub-hero {
  border-color: rgba(225, 232, 236, .24);
  background:
    radial-gradient(circle at 88% 18%, rgba(224, 177, 141, .17), transparent 34%),
    linear-gradient(145deg, rgba(20, 23, 28, .68), rgba(8, 10, 13, .48));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 18px 34px rgba(0, 0, 0, .28);
}

.portal-kicker,
.tools-hub-hero span {
  color: #f1d1b7;
  border-color: rgba(226, 190, 159, .34);
}

.portal-hero h1,
.tools-hub-hero h2 {
  color: #f4f5f4;
  text-shadow: 0 6px 24px rgba(0, 0, 0, .58);
}

.portal-hero p,
.tools-hub-hero p {
  color: rgba(236, 239, 240, .76);
}

.portal-card-tools-hub {
  --portal-card-scene: url("/static/assets/splash/sheep-opening-v1-poster.jpg?v=283");
  background: #101318;
  border-color: rgba(224, 232, 236, .38);
}

.portal-card-tools-hub::before {
  background-position: center 56%;
  filter: saturate(.72) contrast(1.05) brightness(.82);
}

.portal-card-tools-hub::after {
  background:
    linear-gradient(90deg, rgba(5, 7, 9, .78), rgba(10, 13, 17, .42) 54%, rgba(12, 14, 17, .16)),
    radial-gradient(circle at 82% 20%, rgba(224, 177, 141, .16), transparent 30%);
}

.role-icon-tools-hub {
  color: #eef2f3 !important;
  background: linear-gradient(145deg, rgba(226, 232, 235, .22), rgba(33, 40, 48, .62)) !important;
  border-color: rgba(226, 232, 235, .48) !important;
}

.portal-card-action-tools-hub {
  border-color: rgba(226, 232, 235, .48);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(0, 0, 0, .30)),
    rgba(16, 20, 25, .78);
}

.portal-card-action-tools-hub::before {
  color: #edc5a6;
}

@media (max-width: 520px) {
  .portal-screen,
  .tools-hub-panel {
    background:
      linear-gradient(180deg, rgba(5, 6, 8, .20) 0%, rgba(8, 9, 11, .46) 56%, rgba(7, 8, 10, .78) 100%),
      url("/static/assets/splash/sheep-opening-v1-poster.jpg?v=283") center top / cover no-repeat !important;
    background-color: #0b0c0e !important;
    background-attachment: scroll !important;
  }

  .portal-shell,
  .tools-hub-shell {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)),
      rgba(7, 9, 12, .36) !important;
    backdrop-filter: blur(9px) saturate(.90);
    -webkit-backdrop-filter: blur(9px) saturate(.90);
  }

  .portal-hero,
  .tools-hub-hero {
    background:
      radial-gradient(circle at 88% 18%, rgba(224, 177, 141, .14), transparent 34%),
      linear-gradient(145deg, rgba(18, 21, 25, .70), rgba(7, 9, 12, .52)) !important;
  }
}
.portal-card-gold-forex {
  background: linear-gradient(105deg, rgba(28, 22, 13, .94), rgba(109, 75, 20, .58)), url('/static/assets/splash/sheep-opening-v1-poster.jpg?v=283') center 62% / cover;
  border-color: rgba(238, 195, 101, .65);
}
.role-icon-gold-forex {
  background: url("/static/assets/gold-forex-evolution-sheep-v3.png?v=286") center / cover no-repeat;
  box-shadow: 0 0 18px rgba(239, 197, 107, .35);
}


/* v281：合约常用区置顶，其他功能默认折叠 */
#enterWorldCupBtn[hidden] {
  display: none !important;
}

.portal-grid-primary,
.function-grid-primary {
  margin-bottom: 10px !important;
}
.portal-grid-primary .portal-card-bitcoin,
#functionPortal .function-grid-primary .function-card.bitcoin {
  order: 0 !important;
}
.portal-more-features,
.function-more-features,
.bitcoin-more-analysis-fold {
  margin-top: 12px;
  border: 1px solid rgba(255, 232, 137, .28);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(16, 18, 22, .72), rgba(6, 12, 14, .54));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 14px 30px rgba(0,0,0,.20);
  overflow: hidden;
}
.portal-more-features > summary,
.function-more-features > summary,
.bitcoin-more-analysis-fold > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 50px;
  padding: 13px 16px;
  color: #fff0a3;
  font-weight: 1000;
  user-select: none;
}
.portal-more-features > summary::-webkit-details-marker,
.function-more-features > summary::-webkit-details-marker,
.bitcoin-more-analysis-fold > summary::-webkit-details-marker { display: none; }
.portal-more-features > summary span,
.function-more-features > summary span,
.bitcoin-more-analysis-fold > summary span {
  color: rgba(255, 250, 231, .72);
  font-size: 12px;
  font-weight: 950;
}
.portal-more-features > summary strong,
.function-more-features > summary strong,
.bitcoin-more-analysis-fold > summary strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffe889;
  font-size: 13px;
}
.portal-more-features > summary strong::after,
.function-more-features > summary strong::after,
.bitcoin-more-analysis-fold > summary strong::after {
  content: "⌄";
  font-size: 16px;
  transition: transform .18s ease;
}
.portal-more-features[open] > summary strong::after,
.function-more-features[open] > summary strong::after,
.bitcoin-more-analysis-fold[open] > summary strong::after { transform: rotate(180deg); }
.portal-grid-secondary,
.function-grid-secondary {
  padding: 0 12px 12px !important;
}
.portal-more-features .entry-game-reco,
.function-more-features .entry-game-reco {
  margin: 0 12px 12px !important;
}
.bitcoin-more-analysis-body {
  padding: 0 12px 12px;
}
.bitcoin-more-analysis-body .bitcoin-layout {
  margin-top: 0 !important;
}
@media (max-width: 760px) {
  .portal-more-features,
  .function-more-features,
  .bitcoin-more-analysis-fold { border-radius: 20px; margin-top: 10px; }
  .portal-more-features > summary,
  .function-more-features > summary,
  .bitcoin-more-analysis-fold > summary { min-height: 46px; padding: 11px 13px; }
  .portal-grid-secondary,
  .function-grid-secondary { padding: 0 10px 10px !important; }
  .bitcoin-more-analysis-body { padding: 0 10px 10px; }
}

/* v288：BTC智能管家资金池、实时复盘和不足点 */
.bitcoin-steward-lessons {
  margin-top: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(84, 214, 255, .28);
  background: linear-gradient(145deg, rgba(8, 25, 34, .82), rgba(8, 10, 18, .72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 30px rgba(0,0,0,.22);
  color: rgba(245, 252, 255, .92);
}
.bitcoin-steward-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.bitcoin-steward-title span,
.bitcoin-steward-subtitle {
  color: #84eaff;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .04em;
}
.bitcoin-steward-title strong {
  color: #fff6b8;
  font-size: 13px;
  text-align: right;
}
.bitcoin-steward-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.bitcoin-steward-grid small {
  padding: 8px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: rgba(244, 252, 255, .84);
  font-size: 11px;
  line-height: 1.35;
}
.bitcoin-steward-lessons ul {
  margin: 7px 0 10px;
  padding-left: 18px;
}
.bitcoin-steward-lessons li {
  margin: 4px 0;
  color: rgba(245, 252, 255, .86);
  font-size: 12px;
  line-height: 1.42;
}
.bitcoin-steward-lessons em {
  display: block;
  color: rgba(255, 214, 118, .78);
  font-size: 11px;
  font-style: normal;
  line-height: 1.4;
}
.bitcoin-sim-card-under-chart .bitcoin-steward-lessons { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .bitcoin-steward-grid { grid-template-columns: 1fr; }
}

/* v293：BTC 智能管家交易所 API 白名单入口（K线图下方） */
.bitcoin-exchange-access {
  margin: 8px 0 10px !important;
  padding: 11px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255, 232, 137, 0.18) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 184, 56, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)),
    rgba(8, 24, 22, 0.80) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 10px 26px rgba(0,0,0,0.18) !important;
  color: #fff8e7 !important;
}
.bitcoin-exchange-access.locked {
  border-color: rgba(255, 95, 87, 0.20) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 95, 87, 0.16), transparent 32%),
    rgba(14, 20, 22, 0.82) !important;
}
.bitcoin-exchange-access.allowed {
  border-color: rgba(98, 226, 143, 0.34) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(98, 226, 143, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(255,232,137,0.11), rgba(255,255,255,0.035)),
    rgba(6, 30, 24, 0.86) !important;
}
.bitcoin-exchange-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 7px !important;
}
.bitcoin-exchange-head div {
  display: grid !important;
  gap: 3px !important;
}
.bitcoin-exchange-head span {
  color: rgba(255,248,231,0.62) !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
}
.bitcoin-exchange-head strong {
  color: #fff8e7 !important;
  font-size: 14px !important;
  font-weight: 1000 !important;
  line-height: 1.1 !important;
}
.bitcoin-exchange-head b {
  flex: none !important;
  padding: 5px 8px !important;
  border-radius: 999px !important;
  color: #211407 !important;
  background: linear-gradient(180deg, #ffe889, #d89a22) !important;
  font-size: 10px !important;
  font-weight: 1000 !important;
  letter-spacing: 0.04em !important;
}
.bitcoin-exchange-access.locked .bitcoin-exchange-head b {
  color: #fff8e7 !important;
  background: rgba(255, 95, 87, 0.24) !important;
  border: 1px solid rgba(255, 95, 87, 0.28) !important;
}
.bitcoin-exchange-access p,
.bitcoin-exchange-access small {
  margin: 0 !important;
  color: rgba(255,248,231,0.74) !important;
  font-size: 11px !important;
  line-height: 1.55 !important;
  font-weight: 850 !important;
}
.bitcoin-exchange-access small {
  display: block !important;
  margin-top: 7px !important;
  color: rgba(255,248,231,0.58) !important;
}
.bitcoin-exchange-status {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin: 8px 0 !important;
  padding: 7px 8px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(98, 226, 143, 0.18) !important;
  background: rgba(98, 226, 143, 0.08) !important;
}
.bitcoin-exchange-status span {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: rgba(255,248,231,0.82) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}
.bitcoin-exchange-status b {
  flex: none !important;
  color: #62e28f !important;
  font-size: 10px !important;
  font-weight: 1000 !important;
}
.bitcoin-exchange-form {
  display: grid !important;
  gap: 7px !important;
  margin-top: 8px !important;
}
.bitcoin-exchange-form input[type="password"] {
  width: 100% !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(255, 232, 137, 0.18) !important;
  border-radius: 12px !important;
  background: rgba(0, 0, 0, 0.26) !important;
  color: #fff8e7 !important;
  padding: 9px 10px !important;
  outline: none !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}
.bitcoin-exchange-form input[type="password"]::placeholder {
  color: rgba(255,248,231,0.42) !important;
}
.bitcoin-exchange-check {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  color: rgba(255,248,231,0.70) !important;
  font-size: 11px !important;
  font-weight: 850 !important;
}
.bitcoin-exchange-form button {
  width: 100% !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 10px 12px !important;
  color: #211407 !important;
  background: linear-gradient(180deg, #ffe889, #d89a22) !important;
  font-size: 13px !important;
  font-weight: 1000 !important;
  box-shadow: 0 10px 24px rgba(216,154,34,0.22) !important;
}
.bitcoin-exchange-form button:disabled {
  opacity: .68 !important;
  cursor: wait !important;
}

/* v294：交易所实盘交易看板：真实持仓、委托、盈亏、近7天记录 */
.bitcoin-exchange-select {
  display: grid !important;
  gap: 5px !important;
  margin: 6px 0 8px !important;
}
.bitcoin-exchange-select span {
  color: rgba(255,248,231,0.62) !important;
  font-size: 10px !important;
  font-weight: 950 !important;
}
.bitcoin-exchange-select select {
  width: 100% !important;
  border: 1px solid rgba(255,232,137,.20) !important;
  border-radius: 12px !important;
  background: rgba(0,0,0,.30) !important;
  color: #fff8e7 !important;
  padding: 9px 10px !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  outline: none !important;
}
.bitcoin-exchange-live-board {
  margin: 8px 0 10px !important;
  padding: 11px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(98,226,143,.26) !important;
  background:
    radial-gradient(circle at 12% 8%, rgba(98,226,143,.16), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(255,232,137,.12), transparent 28%),
    rgba(5, 21, 20, .86) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.11), 0 12px 30px rgba(0,0,0,.18) !important;
  color: #fff8e7 !important;
}
.bitcoin-exchange-live-board.locked {
  border-color: rgba(255,232,137,.13) !important;
  background: rgba(8, 18, 20, .78) !important;
}
.bitcoin-exchange-live-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 9px !important;
}
.bitcoin-exchange-live-head div {
  display: grid !important;
  gap: 3px !important;
}
.bitcoin-exchange-live-head span {
  color: #62e28f !important;
  font-size: 10px !important;
  font-weight: 1000 !important;
  letter-spacing: .08em !important;
}
.bitcoin-exchange-live-head strong {
  color: #fff8e7 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  font-weight: 1000 !important;
}
.bitcoin-exchange-live-head b {
  flex: none !important;
  color: rgba(255,248,231,.62) !important;
  font-size: 10px !important;
  font-weight: 850 !important;
}
.bitcoin-exchange-live-empty {
  display: grid !important;
  gap: 5px !important;
  padding: 9px !important;
  border-radius: 14px !important;
  border: 1px dashed rgba(255,232,137,.18) !important;
  background: rgba(0,0,0,.18) !important;
}
.bitcoin-exchange-live-empty.compact { padding: 8px !important; }
.bitcoin-exchange-live-empty strong {
  color: #ffe889 !important;
  font-size: 13px !important;
  font-weight: 1000 !important;
}
.bitcoin-exchange-live-empty span {
  color: rgba(255,248,231,.66) !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
  font-weight: 850 !important;
}
.bitcoin-exchange-live-cards {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
  margin-bottom: 9px !important;
}
.bitcoin-exchange-live-cards article {
  min-height: 54px !important;
  display: grid !important;
  align-content: center !important;
  gap: 4px !important;
  padding: 8px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,232,137,.14) !important;
  background: rgba(0,0,0,.20) !important;
}
.bitcoin-exchange-live-cards span {
  color: rgba(255,248,231,.60) !important;
  font-size: 10px !important;
  font-weight: 950 !important;
}
.bitcoin-exchange-live-cards strong {
  color: #fff8e7 !important;
  font-size: clamp(15px, 4.2vw, 21px) !important;
  font-weight: 1000 !important;
  letter-spacing: -.04em !important;
}
.bitcoin-exchange-live-cards article.profit strong,
.bitcoin-exchange-position.profit b,
.bitcoin-exchange-record.profit b { color: #62e28f !important; }
.bitcoin-exchange-live-cards article.loss strong,
.bitcoin-exchange-position.loss b,
.bitcoin-exchange-record.loss b { color: #ff655f !important; }
.bitcoin-live-order-entry {
  margin-top: 8px !important;
  padding: 9px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(98, 226, 143, .22) !important;
  background: rgba(0, 0, 0, .20) !important;
}
.bitcoin-live-order-entry.locked {
  border-color: rgba(255, 232, 137, .15) !important;
}
.bitcoin-live-order-entry-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
}
.bitcoin-live-order-entry-head div {
  display: grid !important;
  gap: 2px !important;
}
.bitcoin-live-order-entry-head span {
  color: #62e28f !important;
  font-size: 10px !important;
  font-weight: 1000 !important;
}
.bitcoin-live-order-entry-head strong {
  color: #fff8e7 !important;
  font-size: 12px !important;
  font-weight: 1000 !important;
}
.bitcoin-live-order-entry-head b {
  flex: none !important;
  padding: 4px 7px !important;
  border-radius: 999px !important;
  color: #092016 !important;
  background: #62e28f !important;
  font-size: 9px !important;
  font-weight: 1000 !important;
}
.bitcoin-live-order-entry.locked .bitcoin-live-order-entry-head b {
  color: #2c1d07 !important;
  background: #ffe889 !important;
}
.bitcoin-live-order-form {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
}
.bitcoin-live-order-form label {
  display: grid !important;
  gap: 4px !important;
  min-width: 0 !important;
}
.bitcoin-live-order-form label span,
.bitcoin-live-order-entry small {
  color: rgba(255, 248, 231, .62) !important;
  font-size: 10px !important;
  line-height: 1.4 !important;
  font-weight: 900 !important;
}
.bitcoin-live-order-form input,
.bitcoin-live-order-form select {
  width: 100% !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(255, 232, 137, .17) !important;
  border-radius: 10px !important;
  background: rgba(0, 0, 0, .30) !important;
  color: #fff8e7 !important;
  padding: 8px !important;
  outline: none !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}
.bitcoin-live-order-form button {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 10px !important;
  color: #092016 !important;
  background: linear-gradient(180deg, #7cf0a5, #40bd70) !important;
  font-size: 12px !important;
  font-weight: 1000 !important;
}
.bitcoin-live-order-form button:disabled {
  opacity: .6 !important;
}
.bitcoin-live-order-entry small {
  display: block !important;
  margin-top: 7px !important;
}
.bitcoin-exchange-live-section,
.bitcoin-exchange-live-fold {
  margin-top: 8px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,232,137,.12) !important;
  background: rgba(0,0,0,.16) !important;
  overflow: hidden !important;
}
.bitcoin-exchange-live-section h4,
.bitcoin-exchange-live-fold > summary {
  margin: 0 !important;
  list-style: none !important;
  padding: 8px 9px !important;
  color: rgba(255,248,231,.80) !important;
  font-size: 11px !important;
  font-weight: 1000 !important;
  cursor: pointer !important;
}
.bitcoin-exchange-live-fold > summary::-webkit-details-marker { display: none !important; }
.bitcoin-exchange-position-list,
.bitcoin-exchange-pending-list,
.bitcoin-exchange-record-list {
  display: grid !important;
  gap: 6px !important;
  padding: 0 8px 8px !important;
}
.bitcoin-exchange-record-list {
  max-height: 220px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}
.bitcoin-exchange-position,
.bitcoin-exchange-pending,
.bitcoin-exchange-record {
  display: grid !important;
  gap: 4px !important;
  padding: 8px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  background: rgba(255,255,255,.045) !important;
}
.bitcoin-exchange-position { grid-template-columns: minmax(0,1fr) auto !important; align-items: center !important; }
.bitcoin-exchange-position small { grid-column: 1 / -1 !important; }
.bitcoin-exchange-position div,
.bitcoin-exchange-record div {
  display: flex !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-width: 0 !important;
}
.bitcoin-exchange-position strong,
.bitcoin-exchange-pending strong,
.bitcoin-exchange-record strong {
  color: #fff8e7 !important;
  font-size: 12px !important;
  font-weight: 1000 !important;
}
.bitcoin-exchange-position span,
.bitcoin-exchange-pending span,
.bitcoin-exchange-record span,
.bitcoin-exchange-position small {
  color: rgba(255,248,231,.62) !important;
  font-size: 10px !important;
  line-height: 1.45 !important;
  font-weight: 850 !important;
}
.bitcoin-exchange-position b,
.bitcoin-exchange-record b {
  flex: none !important;
  color: #fff8e7 !important;
  font-size: 12px !important;
  font-weight: 1000 !important;
}
.bitcoin-exchange-pending.empty,
.bitcoin-exchange-record.empty {
  border-style: dashed !important;
  opacity: .82 !important;
}
@media (max-width: 430px) {
  .bitcoin-exchange-live-cards { grid-template-columns: 1fr 1fr !important; gap: 5px !important; }
  .bitcoin-exchange-live-cards article { min-height: 48px !important; padding: 7px !important; }
  .bitcoin-exchange-record-list { max-height: 190px !important; }
}

/* v295：BTC 合约页清理版：K线 → 三价格 → 当前实时单 → 记录 → 折叠智能体/API */
.bitcoin-more-analysis-fold {
  display: none !important;
}
.bitcoin-sim-stage {
  display: block !important;
  width: min(980px, calc(100vw - 8px)) !important;
  margin: 0 auto 12px !important;
}
.bitcoin-kline-card {
  display: grid !important;
  grid-template-rows: auto minmax(230px, 36dvh) auto auto !important;
  gap: 8px !important;
  padding: 10px !important;
  border-radius: 22px !important;
  min-height: 0 !important;
}
.bitcoin-kline-head {
  min-height: 34px !important;
  align-items: center !important;
}
.bitcoin-kline-head span {
  font-size: 10px !important;
  letter-spacing: .08em !important;
  color: rgba(255,248,231,.62) !important;
}
.bitcoin-kline-head strong {
  margin-top: 1px !important;
  font-size: clamp(22px, 6vw, 34px) !important;
}
.bitcoin-kline-head small { display: none !important; }
.bitcoin-kline-chart {
  height: auto !important;
  min-height: 230px !important;
  border-radius: 18px !important;
  padding-bottom: 16px !important;
}
.bitcoin-market-dock.btc-clean-price-strip,
.btc-clean-price-strip {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.btc-clean-price-strip .bitcoin-market-row,
.btc-clean-price-strip article {
  min-height: 48px !important;
  display: grid !important;
  align-content: center !important;
  justify-items: center !important;
  gap: 4px !important;
  padding: 7px 5px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,232,137,.18) !important;
  background: rgba(0,0,0,.22) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10) !important;
}
.btc-clean-price-strip .bitcoin-market-row.is-main,
.btc-clean-price-strip article:first-child {
  border-color: rgba(98,226,143,.36) !important;
  background: linear-gradient(180deg, rgba(98,226,143,.16), rgba(0,0,0,.18)) !important;
}
.btc-clean-price-strip span {
  color: rgba(255,248,231,.62) !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}
.btc-clean-price-strip strong {
  max-width: 100% !important;
  color: #ffe889 !important;
  font-size: clamp(12px, 3.5vw, 18px) !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
  letter-spacing: -.04em !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.btc-clean-trader-card,
.bitcoin-sim-card-under-chart.btc-clean-trader-card {
  margin-top: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  padding: 10px !important;
  border-radius: 18px !important;
  background: rgba(13, 15, 18, .92) !important;
  border-color: rgba(255,232,137,.16) !important;
}
.btc-clean-trader-card .bitcoin-sim-head {
  align-items: center !important;
}
.btc-clean-trader-card .bitcoin-sim-head span { font-size: 10px !important; }
.btc-clean-trader-card .bitcoin-sim-head strong { font-size: 17px !important; margin-top: 1px !important; }
.btc-clean-trader-card .bitcoin-sim-head b {
  min-height: 26px !important;
  min-width: 58px !important;
  padding: 5px 8px !important;
  font-size: 10px !important;
}
.btc-clean-trader-card .bitcoin-sim-input,
.btc-clean-trader-card .bitcoin-mode-toggle,
.btc-clean-trader-card .bitcoin-sim-buy,
.btc-clean-trader-card .bitcoin-sim-pnl-panel,
.btc-clean-trader-card .btc-clean-fold {
  grid-column: 1 !important;
  grid-row: auto !important;
}
.btc-clean-trader-card .bitcoin-sim-input {
  gap: 4px !important;
}
.btc-clean-trader-card .bitcoin-sim-input span { font-size: 10px !important; }
.btc-clean-trader-card .bitcoin-sim-input input {
  min-height: 42px !important;
  border-radius: 13px !important;
  font-size: 18px !important;
}
.btc-clean-trader-card .bitcoin-mode-toggle {
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  border-radius: 14px !important;
  padding: 4px !important;
}
.btc-clean-trader-card .bitcoin-mode-toggle button {
  min-height: 36px !important;
  border-radius: 11px !important;
  font-size: 12px !important;
}
.btc-clean-trader-card .bitcoin-sim-buy {
  min-height: 44px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
}
.btc-clean-live-order {
  margin-top: 0 !important;
  padding: 9px !important;
  border-radius: 16px !important;
  background: rgba(0, 11, 10, .44) !important;
}
.btc-clean-live-order .bitcoin-sim-pnl-head strong {
  color: #fff8e7 !important;
  font-size: 13px !important;
}
.btc-clean-live-order .bitcoin-sim-pnl-head span {
  color: rgba(255,248,231,.50) !important;
  font-size: 10px !important;
}
.btc-clean-current-order {
  padding: 9px !important;
  border-radius: 16px !important;
}
.btc-clean-current-order .bitcoin-order-top span {
  font-size: 10px !important;
  line-height: 1.35 !important;
}
.btc-clean-current-order .bitcoin-order-top b {
  min-width: 42px !important;
  min-height: 28px !important;
  font-size: 11px !important;
  padding: 5px 7px !important;
}
.btc-clean-current-order .bitcoin-order-main {
  padding: 10px !important;
  border-radius: 15px !important;
}
.btc-clean-current-order .bitcoin-order-main strong {
  font-size: clamp(28px, 9vw, 44px) !important;
}
.btc-clean-order-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 5px !important;
}
.btc-clean-order-grid small {
  min-height: 24px !important;
  padding: 6px 7px !important;
  font-size: 10px !important;
}
.btc-clean-history-fold,
.btc-clean-fold {
  border: 1px solid rgba(255,232,137,.14) !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.035) !important;
  overflow: hidden !important;
}
.btc-clean-history-fold > summary,
.btc-clean-fold > summary {
  list-style: none !important;
  cursor: pointer !important;
  min-height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 9px 10px !important;
  color: #ffe889 !important;
  font-size: 12px !important;
  font-weight: 1000 !important;
}
.btc-clean-history-fold > summary::-webkit-details-marker,
.btc-clean-fold > summary::-webkit-details-marker { display: none !important; }
.btc-clean-fold > summary span { color: rgba(255,248,231,.78) !important; }
.btc-clean-fold > summary strong { color: #ffe889 !important; font-size: 11px !important; }
.btc-clean-fold-body {
  display: grid !important;
  gap: 8px !important;
  padding: 0 8px 8px !important;
}
.btc-clean-record-list {
  display: grid !important;
  gap: 6px !important;
  max-height: 230px !important;
  overflow-y: auto !important;
  padding: 0 8px 8px !important;
  overscroll-behavior: contain !important;
}
.btc-clean-record {
  display: grid !important;
  gap: 4px !important;
  padding: 8px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  background: rgba(255,255,255,.045) !important;
}
.btc-clean-record div {
  display: flex !important;
  justify-content: space-between !important;
  gap: 8px !important;
}
.btc-clean-record strong,
.btc-clean-record b {
  color: #fff8e7 !important;
  font-size: 11px !important;
  font-weight: 1000 !important;
}
.btc-clean-record span {
  color: rgba(255,248,231,.58) !important;
  font-size: 10px !important;
  line-height: 1.4 !important;
  font-weight: 850 !important;
}
.btc-clean-record.profit b { color: #62e28f !important; }
.btc-clean-record.loss b { color: #ff655f !important; }
.btc-clean-no-order {
  border-radius: 14px !important;
  background: rgba(255,255,255,.045) !important;
}
.btc-clean-agent-grid small {
  min-height: 26px !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
}
.btc-clean-ai-fold .bitcoin-smart-position,
.btc-clean-ai-fold .bitcoin-learning-upgrade,
.btc-clean-ai-fold .bitcoin-steward-lessons,
.btc-clean-api-fold .bitcoin-exchange-access,
.btc-clean-api-fold .bitcoin-exchange-live-board {
  margin: 0 !important;
}
@media (min-width: 761px) {
  .btc-clean-trader-card {
    grid-template-columns: 220px minmax(0,1fr) !important;
    align-items: start !important;
  }
  .btc-clean-trader-card .bitcoin-sim-head,
  .btc-clean-trader-card .bitcoin-sim-input,
  .btc-clean-trader-card .bitcoin-mode-toggle,
  .btc-clean-trader-card .bitcoin-sim-buy {
    grid-column: 1 !important;
  }
  .btc-clean-live-order {
    grid-column: 2 !important;
    grid-row: 1 / span 4 !important;
    min-height: 100% !important;
  }
  .btc-clean-trader-card .btc-clean-fold {
    grid-column: 1 / -1 !important;
  }
}
@media (max-width: 430px) {
  .bitcoin-sim-stage { width: calc(100vw - 4px) !important; }
  .bitcoin-kline-card { padding: 8px !important; border-radius: 18px !important; grid-template-rows: auto minmax(215px, 34dvh) auto auto !important; }
  .bitcoin-kline-chart { min-height: 215px !important; }
  .btc-clean-price-strip { gap: 4px !important; }
  .btc-clean-price-strip .bitcoin-market-row { min-height: 44px !important; padding-inline: 4px !important; }
  .btc-clean-price-strip strong { font-size: clamp(11px, 3.2vw, 15px) !important; }
  .btc-clean-order-grid { grid-template-columns: 1fr 1fr !important; }
  .btc-clean-record div { display: grid !important; gap: 3px !important; }
}

/* v295b：强制清理版 BTC 顺序：K线在三价格之前 */
.bitcoin-kline-card > .bitcoin-kline-head { grid-row: 1 !important; grid-column: 1 !important; }
.bitcoin-kline-card > .bitcoin-kline-chart { grid-row: 2 !important; grid-column: 1 !important; }
.bitcoin-kline-card > .btc-clean-price-strip { grid-row: 3 !important; grid-column: 1 !important; order: 0 !important; }
.bitcoin-kline-card > .btc-clean-trader-card { grid-row: 4 !important; grid-column: 1 !important; order: 0 !important; }

/* v295c：手机端把当前实时单放到控制区前面，价格下面立刻看到盈亏 */
@media (max-width: 760px) {
  .btc-clean-trader-card .bitcoin-sim-head { order: 1 !important; }
  .btc-clean-trader-card .btc-clean-live-order { order: 2 !important; }
  .btc-clean-trader-card .bitcoin-sim-input { order: 3 !important; }
  .btc-clean-trader-card .bitcoin-mode-toggle { order: 4 !important; }
  .btc-clean-trader-card .bitcoin-sim-buy { order: 5 !important; }
  .btc-clean-trader-card .btc-clean-fold { order: 6 !important; }
}

/* v296：真实行情模拟盘，行情缺失时明确空态，不再绘制假K线 */
.bitcoin-kline-real-empty {
  position: absolute !important;
  inset: 0 !important;
  z-index: 4 !important;
  display: grid !important;
  place-content: center !important;
  gap: 7px !important;
  text-align: center !important;
  pointer-events: none !important;
}
.bitcoin-kline-real-empty strong {
  color: #fff4c7 !important;
  font-size: 14px !important;
  font-weight: 1000 !important;
}
.bitcoin-kline-real-empty span {
  color: rgba(255,248,231,.54) !important;
  font-size: 11px !important;
  font-weight: 850 !important;
}

/* v299：首页功能顺序与系列图标统一 */
#enterGameRadarBtn { order: 1 !important; }
#enterBitcoinBtn { order: 2 !important; }
#enterGoldForexBtn { order: 3 !important; }
#enterToolsHubBtn { order: 4 !important; }

#enterGameRadarBtn .role-icon-game-radar {
  background: url("/static/assets/sheep-role-game-radar-pgpg-v1.jpg?v=299") center / cover no-repeat !important;
}

#enterBitcoinBtn .role-icon-bitcoin {
  background: url("/static/assets/sheep-role-bitcoin-v1.png?v=299") center / cover no-repeat !important;
}

#enterGoldForexBtn .role-icon-gold-forex {
  background: url("/static/assets/gold-forex-evolution-sheep-v3.png?v=299") center / cover no-repeat !important;
}

#enterToolsHubBtn .role-icon-tools-hub {
  background: url("/static/assets/sheep-role-service-v2.png?v=299") center / cover no-repeat !important;
  color: transparent !important;
  font-size: 0 !important;
}

.portal-card-action-gold-forex {
  --portal-action-icon: url("/static/assets/gold-forex-evolution-sheep-v3.png?v=299");
  border-radius: 18px;
}

.portal-card-action-gold-forex::before {
  inset: -4px !important;
  background: var(--portal-action-icon) center / cover no-repeat !important;
  border-radius: 16px;
}

.portal-card-action-tools-hub {
  --portal-action-icon: url("/static/assets/portal-action-service-v1.png?v=299");
  border-radius: 18px;
}

.portal-card-action-tools-hub::before {
  content: "" !important;
  inset: -6px -4px -5px !important;
  background: var(--portal-action-icon) center / contain no-repeat !important;
  color: transparent !important;
  transform: scale(1.08);
}

/* v300：公开访客模式提示 */
.portal-guest-badge {
  display: none;
  width: fit-content;
  margin: 6px 0 2px;
  padding: 5px 10px;
  border: 1px solid rgba(225, 255, 237, .42);
  border-radius: 999px;
  color: #e9fff2;
  background: rgba(17, 95, 62, .30);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .03em;
}

#appRoot[data-guest-mode="true"] .portal-guest-badge {
  display: inline-flex;
}

/* 电子游戏雷达：严格数据来源区块 */
.game-radar-source-basis {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(125, 221, 255, .2);
  border-radius: 24px;
  background: rgba(5, 11, 31, .72);
}
.game-radar-source-basis h4 { margin: 0 0 10px; color: #fff; font-size: 15px; }
.game-radar-source-entry {
  padding: 13px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
}
.game-radar-source-entry + .game-radar-source-entry { margin-top: 10px; }
.game-radar-source-entry > span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(86, 245, 207, .13);
  color: #8fffe1;
  font-size: 10px;
  font-weight: 900;
}
.game-radar-source-entry.public-signal > span { background: rgba(255, 211, 102, .13); color: #ffe08a; }
.game-radar-source-entry.missing-source > span { background: rgba(255,255,255,.08); color: rgba(255,255,255,.72); }
.game-radar-source-entry b { display: block; margin-top: 7px; color: #fff; font-size: 13px; line-height: 1.45; }
.game-radar-source-entry p { margin: 7px 0; color: rgba(255,255,255,.69) !important; font-size: 11px !important; }
.game-radar-source-entry small { display: block; margin: 4px 0; color: rgba(255,255,255,.55); font-size: 10px; line-height: 1.45; }
.game-radar-source-entry ul { display: flex; flex-wrap: wrap; gap: 5px; margin: 9px 0; padding: 0; list-style: none; }
.game-radar-source-entry li { padding: 4px 7px; border-radius: 8px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.76); font-size: 9px; }
.game-radar-source-entry a,
.game-radar-source-entry > span:last-child:not(:first-child) {
  display: inline-flex;
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 10px;
  color: #9cddff;
  background: rgba(86, 163, 255, .11);
  font-size: 10px;
  font-weight: 850;
  text-decoration: none;
  word-break: break-all;
}

/* 五厂商原生排行：沿用原雷达卡片层级，只新增官方 Logo 与紧凑刷新控件。 */
.game-radar-series-card.cq9,
.game-radar-top-card.cq9 .game-radar-top-overlay,
.game-radar-reco-cover.cq9::after {
  background: linear-gradient(135deg, #103c73 0%, #146a9c 52%, #32b7bd 100%);
}

.game-radar-provider-logo,
.game-radar-reco-provider-logo,
.game-radar-panel-provider-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  min-height: 30px;
  vertical-align: middle;
}

.game-radar-provider-logo img,
.game-radar-reco-provider-logo img,
.game-radar-panel-provider-logo img {
  display: block;
  width: auto;
  max-width: 112px;
  height: 28px;
  max-height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .28));
}

.game-radar-provider-logo.is-text {
  color: #fff;
  font-weight: 900;
  letter-spacing: .06em;
}

.game-radar-series-title .game-radar-provider-logo {
  min-height: 34px;
  justify-content: flex-start;
}

.game-radar-series-title .game-radar-provider-logo img {
  max-width: 116px;
  height: 32px;
}

.game-radar-reco-provider .game-radar-reco-provider-logo {
  min-width: 96px;
  min-height: 40px;
}

.game-radar-reco-provider .game-radar-reco-provider-logo img {
  max-width: 132px;
  height: 38px;
}

.game-radar-panel-title .game-radar-panel-provider-logo {
  min-width: 82px;
  min-height: 30px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.game-radar-panel-title .game-radar-panel-provider-logo img {
  max-width: 104px;
  height: 28px;
}

.game-radar-live-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px 10px;
  align-items: center;
  margin: 0 0 13px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px;
  background: rgba(10, 17, 51, .78);
  box-shadow: 0 10px 28px rgba(1, 4, 20, .22);
}

.game-radar-window-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.game-radar-window-tabs button,
.game-radar-refresh-btn {
  min-height: 31px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  color: #f7fbff;
  background: rgba(255, 255, 255, .10);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.game-radar-window-tabs button.is-active {
  border-color: rgba(255, 226, 145, .9);
  color: #231509;
  background: linear-gradient(135deg, #ffe8a4, #edb95b);
  font-weight: 800;
}

.game-radar-refresh-btn {
  border-color: rgba(255, 216, 110, .75);
  color: #3f2408;
  background: linear-gradient(135deg, #ffeab0, #e8aa48);
  font-weight: 800;
  white-space: nowrap;
}

.game-radar-live-controls small {
  grid-column: 1 / -1;
  color: rgba(230, 241, 255, .82);
  line-height: 1.45;
}

@media (max-width: 560px) {
  .game-radar-live-controls {
    grid-template-columns: 1fr;
  }

  .game-radar-refresh-btn {
    width: 100%;
  }

  .game-radar-provider-logo img {
    max-width: 98px;
  }
}
