:root {
  --bg: #12161d;
  --panel: rgba(18, 24, 34, 0.92);
  --panel-2: rgba(24, 31, 43, 0.95);
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8edf7;
  --muted: #9ba8bc;
  --gold: #e8c15a;
  --health: #4fc06e;
  --stamina: #d9b45c;
  --mana: #5c8fd9;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

button,
select,
input,
textarea {
  font: inherit;
}

#app {
  width: 100vw;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr) 188px;
  background:
    radial-gradient(circle at top, rgba(60, 90, 120, 0.15), transparent 35%),
    linear-gradient(180deg, #141a23 0%, #0f141b 100%);
}

.ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 2px 8px;
  background: linear-gradient(180deg, rgba(28, 36, 49, 0.98), rgba(20, 26, 36, 0.98));
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 10;
  position: relative;
}

.top-left,
.top-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.top-left {
  flex-wrap: nowrap;
}

.top-stats {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu-btn {
  min-width: 104px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, #2b3647 0%, #1b2431 100%);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.menu-btn:hover {
  filter: brightness(1.08);
}

.menu-btn:active {
  transform: translateY(1px);
}

.menu-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  max-width: min(280px, calc(100vw - 24px));
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(180deg, rgba(29, 38, 52, 0.98), rgba(18, 24, 34, 0.98));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 30;
}

.dropdown-panel.hidden {
  display: none !important;
}

.dropdown-panel.dropdown-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  z-index: 2000;
  max-width: min(280px, calc(100vw - 16px));
}

.dropdown-item {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 9px;
  background: linear-gradient(180deg, #273345 0%, #1a2330 100%);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.dropdown-item:hover {
  filter: brightness(1.08);
}

.dropdown-item:active {
  transform: translateY(1px);
}

.lang-select-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, #2b3647 0%, #1b2431 100%);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.lang-select {
  min-width: 68px;
  height: 26px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(11, 16, 24, 0.9);
  color: var(--text);
  padding: 0 8px;
}

.secondary-btn {
  background: linear-gradient(180deg, #233041 0%, #18212d 100%);
}

.resource-box,
.stat-box {
  min-height: 36px;
  min-width: 120px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.resource-box .label,
.stat-box .label {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.stat-line .label::after {
  content: ":";
  margin-left: 2px;
}

.stat-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.resource-value,
.stat-value {
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
}

.resource-value {
  color: var(--gold);
}

.stat-box .stat-value {
  color: var(--text);
}

.bar {
  width: 100%;
  height: 7px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}

.fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.health { background: linear-gradient(90deg, #3f8d56, var(--health)); }
.stamina { background: linear-gradient(90deg, #99773d, var(--stamina)); }
.mana { background: linear-gradient(90deg, #4168aa, var(--mana)); }

#center-area {
  position: relative;
  overflow: hidden;
  min-height: 0;
}

#center-area.panel-toggle-up .mobile-panels-toggle {
  bottom: 0;
}

#gameCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background:
    radial-gradient(circle at center, rgba(56, 95, 65, 0.15), transparent 40%),
    linear-gradient(180deg, #17202a 0%, #121920 100%);
  cursor: grab;
  touch-action: none;
}

#gameCanvas.dragging {
  cursor: grabbing;
}

.center-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  right: auto;
  bottom: auto;
  max-width: min(360px, calc(100% - 32px));
  padding: 5px 10px;
  background: rgba(15, 19, 27, 0.72);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  z-index: 2;
  backdrop-filter: blur(6px);
  line-height: 1.45;
  pointer-events: none;
}

/* Loading overlay centered in gameplay area */
.loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  pointer-events: none;
}

.loading-overlay.hidden { display: none; }

.loading-text {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 6px;
  text-transform: uppercase;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-image: linear-gradient(90deg, #e8c15a, #5c8fd9, #4fc06e, #e8c15a);
  background-size: 600% 600%;
  animation: loadingGradientShift 6s linear infinite, loadingPulse 1.8s ease-in-out infinite;
  text-shadow: 0 4px 18px rgba(0,0,0,0.6);
}

@keyframes loadingGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes loadingPulse {
  0% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 0.95; }
}

.top-left-scroll {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}

.menu-scroll-arrow {
  display: none;
}

.mobile-panels-toggle {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(11, 16, 24, 0.46);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  z-index: 4;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  display: none;
}

.mobile-panels-toggle:active {
  transform: translateX(-50%) translateY(1px);
}

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

.bottom-ribbon {
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  gap: 4px;
  padding: 3px 10px 3px;
  background: linear-gradient(180deg, rgba(17, 22, 30, 0.98), rgba(12, 16, 22, 0.99));
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 0;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 0;
}

.panel-header {
  padding: 5px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  background: rgba(255,255,255,0.02);
}

.character-panel {
  display: grid;
  grid-template-rows: auto 1fr;
}

.character-body {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 4px;
  padding: 8px;
  align-items: center;
  min-height: 0;
}

.thumbnail {
  width: 92px;
  height: 92px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.18), transparent 20%),
    linear-gradient(180deg, #45556b, #233142);
  position: relative;
  overflow: hidden;
}

.thumbnail::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  box-shadow: 0 42px 0 10px rgba(255,255,255,0.14);
}

.character-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.character-name {
  font-size: 15px;
  font-weight: 700;
}

.character-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.dialog-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 0;
}

.dialog-text {
  padding: 8px 10px 6px;
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
  display: flex;
  align-items: center;
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dialog-text::-webkit-scrollbar {
  display: none;
}

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0 10px 8px;
}

.choice-btn {
  min-height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, #2d3949 0%, #1d2633 100%);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  padding: 5px 10px;
  font-size: 14px;
  line-height: 1.25;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.choice-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.minimap-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
}

#minimap {
  width: 100%;
  height: 100%;
  display: block;
  background: linear-gradient(180deg, #17202b, #10161e);
}

.minimap-panel .panel-header {
  padding-bottom: 5px;
}

.minimap-panel {
  align-items: stretch;
}



.minimap-panel {
  min-width: 0;
}

#minimap {
  max-width: 100%;
  max-height: 100%;
}

@media (min-width: 961px) and (orientation: landscape) {
  .bottom-ribbon {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(240px, 280px);
    gap: 4px;
  }

  .dialog-panel {
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .dialog-text {
    padding: 8px 10px 6px;
    font-size: 14px;
    line-height: 1.45;
    align-items: flex-start;
  }

  .choices {
    gap: 4px;
    padding: 0 12px 12px;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,10,14,0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(6px);
  padding: 16px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  transform: translateY(0);
  transition: transform 0.25s ease, opacity 0.25s ease;
  width: min(700px, calc(100vw - 40px));
  max-height: min(92vh, calc(100vh - 32px));
  background: linear-gradient(180deg, rgba(23,29,39,0.98), rgba(16,21,29,0.98));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0,0,0,0.42);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.log-card {
  width: min(1200px, calc(100vw - 48px));
  height: min(72vh, calc(100vh - 56px));
  min-height: 55vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.modal-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.modal-body {
  padding: 16px;
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field span {
  color: var(--muted);
  font-size: 13px;
}

.form-field input {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(18,24,34,0.95);
  color: var(--text);
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}

.form-field input:focus {
  border-color: rgba(232,193,90,0.45);
  box-shadow: 0 0 0 3px rgba(232,193,90,0.12);
}

.form-field input[readonly] {
  background: rgba(14,19,27,0.95);
  color: #d7deeb;
  border-color: rgba(255,255,255,0.07);
  cursor: default;
}

.modal-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 12px;
}

.params-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.params-group {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  display: grid;
  gap: 10px;
}

.params-title {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 16px 16px;
}

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.icon-btn:hover {
  filter: brightness(1.1);
}

.log-body {
  padding: 14px 16px 16px;
  min-height: 0;
  height: 100%;
}

.log-text {
  width: 100%;
  height: 100%;
  min-height: 100%;
  resize: none;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(130, 160, 210, 0.18);
  background: linear-gradient(180deg, #0d1420 0%, #0a1019 100%);
  color: #d7e1f3;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.55;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.log-text::selection {
  background: rgba(92, 143, 217, 0.35);
}

@media (max-width: 1200px) {
  #app {
    grid-template-rows: 94px 1fr 240px;
  }

  .bottom-ribbon {
    grid-template-columns: 220px 1fr 260px;
  }

  .ribbon {
    align-items: flex-start;
  }
}


@media (max-width: 960px) {
  html,
  body {
    min-height: 100svh;
  }

  .top-left-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    touch-action: pan-x;
  }

  .top-left-scroll::-webkit-scrollbar {
    display: none;
  }

  .top-left {
    display: inline-flex;
    min-width: max-content;
    gap: 4px;
    padding-inline: 28px;
  }

  .menu-scroll-arrow {
    position: absolute;
    top: 18px;
    width: 24px;
    height: 44px;
    border: none;
    background: rgba(11, 16, 24, 0.88);
    color: var(--text);
    z-index: 3;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    display: flex;
  }

  .menu-scroll-arrow.hidden {
    display: none;
  }

  .menu-scroll-arrow.left {
    left: 8px;
    clip-path: polygon(100% 0, 100% 100%, 0 50%);
  }

  .menu-scroll-arrow.right {
    right: 8px;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
  }
}

@media (max-width: 960px) and (orientation: portrait) {
  body {
    overflow-y: auto;
  }

  #app {
    height: auto;
    min-height: calc(100svh + 360px);
    grid-template-rows: auto minmax(68svh, calc(100svh - 188px)) auto auto;
    align-content: start;
  }

  #center-area {
    min-height: min(72svh, calc(100svh - 188px));
  }

  .mobile-panels-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    bottom: 0;
  }

  .mobile-panel-tabs,
  .bottom-ribbon {
    position: relative;
    z-index: 1;
  }

  .mobile-panel-tabs {
    padding-top: 18px;
  }

  .center-overlay {
    top: 12px;
    left: 12px;
    right: auto;
    bottom: auto;
    max-width: min(320px, calc(100% - 24px));
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-card,
  .log-card {
    width: 100vw;
    height: 100svh;
    max-height: 100svh;
    border-radius: 24px 24px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
}

@media (max-width: 960px) {
  #app {
    grid-template-rows: auto minmax(0, 1fr) auto auto;
  }

  .ribbon {
    flex-direction: column;
    align-items: stretch;
    padding: 5px 10px;
    position: relative;
  }

  .top-left,
  .top-stats {
    width: 100%;
  }

  .top-left {
    display: inline-flex;
    gap: 4px;
  }

  .top-left > * {
    min-width: 0;
  }

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

  .menu-btn,
  .lang-select-wrap,
  .resource-box,
  .stat-box {
    min-width: 0;
  }

  .lang-select-wrap {
    justify-content: space-between;
  }

  .resource-box,
  .stat-box {
    height: auto;
    min-height: 56px;
    padding: 7px 8px;
    gap: 3px;
  }

  .resource-box .label,
  .stat-box .label {
    font-size: 10px;
    letter-spacing: 0.6px;
  }

  .resource-value,
  .stat-top {
    font-size: 15px;
    font-weight: 700;
  }

  .bar {
    height: 6px;
  }

  .center-overlay {
    top: 12px;
    left: 12px;
    right: auto;
    bottom: auto;
    max-width: min(320px, calc(100% - 24px));
    font-size: 12px;
  }

  .mobile-panel-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 8px 12px 0;
    background: linear-gradient(180deg, rgba(17, 22, 30, 0.98), rgba(12, 16, 22, 0.99));
    border-top: 1px solid var(--line);
  }

  .mobile-tab-btn {
    min-height: 56px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, #263142 0%, #18212d 100%);
    color: var(--muted);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .mobile-tab-btn.active {
    color: var(--text);
    border-color: rgba(232,193,90,0.35);
    box-shadow: inset 0 0 0 1px rgba(232,193,90,0.12);
  }

  .bottom-ribbon {
    grid-template-columns: 1fr;
    padding: 8px 12px 18px;
    min-height: 420px;
    max-height: none;
  }

  .bottom-ribbon .panel {
    display: none;
    height: 100%;
  }

  .bottom-ribbon .panel.active-panel {
    display: grid;
    min-height: 410px;
  }

  .choices,
  .form-grid,
  .params-grid {
    grid-template-columns: 1fr;
  }

  .character-body {
    grid-template-columns: 72px 1fr;
  }

  .thumbnail {
    width: 72px;
    height: 72px;
  }

  .dialog-panel {
    grid-template-rows: auto auto auto;
    align-content: start;
  }

  .dialog-text {
    font-size: 14px;
    padding: 12px 14px 10px;
    align-items: flex-start;
    overflow: hidden;
    height: auto;
    min-height: 0;
  }

  .choices {
    gap: 4px;
    padding: 0 12px 12px;
  }

  .choice-btn {
    min-height: 52px;
  }

  .minimap-panel canvas {
    min-height: 250px;
    height: 100%;
  }

  .modal-overlay {
    padding: 10px;
    align-items: stretch;
  }

  .modal-card,
  .log-card {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: 100%;
    min-height: 0;
    border-radius: 14px;
  }
}

@media (max-width: 960px) and (orientation: landscape) {
  #app {
    grid-template-rows: auto 1fr auto;
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .ribbon {
    grid-column: 1 / -1;
  }

  #center-area {
    grid-column: 1 / 2;
  }

  .mobile-panel-tabs,
  .bottom-ribbon {
    grid-column: 2 / 3;
  }

  .mobile-panel-tabs {
    grid-template-columns: 1fr;
    padding: 10px 10px 0 0;
    border-top: none;
    background: transparent;
  }

  .bottom-ribbon {
    padding: 3px 8px 3px 0;
    max-height: none;
    min-height: 0;
    border-top: none;
    background: transparent;
    box-shadow: none;
  }

  .bottom-ribbon .panel {
    display: none;
  }

  .bottom-ribbon .panel.active-panel {
    display: grid;
  }

  .center-overlay {
    right: 12px;
    max-width: min(420px, calc(100% - 24px));
  }
}

@media (max-width: 560px) {
  .menu-btn,
  .lang-select-wrap,
  .resource-box,
  .stat-box {
    height: auto;
    min-height: 42px;
  }

  .stat-box,
  .resource-box {
    padding: 7px 7px;
  }

  .resource-box .label,
  .stat-box .label {
    font-size: 9px;
  }

  .resource-value,
  .stat-top {
    font-size: 13px;
  }

  .mobile-panel-tabs {
    gap: 4px;
    padding: 6px 10px 0;
  }

  .mobile-tab-btn {
    min-height: 48px;
    font-size: 12px;
  }

  .bottom-ribbon {
    padding: 6px 10px 14px;
    min-height: 440px;
    max-height: none;
  }

  .bottom-ribbon .panel.active-panel {
    min-height: 428px;
  }

  .panel-header {
    padding: 8px 10px;
  }

  .character-body,
  .dialog-text,
  .choices,
  .log-body,
  .modal-body,
  .modal-actions {
    padding-left: 10px;
    padding-right: 10px;
  }

  .choices {
    gap: 4px;
    padding-bottom: 10px;
  }

  .choice-btn {
    font-size: 13px;
  }

  .center-overlay {
    font-size: 10px;
    line-height: 1.25;
  }
}

.tab-icon {
  font-size: 15px;
  line-height: 1;
}

.tab-label {
  font-size: 12px;
  line-height: 1.1;
}

.dragging-scroll {
  cursor: grabbing;
}

.stat-value{margin-left:6px;font-weight:bold}
.stat-percent{display:none}
