* {
  user-select: none;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent !important;
  margin: 0;
  padding: 0;
  transition: color 0.2s, background 0.2s;
}

*::-webkit-scrollbar {
  width: 0.5rem;
}

*::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 0.125rem;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent);
}

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  background: var(--primary-background);
  color: var(--primary-text);
}

.fullscreen-center {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0.25rem 1rem;
  justify-content: flex-start;
  padding: 0.25rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--primary-background);
  z-index: 1000;
}

.bottom-bar {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 0;
  margin-top: auto;
}

.header-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.app-icon-inline {
  height: 3em;
  width: auto;
  filter: brightness(0) invert(1);
  mix-blend-mode: difference;
}

.launch-text {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-text);
}

.default-btn {
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 0.125rem solid var(--border);
  background: var(--secondary-background);
  color: var(--primary-text);
  border-radius: var(--border-radius);
  transition: color 0.2s, background 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.default-btn:hover {
  background: var(--hover-background);
}

.default-btn:active {
  background: var(--accent);
}

.default-btn.accent {
  background: var(--accent);
  color: var(--primary-background);
}

.default-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 0.125rem solid var(--border);
  border-radius: var(--border-radius);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  background: var(--secondary-background);
  color: var(--primary-text);
}

.info-box {
  background: var(--secondary-background);
  color: var(--primary-text);
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: pre-line;
  user-select: text;
}

.language-selector {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.theme-btn {
  position: absolute;
  top: 2vw;
  right: 2vw;
  width: 2rem;
  height: 2rem;
  padding: 0;
  font-size: 1rem;
}

.user-count,
.author {
  position: static;
  bottom: auto;
  left: auto;
  right: auto;
  font-size: 0.875rem;
  color: var(--secondary-text);
}

.lds-dual-ring {
  display: none;
  width: 2.375rem;
  height: 2.375rem;
  margin: 0.5rem auto;
}

.lds-dual-ring.active {
  display: block;
}

.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 1.875rem;
  height: 1.875rem;
  margin: 0.25rem;
  border-radius: 50%;
  border: 0.1875rem solid var(--primary-text);
  border-color: var(--primary-text) transparent var(--primary-text) transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.tabs {
  display: flex;
  width: 100%;
  margin: 0.5rem 0;
  border-bottom: 0.125rem solid var(--border);
}

.tab-btn {
  flex: 1;
  padding: 0.75rem 0;
  background: none;
  border: none;
  color: var(--secondary-text);
  cursor: pointer;
  font-weight: 500;
  position: relative;
}

.tab-btn.active {
  color: var(--primary-text);
  font-weight: bold;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -0.125rem;
  left: 0;
  right: 0;
  height: 0.25rem;
  background: var(--accent);
  border-radius: 0.125rem 0.125rem 0 0;
}

.tab-content {
  display: none;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.tab-content.active {
  display: block;
}

.section {
  background: var(--secondary-background);
  border: 0.125rem solid var(--border);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  width: 100%;
  margin-bottom: 1rem;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.section h3 {
  margin-bottom: 0.75rem;
  color: var(--primary-text);
}

.download-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin: 0.75rem 0;
}

.version-info {
  text-align: center;
  margin: 0.5rem 0;
  font-weight: bold;
  color: var(--accent);
}

.clickable-version {
  cursor: pointer;
  text-decoration: none;
}

.clickable-version:hover {
  text-decoration: underline;
}

.tutorial-steps {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  line-height: 1.6;
}

.tutorial-steps li {
  margin-bottom: 0.5rem;
}

.changelog-text {
  word-break: break-word;
  white-space: pre-wrap;
}
