body.gp-modern-v1 {
  --gp-bg-page: #eef3f7;
  --gp-bg-shell: #06151f;
  --gp-bg-shell-elevated: rgba(4, 23, 30, 0.88);
  --gp-bg-surface: #ffffff;
  --gp-bg-surface-muted: #f5f8fb;
  --gp-text-primary: #172326;
  --gp-text-secondary: #4d6268;
  --gp-text-on-dark: #f5fbff;
  --gp-accent: #1e6fff;
  --gp-accent-hover: #ff7a1a;
  --gp-success: #16a34a;
  --gp-warning: #f59e0b;
  --gp-danger: #dc2626;
  --gp-border: rgba(25, 64, 72, 0.16);
  --gp-border-strong: rgba(63, 204, 226, 0.42);
  --gp-focus: #4fd8ff;
  --gp-radius-sm: 6px;
  --gp-radius-md: 10px;
  --gp-radius-lg: 16px;
  --gp-shadow-sm: 0 2px 8px rgba(5, 18, 25, 0.14);
  --gp-shadow-md: 0 12px 34px rgba(5, 18, 25, 0.22);
  --gp-space-1: 4px;
  --gp-space-2: 8px;
  --gp-space-3: 12px;
  --gp-space-4: 16px;
  --gp-space-5: 24px;
  --gp-space-6: 32px;
  --gp-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  background: var(--gp-bg-page);
  color: var(--gp-text-primary);
  font-family: var(--gp-font-body);
  line-height: 1.45;
}

body.gp-modern-v1 .bar {
  background-color: var(--gp-bg-shell);
  background-image:
    radial-gradient(circle at 18% 10%, rgba(30, 111, 255, 0.18), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(255, 122, 26, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(2, 16, 24, 0.92), rgba(5, 32, 35, 0.82)),
    url("bg-image.png");
  color: var(--gp-text-on-dark);
}

body.gp-modern-v1 .top-menu {
  background: rgba(3, 18, 25, 0.72);
  border-bottom: 1px solid rgba(79, 216, 255, 0.18);
  box-shadow: var(--gp-shadow-sm);
}

body.gp-modern-v1 .topLogoBox,
body.gp-modern-v1 .logo-char {
  color: var(--gp-text-on-dark);
}

body.gp-modern-v1 .logo-char {
  gap: var(--gp-space-2);
}

body.gp-modern-v1 .topButtonBox {
  max-width: 1120px;
  background: var(--gp-bg-shell-elevated);
  border: 1px solid rgba(79, 216, 255, 0.24);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  animation: none;
}

body.gp-modern-v1 .parent-container {
  color: var(--gp-text-primary);
  background: linear-gradient(180deg, rgba(238, 243, 247, 0.96), rgba(226, 235, 241, 0.92));
}

body.gp-modern-v1 .sub-container,
body.gp-modern-v1 .contest-tab {
  background: rgba(255, 255, 255, 0.94);
  color: var(--gp-text-primary);
  border-top: 1px solid var(--gp-border);
}

body.gp-modern-v1 .standard-button,
body.gp-modern-v1 .popup-standard,
body.gp-modern-v1 .top-bar-standard {
  min-height: 30px;
  color: var(--gp-text-on-dark);
  background: linear-gradient(180deg, rgba(12, 56, 73, 0.96), rgba(6, 35, 49, 0.96));
  border: 1px solid rgba(230, 246, 255, 0.72);
  border-radius: var(--gp-radius-sm);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  font-family: var(--gp-font-body);
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, color 120ms ease;
}

body.gp-modern-v1 .standard-button:hover,
body.gp-modern-v1 .popup-standard:hover,
body.gp-modern-v1 .top-bar-standard:hover {
  color: #ffffff;
  background: linear-gradient(180deg, #f97316, #df5b13);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 2px rgba(255, 122, 26, 0.18), var(--gp-shadow-sm);
}

body.gp-modern-v1 .standard-button:disabled,
body.gp-modern-v1 .top-bar-standard:disabled {
  color: rgba(229, 236, 242, 0.62);
  background: rgba(47, 62, 70, 0.55);
  border-color: rgba(229, 236, 242, 0.32);
  box-shadow: none;
}

body.gp-modern-v1 .black-dpl,
body.gp-modern-v1 .listbox-style {
  color: var(--gp-text-on-dark);
  background: rgba(1, 11, 18, 0.94);
  border: 1px solid rgba(230, 246, 255, 0.78);
  border-radius: var(--gp-radius-sm);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.10) inset;
  font-family: var(--gp-font-body);
  line-height: 1.3;
}

body.gp-modern-v1 .black-dpl:hover,
body.gp-modern-v1 .listbox-style:hover {
  background: rgba(7, 39, 52, 0.96);
  border-color: var(--gp-border-strong);
}

body.gp-modern-v1 .tabPanel .gwt-TabBar,
body.gp-modern-v1 .tab-panel-2 .gwt-TabBar {
  background: rgba(238, 243, 247, 0.82);
  border-bottom: 1px solid var(--gp-border);
  color: var(--gp-text-secondary);
  white-space: nowrap;
}

body.gp-modern-v1 .tabPanel .gwt-TabBarItem,
body.gp-modern-v1 .tab-panel-2 .gwt-TabBarItem {
  color: var(--gp-text-secondary);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;
  border-radius: var(--gp-radius-sm) var(--gp-radius-sm) 0 0;
  font-family: var(--gp-font-body);
  font-weight: 700;
  padding: 7px 12px;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

body.gp-modern-v1 .tab-panel-2 .gwt-TabBarItem {
  padding: 6px 10px;
  font-size: 12px;
}

body.gp-modern-v1 .tabPanel .gwt-TabBarItem:hover,
body.gp-modern-v1 .tab-panel-2 .gwt-TabBarItem:hover {
  color: var(--gp-text-primary);
  background: #ffffff;
  border-color: rgba(30, 111, 255, 0.28);
}

body.gp-modern-v1 .tabPanel .gwt-TabBarItem-selected,
body.gp-modern-v1 .tab-panel-2 .gwt-TabBarItem-selected {
  color: #ffffff;
  background: linear-gradient(180deg, #1e6fff, #1352c7);
  border-color: rgba(30, 111, 255, 0.58);
  box-shadow: 0 6px 16px rgba(30, 111, 255, 0.22);
}

body.gp-modern-v1 .tabPanel .gwt-TabPanelBottom,
body.gp-modern-v1 .tab-panel-2 .gwt-TabPanelBottom {
  background: var(--gp-bg-surface);
  border-color: var(--gp-border);
}

body.gp-modern-v1 .standard-button:focus,
body.gp-modern-v1 .popup-standard:focus,
body.gp-modern-v1 .top-bar-standard:focus,
body.gp-modern-v1 .black-dpl:focus,
body.gp-modern-v1 .listbox-style:focus,
body.gp-modern-v1 .tabPanel .gwt-TabBarItem:focus,
body.gp-modern-v1 .tab-panel-2 .gwt-TabBarItem:focus,
body.gp-modern-v1 .standard-button:focus-visible,
body.gp-modern-v1 .popup-standard:focus-visible,
body.gp-modern-v1 .top-bar-standard:focus-visible,
body.gp-modern-v1 .black-dpl:focus-visible,
body.gp-modern-v1 .listbox-style:focus-visible,
body.gp-modern-v1 .tabPanel .gwt-TabBarItem:focus-visible,
body.gp-modern-v1 .tab-panel-2 .gwt-TabBarItem:focus-visible {
  outline: 3px solid var(--gp-focus);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  body.gp-modern-v1 {
    font-size: 14px;
  }

  body.gp-modern-v1 .topButtonBox {
    max-width: calc(100% - 16px);
    margin-top: var(--gp-space-1);
  }

  body.gp-modern-v1 .top-bar-standard,
  body.gp-modern-v1 .standard-button,
  body.gp-modern-v1 .popup-standard {
    min-height: 28px;
    padding: 4px 8px;
  }

  body.gp-modern-v1 .black-dpl,
  body.gp-modern-v1 .listbox-style {
    max-width: calc(100vw - 24px);
    font-size: 12px;
  }

  body.gp-modern-v1 .tabPanel .gwt-TabBarItem,
  body.gp-modern-v1 .tab-panel-2 .gwt-TabBarItem {
    padding: 6px 8px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  body.gp-modern-v1 {
    font-size: 13px;
  }

  body.gp-modern-v1 .topLogoBox .logo-char img {
    max-height: 24px;
    width: auto;
  }

  body.gp-modern-v1 .top-bar-standard,
  body.gp-modern-v1 .standard-button,
  body.gp-modern-v1 .popup-standard {
    min-width: 0;
    font-size: 11px;
  }
}
