:root {
  --pgf-bg-1: #e9dfcd;
  --pgf-bg-2: #d5c7af;
  --pgf-panel: #fdfaf5;
  --pgf-panel-soft: #f5eee2;
  --pgf-border: #d9cebd;
  --pgf-text: #2e2a24;
  --pgf-muted: #72685b;
  --pgf-accent: #1f7a5a;
  --pgf-accent-strong: #145942;
  --pgf-warning: #b57612;
  --pgf-danger: #a53f3f;
  --pgf-link: #0e5f8d;
  --pgf-shadow:
    0 14px 36px rgba(27, 23, 16, 0.12),
    0 3px 8px rgba(27, 23, 16, 0.06);
  --pgf-radius: 16px;
  --pgf-header-h: 58px;
  --pgf-shell-max: 2040px;
  --pgf-shell-gutter: clamp(8px, 1.2vw, 22px);
}

html,
body {
  min-height: 100%;
}

body.pgf-game-v2-body {
  margin: 0;
  color: var(--pgf-text);
  background:
    radial-gradient(circle at 7% -6%, rgba(170, 128, 62, 0.24), transparent 36%),
    radial-gradient(circle at 94% -8%, rgba(71, 110, 140, 0.18), transparent 34%),
    radial-gradient(circle at 52% 108%, rgba(116, 88, 54, 0.16), transparent 44%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 54%),
    repeating-linear-gradient(
      135deg,
      rgba(116, 97, 67, 0.035) 0,
      rgba(116, 97, 67, 0.035) 1px,
      transparent 1px,
      transparent 13px
    ),
    linear-gradient(180deg, var(--pgf-bg-1), var(--pgf-bg-2));
  font-family: "PT Sans", "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.4;
  padding-top: var(--pgf-header-h);
}

a {
  color: var(--pgf-link);
}

.pgf-game-v2-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1080;
  height: var(--pgf-header-h);
  backdrop-filter: blur(8px);
  background: rgba(250, 245, 237, 0.9);
  border-bottom: 1px solid var(--pgf-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.pgf-game-v2-header-inner {
  width: min(var(--pgf-shell-max), calc(100vw - (var(--pgf-shell-gutter) * 2)));
  margin: 0 auto;
  height: 100%;
  padding: 0 clamp(8px, 1vw, 14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pgf-game-v2-brand {
  display: inline-flex;
  align-items: center;
}

.pgf-game-v2-brand img {
  height: 32px;
  width: auto;
  display: block;
}

.pgf-game-v2-header-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.pgf-v2-top-messages {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #bfcfdf;
  background: linear-gradient(180deg, #ffffff, #edf6ff);
  color: #2a5f8a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 8px rgba(30, 74, 110, 0.14);
  transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease;
}

.pgf-v2-top-messages:hover,
.pgf-v2-top-messages:focus {
  text-decoration: none;
  border-color: #9ab3cb;
  background: linear-gradient(180deg, #ffffff, #e6f1fc);
  color: #1d4f77;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(25, 65, 98, 0.18);
}

.pgf-v2-top-messages-icon {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(56, 107, 150, 0.3);
  background: rgba(255, 255, 255, 0.86);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pgf-v2-top-messages-icon svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}

.pgf-v2-top-messages-count {
  font-size: 12px;
}

.pgf-game-v2-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--pgf-border);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 700;
  color: var(--pgf-muted);
  background: #fff;
  max-width: 100%;
  white-space: nowrap;
}

.pgf-game-v2-time-value {
  color: #4a433a;
  font-variant-numeric: tabular-nums;
}

.pgf-game-v2-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--pgf-accent);
  box-shadow: 0 0 0 3px rgba(31, 122, 90, 0.2);
}

.pgf-game-v2-menu-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(129, 93, 32, 0.52);
  background: linear-gradient(135deg, #f3e4bd 0%, #e8cf95 100%);
  color: #5d461f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(38, 31, 21, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.48);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.pgf-game-v2-menu-button:hover,
.pgf-game-v2-menu-button:focus {
  border-color: rgba(109, 78, 27, 0.62);
  background: linear-gradient(135deg, #f7e9c6 0%, #edd79f 100%);
  color: #533f1c;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 7px 14px rgba(38, 31, 21, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.pgf-game-v2-menu-button-icon {
  width: 18px;
  height: 18px;
  border-radius: 7px;
  border: 1px solid rgba(125, 95, 46, 0.34);
  background: rgba(255, 255, 255, 0.55);
  color: #5f491f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
}

.pgf-game-v2-menu-button-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pgf-header-bills-alert {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(112, 82, 36, 0.52);
  background: linear-gradient(135deg, #f6e8c8 0%, #ead7a8 100%);
  color: #5f4420;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(38, 31, 21, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.48);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.pgf-header-bills-alert:hover,
.pgf-header-bills-alert:focus {
  text-decoration: none;
  color: #523b1b;
  border-color: rgba(96, 70, 29, 0.64);
  background: linear-gradient(135deg, #f8ebcf 0%, #eddcb2 100%);
  transform: translateY(-1px);
  box-shadow: 0 7px 14px rgba(38, 31, 21, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.pgf-header-bills-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(123, 90, 42, 0.38);
  background: rgba(255, 255, 255, 0.56);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
}

.pgf-header-bills-count {
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(145, 58, 39, 0.34);
  background: rgba(176, 67, 44, 0.13);
  color: #7e2e1d;
  font-size: 11px;
  font-weight: 700;
}

#pgf-header-arena {
  position: relative;
  display: inline-flex;
  align-items: center;
}

#pgf-header-arena .pgf-header-arena-toggle {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 12px;
  border: 1px solid rgba(129, 93, 32, 0.52);
  background: linear-gradient(135deg, #f3e4bd 0%, #e8cf95 100%);
  color: #5d461f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(38, 31, 21, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.48);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}

#pgf-header-arena .pgf-header-arena-toggle:hover,
#pgf-header-arena .pgf-header-arena-toggle:focus {
  transform: translateY(-1px);
  border-color: rgba(109, 78, 27, 0.62);
  background: linear-gradient(135deg, #f7e9c6 0%, #edd79f 100%);
  color: #533f1c;
  box-shadow: 0 7px 14px rgba(38, 31, 21, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

#pgf-header-arena .pgf-header-arena-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(120, 88, 43, 0.4);
  background: rgba(255, 255, 255, 0.56);
  color: #6a4620;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
}

#pgf-header-arena .pgf-header-arena-badge {
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(145, 58, 39, 0.34);
  background: rgba(176, 67, 44, 0.13);
  color: #7e2e1d;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

#pgf-header-arena .pgf-arena-call-active {
  color: #8b2f1f;
  font-size: 9px;
  line-height: 1;
}

#pgf-header-arena .pgf-header-arena-caret {
  font-size: 10px;
  transition: transform 0.15s ease;
}

#pgf-header-arena.open .pgf-header-arena-caret {
  transform: rotate(180deg);
}

#pgf-header-arena.pgf-header-arena-has-requests .pgf-header-arena-toggle {
  border-color: rgba(109, 78, 27, 0.62);
  box-shadow: 0 7px 14px rgba(38, 31, 21, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

#pgf-header-arena .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: auto;
  right: 0;
  display: none;
  width: min(560px, 95vw);
  max-height: min(62vh, 520px);
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(147, 109, 63, 0.34);
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(246, 234, 211, 0.98));
  box-shadow: 0 18px 34px rgba(27, 23, 16, 0.23);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  z-index: 1200;
}

#pgf-header-arena.open .dropdown-menu,
#pgf-header-arena .dropdown-menu.show {
  display: block;
}

#pgf-header-arena .pgf-header-arena-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(151, 116, 66, 0.22);
}

#pgf-header-arena .pgf-header-arena-menu-title {
  font-size: 13px;
  font-weight: 700;
  color: #5f4320;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#pgf-header-arena .pgf-arena-rules-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #6e4b21;
  font-size: 12px;
  font-weight: 700;
}

#pgf-header-arena .pgf-arena-rules-link::before {
  content: "i";
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 1px solid rgba(144, 111, 67, 0.36);
  background: rgba(255, 255, 255, 0.64);
  color: #6e4b21;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#pgf-header-arena .pgf-header-arena-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#pgf-header-arena .pgf-arena-battle-button,
#pgf-header-arena .pgf-arena-bot-fight {
  margin: 0;
}

#pgf-header-arena .pgf-arena-battle-button > a,
#pgf-header-arena .pgf-arena-bot-fight > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid #d6c2a2;
  border-radius: 11px;
  background: linear-gradient(180deg, #fffefb, #f4e8d8);
  color: #624326;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(31, 24, 17, 0.11);
}

#pgf-header-arena .pgf-arena-battle-button > a:hover,
#pgf-header-arena .pgf-arena-battle-button > a:focus,
#pgf-header-arena .pgf-arena-bot-fight > a:hover,
#pgf-header-arena .pgf-arena-bot-fight > a:focus {
  text-decoration: none;
  border-color: #caaf88;
  background: linear-gradient(180deg, #fffefc, #f8eee1);
  color: #563a1f;
}

#pgf-header-arena .pgf-arena-battle-button > .pgf-leave-arena,
#pgf-header-arena .pgf-arena-battle-button > .pgf-leave-arena:hover,
#pgf-header-arena .pgf-arena-battle-button > .pgf-leave-arena:focus {
  border-color: #934444;
  background: linear-gradient(180deg, #b75a5a, #944646);
  color: #fff;
}

#pgf-header-arena .pgf-header-arena-summary-row {
  margin: 9px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(151, 116, 66, 0.22);
}

#pgf-header-arena .pgf-arena-battles-summary-link {
  color: #6c4c25;
  font-size: 12px;
  font-weight: 700;
}

#pgf-header-arena .pgf-arena-section-title {
  margin-top: 10px;
  color: #5b4428;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#pgf-header-arena .pgf-arena-battles-table {
  margin: 6px 0 0;
  width: 100%;
}

#pgf-header-arena .pgf-arena-battles-table td {
  vertical-align: middle;
  border-top-color: rgba(163, 138, 102, 0.22);
  padding: 6px 4px;
}

#pgf-header-arena .pgf-arena-accept-battle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #1d6f50;
  background: linear-gradient(180deg, #2da774, #1f7a5a);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

#pgf-header-arena .pgf-arena-accept-battle:hover,
#pgf-header-arena .pgf-arena-accept-battle:focus {
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #258f62, #1a6a4f);
}

#pgf-header-arena .pgf-arena-accept-own-battle {
  display: inline-flex;
  padding: 0 8px;
  color: #6b5c49;
  font-size: 12px;
  font-weight: 700;
}

#pgf-header-arena .pgf-arena-battles-table .game-ui-icon {
  vertical-align: middle;
}

#pgf-header-arena .pgf-arena-initiator-level {
  display: inline-block;
}

#pgf-header-arena .pgf-no-arena-battle-requests {
  margin-top: 8px;
  padding: 7px 6px;
  border: 1px dashed rgba(146, 113, 64, 0.36);
  border-radius: 10px;
  text-align: center;
  font-size: 12px;
  color: #6e5330;
}

#pgf-header-arena .pgf-no-arena-battle-requests a {
  color: inherit;
}

.pgf-game-v2-menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pgf-game-v2-menu-list li {
  margin: 0;
}

.pgf-game-v2-menu-group + .pgf-game-v2-menu-group {
  margin-top: 6px;
}

.pgf-game-v2-menu-details {
  margin: 0;
  padding: 0;
}

.pgf-game-v2-menu-section {
  margin: 10px 0 4px;
  padding: 0.3rem 0.45rem 0.25rem;
  border-top: 1px solid var(--pgf-border);
  color: var(--pgf-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pgf-game-v2-menu-section::-webkit-details-marker {
  display: none;
}

.pgf-game-v2-menu-group:first-child .pgf-game-v2-menu-section {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.pgf-game-v2-menu-section::after {
  content: "▾";
  font-size: 11px;
  line-height: 1;
  opacity: 0.8;
  transform: rotate(-90deg);
  transition: transform 0.15s ease;
}

.pgf-game-v2-menu-details[open] > .pgf-game-v2-menu-section::after {
  transform: rotate(0deg);
}

.pgf-game-v2-menu-sublist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pgf-game-v2-menu-list a {
  display: block;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
}

.pgf-v2-messages-link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pgf-v2-messages-link.has-new-messages {
  font-weight: 700;
}

.pgf-v2-messages-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #efe5d6;
  color: #6a5a43;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 700;
  white-space: nowrap;
}

.pgf-v2-messages-link.has-new-messages .pgf-v2-messages-badge {
  background: rgba(31, 122, 90, 0.16);
  color: #145942;
}

.pgf-game-v2-menu-list a:hover,
.pgf-game-v2-menu-list a:focus {
  background: #edf3ee;
  text-decoration: none;
}

.pgf-game-v2-main {
  width: min(var(--pgf-shell-max), calc(100vw - (var(--pgf-shell-gutter) * 2)));
  margin: 0 auto;
  padding: 12px var(--pgf-shell-gutter) 16px;
}

.pgf-game-v2-content {
  min-height: calc(100vh - var(--pgf-header-h) - 24px);
}

.pgf-game-v2-footer {
  border-top: 1px solid var(--pgf-border);
  margin-top: 12px;
  padding: 8px 10px;
  color: var(--pgf-muted);
  font-size: 12px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.pgf-game-v2-debug {
  position: fixed;
  z-index: 1200;
  right: 12px;
  top: calc(var(--pgf-header-h) + 12px);
  list-style: none;
  margin: 0;
  padding: 8px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  border: 1px solid var(--pgf-border);
}

.pgf-game-v2-debug li {
  margin: 0 0 4px;
}

.pgf-game-v2-debug li:last-child {
  margin-bottom: 0;
}

.pgf-game-v2-debug a {
  font-size: 12px;
}

.easy-block,
.pgf-game-card {
  background: var(--pgf-panel);
  border: 1px solid var(--pgf-border);
  border-radius: var(--pgf-radius);
  box-shadow: var(--pgf-shadow);
  padding: 12px;
}

.easy-block.white {
  background: #fff;
}

.pgf-game-data {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pgf-game-layout[data-map-mode='normal'] .pgf-shortest-hero-info,
.pgf-game-layout[data-map-mode='none'] .pgf-shortest-hero-info {
  display: none !important;
}

.pgf-game-layout[data-map-mode='large'] .pgf-hero-column {
  display: none;
}

.pgf-game-layout[data-map-mode='none'] .pgf-map-column {
  display: none;
}

.pgf-game-layout[data-map-mode='large'] .pgf-shortest-hero-info {
  display: block !important;
  margin-bottom: 8px;
}

.pgf-column-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.pgf-section-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.25;
  color: #2f4339;
}

.pgf-tabbar {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pgf-tabbar-item {
  list-style: none;
}

.pgf-tabbar-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f9f2e8, #f0e6d8);
  border: 1px solid #e2d6c4;
  color: #3a3a37;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pgf-tabbar-link:hover,
.pgf-tabbar-link:focus {
  text-decoration: none;
  background: #efe2d2;
  border-color: #d6c7b2;
}

.pgf-tabbar-link.active {
  background: linear-gradient(180deg, var(--pgf-accent), var(--pgf-accent-strong));
  border-color: var(--pgf-accent-strong);
  color: #fff;
  box-shadow: 0 4px 10px rgba(31, 122, 90, 0.25);
}

.pgf-tabbar-side {
  margin-left: auto;
  font-size: 12px;
  color: var(--pgf-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pgf-journal-tabbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 7px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(187, 151, 101, 0.34);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 249, 238, 0.96), rgba(244, 230, 206, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.pgf-journal-tabbar .pgf-tabbar-item {
  min-width: 0;
}

.pgf-journal-tabbar .pgf-tabbar-link {
  width: 100%;
  min-height: 36px;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 11px;
  border-color: rgba(170, 135, 88, 0.44);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(243, 231, 212, 0.95));
  color: #513a1d;
  box-shadow: 0 2px 6px rgba(70, 52, 27, 0.1);
}

.pgf-journal-tabbar .pgf-tabbar-link:hover,
.pgf-journal-tabbar .pgf-tabbar-link:focus {
  border-color: rgba(153, 119, 72, 0.52);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 224, 198, 0.96));
  color: #463116;
}

.pgf-journal-tabbar .pgf-tabbar-link.active {
  border-color: rgba(112, 80, 34, 0.64);
  background: linear-gradient(180deg, #d8b77d, #c89e60);
  color: #2f1e05;
  box-shadow: 0 6px 14px rgba(104, 71, 25, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.pgf-journal-tabbar .pgf-journal-tab-button {
  gap: 6px;
}

.pgf-journal-tabbar .pgf-game-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(69, 52, 28, 0.1);
  color: inherit;
  font-size: 12px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.pgf-journal-tabbar .pgf-journal-tabbar-side {
  margin-left: 0;
  width: auto;
  justify-self: end;
  justify-content: flex-end;
}

.pgf-journal-tabbar .pgf-journal-tabbar-side .pgf-log-mode {
  min-height: 36px;
  min-width: 124px;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 11px;
  border: 1px solid rgba(166, 134, 92, 0.48);
  background: linear-gradient(180deg, rgba(252, 245, 232, 0.98), rgba(236, 220, 194, 0.95));
  color: #5a4121;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.pgf-journal-tabbar .pgf-journal-tabbar-side .pgf-log-mode:hover,
.pgf-journal-tabbar .pgf-journal-tabbar-side .pgf-log-mode:focus {
  border-color: rgba(142, 108, 62, 0.58);
  background: linear-gradient(180deg, rgba(255, 249, 239, 0.98), rgba(232, 213, 184, 0.96));
  color: #483113;
}

.pgf-equipment-tabbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(187, 151, 101, 0.32);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 249, 238, 0.94), rgba(244, 230, 206, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.pgf-equipment-tabbar .pgf-tabbar-item {
  min-width: 0;
}

.pgf-equipment-tabbar .pgf-tabbar-link {
  width: 100%;
  min-height: 36px;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 11px;
  border-color: rgba(170, 135, 88, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(243, 231, 212, 0.95));
  color: #513a1d;
  box-shadow: 0 2px 6px rgba(70, 52, 27, 0.1);
}

.pgf-equipment-tabbar .pgf-tabbar-link:hover,
.pgf-equipment-tabbar .pgf-tabbar-link:focus {
  border-color: rgba(153, 119, 72, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 224, 198, 0.96));
  color: #463116;
}

.pgf-equipment-tabbar .pgf-tabbar-link.active {
  border-color: rgba(112, 80, 34, 0.62);
  background: linear-gradient(180deg, #d8b77d, #c89e60);
  color: #2f1e05;
  box-shadow: 0 6px 14px rgba(104, 71, 25, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.pgf-equipment-tabbar .pgf-item-count-container {
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(69, 52, 28, 0.12);
  color: inherit;
  font-size: 11px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.pgf-equipment-cluster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(193, 157, 106, 0.38);
  border-radius: 20px;
  background:
    radial-gradient(circle at 8% 10%, rgba(205, 163, 96, 0.13), transparent 40%),
    radial-gradient(circle at 96% 7%, rgba(184, 140, 87, 0.1), transparent 36%),
    linear-gradient(145deg, #fffdf7 0%, #fbf1df 54%, #f8edd9 100%);
  box-shadow:
    0 14px 28px rgba(37, 30, 20, 0.12),
    0 3px 8px rgba(37, 30, 20, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  padding: 10px 12px 12px;
}

.pgf-equipment-cluster::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.28), transparent 38%);
  opacity: 0.34;
}

.pgf-equipment-cluster .pgf-equipment-tabbar,
.pgf-equipment-cluster .tab-content {
  position: relative;
  z-index: 1;
}

.pgf-equipment-cluster .tab-content {
  margin-top: 8px;
}

.pgf-equipment-cluster #hero-equipment,
.pgf-equipment-cluster #hero-bag-block {
  background: transparent;
}

.pgf-equipment-cluster #hero-equipment table td,
.pgf-equipment-cluster #hero-bag-block .bag-record {
  border-radius: 8px;
}

.pgf-equipment-cluster #hero-equipment tr:hover td,
.pgf-equipment-cluster #hero-bag-block .bag-record:hover {
  background: rgba(255, 255, 255, 0.42);
}

.tab-content {
  margin-top: 10px;
}

.tab-pane {
  display: none;
}

.tab-pane.active,
.tab-pane.show {
  display: block;
}

.log-block {
  min-height: 255px;
  max-height: 46vh;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #e2d8c8;
  border-radius: 14px;
  background: #fffcf8;
  padding: 10px;
}

.log-record,
.diary-record,
.quests-line,
.quest-record,
.choice-record,
.bag-record,
.equip-record {
  border-radius: 9px;
}

.log-record:hover,
.diary-record:hover,
.quests-line:hover,
.quest-record:hover,
.choice-record:hover,
.bag-record:hover,
.equip-record:hover {
  background: #f3ede2;
}

#pgf-journal-container .log-block {
  border-color: rgba(188, 154, 109, 0.4);
  background: linear-gradient(180deg, rgba(255, 251, 243, 0.96), rgba(246, 236, 219, 0.9));
}

#pgf-diary-container .log-block {
  border-color: rgba(166, 143, 109, 0.4);
  background: linear-gradient(180deg, rgba(252, 247, 238, 0.96), rgba(239, 229, 209, 0.9));
}

#pgf-quests-container .log-block {
  border-color: rgba(181, 151, 108, 0.4);
  background: linear-gradient(180deg, rgba(255, 249, 240, 0.96), rgba(243, 232, 211, 0.9));
}

#log-block .pgf-log-list,
#diary-block .pgf-log-list,
#quests-line-block .pgf-quests-container,
#quests-line-block .pgf-quests-line-container {
  margin: 0;
  padding: 0;
  list-style: none;
}

#log-block .log-record,
#diary-block .diary-record,
#quests-line-block .quests-line {
  margin: 0;
  padding: 7px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.32);
  transition: background-color 0.16s ease;
}

#log-block .log-record + .log-record,
#diary-block .diary-record + .diary-record,
#quests-line-block .quests-line + .quests-line {
  margin-top: 4px;
}

#log-block .log-record:hover,
#diary-block .diary-record:hover,
#quests-line-block .quests-line:hover {
  background: rgba(255, 255, 255, 0.52);
}

#current-action-block,
#current-quest-block,
#hero-bag-block,
#hero-equipment,
#hero-short-data,
#pgf-map-block {
  background: var(--pgf-panel);
}

#current-action-block,
#current-quest-block {
  margin-bottom: 10px;
}

#current-quest-block.pgf-quest-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(183, 147, 100, 0.4);
  border-radius: 20px;
  background: #f8f2e8;
  box-shadow:
    0 16px 30px rgba(37, 30, 20, 0.12),
    0 3px 8px rgba(37, 30, 20, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

#current-quest-block.pgf-quest-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.3), transparent 40%);
  opacity: 0.24;
}

#current-quest-block.pgf-quest-card > * {
  position: relative;
  z-index: 1;
}

#current-quest-block .pgf-quest-surface {
  margin: 0;
  padding: 13px 14px 11px;
  border-bottom: 1px solid rgba(183, 147, 100, 0.34);
  background: linear-gradient(135deg, #fffaf1 0%, #f6ead4 62%, #f2e3c9 100%);
}

#current-quest-block .quest {
  margin: 0;
}

#current-quest-block .pgf-current-quest {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#current-quest-block .pgf-quest-record-main {
  margin: 0;
  padding: 0;
  min-height: 0;
  background: transparent;
  border-radius: 0;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon body";
  gap: 6px 14px;
}

#current-quest-block .pgf-quest-record-main:hover {
  background: transparent;
}

#current-quest-block .pgf-quest-record-main > h4 {
  grid-area: title;
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 8px;
  color: #2b2319;
  font-size: clamp(18px, 1.45vw, 22px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  align-self: end;
}

#current-quest-block .pgf-quest-record-main .pgf-quest-description {
  color: #2b2319;
}

#current-quest-block .pgf-quest-record-main .pgf-quest-rewards {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(158, 126, 86, 0.34);
  background: rgba(255, 250, 239, 0.75);
  color: #7b6648;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

#current-quest-block .pgf-quest-record-main .pgf-quest-rewards[rel="tooltip"] {
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

#current-quest-block .pgf-quest-record-main .pgf-quest-rewards[rel="tooltip"]:hover,
#current-quest-block .pgf-quest-record-main .pgf-quest-rewards[rel="tooltip"]:focus,
#current-quest-block .pgf-quest-record-main .pgf-quest-rewards[rel="tooltip"]:active {
  text-decoration: none;
}

#current-quest-block .pgf-quest-record-main .quest-icon {
  grid-area: icon;
  float: none;
  width: 64px;
  height: 64px;
  margin: 2px 0 0 2px;
  border-radius: 0;
  transform: scale(1.18);
  transform-origin: top left;
  box-shadow:
    0 5px 12px rgba(75, 56, 28, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

#current-quest-block .pgf-quest-record-main .quest-body {
  grid-area: body;
  min-width: 0;
  padding-left: 0;
}

#current-quest-block .pgf-quest-record-main .actors-container {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#current-quest-block .pgf-quest-record-main .actors-container li {
  margin: 0;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(180, 146, 103, 0.28);
  background: rgba(255, 255, 255, 0.36);
  color: #61492a;
  font-size: 13px;
  line-height: 1.28;
}

#current-quest-block .pgf-quest-record-main .actors-container strong {
  color: #503a20;
}

#current-quest-block .pgf-quest-record-main .actors-container a {
  color: #2d5e84;
  font-weight: 600;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

#current-quest-block .pgf-quest-record-main .actors-container a:hover,
#current-quest-block .pgf-quest-record-main .actors-container a:focus,
#current-quest-block .pgf-quest-record-main .actors-container a:active {
  text-decoration: none;
}

.pgf-game-v2-body .tooltip .tooltip-inner {
  max-width: min(88vw, 360px);
  white-space: normal;
  text-align: left;
  line-height: 1.34;
}

#current-quest-block .pgf-quest-action-description {
  margin: 0;
  margin-left: 100px;
  padding: 0;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5d4528;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.33;
  cursor: default;
  box-shadow: none;
}

#current-quest-block .pgf-quest-action-description:empty {
  display: none;
}

#current-quest-block .pgf-quest-status-panel {
  margin: 0;
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.46);
  background: linear-gradient(180deg, #f4ebda, #eee2cd);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#current-quest-block .pgf-quest-choices {
  margin: 0;
  padding: 0;
  cursor: default;
}

#current-quest-block .pgf-no-choices,
#current-quest-block .pgf-future-choice {
  margin: 0;
  margin-left: 100px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #67492a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: none;
}

#current-quest-block .pgf-future-choice {
  color: #345b3d;
}

#current-quest-block .pgf-choices-container {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#current-quest-block .pgf-choices-container .choice-record {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(178, 141, 94, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.4);
  line-height: 1.32;
}

#current-quest-block .pgf-choices-container .choice-link {
  color: #2d5e84;
  font-weight: 700;
}

#current-quest-block .pgf-choices-container .choice-link:hover,
#current-quest-block .pgf-choices-container .choice-link:focus {
  color: #234a68;
  text-decoration: none;
}

#current-quest-block .pgf-choices-container .choice-record.disabled {
  color: #8d7f69;
}

#current-quest-block .pgf-choices-container .choice-record.disabled .choice-link {
  margin-left: 0;
}

#current-quest-block .pgf-choices-container .character-warning {
  color: #8b6b4c;
}

.pgf-action-journal-cluster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(193, 157, 106, 0.4);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 10%, rgba(205, 163, 96, 0.15), transparent 40%),
    radial-gradient(circle at 96% 7%, rgba(184, 140, 87, 0.11), transparent 35%),
    linear-gradient(145deg, #fffdf7 0%, #fbf1df 54%, #f8edd9 100%);
  box-shadow:
    0 18px 34px rgba(37, 30, 20, 0.14),
    0 4px 9px rgba(37, 30, 20, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.pgf-action-journal-cluster #current-action-block {
  margin-bottom: 0;
}

.pgf-action-journal-cluster #current-action-block.pgf-action-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pgf-action-journal-cluster #current-action-block.pgf-action-card::before {
  content: none;
}

.pgf-action-journal-cluster .pgf-action-journal-log-block.easy-block {
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(188, 145, 83, 0.3);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.82), rgba(248, 236, 214, 0.74));
  box-shadow: none;
  padding: 10px 14px 12px;
}

.pgf-action-journal-cluster .pgf-tabbar {
  gap: 7px;
}

.pgf-action-journal-cluster .tab-content {
  margin-top: 8px;
}

.pgf-action-journal-cluster .log-block {
  border-color: rgba(188, 154, 109, 0.38);
  background: rgba(255, 252, 247, 0.92);
}

.pgf-action-subscription-offer {
  margin: 0 0 10px;
  display: flex;
  justify-content: flex-start;
}

.pgf-action-offer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(201, 159, 92, 0.42);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 250, 238, 0.98), rgba(244, 228, 199, 0.98));
  color: #6f5127;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 700;
  text-shadow: none;
  box-shadow: 0 3px 10px rgba(119, 88, 47, 0.14);
}

#current-action-block.pgf-action-card {
  position: relative;
  overflow: visible;
  padding: 14px 14px 12px;
  border: 1px solid rgba(193, 157, 106, 0.38);
  border-radius: 20px;
  background:
    radial-gradient(circle at 8% 10%, rgba(205, 163, 96, 0.14), transparent 38%),
    radial-gradient(circle at 96% 7%, rgba(184, 140, 87, 0.12), transparent 35%),
    linear-gradient(145deg, #fffdf7 0%, #fbf1df 54%, #f8edd9 100%);
  box-shadow:
    0 18px 34px rgba(37, 30, 20, 0.14),
    0 4px 9px rgba(37, 30, 20, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

#current-action-block.pgf-action-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.34), transparent 36%);
  opacity: 0.34;
}

#current-action-block.pgf-action-card::after {
  content: none;
}

#current-action-block .pgf-action-hero-shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

#current-action-block .pgf-action-headline {
  display: block;
}

#current-action-block .pgf-action-title-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

#current-action-block .pgf-action-orb {
  display: none !important;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex: 0 0 auto;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

#current-action-block .pgf-action-orb.pgf-action-orb-travel,
#current-action-block .pgf-action-orb {
  background: radial-gradient(circle at 34% 30%, #eafff1, #55b46f 62%, #2f7f4a 100%);
  box-shadow: 0 0 0 4px rgba(76, 166, 106, 0.2), 0 0 12px rgba(76, 166, 106, 0.34);
}

#current-action-block .pgf-action-orb.pgf-action-orb-battle {
  background: radial-gradient(circle at 34% 30%, #fde2d2, #d08462 62%, #a54f38 100%);
  box-shadow: 0 0 0 4px rgba(186, 104, 74, 0.2), 0 0 12px rgba(186, 104, 74, 0.32);
}

#current-action-block .pgf-action-title-text {
  display: inline-block;
  margin: 0;
  color: #2a231a;
  font-size: clamp(16px, 1.95vw, 21px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0.01em;
  min-width: 0;
  text-align: center;
  text-wrap: pretty;
}

#current-action-block .pgf-action-info-clickable {
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

#current-action-block .pgf-action-info-clickable:hover,
#current-action-block .pgf-action-info-clickable:focus {
  color: #8a5b22;
  text-decoration: none;
}

#current-action-block .pgf-action-boss-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(157, 66, 66, 0.48);
  background: linear-gradient(180deg, #fff2f2, #f2d1d1);
  color: #a53f3f;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(122, 42, 42, 0.19);
}

#current-action-block .pgf-action-progress {
  position: relative;
  margin: 0 !important;
  height: 22px;
  border: 1px solid #c4ad8a;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, #eadcc8 0%, #d9c2a1 100%);
  box-shadow: inset 0 1px 2px rgba(90, 66, 35, 0.18);
}

#current-action-block .pgf-action-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 52%);
}

#current-action-block .pgf-action-progress .bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  float: none;
}

#current-action-block .pgf-action-progress .pgf-action-percents-delayed {
  z-index: 2;
  opacity: 1;
  transition: none;
  background-color: #efbc56;
  background-image: none;
  box-shadow: inset 0 0 0 1px rgba(145, 95, 20, 0.28);
}

#current-action-block .pgf-action-progress .pgf-action-percents-delayed.pgf-mob-health-delayed-animation {
  transition: width 1.85s cubic-bezier(0.2, 0.9, 0.2, 1);
}

#current-action-block .pgf-action-percents {
  z-index: 3;
  background: linear-gradient(90deg, #cd5757 0%, #b43c3c 46%, #8a2a2a 100%);
  box-shadow: inset 0 0 0 1px rgba(116, 36, 36, 0.32);
}

#current-action-block .progress-success .pgf-action-percents {
  background: linear-gradient(90deg, #62b56f 0%, #409854 45%, #2d753f 100%);
  box-shadow: inset 0 0 0 1px rgba(28, 88, 43, 0.36);
}

#current-action-block .pgf-action-percents.pgf-mob-health-decrease-animation {
  transition-duration: 0.38s;
  transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}

#current-action-block .pgf-action-mob-health-extra {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 2px;
  margin: 0;
  pointer-events: none;
}

#current-action-block .pgf-action-health-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: auto;
  min-height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 0.82;
  font-variant-numeric: tabular-nums;
  box-shadow: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.74), 0 0 2px rgba(0, 0, 0, 0.62);
}

#current-action-block .pgf-action-mob-current-health {
  margin-left: 0;
}

#current-action-block .pgf-action-health-label {
  opacity: 0.96;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#current-action-block .pgf-action-health-divider {
  opacity: 0.75;
}

#hero-short-data.pgf-hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #d7c6ae;
  border-radius: 16px;
  background: linear-gradient(180deg, #fdf8ef 0%, #f7efde 100%);
  box-shadow: 0 10px 20px rgba(39, 31, 20, 0.1), 0 2px 6px rgba(39, 31, 20, 0.06);
  padding: 12px 12px 11px;
  cursor: default;
}

#hero-short-data.pgf-hero-card::before {
  content: none;
}

#hero-short-data.pgf-hero-card > * {
  position: relative;
  z-index: 1;
}

#hero-short-data .pgf-hero-head,
#hero-short-data .pgf-companion-head {
  margin: 0 0 9px;
  line-height: 1.2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "race race race"
    "level name extra";
  align-items: center;
  gap: 6px 7px;
}

#hero-short-data .pgf-companion-head {
  grid-template-areas: "level name extra";
}

#hero-short-data .pgf-race-gender {
  grid-area: race;
  margin: 0;
  color: #7e6648;
  font-size: 12px;
  line-height: 1.2 !important;
  letter-spacing: 0.01em;
}

#hero-short-data .pgf-hero-level-badge,
#hero-short-data .pgf-companion-level {
  grid-area: level;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border: 1px solid rgba(152, 120, 75, 0.42);
  border-radius: 999px;
  background: #f2e2c4;
  color: #634929;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

#hero-short-data .pgf-hero-name,
#hero-short-data .pgf-companion .pgf-name {
  grid-area: name;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #245f89;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 700;
  text-decoration: none;
}

#hero-short-data .pgf-companion .pgf-name {
  font-size: clamp(17px, 1.95vw, 22px);
}

#hero-short-data a.pgf-hero-name:hover,
#hero-short-data a.pgf-hero-name:focus,
#hero-short-data a.pgf-companion-info-link:hover,
#hero-short-data a.pgf-companion-info-link:focus {
  color: #184b6f;
  text-decoration: none;
}

#hero-short-data .pgf-companion .pgf-dead {
  text-decoration: line-through;
  opacity: 0.72;
}

#hero-short-data .pgf-hero-destiny {
  grid-area: extra;
  justify-self: end;
  margin: 0;
  min-height: 32px;
  padding: 0 11px 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(171, 68, 44, 0.78);
  background: linear-gradient(135deg, #ffb44d 0%, #f1733f 52%, #d14a34 100%);
  color: transparent;
  font-size: 0;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  position: relative;
  isolation: isolate;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow:
    0 10px 18px rgba(171, 68, 44, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
  animation: pgf-level-up-cta-pulse 1.18s ease-in-out infinite;
}

#hero-short-data .pgf-hero-destiny::before {
  content: "▲";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.2);
  color: #fff8e8;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

#hero-short-data .pgf-hero-destiny::after {
  content: "Навык +";
  color: #fff6e9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

#hero-short-data .pgf-hero-destiny:hover,
#hero-short-data .pgf-hero-destiny:focus,
#hero-short-data .pgf-hero-destiny:active {
  text-decoration: none;
  border-color: rgba(146, 49, 29, 0.82);
  background: linear-gradient(135deg, #ffc060 0%, #f27d4d 54%, #cc4b37 100%);
}

#hero-short-data .pgf-hero-destiny:focus {
  outline: 0;
}

@keyframes pgf-level-up-cta-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 10px 18px rgba(171, 68, 44, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.52);
  }
  50% {
    transform: scale(1.06);
    box-shadow:
      0 14px 24px rgba(171, 68, 44, 0.46),
      0 0 0 4px rgba(255, 176, 77, 0.26),
      inset 0 1px 0 rgba(255, 255, 255, 0.58);
  }
}

@media (prefers-reduced-motion: reduce) {
  #hero-short-data .pgf-hero-destiny {
    animation: none;
  }
}

#hero-short-data .pgf-hero-magnet {
  grid-area: extra;
  justify-self: end;
  display: inline-flex;
  align-items: center;
}

#hero-short-data .record-with-progress {
  margin: 0 0 8px;
  padding: 0;
  position: static;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
}

#hero-short-data .record-with-progress:last-child {
  margin-bottom: 0;
}

#hero-short-data .record-with-progress:hover {
  background: transparent;
}

#hero-short-data .record-with-progress .game-ui-icon {
  margin: 0;
  position: static;
  left: auto;
  top: auto;
}

#hero-short-data .record-with-progress .progress {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  height: 12px;
  border-radius: 999px;
  border: 1px solid #ceb794;
  background: linear-gradient(180deg, #e9dbc8, #d8c2a1);
  box-shadow: inset 0 1px 2px rgba(90, 66, 35, 0.16);
}

#hero-short-data .record-with-progress .text-values {
  position: static;
  right: auto;
  top: auto;
  min-width: 80px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5d431f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#hero-short-data .pgf-hero-attributes {
  margin-top: 9px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

#hero-short-data .pgf-hero-attributes br {
  display: none;
}

#hero-short-data .pgf-hero-attributes .attribute-record {
  margin: 0;
  min-height: 30px;
  padding: 4px 7px;
  width: auto;
  border-radius: 10px;
  border: 1px solid rgba(170, 135, 88, 0.36);
  background: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

#hero-short-data .pgf-hero-attributes .attribute-record > span {
  color: #4c3517;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
}

#hero-short-data .pgf-hero-meta {
  margin: 9px 0 0;
  padding: 0;
}

#hero-short-data .pgf-hero-meta > li,
#hero-short-data .pgf-hero-master {
  margin: 0;
  min-height: 30px;
  padding: 5px 8px;
  border-radius: 10px;
  border: 1px solid rgba(166, 133, 89, 0.34);
  background: rgba(255, 255, 255, 0.44);
  color: #5a4220;
  font-size: 13px;
  line-height: 1.25;
}

#hero-short-data .pgf-hero-meta a,
#hero-short-data .pgf-hero-master a {
  color: #275f88;
}

#hero-short-data .pgf-hero-master {
  margin-top: 7px;
}

#hero-short-data .pgf-hero-companion {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(176, 139, 86, 0.34);
}

#hero-short-data .pgf-hero-no-companion {
  margin-top: 10px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(166, 133, 89, 0.34);
  background: rgba(255, 255, 255, 0.45);
  color: #5d431f;
  font-size: 13px;
}

#hero-short-data .pgf-hero-no-companion span[rel="tooltip"] {
  cursor: pointer;
}

#hero-equipment table td {
  padding: 4px 0;
  vertical-align: middle;
}

#hero-equipment .name,
#hero-bag-block .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#hero-bag-block .pgf-bag-container {
  margin: 0;
  padding: 0;
}

#hero-bag-block .bag-record {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 4px 6px;
}

#hero-bag-block .bag-record .name {
  flex: 1;
}

#hero-bag-block .pgf-power-container,
#hero-bag-block .pgf-count-container {
  white-space: nowrap;
}

#hero-bag-block .pgf-count-container {
  margin-left: auto;
}

#hero-short-data .free-destiny-points {
  float: none;
}

#abilities-block {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
}

#current-action-block .dropdown,
#current-action-block .dropdown-menu {
  width: 100%;
}

#current-action-block .dropdown {
  max-width: 100%;
  width: 100% !important;
  display: block;
  position: relative;
  z-index: 1;
}

#current-action-block .dropdown.open {
  z-index: 15;
}

#current-action-block .dropdown-menu {
  position: static;
  display: none;
  margin-top: 8px;
  box-shadow: 0 18px 32px rgba(27, 23, 16, 0.18);
  border: 1px solid rgba(162, 131, 87, 0.4);
  border-radius: 16px;
  padding: 8px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(246, 236, 219, 0.98));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  animation: pgf-action-drawer-in 0.17s ease-out;
  z-index: 20;
}

@keyframes pgf-action-drawer-in {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.995);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pgf-action-drawer-in-centered {
  from {
    opacity: 0;
    transform: translate(-50%, -5px) scale(0.995);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

#current-action-block .dropdown-menu.show,
#current-action-block .dropdown.open .dropdown-menu {
  display: block;
}

#current-action-block .dropdown-menu.pgf-hidden {
  display: none;
}

#current-action-block .pgf-arena-choices {
  width: min(620px, 94vw) !important;
  max-width: 100%;
  max-height: min(360px, 56vh) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}

#current-action-block .pgf-action-drawer-toggle {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(120, 97, 65, 0.42);
  border-radius: 13px;
  background: linear-gradient(145deg, #fffef9, #f4e6cf);
  color: #5f4222;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  appearance: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 7px 12px rgba(39, 31, 20, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

#current-action-block .pgf-action-drawer-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 56%);
}

#current-action-block .pgf-cards-drawer-toggle {
  border-color: rgba(129, 93, 32, 0.52);
  background: linear-gradient(135deg, #edddb2 0%, #ddc184 100%);
  color: #5d461f;
  text-shadow: none;
  box-shadow: 0 4px 10px rgba(38, 31, 21, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

#current-action-block .pgf-cards-drawer-toggle::before {
  content: none;
}

#current-action-block .pgf-cards-drawer.pgf-cards-ready .pgf-cards-drawer-toggle {
  border-color: rgba(186, 140, 44, 0.9);
  background:
    linear-gradient(125deg, #c78f2b 0%, #edc05b 18%, #ffd97b 36%, #fff1bb 50%, #ffd66e 66%, #e2ad46 82%, #ba7f21 100%);
  background-size: 180% 180%;
  color: #5b3a05;
  box-shadow:
    0 12px 22px rgba(133, 84, 16, 0.34),
    0 0 0 3px rgba(234, 188, 87, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  animation: pgf-cards-ready-gradient 4.2s ease-in-out infinite, pgf-cards-ready-glow 2.3s ease-in-out infinite;
}

#current-action-block .pgf-cards-drawer.pgf-cards-ready .pgf-cards-drawer-toggle::after {
  content: "";
  position: absolute;
  inset: -22% -32%;
  pointer-events: none;
  background: linear-gradient(108deg, rgba(255, 255, 255, 0) 34%, rgba(255, 247, 210, 0.68) 50%, rgba(255, 255, 255, 0) 66%);
  transform: translateX(-18%);
  opacity: 0.22;
  animation: pgf-cards-ready-sheen 3.2s ease-in-out infinite;
}

#current-action-block .pgf-cards-drawer.pgf-cards-ready .pgf-cards-drawer-label {
  text-shadow: 0 1px 0 rgba(255, 249, 227, 0.7);
}

#current-action-block .pgf-cards-drawer.pgf-cards-ready .pgf-new-card-icon {
  animation: pgf-cards-gift-pop 1.08s ease-in-out infinite;
  filter: drop-shadow(0 2px 5px rgba(125, 81, 15, 0.5));
}

#current-action-block .pgf-arena-dropdown {
  border-color: rgba(187, 143, 76, 0.42);
  background: linear-gradient(145deg, #fff2de, #ebd4ad);
  color: #684524;
}

#current-action-block .pgf-action-drawer-toggle:hover,
#current-action-block .pgf-action-drawer-toggle:focus {
  border-color: rgba(173, 132, 66, 0.5);
  background: linear-gradient(145deg, #fff9ef, #f3e3c2);
  transform: translateY(-1px);
  box-shadow: 0 10px 16px rgba(39, 31, 20, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

#current-action-block .pgf-cards-drawer-toggle:hover,
#current-action-block .pgf-cards-drawer-toggle:focus {
  border-color: rgba(109, 78, 27, 0.62);
  background: linear-gradient(135deg, #f1e2bc 0%, #e1c98f 100%);
  color: #533f1c;
  box-shadow: 0 7px 14px rgba(38, 31, 21, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

#current-action-block .pgf-cards-drawer.pgf-cards-ready .pgf-cards-drawer-toggle:hover,
#current-action-block .pgf-cards-drawer.pgf-cards-ready .pgf-cards-drawer-toggle:focus {
  border-color: rgba(191, 144, 48, 0.92);
  background:
    linear-gradient(125deg, #cb932f 0%, #efc668 18%, #ffe08d 36%, #fff4c7 50%, #ffd978 66%, #e7b655 82%, #c28726 100%);
  background-size: 180% 180%;
  color: #583705;
  box-shadow:
    0 14px 24px rgba(133, 84, 16, 0.38),
    0 0 0 4px rgba(234, 188, 87, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

#current-action-block .dropdown.open .pgf-action-drawer-toggle {
  transform: translateY(-1px);
}

#current-action-block .pgf-cards-drawer.open .pgf-action-drawer-toggle {
  border-color: rgba(109, 78, 27, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(109, 78, 27, 0.22),
    0 0 0 3px rgba(232, 207, 149, 0.2),
    0 10px 18px rgba(38, 31, 21, 0.22);
}

#current-action-block .pgf-cards-drawer.pgf-cards-ready.open .pgf-action-drawer-toggle {
  border-color: rgba(191, 144, 48, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(191, 144, 48, 0.28),
    0 0 0 4px rgba(234, 188, 87, 0.28),
    0 12px 22px rgba(133, 84, 16, 0.34);
}

#current-action-block .pgf-arena-drawer.open .pgf-action-drawer-toggle {
  border-color: #b88746;
  box-shadow: inset 0 0 0 1px rgba(184, 135, 70, 0.22), 0 0 0 3px rgba(184, 135, 70, 0.1), 0 10px 18px rgba(82, 54, 25, 0.2);
}

#current-action-block .pgf-cards-drawer .pgf-new-card-icon {
  margin-top: 0;
}

@keyframes pgf-cards-ready-gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes pgf-cards-ready-glow {
  0%,
  100% {
    box-shadow:
      0 10px 18px rgba(133, 84, 16, 0.3),
      0 0 0 2px rgba(234, 188, 87, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.72);
  }
  50% {
    box-shadow:
      0 15px 26px rgba(133, 84, 16, 0.42),
      0 0 0 5px rgba(234, 188, 87, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }
}

@keyframes pgf-cards-ready-sheen {
  0%,
  100% {
    transform: translateX(-18%);
    opacity: 0.2;
  }
  50% {
    transform: translateX(18%);
    opacity: 0.5;
  }
}

@keyframes pgf-cards-gift-pop {
  0%,
  100% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.14) rotate(-5deg);
  }
  65% {
    transform: scale(1.08) rotate(3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  #current-action-block .pgf-cards-drawer.pgf-cards-ready .pgf-cards-drawer-toggle,
  #current-action-block .pgf-cards-drawer.pgf-cards-ready .pgf-cards-drawer-toggle::after,
  #current-action-block .pgf-cards-drawer.pgf-cards-ready .pgf-new-card-icon,
  #current-action-block .pgf-get-card-button .cards-button,
  #current-action-block .pgf-get-card-button .cards-button::after {
    animation: none !important;
  }
}

#current-action-block .pgf-cards-drawer .pgf-action-drawer-caret {
  color: #654b1d;
}

#current-action-block .pgf-action-drawer-caret {
  font-size: 10px;
  transition: transform 0.15s ease;
}

#current-action-block .dropdown.open .pgf-action-drawer-caret {
  transform: rotate(180deg);
}

#current-action-block .pgf-arena-drawer .pgf-arena-call-active {
  margin-top: 0;
}

#current-action-block .pgf-cards-drawer-panel {
  overflow: hidden;
  padding: 0;
}

#current-action-block .pgf-cards-drawer-scroll {
  max-height: min(360px, 56vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  padding: 8px;
}

#current-action-block .pgf-cards-drawer-list > li {
  list-style: none;
}

#current-action-block .pgf-cards-drawer-list {
  margin: 0;
  padding: 0;
}

#current-action-block .pgf-get-card-statistics {
  text-align: center;
  border: 1px solid rgba(167, 132, 84, 0.32);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(247, 236, 216, 0.96));
  padding: 8px 9px;
  margin: 2px 2px 10px;
}

#current-action-block .pgf-get-card-statistics-caption {
  display: inline-block;
  color: #70512a;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#current-action-block .pgf-new-card-timer-progress {
  margin: 0 !important;
  height: 18px;
  position: relative;
  border-radius: 999px !important;
  overflow: hidden;
  border: 1px solid #cfb184;
  background: linear-gradient(180deg, #f3e5ca, #e7d4b0);
}

#current-action-block .pgf-new-card-timer-progress .pgf-new-card-progress {
  background: linear-gradient(90deg, #efcf8d 0%, #dfba72 50%, #cfa058 100%);
  box-shadow: inset 0 0 0 1px rgba(136, 98, 44, 0.28);
}

#current-action-block .pgf-new-card-timer-overlay {
  width: 100%;
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #6a4a23;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.36);
}

#current-action-block .pgf-cards-drawer-list .cards-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 5px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #d4c4af;
  border-radius: 11px;
  background: linear-gradient(180deg, #fffefc, #f3e6d5);
  color: #6b4a23;
  font-size: 13px !important;
  font-weight: 700;
  line-height: 1.25 !important;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(31, 24, 17, 0.11);
}

#current-action-block .pgf-cards-drawer-list .cards-button:hover,
#current-action-block .pgf-cards-drawer-list .cards-button:focus {
  text-decoration: none;
  background: linear-gradient(180deg, #fffdf9, #f4e9d8);
  border-color: #c8b7a3;
  color: #5d401f;
}

#current-action-block .pgf-get-card-button .cards-button,
#current-action-block .pgf-get-card-button .cards-button:visited {
  position: relative;
  overflow: hidden;
  color: #5b3a05;
  border-color: rgba(186, 140, 44, 0.9);
  background:
    linear-gradient(125deg, #c78f2b 0%, #edc05b 18%, #ffd97b 36%, #fff1bb 50%, #ffd66e 66%, #e2ad46 82%, #ba7f21 100%);
  background-size: 180% 180%;
  text-shadow: 0 1px 0 rgba(255, 249, 227, 0.7);
  box-shadow:
    0 12px 22px rgba(133, 84, 16, 0.34),
    0 0 0 3px rgba(234, 188, 87, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  animation: pgf-cards-ready-gradient 4.2s ease-in-out infinite, pgf-cards-ready-glow 2.3s ease-in-out infinite;
}

#current-action-block .pgf-get-card-button .cards-button::after {
  content: "";
  position: absolute;
  inset: -22% -32%;
  pointer-events: none;
  background: linear-gradient(108deg, rgba(255, 255, 255, 0) 34%, rgba(255, 247, 210, 0.68) 50%, rgba(255, 255, 255, 0) 66%);
  transform: translateX(-18%);
  opacity: 0.22;
  animation: pgf-cards-ready-sheen 3.2s ease-in-out infinite;
}

#current-action-block .pgf-get-card-button .cards-button:hover,
#current-action-block .pgf-get-card-button .cards-button:focus,
#current-action-block .pgf-get-card-button .cards-button:active {
  color: #583705;
  border-color: rgba(191, 144, 48, 0.92);
  background:
    linear-gradient(125deg, #cb932f 0%, #efc668 18%, #ffe08d 36%, #fff4c7 50%, #ffd978 66%, #e7b655 82%, #c28726 100%);
  background-size: 180% 180%;
  box-shadow:
    0 14px 24px rgba(133, 84, 16, 0.38),
    0 0 0 4px rgba(234, 188, 87, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

#current-action-block .pgf-cards-container-wrapper,
#current-action-block .pgf-cards-container {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#current-action-block .pgf-card-multiplier {
  color: #9b6a2c;
  font-weight: 700;
}

#current-action-block .pgf-cards-divider {
  margin: 8px 4px;
}

#current-action-block .pgf-cards-divider hr {
  margin: 0;
  border-top: 1px solid rgba(160, 136, 101, 0.32);
  border-bottom: 0;
}

#current-action-block .pgf-cards-container .pgf-card-link {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 3px 2px;
  padding: 7px 8px;
  border-radius: 11px;
  border: 1px solid transparent;
  color: #2c251c;
  font-size: 13px;
  text-decoration: none;
  line-height: 1.25;
}

#current-action-block .pgf-cards-container .pgf-card-link .pgf-number {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(193, 149, 78, 0.34);
  background: rgba(255, 241, 212, 0.88);
  color: #865d29;
  font-size: 11px;
  font-weight: 700;
}

#current-action-block .pgf-cards-container .pgf-card-record {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#current-action-block .pgf-cards-container .pgf-card-link:hover,
#current-action-block .pgf-cards-container .pgf-card-link:focus {
  text-decoration: none;
  border-color: rgba(188, 145, 74, 0.28);
  background: rgba(226, 187, 120, 0.14);
}

#current-action-block .pgf-cards-container .pgf-card-link.pgf-card-link-selected {
  border-color: rgba(185, 136, 62, 0.44);
  background: rgba(229, 188, 118, 0.22);
  box-shadow: inset 0 0 0 1px rgba(185, 136, 62, 0.22);
  color: #5b3b1c;
}

#current-action-block .pgf-no-cards {
  font-size: 12px;
  text-align: center;
  margin: 10px 0 4px;
}

#current-action-block .pgf-arena-choices {
  width: min(620px, 94vw) !important;
  max-width: 100%;
  max-height: min(360px, 56vh) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}

#current-action-block .pgf-arena-choices > * + * {
  margin-top: 8px;
}

#current-action-block .pgf-arena-link-row {
  padding: 2px 3px;
}

#current-action-block .pgf-arena-rules-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: #7a572e;
}

#current-action-block .pgf-arena-rules-link::before {
  content: "i";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(189, 147, 83, 0.34);
  background: rgba(255, 241, 214, 0.82);
  color: #7a572e;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#current-action-block .pgf-arena-battle-button,
#current-action-block .pgf-arena-bot-fight {
  margin: 0;
}

#current-action-block .pgf-arena-battle-button > a,
#current-action-block .pgf-arena-bot-fight > a {
  display: block;
  padding: 8px 11px;
  border: 1px solid #d8c3a3;
  border-radius: 11px;
  background: linear-gradient(180deg, #fffef9, #f4e7d5);
  color: #624325;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(32, 27, 20, 0.1);
}

#current-action-block .pgf-arena-battle-button > a:hover,
#current-action-block .pgf-arena-battle-button > a:focus,
#current-action-block .pgf-arena-bot-fight > a:hover,
#current-action-block .pgf-arena-bot-fight > a:focus {
  background: linear-gradient(180deg, #fffefc, #f7ecdd);
  border-color: #ccb79a;
  color: #563a1f;
  text-decoration: none;
}

#current-action-block .pgf-arena-battle-button > .pgf-leave-arena,
#current-action-block .pgf-arena-battle-button > .pgf-leave-arena:hover,
#current-action-block .pgf-arena-battle-button > .pgf-leave-arena:focus {
  border-color: #8f3f3f;
  background: linear-gradient(180deg, #b55252, #934040);
  color: #fff;
}

#current-action-block .pgf-arena-divider {
  margin: 2px 0;
}

#current-action-block .pgf-arena-divider hr {
  margin: 0;
  border-top: 1px solid rgba(160, 136, 101, 0.32);
  border-bottom: 0;
}

#current-action-block .pgf-arena-summary {
  padding: 0 3px;
}

#current-action-block .pgf-arena-battles-summary-link {
  color: #72522d;
  font-size: 12px;
  font-weight: 700;
}

#current-action-block .pgf-arena-section-title {
  padding: 0 3px;
  color: #5b4a34;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#current-action-block .pgf-arena-battles-table {
  margin: 0;
  width: 100%;
}

#current-action-block .pgf-arena-battles-table td {
  vertical-align: middle;
  border-top-color: rgba(163, 138, 102, 0.22);
}

#current-action-block .pgf-arena-accept-battle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #19684a;
  background: linear-gradient(180deg, #2ca56f, #1f7a5a);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

#current-action-block .pgf-arena-accept-battle:hover,
#current-action-block .pgf-arena-accept-battle:focus {
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #258e60, #1a6a4f);
}

#current-action-block .pgf-arena-accept-own-battle {
  display: inline-flex;
  padding: 0 8px;
  color: #6b5c49;
  font-size: 12px;
  font-weight: 700;
}

#current-action-block .pgf-arena-battles-table .game-ui-icon {
  vertical-align: middle;
}

#current-action-block .pgf-arena-initiator-level {
  display: inline-block;
}

#current-action-block .pgf-no-arena-battle-requests {
  font-size: 12px;
  text-align: center;
  margin: 6px 0 2px;
}

@media (min-width: 980px) {
  #abilities-block {
    grid-template-columns: 1fr;
  }

  #current-action-block .dropdown {
    width: 100% !important;
  }

  #current-action-block .dropdown-menu {
    position: absolute;
    display: none;
    width: min(620px, 94vw);
  }

  #current-action-block .pgf-cards-drawer-panel {
    width: min(540px, 94vw) !important;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    animation-name: pgf-action-drawer-in-centered;
  }

  #current-action-block .dropdown.open .dropdown-menu,
  #current-action-block .dropdown .dropdown-menu.show {
    display: block;
  }
}

.pgf-game-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
}

.pgf-map-mode-controls {
  display: inline-flex;
  gap: 5px;
  border-radius: 12px;
  border: 1px solid var(--pgf-border);
  padding: 4px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(29, 23, 17, 0.08);
}

.pgf-map-mode-button {
  min-height: 34px;
  border: 1px solid #dfd2bf;
  background: linear-gradient(180deg, #f8f2e8, #eee3d3);
  color: #2f3e36;
  border-radius: 9px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.pgf-map-mode-button:hover,
.pgf-map-mode-button:focus {
  background: #f0e6d7;
  box-shadow: inset 0 0 0 1px rgba(20, 89, 66, 0.08);
}

.pgf-map-mode-button.is-active {
  background: linear-gradient(180deg, var(--pgf-accent), var(--pgf-accent-strong));
  border-color: var(--pgf-accent-strong);
  color: #fff;
  box-shadow: 0 6px 14px rgba(31, 122, 90, 0.26);
}

#pgf-map-container {
  min-height: 360px;
}

#pgf-map-block {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

#pgf-map-block.pgf-map-card {
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(193, 157, 106, 0.36);
  border-radius: 18px;
  background: #f8efdf;
  box-shadow:
    0 14px 26px rgba(37, 30, 20, 0.11),
    0 3px 8px rgba(37, 30, 20, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

#pgf-map-block.pgf-map-card::before {
  content: none;
}

#pgf-map-block.pgf-map-card > * {
  position: relative;
  z-index: 1;
}

#pgf-game-map {
  position: relative;
  flex: 1 1 auto;
  min-height: 310px;
  border-radius: 14px;
  border: 1px solid rgba(180, 143, 95, 0.38);
  background: #e8ece9;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), inset 0 -1px 0 rgba(92, 68, 36, 0.12);
}

#pgf-map-block.pgf-map-card #pgf-game-map::after {
  content: none;
}

#pgf-game-map .pgf-navigation-layer,
#pgf-game-map .pgf-map-canvas {
  inset: 0;
  width: 100%;
  height: 100%;
  position: absolute;
}

#pgf-game-map .pgf-navigation-layer {
  z-index: 502;
}

#pgf-game-map .pgf-map-canvas {
  z-index: 500;
}

#pgf-map-block .map-commands {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 9px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(182, 145, 95, 0.3);
  border-radius: 12px;
  padding: 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

#pgf-map-block .map-commands .dropdown {
  display: inline-flex !important;
}

#pgf-map-block .map-commands .dropdown-menu {
  margin-top: 7px;
  z-index: 1200;
  border: 1px solid rgba(183, 147, 99, 0.4);
  border-radius: 12px;
  padding: 6px;
  background: #fbf3e5;
  box-shadow: 0 14px 24px rgba(30, 25, 18, 0.16), 0 3px 8px rgba(30, 25, 18, 0.1);
}

#pgf-map-block .map-commands .dropdown-menu > li > a {
  display: block;
  margin: 0;
  padding: 6px 8px;
  border-radius: 8px;
  color: #5d4322;
  font-size: 13px;
  line-height: 1.25;
}

#pgf-map-block .map-commands .dropdown-menu > li > a:hover,
#pgf-map-block .map-commands .dropdown-menu > li > a:focus {
  text-decoration: none;
  background: rgba(214, 179, 127, 0.24);
  color: #4a3418;
}

.pgf-map-command-button {
  border: 1px solid rgba(184, 147, 99, 0.4);
  border-radius: 10px;
  min-height: 34px;
  min-width: 34px;
  padding: 5px 10px;
  background: #f7ead8;
  color: #5f4424;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.pgf-map-command-button:hover,
.pgf-map-command-button:focus {
  text-decoration: none;
  background: #f9f0e3;
  border-color: #c7ab84;
  color: #4f371b;
  transform: translateY(-1px);
}

.pgf-icon {
  width: 15px;
  height: 15px;
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
}

#current-quest-block .progress,
#hero-short-data .progress {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #e8dccb;
}

.pgf-hidden {
  display: none !important;
}

.pgf-game-v2-body .modal {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 18px));
  max-height: calc(100vh - var(--pgf-header-h) - 14px);
}

.pgf-game-v2-body .modal.fade.in {
  top: 50% !important;
}

.pgf-game-v2-body .modal-body {
  max-height: calc(100vh - var(--pgf-header-h) - 120px) !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pgf-game-v2-body .pgf-new-cards-dialog,
.pgf-game-v2-body .pgf-cards-storage-dialog,
.pgf-game-v2-body .pgf-cards-transformator-dialog {
  border: 1px solid var(--pgf-border);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf9 0%, #f7f0e3 100%);
  box-shadow: 0 18px 34px rgba(25, 20, 13, 0.2), 0 4px 10px rgba(25, 20, 13, 0.1);
}

.pgf-game-v2-body .pgf-card-use-dialog,
.pgf-game-v2-body .pgf-new-cards-dialog {
  border: 1px solid rgba(168, 127, 70, 0.52);
  border-radius: 17px;
  background:
    radial-gradient(circle at 13% 2%, rgba(255, 255, 255, 0.34) 0, transparent 38%),
    linear-gradient(180deg, #fffdf8 0%, #f6e9d2 100%);
  box-shadow: 0 22px 42px rgba(33, 24, 13, 0.25), 0 4px 12px rgba(33, 24, 13, 0.12);
}

.pgf-game-v2-body .pgf-card-use-dialog .modal-header.pgf-cards-dialog-header,
.pgf-game-v2-body .pgf-new-cards-dialog .modal-header.pgf-cards-dialog-header {
  border-bottom: 1px solid rgba(182, 147, 96, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(247, 234, 208, 0.92)),
    linear-gradient(90deg, rgba(193, 143, 68, 0.1), rgba(255, 255, 255, 0));
}

.pgf-game-v2-body .pgf-card-use-dialog .pgf-cards-dialog-title,
.pgf-game-v2-body .pgf-new-cards-dialog .pgf-cards-dialog-title {
  color: #4f3519;
  letter-spacing: 0.02em;
}

.pgf-game-v2-body .pgf-card-use-dialog .pgf-cards-dialog-close,
.pgf-game-v2-body .pgf-new-cards-dialog .pgf-cards-dialog-close {
  border-color: rgba(173, 133, 74, 0.58);
  background: linear-gradient(180deg, #fffaf0, #f7e8cd);
  color: #6f4b20;
}

.pgf-game-v2-body .pgf-card-use-dialog .pgf-cards-dialog-close:hover,
.pgf-game-v2-body .pgf-card-use-dialog .pgf-cards-dialog-close:focus,
.pgf-game-v2-body .pgf-new-cards-dialog .pgf-cards-dialog-close:hover,
.pgf-game-v2-body .pgf-new-cards-dialog .pgf-cards-dialog-close:focus {
  border-color: rgba(156, 115, 59, 0.72);
  background: linear-gradient(180deg, #fffef8, #f3dfb7);
  color: #5b3d18;
}

.pgf-game-v2-body .pgf-card-use-dialog .pgf-card-use-dialog-description {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(180, 147, 94, 0.42);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(244, 231, 204, 0.62));
  color: #433322;
  font-size: 14px;
  line-height: 1.35;
}

.pgf-game-v2-body .pgf-card-use-dialog .pgf-use-card-form {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pgf-game-v2-body .pgf-card-use-dialog .pgf-use-card-form.form-inline {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.pgf-game-v2-body .pgf-card-use-dialog .pgf-use-card-form .widget {
  margin: 0;
}

.pgf-game-v2-body .pgf-card-use-dialog .pgf-use-card-form input[type="text"],
.pgf-game-v2-body .pgf-card-use-dialog .pgf-use-card-form input[type="number"],
.pgf-game-v2-body .pgf-card-use-dialog .pgf-use-card-form select,
.pgf-game-v2-body .pgf-card-use-dialog .pgf-use-card-form textarea {
  width: 100%;
  max-width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #c9ab7d;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.92);
  color: #47331b;
  box-sizing: border-box;
  box-shadow: inset 0 1px 2px rgba(78, 57, 28, 0.12);
}

.pgf-game-v2-body .pgf-card-use-dialog .errorlist,
.pgf-game-v2-body .pgf-card-use-dialog .errors {
  margin: 0;
  padding: 8px 10px;
  list-style: none;
  border: 1px solid rgba(167, 80, 63, 0.42);
  border-radius: 11px;
  background: rgba(194, 88, 68, 0.11);
  color: #7f2f22;
  font-size: 13px;
}

.pgf-game-v2-body .pgf-card-use-dialog .errorlist li + li {
  margin-top: 4px;
}

.pgf-game-v2-body .pgf-card-use-dialog .pgf-card-use-submit,
.pgf-game-v2-body .pgf-new-cards-dialog-submit.btn {
  align-self: flex-start;
  min-width: 140px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 11px;
  border: 1px solid rgba(129, 93, 32, 0.52);
  background: linear-gradient(135deg, #f3e4bd 0%, #e8cf95 100%);
  color: #5d461f;
  font-size: 14px;
  font-weight: 700;
  line-height: 36px;
  text-shadow: none;
  box-shadow: 0 4px 10px rgba(38, 31, 21, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.pgf-game-v2-body .pgf-card-use-dialog .pgf-card-use-submit:hover,
.pgf-game-v2-body .pgf-card-use-dialog .pgf-card-use-submit:focus,
.pgf-game-v2-body .pgf-new-cards-dialog-submit.btn:hover,
.pgf-game-v2-body .pgf-new-cards-dialog-submit.btn:focus {
  border-color: rgba(109, 78, 27, 0.62);
  background: linear-gradient(135deg, #f7e9c6 0%, #edd79f 100%);
  color: #533f1c;
  box-shadow: 0 7px 14px rgba(38, 31, 21, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.pgf-game-v2-body .modal-header.pgf-cards-dialog-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 52px 10px 14px;
  border-bottom: 1px solid #ddcfb8;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(250, 241, 225, 0.82));
  border-radius: 14px 14px 0 0;
}

.pgf-game-v2-body .pgf-cards-dialog-title {
  margin: 0;
  color: #3f3528;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.15;
}

.pgf-game-v2-body .pgf-cards-dialog-close {
  position: absolute;
  top: 9px;
  right: 12px;
  order: 2;
  margin: 0;
  padding: 0;
  float: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #cdbb9f;
  border-radius: 999px;
  background: #fffcf6;
  color: #71604b;
  font-size: 21px;
  line-height: 1;
  text-shadow: none;
  opacity: 1;
}

.pgf-game-v2-body .pgf-cards-dialog-close:hover,
.pgf-game-v2-body .pgf-cards-dialog-close:focus {
  color: #4d4132;
  border-color: #bba683;
  background: #fff9ed;
}

.pgf-game-v2-body .modal-body.pgf-cards-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 14px;
}

.pgf-game-v2-body .pgf-cards-dialog-lead {
  margin: 0;
  color: #3d3428;
  font-size: 14px;
}

.pgf-game-v2-body .pgf-cards-dialog-rules {
  margin: 0;
  padding-left: 18px;
  color: #5f5342;
  font-size: 13px;
  line-height: 1.35;
}

.pgf-game-v2-body .pgf-cards-dialog-rules li + li {
  margin-top: 3px;
}

.pgf-game-v2-body .pgf-cards-amount-choice {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pgf-game-v2-body .pgf-cards-amount-choice li {
  margin: 0;
}

.pgf-game-v2-body .pgf-cards-amount-choice a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #c8b99f;
  border-radius: 999px;
  background: #fffaf1;
  color: #5d4f3b;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.pgf-game-v2-body .pgf-cards-amount-choice a:hover,
.pgf-game-v2-body .pgf-cards-amount-choice a:focus {
  border-color: #b8a489;
  background: #fff4e2;
  color: #4b4030;
}

.pgf-game-v2-body .pgf-cards-amount-choice li.active a {
  border-color: #1b7253;
  background: linear-gradient(180deg, #2ca56f, #1f7a5a);
  color: #fff;
}

.pgf-game-v2-body .pgf-new-cards-dialog-empty {
  margin: 0;
  color: #6f5632;
  font-size: 14px;
  padding: 9px 11px;
  border: 1px dashed rgba(171, 132, 75, 0.45);
  border-radius: 11px;
  background: rgba(248, 236, 211, 0.54);
}

.pgf-game-v2-body .pgf-new-cards-dialog-list,
.pgf-game-v2-body .pgf-cards-dialog-list {
  margin: 0;
  padding: 4px;
  max-height: min(44vh, 280px);
  overflow-y: auto;
  border: 1px solid #ded2c1;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
}

.pgf-game-v2-body .pgf-new-cards-dialog-list .pgf-template,
.pgf-game-v2-body .pgf-cards-dialog-list .pgf-template {
  display: none;
}

.pgf-game-v2-body .pgf-new-cards-dialog-item,
.pgf-game-v2-body .pgf-cards-dialog-item {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 7px 9px;
  color: #2f281d;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
}

.pgf-game-v2-body .pgf-new-cards-dialog-item:hover,
.pgf-game-v2-body .pgf-new-cards-dialog-item:focus,
.pgf-game-v2-body .pgf-cards-dialog-item:hover,
.pgf-game-v2-body .pgf-cards-dialog-item:focus {
  border-color: rgba(184, 140, 74, 0.36);
  background: rgba(223, 186, 123, 0.22);
  text-decoration: none;
}

.pgf-game-v2-body .pgf-new-cards-dialog-item .pgf-number,
.pgf-game-v2-body .pgf-cards-dialog-item .pgf-number {
  color: #503518;
  font-weight: 700;
}

.pgf-game-v2-body .pgf-new-cards-dialog-multiplier,
.pgf-game-v2-body .pgf-cards-dialog-multiplier {
  color: #8a5e23;
  font-weight: 700;
}

.pgf-game-v2-body .pgf-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pgf-game-v2-body .pgf-cards-column {
  min-width: 0;
}

.pgf-game-v2-body .pgf-cards-column-title {
  margin: 0 0 5px;
  color: #4d4132;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.pgf-game-v2-body .pgf-transformator-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.pgf-game-v2-body .pgf-transformator-pool {
  min-width: 0;
}

.pgf-game-v2-body .pgf-transformator-list {
  max-height: 96px;
}

.pgf-game-v2-body .pgf-transformator-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.pgf-game-v2-body .pgf-transformator-button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid #166145;
  background: linear-gradient(180deg, #2ca56f, #1f7a5a);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 34px;
  text-shadow: none;
  box-shadow: 0 3px 8px rgba(20, 89, 66, 0.26);
}

.pgf-game-v2-body .pgf-transformator-button:hover,
.pgf-game-v2-body .pgf-transformator-button:focus {
  border-color: #14533f;
  background: linear-gradient(180deg, #258e60, #1a6a4f);
  color: #fff;
}

.pgf-game-v2-body .pgf-transformator-button.pgf-disabled,
.pgf-game-v2-body .pgf-transformator-button.disabled {
  border-color: #b8ab99;
  background: linear-gradient(180deg, #e6ddd1, #d7cbbb);
  color: #7f7263;
  box-shadow: none;
  cursor: default;
}

.pgf-plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pgf-game-stopped-message .alert,
.pgf-last-news-reminder {
  margin-bottom: 10px;
}

.pgf-last-news-reminder .close {
  float: right;
  border: 0;
  background: transparent;
  font-size: 18px;
}

.pgf-hero-quick-grid {
  width: 100%;
  border-collapse: collapse;
}

.pgf-hero-quick-grid td {
  padding: 6px;
  text-align: center;
}

.pgf-health-progress,
.pgf-action-progress {
  position: relative;
}

.pgf-health-progress .bar,
.pgf-action-progress .bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
}

.pgf-game-v2-time .icon-time,
.pgf-game-v2-time .icon-white,
.icon,
[class^="icon-"] {
  display: inline-block;
}

@media (min-width: 900px) {
  .pgf-game-v2-main {
    padding: 16px var(--pgf-shell-gutter) 18px;
  }

  .pgf-game-data {
    grid-template-columns: minmax(220px, 0.95fr) minmax(320px, 1.45fr) minmax(240px, 1.05fr);
    align-items: start;
    gap: 14px;
  }

  .pgf-info-column {
    min-width: 0;
  }

  .pgf-map-column {
    min-width: 220px;
  }

  .pgf-hero-column,
  .pgf-info-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .pgf-hero-column .first-row-block,
  .pgf-info-column .first-row-block,
  .pgf-hero-column .second-row-block,
  .pgf-info-column .second-row-block {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .pgf-hero-column .first-row-block,
  .pgf-info-column .first-row-block {
    min-height: 300px;
  }

  .pgf-hero-column .second-row-block,
  .pgf-info-column .second-row-block {
    min-height: 400px;
  }

  .pgf-game-layout[data-map-mode='large'] {
    grid-template-columns: minmax(380px, 1.5fr) minmax(260px, 1fr);
  }

  .pgf-game-layout[data-map-mode='none'] {
    grid-template-columns: minmax(220px, 0.95fr) minmax(380px, 1.7fr);
  }

  .log-block {
    max-height: 500px;
  }
}

@media (min-width: 1400px) {
  .pgf-game-data {
    grid-template-columns: minmax(290px, 1fr) minmax(560px, 1.5fr) minmax(340px, 1.15fr);
  }

  .pgf-game-layout[data-map-mode='large'] {
    grid-template-columns: minmax(700px, 1.65fr) minmax(360px, 1fr);
  }

  .pgf-game-layout[data-map-mode='none'] {
    grid-template-columns: minmax(300px, 1fr) minmax(760px, 1.8fr);
  }

  .pgf-map-column #pgf-map-block {
    position: sticky;
    top: calc(var(--pgf-header-h) + 14px);
  }
}

@media (min-width: 1750px) {
  .pgf-game-data {
    grid-template-columns: minmax(320px, 1fr) minmax(700px, 1.55fr) minmax(420px, 1.2fr);
  }

  .pgf-game-layout[data-map-mode='large'] {
    grid-template-columns: minmax(860px, 1.8fr) minmax(440px, 1fr);
  }

  .pgf-game-layout[data-map-mode='none'] {
    grid-template-columns: minmax(320px, 1fr) minmax(960px, 2fr);
  }
}

@media (max-width: 899px) {
  html,
  body,
  .pgf-game-v2-main,
  .pgf-game-v2-content,
  .pgf-game-data {
    max-width: 100%;
    overflow-x: hidden;
  }

  .pgf-game-v2-main {
    padding: 8px;
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  .pgf-game-data {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pgf-hero-column,
  .pgf-info-column,
  .pgf-map-column {
    display: contents;
  }

  .pgf-hero-column .first-row-block {
    order: 1;
  }

  .pgf-info-column .first-row-block {
    order: 2;
  }

  .pgf-info-column .second-row-block {
    order: 3;
  }

  .pgf-hero-column .second-row-block {
    order: 4;
  }

  #pgf-map-container {
    order: 5;
  }

  .pgf-game-data > *,
  .pgf-game-data .easy-block,
  .pgf-game-data .first-row-block,
  .pgf-game-data .second-row-block,
  #hero-short-data,
  #current-quest-block,
  #current-action-block,
  #hero-equipment,
  #hero-bag-block,
  #pgf-map-container,
  #pgf-map-block,
  #pgf-game-map,
  .log-block {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  #hero-equipment table,
  .pgf-hero-quick-grid {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
  }

  #hero-equipment .name,
  #hero-bag-block .name,
  .log-block,
  #current-quest-block,
  #current-action-block {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .pgf-game-v2-time-text {
    display: none;
  }

  .pgf-tabbar-side {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .pgf-journal-tabbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 7px;
  }

  .pgf-journal-tabbar .pgf-tabbar-link {
    min-height: 34px;
    padding: 5px 8px;
    font-size: 12px;
  }

  .pgf-journal-tabbar .pgf-journal-tabbar-side {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: stretch;
    justify-content: stretch;
  }

  .pgf-journal-tabbar .pgf-journal-tabbar-side .pgf-log-mode {
    width: 100%;
    min-width: 0;
  }

  .pgf-journal-tabbar .pgf-game-time {
    min-width: 40px;
    padding: 1px 6px;
  }

  .pgf-equipment-tabbar {
    gap: 6px;
    padding: 7px;
  }

  .pgf-equipment-tabbar .pgf-tabbar-link {
    min-height: 34px;
    padding: 5px 8px;
    font-size: 12px;
  }

  .pgf-equipment-tabbar .pgf-item-count-container {
    min-width: 40px;
    padding: 1px 6px;
  }

  .pgf-equipment-cluster {
    border-radius: 16px;
    padding: 9px 10px 10px;
  }

  .pgf-game-v2-debug {
    display: none;
  }

  #pgf-header-arena {
    position: static;
  }

  .pgf-header-bills-alert {
    min-height: 34px;
    padding: 0 9px;
    gap: 5px;
    font-size: 12px;
  }

  .pgf-header-bills-icon {
    width: 17px;
    height: 17px;
    font-size: 9px;
  }

  .pgf-header-bills-count {
    padding: 2px 6px;
    font-size: 10px;
  }

  #pgf-header-arena .pgf-header-arena-toggle {
    min-height: 34px;
    padding: 0 9px;
    gap: 5px;
    font-size: 12px;
  }

  #pgf-header-arena .dropdown-menu {
    position: fixed;
    top: calc(var(--pgf-header-h) + 8px);
    left: 8px;
    right: 8px;
    width: auto;
    max-height: min(66vh, 520px);
    border-radius: 14px;
    z-index: 2147483200;
  }

  #pgf-header-arena .pgf-header-arena-actions {
    grid-template-columns: 1fr;
  }

  #pgf-header-arena .pgf-arena-battles-table {
    width: 100%;
    table-layout: fixed;
  }

  #pgf-header-arena .pgf-arena-battles-table td {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  #current-action-block.pgf-action-card {
    padding: 12px 12px 10px;
    border-radius: 16px;
  }

  #current-quest-block.pgf-quest-card {
    border-radius: 16px;
  }

  #current-quest-block .pgf-quest-surface {
    padding: 10px 10px 9px;
  }

  #current-quest-block .pgf-quest-record-main {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 6px 10px;
  }

  #current-quest-block .pgf-quest-record-main > h4 {
    font-size: 16px;
    gap: 3px 6px;
  }

  #current-quest-block .pgf-quest-record-main .quest-icon {
    width: 64px;
    height: 64px;
    border-radius: 0;
    margin-left: 0;
    transform: scale(1.12);
  }

  #current-quest-block .pgf-quest-record-main .actors-container li {
    font-size: 12px;
    padding: 3px 7px;
  }

  #current-quest-block .pgf-quest-action-description {
    margin-left: 88px;
    padding-left: 0;
    font-size: 14px;
  }

  #current-quest-block .pgf-quest-status-panel {
    padding: 8px 10px 10px;
    gap: 6px;
  }

  #current-quest-block .pgf-no-choices,
  #current-quest-block .pgf-future-choice,
  #current-quest-block .pgf-choices-container .choice-record {
    padding: 7px 8px;
    font-size: 12px;
  }

  #current-quest-block .pgf-no-choices,
  #current-quest-block .pgf-future-choice {
    margin-left: 88px;
    padding: 0;
    font-size: 13px;
  }

  #pgf-map-block.pgf-map-card {
    padding: 9px;
    border-radius: 15px;
  }

  #pgf-map-block.pgf-map-card .map-commands {
    gap: 6px;
    padding: 6px;
    margin-bottom: 8px;
    border-radius: 10px;
  }

  #pgf-map-block.pgf-map-card .map-commands .dropdown-menu {
    max-width: calc(100vw - 24px);
    max-height: min(56vh, 360px);
    padding: 5px;
    border-radius: 10px;
  }

  #pgf-map-block.pgf-map-card .map-commands .dropdown-menu > li > a {
    padding: 6px 7px;
    font-size: 12px;
  }

  #pgf-game-map {
    min-height: 296px;
    border-radius: 12px;
  }

  .pgf-map-command-button {
    min-height: 32px;
    min-width: 32px;
    padding: 4px 8px;
    font-size: 11px;
  }

  .pgf-action-journal-cluster {
    border-radius: 17px;
  }

  .pgf-action-journal-cluster .pgf-action-journal-log-block.easy-block {
    padding: 9px 10px 10px;
  }

  #current-action-block .pgf-action-headline {
    display: block;
  }

  #current-action-block .pgf-action-title-text {
    font-size: 16px;
  }

  #current-action-block .pgf-action-progress {
    height: 18px;
  }

  #current-action-block .pgf-action-health-pill {
    font-size: 14px;
    line-height: 0.82;
  }

  #current-action-block .pgf-action-health-label {
    font-size: 11px;
  }

  #hero-short-data.pgf-hero-card {
    border-radius: 16px;
    padding: 10px 10px 9px;
  }

  #hero-short-data .pgf-hero-head,
  #hero-short-data .pgf-companion-head {
    margin-bottom: 8px;
    gap: 5px 6px;
  }

  #hero-short-data .pgf-hero-name,
  #hero-short-data .pgf-companion .pgf-name {
    font-size: 20px;
  }

  #hero-short-data .pgf-companion .pgf-name {
    font-size: 18px;
  }

  #hero-short-data .pgf-hero-destiny {
    min-height: 29px;
    padding: 0 9px 0 7px;
    gap: 6px;
  }

  #hero-short-data .pgf-hero-destiny::before {
    width: 14px;
    height: 14px;
    font-size: 8px;
  }

  #hero-short-data .pgf-hero-destiny::after {
    font-size: 10px;
    letter-spacing: 0.015em;
  }

  #hero-short-data .record-with-progress {
    grid-template-columns: 13px minmax(0, 1fr) auto;
    gap: 6px;
    margin-bottom: 7px;
  }

  #hero-short-data .record-with-progress .text-values {
    min-width: 68px;
    padding: 1px 6px;
    font-size: 11px;
  }

  #hero-short-data .pgf-hero-attributes {
    gap: 6px;
  }

  #hero-short-data .pgf-hero-attributes .attribute-record {
    min-height: 28px;
    padding: 4px 6px;
  }

  #hero-short-data .pgf-hero-attributes .attribute-record > span {
    font-size: 14px;
  }

  #hero-short-data .pgf-hero-meta > li,
  #hero-short-data .pgf-hero-master,
  #hero-short-data .pgf-hero-no-companion {
    font-size: 12px;
    padding: 5px 8px;
  }

  #current-action-block .dropdown-menu {
    width: 100%;
  }

  #current-action-block .pgf-arena-choices {
    width: 100% !important;
    max-width: 100% !important;
    max-height: min(58vh, 460px) !important;
  }

  #current-action-block .pgf-arena-choices .pgf-arena-battles-table {
    width: 100%;
    table-layout: fixed;
  }

  #current-action-block .pgf-arena-choices .pgf-arena-battles-table td {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  #current-action-block .pgf-cards-drawer {
    position: fixed !important;
    left: 24px;
    right: 24px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    width: auto !important;
    margin: 0 !important;
    z-index: 2147483000 !important;
  }

  #current-action-block .pgf-cards-drawer,
  #current-action-block .pgf-cards-drawer-toggle,
  #current-action-block .pgf-cards-drawer-panel {
    box-sizing: border-box;
  }

  #current-action-block .pgf-cards-drawer.open {
    z-index: 2147483600 !important;
  }

  #pgf-map-container,
  #pgf-map-block,
  #pgf-game-map {
    position: relative;
    z-index: 1 !important;
  }

  #current-action-block .pgf-cards-drawer-toggle {
    min-height: 44px;
    border-radius: 14px;
    font-size: 16px;
    box-shadow: 0 14px 28px rgba(38, 31, 21, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.56);
  }

  #current-action-block .pgf-cards-drawer-panel {
    position: absolute !important;
    top: auto !important;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100% !important;
    max-width: 100%;
    margin-top: 0;
    border-radius: 14px;
    z-index: 2147483100 !important;
  }

  #current-action-block .pgf-cards-drawer-scroll {
    max-height: min(58vh, 460px);
  }

  #current-action-block .pgf-cards-container .pgf-card-link {
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 8px;
    padding: 5px 6px;
  }

  #current-action-block .pgf-cards-container .pgf-card-link.pgf-card-link-selected {
    background: rgba(229, 188, 118, 0.22);
    box-shadow: inset 0 0 0 1px rgba(185, 136, 62, 0.44);
    color: #5b3b1c;
  }

  body.pgf-ios-webkit .pgf-action-journal-cluster {
    overflow: visible;
  }

  body.pgf-ios-webkit #current-action-block .pgf-cards-drawer {
    left: calc(24px + env(safe-area-inset-left, 0px));
    right: calc(24px + env(safe-area-inset-right, 0px));
    z-index: 2147483630 !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
  }

  body.pgf-ios-webkit #current-action-block .pgf-cards-drawer-panel {
    width: 100% !important;
    max-width: 100% !important;
    z-index: 2147483631 !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  body.pgf-ios-webkit #current-action-block .pgf-cards-drawer-scroll {
    max-height: min(56dvh, 460px);
  }

  .easy-block,
  .pgf-game-card {
    border-radius: 13px;
    padding: 10px;
  }

  .pgf-game-v2-body .pgf-cards-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pgf-game-v2-body .pgf-transformator-top {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pgf-game-v2-body .pgf-transformator-action {
    justify-content: flex-start;
  }

  .pgf-game-v2-body .modal-header.pgf-cards-dialog-header {
    padding: 10px 46px 9px 12px;
  }

  .pgf-game-v2-body .pgf-cards-dialog-close {
    top: 7px;
    right: 9px;
    width: 28px;
    height: 28px;
    font-size: 19px;
  }

  .pgf-game-v2-body .pgf-cards-dialog-title {
    font-size: 18px;
  }

  .pgf-game-v2-body .pgf-cards-dialog-rules {
    font-size: 12px;
  }

  .pgf-game-v2-body .modal {
    width: min(560px, calc(100vw - 12px));
  }
}
